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...
 

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!