I am using Proxmox on typical servers with multiple drive bays. The disks show up on the GUI as sda, sdb, ... which is not very helpfull identifing a disk. I would like them to show up named after their respective drive bay, eg. bay-1, bay-3, ... . This woule make thins like replacing a broken drive much easier. .. "What? drive 4 is broken?" ok, pull it out, new drive in, done.
Where to geh this informations? I checked on different servers with different HBA/RAID controllers, and it always boils down to /dev/disk/by-path/
Example
# ls -la /dev/disk/by-path/*0
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:1:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:3:0 -> ../../sdd
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:4:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:5:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:7:0 -> ../../sdf
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:9:0 -> ../../sdg
The bold number is the slot number.
It would also be okay, if the drives would show up as pci-0000:02:00.0-scsi-0:0:0:0
Where to geh this informations? I checked on different servers with different HBA/RAID controllers, and it always boils down to /dev/disk/by-path/
Example
# ls -la /dev/disk/by-path/*0
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:1:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:3:0 -> ../../sdd
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:4:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:5:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:7:0 -> ../../sdf
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:9:0 -> ../../sdg
The bold number is the slot number.
It would also be okay, if the drives would show up as pci-0000:02:00.0-scsi-0:0:0:0