Thanks for the correction. Uploaded now. // Ola
On Wed, Mar 28, 2012 at 01:21:49PM +0200, Martin Pircher wrote: > Package: vzdump > Version: 1.2.6-1 > Severity: normal > Tags: patch > > > vzdump does not work with lvm snapshots; this is a known bug documented in > openvz wiki at > http://wiki.openvz.org/Backup_of_a_running_container_with_vzdump#Set-up_LVM > > [...] > Fixing VZDump.pm > When trying to backup a virtual machine, creation of the snapshot can fail. > This is because of a bug in VZDump.pm. > On line 622, you will find the following: > if ($line =~ m|^\s*(\S+):(\S+):(\d+(\.\d+))M$|) { > Replace this with: > if ($line =~ m|^\s*(\S+):(\S+):(\d+([\.,]\d+))[mM]$|) { > [...] > > --- /usr/share/perl5/PVE/VZDump.pm 2010-07-22 21:37:05.000000000 +0200 > +++ VZDump.pm 2012-03-28 13:11:05.852147601 +0200 > @@ -619,7 +619,7 @@ > 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$|) { > + if ($line =~ m|^\s*(\S+):(\S+):(\d+([\.,]\d+))[mM]$|) { > my $vg = $1; > my $lv = $2; > $devmapper->{"/dev/$vg/$lv"} = [$vg, $lv]; > > -- System Information: > Debian Release: 6.0.4 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 2.6.32-5-openvz-amd64 (SMP w/24 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 liblockfile-simple-per 0.207-1 Simple advisory file locking > ii perl 5.10.1-17squeeze3 Larry Wall's Practical > Extraction > ii postfix [mail-transpor 2.7.1-1+squeeze1 High-performance mail transport > ag > ii rsync 3.0.7-2 fast remote file copy program > (lik > ii vzctl 3.0.24-12 server virtualization solution - > c > > vzdump recommends no packages. > > Versions of packages vzdump suggests: > pn xdelta <none> (no description available) > > -- no debconf information > > > -- --------------------- Ola Lundqvist --------------------------- / o...@debian.org Annebergsslingan 37 \ | o...@inguza.com 654 65 KARLSTAD | | http://inguza.com/ +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org