[SOLVED] Problem with backup qemu/kvm VID

abkrim

Active Member
Sep 5, 2009
95
1
28
Pastrana (España)
castris.com
Error show:
Code:
INFO: setting parameters failed - VM is locked (backup)
ERROR: Backup of VM 516 failed - command 'qm set 516 --lock backup' failed with exit code 255
On same machine there are 4 machines KVM. Only this VID has problem.

Code:
/usr/local/bin/backup.sh
INFO: starting new backup job: vzdump --compress --dumpdir=/backup --mailto fenzen@gmail.com 516
INFO: Starting Backup of VM 516 (qemu)
INFO: running
INFO: status = running
INFO: setting parameters failed - VM is locked (backup)
ERROR: Backup of VM 516 failed - command 'qm set 516 --lock backup' failed with exit code 255
INFO: Backup job finished with errors
INFO: starting new backup job: vzdump --compress --dumpdir=/backup --mailto fenzen@gmail.com 999
INFO: Starting Backup of VM 999 (qemu)
INFO: running
INFO: status = running
INFO: backup mode: snapshot
INFO: bandwidth limit: 10240 KB/s
INFO: trying to remove stale snapshot '/dev/vzhd/vzsnap-vz003.islaserver.com-0'
INFO:   Logical volume "vzsnap-vz003.islaserver.com-0" successfully removed
INFO:   Logical volume "vzsnap-vz003.islaserver.com-0" created
INFO: creating archive '/backup/vzdump-qemu-999-2010_04_21-23_09_41.tgz'
INFO: adding '/backup/vzdump-qemu-999-2010_04_21-23_09_41.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/mnt/vzsnap0/images/999/vm-999-disk-1.qcow2' to archive ('vm-disk-scsi0.qcow2')
....
....
command:
Code:
vzdump --compress --dumpdir=/backup --mailto [EMAIL="xxxxxx@gmail.com"]xxxxxx@gmail.com[/EMAIL] 516
 
Last edited:

Dtravler

New Member
Aug 16, 2009
4
0
1
Re:[SOLVED]-[BUT NO EXPLANATION] Problem with backup qemu/kvm VID

The suggested command solves the situation of the locked VM.
But I am more curious what can possibly be the reason that the VM is stuck in the backup-process and or locked.
The log-file doesn't tell me any useful information.
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
17,107
507
133
Austria
www.proxmox.com
Re: [SOLVED]-[BUT NO EXPLANATION] Problem with backup qemu/kvm VID

But I am more curious what can possibly be the reason that the VM is stuck in the backup-process and or locked.
The log-file doesn't tell me any useful information.

Another backup process still running?
Or you had a power failure previously?
Or rebooted the node during backup in progress?
 

LordVaderXIII

New Member
Aug 30, 2012
1
0
1
Error show:
Code:
INFO: setting parameters failed - VM is locked (backup)
ERROR: Backup of VM 516 failed - command 'qm set 516 --lock backup' failed with exit code 255
On same machine there are 4 machines KVM. Only this VID has problem.

Code:
/usr/local/bin/backup.sh
INFO: starting new backup job: vzdump --compress --dumpdir=/backup --mailto fenzen@gmail.com 516
INFO: Starting Backup of VM 516 (qemu)
INFO: running
INFO: status = running
INFO: setting parameters failed - VM is locked (backup)
ERROR: Backup of VM 516 failed - command 'qm set 516 --lock backup' failed with exit code 255
INFO: Backup job finished with errors
INFO: starting new backup job: vzdump --compress --dumpdir=/backup --mailto fenzen@gmail.com 999
INFO: Starting Backup of VM 999 (qemu)
INFO: running
INFO: status = running
INFO: backup mode: snapshot
INFO: bandwidth limit: 10240 KB/s
INFO: trying to remove stale snapshot '/dev/vzhd/vzsnap-vz003.islaserver.com-0'
INFO:   Logical volume "vzsnap-vz003.islaserver.com-0" successfully removed
INFO:   Logical volume "vzsnap-vz003.islaserver.com-0" created
INFO: creating archive '/backup/vzdump-qemu-999-2010_04_21-23_09_41.tgz'
INFO: adding '/backup/vzdump-qemu-999-2010_04_21-23_09_41.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/mnt/vzsnap0/images/999/vm-999-disk-1.qcow2' to archive ('vm-disk-scsi0.qcow2')
....
....
command:
Code:
vzdump --compress --dumpdir=/backup --mailto [EMAIL="xxxxxx@gmail.com"]xxxxxx@gmail.com[/EMAIL] 516

How were you able to change the ID of the guest? Im battling to set the id over 100 so that vzdump will work.
 

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 your own in 60 seconds.

Buy now!