vzdump: unable to detect lvm volume group, using 'suspend' mode

liane

Renowned Member
Nov 25, 2008
40
1
73
Hi,

I had this message on one box, despite the fact that LVM2 is correctly installed and running.

Turn out this box is running a french locale, and numbers are comma separated, not point separated, so lvs output looks like:
Code:
# lvs
  LV     VG   Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  backup lvm1 -wi-ao 100,00G                                      
  swap   lvm1 -wi-ao   6,00G                                      
  vz     lvm1 -wi-ao 200,00G
making the regex in the get_lvm_mapping function (line 510 in /usr/sbin/vzdump) miss the line.

changing the regex to the following line fixed the problem for me:
Code:
if ($line =~ m|^\s*(\S+):(\S+):(\d+([\.,]\d+))M$|) {
of course, setting the locale back to english should also fix the problem...