Snapshot stuck on delete

subjectx

Member
Nov 4, 2020
36
3
8
113
Greetings,

I started doing snapshot of VM on PVE6.4, but it got stuck or something, outputing 7.90GiB in status for like an hour (every 10 seconds or something). I clicked stop and VM remained locked and Status of snapshot is now delete.

I cannot remove this snapshot, I get error:

Code:
zfs error: could not find any snapshots to destroy; check snapshot names.

and it locks VM, need to unclok it with qm unlock.

New snapshot can be created without a problem.
 
It'd be interesting to see what caused the original snapshot to hang... But for now, since the linked ZFS snapshot doesn't seem to exist (if it does, remove it with 'zfs destroy'), you can just remove the snapshot info from the config manually.

Edit the VM config in your editor of choice (best to do while VM is shut down) in '/etc/pve/qemu-server/<vmid>.conf' and remove the entire section with the header '[your-snapshot-name]'. It should be quite self-explanatory, but feel free to post the full config for help if you're unsure.

That should get rid of the snapshot in the GUI, and since the ZFS snapshot is already gone, no further data will be used up by it anywhere.
 
Hi,

similar (but maybe not the same) problem here: I started creating the snapshot, it started, then I cancel the task by Cancel button. An then VM is locked and I can see this snapshot name in the list of snapshots but with Status "delete". When I want to remove this entry, I get
"TASK ERROR: zfs error: could not find any snapshots to destroy; check snapshot names." and VM is locked.

Regards,
Sašo
 
Hi,
Hi,

similar (but maybe not the same) problem here: I started creating the snapshot, it started, then I cancel the task by Cancel button. An then VM is locked and I can see this snapshot name in the list of snapshots but with Status "delete". When I want to remove this entry, I get
"TASK ERROR: zfs error: could not find any snapshots to destroy; check snapshot names." and VM is locked.

Regards,
Sašo
you can use qm unlock <ID> and qm delsnapshot <ID> <snapshot> --force to force removal.
 
  • Like
Reactions: SasoCelarc