[SOLVED] Problem with backup qemu/kvm VID

abkrim

Well-Known Member
Sep 5, 2009
97
1
48
Zamora (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:
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.
 
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?
 
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.