vzdump vm lock fails

hk@

Renowned Member
Feb 10, 2010
248
8
83
Vienna
kapper.net
Hi
I think I have this one figured out - please advise if you could fix this in vzdump.

The situation:
VM 72002 is a KVM-VE and is set to not boot anyways, but just sit there until an admin manually kicks it to boot manually.

the vzdump backup runs and everything is fine:
72002
ag-sbs-2008
OK
05:34:01
46.19GB
/mnt/pve/store02_kXX_backup/vzdump-qemu-72002-2011_11_11-21_45_01.tgz

but when vzdump runs again the next day it fails like this:
72002
VM 72002
FAILED
00:00:01
command 'qm set 72002 --lock backup' failed with exit code 2

it seems the "qm unlock 72002" is not done after vzdump finishes, manually unlocking works for the next backup.
But this seems only to happen with this (relatively big) VE that isn't even running during backup.

Please advise,
hk
 
does the backup finishes successfully? otherwise its locked. post the full backup log.
 
Hi,
at least it says so:

Detailed backup logs:

vzdump --quiet --snapshot --compress --storage store02_kXX_backup --all
72002: Nov 11 21:45:01 INFO: Starting Backup of VM 72002 (qemu)
72002: Nov 11 21:45:01 INFO: stopped
72002: Nov 11 21:45:01 INFO: status = stopped
72002: Nov 11 21:45:02 INFO: backup mode: stop
72002: Nov 11 21:45:02 INFO: ionice priority: 7
72002: Nov 11 21:45:02 INFO: creating archive '/mnt/pve/store02_kXX_backup/vzdump-qemu-72002-2011_11_11-21_45_01.tgz'
72002: Nov 11 21:45:02 INFO: adding '/mnt/pve/store02_kXX_backup/vzdump-qemu-72002-2011_11_11-21_45_01.tmp/qemu-server.conf' to archive ('qemu-server.conf')
72002: Nov 11 21:45:02 INFO: adding '/dev/SASRAID5/vm-72002-disk-1' to archive ('vm-disk-virtio0.raw')
72002: Nov 11 22:34:22 INFO: adding '/var/lib/vz/images/72002/vm-72002-disk-1.raw' to archive ('vm-disk-virtio1.raw')
72002: Nov 11 22:42:34 INFO: adding '/var/lib/vz/images/72002/vm-72002-disk-3.raw' to archive ('vm-disk-virtio2.raw')
72002: Nov 12 03:18:29 INFO: Total bytes written: 142268378624 (6.78 MiB/s)
72002: Nov 12 03:18:56 INFO: archive file size: 46.19GB
72002: Nov 12 03:18:56 INFO: delete old backup '/mnt/pve/store02_kXX_backup/vzdump-qemu-72002-2011_11_07-21_45_02.tgz'
72002: Nov 12 03:19:02 INFO: Finished Backup of VM 72002 (05:34:01)
well?
hk
 
log looks fine, yes.

I never seen this. does this happen every day? post the result of 'pveversion -v'.
 
sorry - forgot the usual pveversion :)

pveversion -v
pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 1.9-50
pve-kernel-2.6.32-6-pve: 2.6.32-50
qemu-server: 1.1-32
pve-firmware: 1.0-14
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.0-6