Package: vzdump Version: 1.2.4-2 Severity: normal Tags: upstream patch Hi,
the LVM2 detection fails because of the regex of 'get_lvm_mapping' in /usr/share/perl5/PVE/VZDump.pm does not match. A simple fix regarding the parsed output of 'lvs' is attached and renders the LVM2 snapshot functionality usable again! :) -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-openvz-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages vzdump depends on: ii cstream 2.7.6-1 general-purpose stream-handling to ii exim4-daemon-light [mail-tran 4.72-1 lightweight Exim MTA (v4) daemon ii liblockfile-simple-perl 0.207-1 Simple advisory file locking ii perl 5.10.1-13 Larry Wall's Practical Extraction ii rsync 3.0.7-2 fast remote file copy program (lik ii vzctl 3.0.23-15 server virtualization solution - c vzdump recommends no packages. Versions of packages vzdump suggests: pn xdelta <none> (no description available) -- no debconf information
--- /usr/share/perl5/PVE/VZDump-old.pm 2010-06-28 11:15:10.000000000 +0000 +++ /usr/share/perl5/PVE/VZDump.pm 2010-06-28 11:15:35.000000000 +0000 @@ -616,7 +616,7 @@ my $devmapper; - my $cmd = "lvs --units m --separator ':' --noheadings -o vg_name,lv_name,lv_size"; + my $cmd = "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$|) {