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

Cookiefamily

Well-Known Member
Jan 29, 2020
136
40
48
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!