Hi,
currently virtual hard disk show up like this under /dev/disk/by-id:
lrwxrwxrwx 1 root root 9 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Sep 2 16:56 scsi-0QEMU_QEMU_HARDDISK_drive-scsi1 -> ../../sdb
lrwxrwxrwx 1 root root 9 Sep 2 16:56 scsi-0QEMU_QEMU_HARDDISK_drive-scsi2 -> ../../sdc
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 -> ../../sdd
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi4 -> ../../sde
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi5 -> ../../sdf
They have a unique ID inside the VM.
But when looking at multiple VMs the IDs are not unique any more. A management system that spans more than one VM gets confused with multiple HDDs having the same ID.
Is it possible to replace QEMU_HARDDISK with a unique id (possibly a UUID)? Is that even something Proxmox can do?
Physical disks in physical machines do not have this issue.
currently virtual hard disk show up like this under /dev/disk/by-id:
lrwxrwxrwx 1 root root 9 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 2 13:47 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 9 Sep 2 16:56 scsi-0QEMU_QEMU_HARDDISK_drive-scsi1 -> ../../sdb
lrwxrwxrwx 1 root root 9 Sep 2 16:56 scsi-0QEMU_QEMU_HARDDISK_drive-scsi2 -> ../../sdc
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi3 -> ../../sdd
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi4 -> ../../sde
lrwxrwxrwx 1 root root 9 Sep 2 17:28 scsi-0QEMU_QEMU_HARDDISK_drive-scsi5 -> ../../sdf
They have a unique ID inside the VM.
But when looking at multiple VMs the IDs are not unique any more. A management system that spans more than one VM gets confused with multiple HDDs having the same ID.
Is it possible to replace QEMU_HARDDISK with a unique id (possibly a UUID)? Is that even something Proxmox can do?
Physical disks in physical machines do not have this issue.