Snapshot won't delete

bruceg

Member
Aug 29, 2018
13
0
6
71
I have a snap that is being a troublemaker... it shows up in the web gui but if i try to delete it, it says vm is locked. i unlock the vm from the cli and the same thing happens...

I then list the snap in the CLI for that vm and it is listed. Running qm delsnapshot <ID> <name> says zfs error: could not find any snapshots to destroy; check snapshot names.

This snap refuses to die!
 
I ran into similar problem and discovered I was using the wrong name for snapshot. Try the following:

lvs (list snapshots on VG designated as snap_*)
qm listsnapshot <VM number> (will list the snapshot name after -> designation)
qm delsnapshot <VM number> <snapshot name>

The snapshot name is not the name listed in lvs output. Maybe this will help?
 
I ran into similar problem and discovered I was using the wrong name for snapshot. Try the following:

lvs (list snapshots on VG designated as snap_*)
qm listsnapshot <VM number> (will list the snapshot name after -> designation)
qm delsnapshot <VM number> <snapshot name>

The snapshot name is not the name listed in lvs output. Maybe this will help?
As stated in my original post, I tried that and get: zfs error: could not find any snapshots to destroy; check snapshot names.
 
What does qm listsnapshot <VM number> report for that VM? You said it's displayed in the web GUI, is it also listed in the CLI?