proxmox-auto-install-assistant device-match mutliple disk by their SERIAL_ID ?

guerby

Active Member
Nov 22, 2020
86
18
28
51
Hi,

I have a machine with 8 disks from the same model (pretty common situation for a new server), I'm trying to match 2 of the disks for a ZFS RAID1 install by using their ID_SERIAL as follows:

Code:
[disk-setup]
filesystem = "zfs"
zfs.raid = "raid1"
filter.ID_SERIAL="*194K"
filter.ID_SERIAL="*191V"

However I get the following error:

Code:
Checking provided answer file...
Error parsing answer file: TOML parse error at line 23, column 1
   |
23 | filter.ID_SERIAL="*191V"
   | ^
duplicate key `ID_SERIAL` in table `disk-setup`

I managed to make it work thanks to having two serial matches by using :

Code:
[disk-setup]
filesystem = "zfs"
zfs.raid = "raid1"
filter.ID_SERIAL="*194K"
filter.ID_SERIAL_SHORT="*191V"

But this will work only up to two disks.

Is there a way to match more than two disks by ID_SERIAL?
 
Hi,
AFAIK, you can't define arbitrary matching with filters: https://pve.proxmox.com/wiki/Automated_Installation#Filter_Syntax

Maybe you can use *19[14][VK]? But please note that this will also match disks whose serial ends with 194V and 191K.

Yes that's another way when you're able to match the set of disks you want the installer to choose.

May be copying the disk_list syntax for filter.xxx would be a nice addition to the tool:

Code:
filter.ID_SERIAL= ["*194K","*191V"]

I don't think I'm alone wanting to do a RAID1 for system install and leave the rest to another ZFS pool or ceph (and do all that via IPMI without having physical access to the machine).
 
Yes that's another way when you're able to match the set of disks you want the installer to choose.

May be copying the disk_list syntax for filter.xxx would be a nice addition to the tool:

Code:
filter.ID_SERIAL= ["*194K","*191V"]

I don't think I'm alone wanting to do a RAID1 for system install and leave the rest to another ZFS pool or ceph (and do all that via IPMI without having physical access to the machine).
Sounds sensible to me. Feel free to add a feature request for this, so it doesn't get lost in the forum: https://bugzilla.proxmox.com/
 
  • Like
Reactions: guerby