[SOLVED] Cannot Remove Disk Image

Stillkill

New Member
Oct 6, 2023
4
5
3
I am trying to delete an orphaned disk image so that I can reformat a drive but whenever I do I get an error:
1735681044592.png

1735680990708.png

When I go to the VM with ID 102 I can see that this drive image is not referenced anywhere in the hardware, the drive image that you see referenced here lives on a different storage, not the local-lvm. I also cannot wipe the physical drive from the UI because the kernal has a hold on it.

1735681223752.png




Anyone got any suggestions.
 
Proxmox probably won't let you delete any drive that appears to be related to an existing VM (as the number appears in the virtual disk name). I think that running a qm disk rescan --vmid 102 will add the (unreferenced) virtual disk to the VM again (but not connect it as a hard disk). You can then delete it (from the VM settings, not the storage).
 
Proxmox probably won't let you delete any drive that appears to be related to an existing VM (as the number appears in the virtual disk name). I think that running a qm disk rescan --vmid 102 will add the (unreferenced) virtual disk to the VM again (but not connect it as a hard disk). You can then delete it (from the VM settings, not the storage).
This worked. Thanks.
 
  • Like
Reactions: leesteken

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!