[SOLVED] How to safely delete orphaned Snapshots?

Jan 26, 2023
4
2
3
Hi guys,

using Proxmox VE 6.4-15 with Ceph 14.2.22. A few years ago I've tried to create a Snapshot of a VM, but the process crashed for some reason. On the storage it exists as "vm-114-state-wekan_2020_10_28", but on the VM/Snapshots page it's not visible. I didn't care at that time, but now I would like to get rid of it.

If I try to delete the Snapshot on the storage via Web GUI, it shows me the error message "Cannot remove image, a guest with VMID '114' exists! You can delete the image from the guest's hardware pane" - but I can't delete it from the guest's hardware pane, because it's not visible there.

How do I safely delete this orphaned Snapshot?

Trying to delete the orphaned Snapshot from storage via Web GUI:

storage.JPG

No Snapshots visible for the VM:

no_snapshot.JPG
 
Hello,

Have you tried the qm rescan --vmid 114?

You can delete the snapshot if you removed from the VM config file using pvesh free, e.g.,: pvesm free vm-114-state-wekan_2020_10_28 --storage Ceph.
 
  • Like
Reactions: Tudeli
Hello,

Have you tried the qm rescan --vmid 114?

You can delete the snapshot if you removed from the VM config file using pvesh free, e.g.,: pvesm free vm-114-state-wekan_2020_10_28 --storage Ceph.
Rescan did not solve it, but this worked:

pvesm free Ceph:vm-114-state-wekan_2020_10_28

Thanks a lot for pointing me into the right direction!
 
  • Like
Reactions: Moayad
Glad to help :)

I will go ahead a set your thread as [SOLVED] to help the people who have the same issue.