Problems with snapshot

Jun 29, 2011
2
0
1
Hi,

I am having a problem with the vzdump backup. Here is the status I am getting when it is completed:


101: Jun 30 17:30:02 INFO: Starting Backup of VM 101 (qemu) 101: Jun 30 17:30:02 INFO: running 101: Jun 30 17:30:02 INFO: status = running 101: Jun 30 17:30:02 INFO: mode failure - unable to detect lvm volume group 101: Jun 30 17:30:02 INFO: trying 'suspend' mode instead 101: Jun 30 17:30:02 INFO: backup mode: suspend 101: Jun 30 17:30:02 INFO: ionice priority: 7 101: Jun 30 17:30:02 INFO: suspend vm 101: Jun 30 17:30:02 INFO: creating archive '/mnt/pve/backups/vzdump-qemu-101-2011_06_30-17_30_01.tgz' 101: Jun 30 17:30:02 INFO: adding '/mnt/pve/backups/vzdump-qemu-101-2011_06_30-17_30_01.tmp/qemu-server.conf' to archive ('qemu-server.conf') 101: Jun 30 17:30:02 INFO: adding '/dev/disk/by-id/scsi-14f504e46494c455252635a6f6f772d784e41442d6b475175' to archive ('vm-disk-ide0.raw') 101: Jul 01 05:56:01 INFO: Total bytes written: 203279869952 (4.33 MiB/s) 101: Jul 01 05:56:41 INFO: archive file size: 179.01GB 101: Jul 01 05:56:41 INFO: delete old backup '/mnt/pve/backups/vzdump-qemu-101-2011_06_28-17_30_01.tgz' 101: Jul 01 05:56:42 INFO: resume vm 101: Jul 01 05:56:42 INFO: vm is online again after 44800 seconds 101: Jul 01 05:56:42 INFO: Finished Backup of VM 101 (12:26:41)


Looks like it is breaking at 101: Jun 30 17:30:02 INFO: mode failure - unable to detect lvm volume group

I read the forums and changed the code according to this:

--- /usr/share/perl5/PVE/VZDump.pm.orig 2010-04-06 15:55:18.000000000 +0200
+++ /usr/share/perl5/PVE/VZDump.pm 2010-04-06 16:18:47.000000000 +0200
@@ -616,7 +616,7 @@

my $devmapper;

- my $cmd = "lvs --units m --separator ':' --noheadings -o vg_name,lv_name,lv_size";
+ my $cmd = "LC_ALL=C lvs --units m --separator ':' --noheadings -o vg_name,lv_name,lv_size";
if (my $fd = IO::File->new ("$cmd 2>/dev/null|")) {
while (my $line = <$fd>) {
if ($line =~ m|^\s*(\S+):(\S+):(\d+(\.\d+))M$|) {

But I am still getting the error. Would someone be willing to help me fix this?

Thanks,

Justin
 
I am having a problem with the vzdump backup.Pleaseeeeeeeeeeeeeeeeeeeeeeeeee help me.
Thanks.
 
Thanks Udo,

Here is the output from those.

pveversion -v

"pve-manager: 1.8-18 (pve-manager/1.8/6070)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.8-33
pve-kernel-2.6.32-4-pve: 2.6.32-33
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.27-1pve1
vzdump: 1.2-13
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.1-1
ksm-control-daemon: 1.0-6"

cat /etc/qemu-server/101.conf

"name: TestMachine
ide2: none,media=cdrom
vlan0: rtl8139=E6:50:17:D7:9C:4B
bootdisk: ide0
ostype: other
ide0: SAN:0.0.0.scsi-14f504e46494c455252635a6f6f772d784e41442d6b475175
memory: 512
sockets: 1
boot: c
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1
onboot: 1
cores: 1"


cat /etc/pve/storage.*

"dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir

iscsi: SAN
portal 192.168.1.160
target iqn.2006-01.com.openfiler:tsn.acd84efc84f8
content none

nfs: backups
path /mnt/pve/backups
server 192.168.1.160
export /mnt/node1volumegroup/backup/backups
content backup"

vgdisplay

"/dev/block/104:16: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:32: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:48: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:64: read failed after 0 of 4096 at 0: Input/output error
--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 33.38 GB
PE Size 4.00 MB
Total PE 8546
Alloc PE / Size 7523 / 29.39 GB
Free PE / Size 1023 / 4.00 GB
VG UUID JuFkrw-zdGc-0Kha-Ay7H-nUuk-ll9r-XxJ6T0"

lvdisplay

"/dev/block/104:16: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:32: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:48: read failed after 0 of 2048 at 0: Input/output error
/dev/block/104:64: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/pve/swap
VG Name pve
LV UUID nHV6Y0-KRbq-zXc0-zbbA-ON03-DdNY-t82T47
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Name /dev/pve/root
VG Name pve
LV UUID Be2p2f-U1MB-EdNK-UhdS-jgWX-fNas-PUZn2n
LV Write Access read/write
LV Status available
# open 1
LV Size 8.25 GB
Current LE 2112
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

--- Logical volume ---
LV Name /dev/pve/data
VG Name pve
LV UUID iFJvB5-wRej-9KW3-lSnt-6wAm-Mqx8-ten9hZ
LV Write Access read/write
LV Status available
# open 1
LV Size 17.14 GB
Current LE 4387
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2"