HiI would really like this patch to be included into partman-auto-raid. The same bug also prevents device paths with a dot. This is common in /dev/disk/by-path symlinks. It would be great to be able to use such symlinks to avoid issues with different device enumerations depending on how man slots are actually populated with disks.
We currently have a bunch of systems with 2 NVMe devices used in a RAID configuration as system disks. Some of these systems contain 2 additional devices. The system disks are always plugged into the same physical ports. The 2 additional devices cause the device numbering of the system disks to change.
With 2 disk:$ ls -l /dev/disk/by-path/ total 0 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:61:00.0-nvme-1 -> ../../nvme0n1 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:a4:00.0-nvme-1 -> ../../nvme1n1
With 4 disks:$ ls -l /dev/disk/by-path/ total 0 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:61:00.0-nvme-1 -> ../../nvme0n1 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:a1:00.0-nvme-1 -> ../../nvme1n1 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:a2:00.0-nvme-1 -> ../../nvme2n1 lrwxrwxrwx 1 root root 13 Mai 14 15:52 pci-0000:a4:00.0-nvme-1 -> ../../nvme3n1 It would be nice to configure the RAID with stable device namesl like this:
/dev/disk/by-path/pci-0000:61:00.0-nvme-1#/dev/disk/by-path/pci-0000:a4:00.0-nvme-1 but this currently breaks because of the dot in the device name. Gaudenz -- PGP: 836E 4F81 EFBB ADA7 0852 79BF A97A 7702 BAF9 1EF5
Attachment:
signature.asc
Description: PGP signature