[SOLVED] Delete stuck snapshot

krystofr

Member
Dec 30, 2016
20
1
23
churchweb.uk
Hi there,

I have an old snapshot on my system, which won't delete. It's not being used and he status says 'delete' but is appears stuck. If I try and delete it again in the GUI the delete fails, and the VM is locked.
I have to unlock the vm manually on the command line.


Could someone tell me how to manually delete the snapshot from the command line?

Thank you in advance
 
Hi,
is there any output in the task log? What kind of disks are/were attached to the VM?

With qm delsnapshot <ID> <snapname> --force you can force removal of the snapshot from the configuration, but it can happen that snapshots on the disks remain.
 
HI Fabian,

Thanks for the response. Sorry I should have included the message from the task log. It is this, TASK ERROR: zfs error: could not find any snapshots to destroy; check snapshot names.

So I'm assuming it was correctly removed from the disk, but not from the configuration, so I'll give the qm command above ago.
 
I ran qm delsnapshot <ID> <snapname> --force, and was given this error msg: zfs error: could not find any snapshots to destroy; check snapshot names

However the problem is resolved, and it has gone from the gui. thanks so much!
 

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!