TASK ERROR: VM is locked (snapshot)

dison4linux

Active Member
Jun 3, 2015
22
0
41
Unable to take new snapshots/backups because there seems to be a snapshot in progress.
I've rebooted to the hypervisor, no change.
The snapshots tab shows a 'vzdump' snapshot with a status of 'prepare'

Also...
Code:
root@hv2:~# lxc-snapshot -L --name 224No snapshots
root@hv2:~# lxc-snapshot --name 224   
lxc-snapshot: lxccontainer.c: do_lxcapi_clone: 2812 error: Original container (224) is running
lxc-snapshot: lxccontainer.c: do_lxcapi_snapshot: 3127 clone of /var/lib/lxc:224 failed
lxc-snapshot: lxc_snapshot.c: do_snapshot: 55 Error creating a snapshot
root@hv2:~# qm unlock 224
no such VM ('224')
root@hv2:~#
 
I think that got me a little further, but no joy on a new snapshot yet.

Code:
root@hv2:/mnt/pve/nfs-backups/dump# pct unlock 224
root@hv2:/mnt/pve/nfs-backups/dump# lxc-snapshot -L --name 224           
No snapshots
root@hv2:/mnt/pve/nfs-backups/dump# lxc-snapshot --name 224           
lxc-snapshot: lxccontainer.c: do_lxcapi_clone: 2812 error: Original container (224) is running
lxc-snapshot: lxccontainer.c: do_lxcapi_snapshot: 3127 clone of /var/lib/lxc:224 failed
lxc-snapshot: lxc_snapshot.c: do_snapshot: 55 Error creating a snapshot
 
It works to create a new one, but not to remove the troublesome one.

Code:
root@hv2:/mnt/pve/nfs-backups/dump# pct delsnapshot 224 vzdump
root@hv2:/mnt/pve/nfs-backups/dump# pct listsnapshot 224       
[B]vzdump               no-parent            vzdump backup snapshot[/B]
current              no-parent            no-description
root@hv2:/mnt/pve/nfs-backups/dump# pct delsnapshot 224 vzdump
root@hv2:/mnt/pve/nfs-backups/dump# pct listsnapshot 224      
[B]vzdump               no-parent            vzdump backup snapshot[/B]
current              no-parent            no-description
 
For what it's worth the backup process seems unable to delete the snapshot as well:

Code:
[COLOR=#000000][FONT=tahoma]INFO: Starting Backup of VM 224 (lxc)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: status = running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: found old vzdump snapshot (force removal)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: backup mode: snapshot[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: ionice priority: 7[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: create storage snapshot snapshot[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]ERROR: Backup of VM 224 failed - snapshot name 'vzdump' already used
[/FONT][/COLOR]
 

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!