Virtual machine disk partitions are missing.

vadimushka

Member
May 26, 2020
7
1
23
36
I have several virtual machines. All have physical SSD drives connected. Today I created a virtual machine (vm4) and connected a physical HDD disk. But for some reason, on another virtual machine (vm1), the partitions of the connected physical SSD disk disappeared. The disk is completely different. What could be the reason?
 
Do you use disk passthough like described here with "/dev/sdX" instead of "/dev/disk/by-id/X"? These Disk names might change when adding/removing disks so you are passing through wrong disks.
 
Do you use disk passthough like described here with "/dev/sdX" instead of "/dev/disk/by-id/X"? These Disk names might change when adding/removing disks so you are passing through wrong disks.
I did it like this - qm set 103 -scsi 1 /dev/disk/by-id/ata-ST6000NM0115-1YZ110_ZAD55Y38.
The reason was that one of the SSD drives on the host lost partitions. Maybe the problem is that I divided one SSD disk into 2 partitions and added them to different virtual machines?