[SOLVED] Restoring Disk to a live VM: VM doesn't recognize drive

Cookiefamily

Renowned Member
Jan 29, 2020
138
40
68
Germany
Hello,

I wanted to restore a single disk and attach it to a running VM (ID 117). To accomplish this, I restored the VM the disk was attached to to a completly new VM (ID 118).
Then I followed the instructions on https://pve.proxmox.com/wiki/Moving_disk_image_from_one_KVM_machine_to_another to move that disk back to ID 117 with the name vm-117-disk-0-restore.
This however doesn't appear to do the same as adding a completly new Disk in the hardware tab on the GUI, as those get immediatly picked up by the VMs OS, my restored disks doesn't appear in the VM until I restart it. Detaching and reattaching doesn't help.
dmesg on the VM doesn't show any changes. Running a rescan on the scsi host doesn't detect any changes either.

Any advice on this? :)

Thanks!
 
Last edited:
this name needs to fit to our scheme: vm-VMID-disk-N
oh ok... that works now. I did try it with qm rescan before, it picked it up as an unused drive but once attached it didn't show up.
With our current backup tool https://github.com/Corsinvest/cv4pve-barc we could attach a -restore in the name of the drive, do a qm rescan and attach it without issues. Thats why I just assumed this was fine as long as the beginning of the name is in the correct format