TASK ERROR: VM is locked (snapshot)

dison4linux

New Member
Jun 3, 2015
22
0
1
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:~#
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
2,132
325
103
South Tyrol/Italy
Hi,

please use:
Code:
pct unlock 224
`qm`manages the qemu VMs while `pct` is for containers.
 

dison4linux

New Member
Jun 3, 2015
22
0
1
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
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
2,132
325
103
South Tyrol/Italy
Using our pct snapshot command works?

Code:
pct snapshot 224
Note that the storage where your CT lies needs snapshot support.
 

dison4linux

New Member
Jun 3, 2015
22
0
1
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
 

dison4linux

New Member
Jun 3, 2015
22
0
1
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]
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
16,600
339
103
Austria
www.proxmox.com
If nothing helps, remove it manually from config file. What kind of storage do you use for the container?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!