backup failed - command 'qm set 101 --lock backup' failed with exit code 255

D

doknet

Guest
Hi I have configured and working properly Proxmox system and drbd, under the guidance of http://pve.proxmox.com/wiki/DRBD
But now I have a problem trying to make some bk snapshot vm running on that system.
Probe both the kernel 2.6.24 to 2.6.32 ; both giving me error, as when the machine is active and when it turned off.
I read the post, and Im do not clear, you need a disk separately to make a snapshot?
How toy make snapshot of vm ?
The problem occurs both when I try from the command line and when I try to do it from scheduled backups from the web interface .-
Thank.

Code:
vm1:~# vzdump --dumpdir /var/lib/vz/dump/  --snapshot  101
INFO: starting new backup job: vzdump --dumpdir /var/lib/vz/dump/ --snapshot 101
INFO: Starting Backup of VM 101 (qemu)
INFO: stopped
INFO: status = stopped
INFO: setting parameters failed - VM is locked (backup)
ERROR: Backup of VM 101 failed - command 'qm set 101 --lock backup' failed with exit code 255
INFO: Backup job finished with errors


Code:
 pveversion -v
pve-manager: 1.5-10 (pve-manager/1.5/4822)
running kernel: 2.6.32-2-pve
proxmox-ve-2.6.24: 1.5-23
pve-kernel-2.6.32-2-pve: 2.6.32-7
pve-kernel-2.6.24-11-pve: 2.6.24-23
qemu-server: 1.1-16
pve-firmware: 1.0-5
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.23-1pve11
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.4-1
Espacio en disco

Code:
 df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vm1lvm-root
                      138G  808M  130G   1% /
tmpfs                 3.9G     0  3.9G   0% /lib/init/rw
udev                   10M  728K  9.3M   8% /dev
tmpfs                 3.9G     0  3.9G   0% /dev/shm
/dev/sda1             942M   54M  841M   7% /boot
/dev/mapper/vm1lvm-home
                       46G  181M   44G   1% /home
/dev/mapper/vm1lvm-var
                      266G   15G  238G   6% /var


Code:
 cat /etc/qemu-server/101.conf
ostype: l26
memory: 1024
sockets: 1
name: debian
ide2: local:iso/debian-504-i386-netinst.iso,media=cdrom
vlan0: rtl8139=C6:DE:57:D1:EB:AB
bootdisk: scsi0
scsi0: drbdvg:vm-101-disk-1
onboot: 0
cores: 4
lock: backup


Sorry now I see the post
http://forum.proxmox.com/threads/3777-SOLVED-Problem-with-backup-qemu-kvm-VID
And change the line of the conf last line
Code:
 qm unlock 101
vm1:~# cat /etc/qemu-server/101.conf
ostype: l26
memory: 1024
sockets: 1
name: debian
ide2: local:iso/debian-504-i386-netinst.iso,media=cdrom
vlan0: rtl8139=C6:DE:57:D1:EB:AB
bootdisk: scsi0
scsi0: drbdvg:vm-101-disk-1
onboot: 0
cores: 4

Code:
rum 
vzdump --dumpdir /var/lib/vz/dump/  --snapshot  101


Code:
ls -l /var/lib/vz/dump 
ls -l /var/lib/vz/dump/

-rw-r--r-- 1 root root        306 2010-08-19 00:06 vzdump-qemu-101-2010_08_19-00_06_30.log
-rw-r--r-- 1 root root        306 2010-08-19 00:15 vzdump-qemu-101-2010_08_19-00_15_01.log
-rw-r--r-- 1 root root        306 2010-08-19 00:22 vzdump-qemu-101-2010_08_19-00_22_23.log
-rw-r--r-- 1 root root        306 2010-08-19 00:24 vzdump-qemu-101-2010_08_19-00_24_18.log
-rw-r--r-- 1 root root        713 2010-08-19 01:41 vzdump-qemu-101-2010_08_19-01_29_01.log
-rw-r--r-- 1 root root 1079686656 2010-08-19 01:41 vzdump-qemu-101-2010_08_19-01_29_01.tar

I ask now.
Has any utility or serves some protection in the conf line lock: backup?
Is there any way to create a new machine in the drbd device with backups.?
Someone might suggest the command
From already thank you very much.
 
Last edited by a moderator:

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 yours easily in our online shop.

Buy now!