TASK ERROR: VM is locked (backup)

jmjosebest

Renowned Member
Jan 16, 2009
192
38
93
Hi, after a full host restart I get this error starting a virtual machine KVM.

TASK ERROR: VM is locked (backup)

/var/lib/vz/lock is empty...
How can I unlock?
Thanks
 
o.k., unlock works. But how can it be prevented that the VE locks itself up in the first place?I have one that keeps falling into this state, cannot be (re-)started via the web-interface and needs above manual unlock to be (re-)started again. What could be the cause?
Cheers
 
find out why the backup job crashed.. is it backing up to unreliable (network) storage?
 
Thank you, Fabian.
So it is definitely a crashed backup-job that prevents the VE from (re-)starting? How could I find out what is the cause of the crash during backup?
Backups are performed on local storage (ZFS pool: rpool)
None of the other 5 VEs on this box has this problem; they are all backed up together once a week.
 
check the system logs around the time of the failed backup, try manually backing up the VM a couple of times and check for failure.

it might have been a one time fluke.
 
I can provoke a system crash by manually starting a backup of the VE that I use to find in a locked state.
After 1 or 2 mins., process z_wr_iss takes 97% CPU and subsequently the server fails. It then automatically reboots, but the VE is still locked from the pending/failed backup process and does not automatically recover.
I attach a screenshot of the last state seen in "top".
Could this be prevented by adding some RAM to the box?

Bildschirmfoto 2016-09-28 um 14.41.03.png
 
just a brief follow up: I upgraded my box (hp micro server gen8). RAM from 2GB to 4GB, replaced the Celeron w. an i3. No more problems since then. proxmox' official system requirements state 8GB RAM for a good reason :)
 
I have a backup job with Mode: stop (not snapshot or suspend).

After I manually aborted this backup job via GUI's "Stop" button, the VMs remained locked.
And I could not backup them any more.

Code:
ERROR: Backup of VM 108 failed - VM is locked (backup)
INFO: Failed at 2023-03-11 11:09:33
INFO: Backup job finished with errors
TASK ERROR: job errors

Manually unlocking them with qm unlock 108 as per this thread did fix the problem.

However I still think this is a bug. When aborting a backup job via GUI, the GUI should make sure that the VMs get properly unlocked.
 
Hello, during I made a backup from my VM my backup storage (Sinology) shut down. After starting it new and trying to make a new backup I got the information:

VM is locked (backup)

1696188522098.jpeg
How could I fix it?

Thanks!
 
Last edited:
I ran this command qm unlock 102 then I got this "unable to open file '/etc/pve/nodes/UniMatrix001/qemu-server/102.conf.tmp.37412' - Input/output error" please help
 
please post the output of "pveversion -v", "pvecm status" and "systemctl status pve-cluster corosync".
 
where to execute this command?
On that PVE host which runs that VM ;-)

Go there either by SSH or use the Web Gui --> Server View --> <your PVE node> --> Shell. Both ways are equivalent. man qm will tell you more about the usage of "qm".
 
  • Like
Reactions: david_tao