mode failure - unable to detect lvm volume group on PVE 3.1

  • Thread starter Thread starter mentholiptuz
  • Start date Start date
M

mentholiptuz

Guest
Hello guy :)

I have a problems with Backup as Snapshot / LZO. it warn "mode failure - unable to detect lvm volume group"

I use PVE 3.1

Log

Code:
[COLOR=#000000][FONT=tahoma]INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backups --node proxmox[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Starting Backup of VM 100 (openvz)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: CTID 100 exist mounted running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: status = running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: mode failure - unable to detect lvm volume group[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: trying 'suspend' mode instead[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: backup mode: suspend[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: ionice priority: 7[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: starting first sync /images/private/100/ to /backups/dump/vzdump-openvz-100-2013_09_10-12_41_27.tmp[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files: 70719[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files transferred: 58021[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total file size: 4500281988 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total transferred file size: 4479408173 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Literal data: 4479408173 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Matched data: 0 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list size: 1683010[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list generation time: 0.001 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list transfer time: 0.000 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes sent: 4484348534[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes received: 1360066[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: sent 4484348534 bytes  received 1360066 bytes  87101137.86 bytes/sec[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: total size is 4500281988  speedup is 1.00[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: first sync finished (51 seconds)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: suspend vm[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Setting up checkpoint...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO:     suspend...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO:     get context...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Checkpointing completed successfully[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: starting final sync /images/private/100/ to /backups/dump/vzdump-openvz-100-2013_09_10-12_41_27.tmp[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files: 70719[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Number of files transferred: 0[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total file size: 4500281988 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total transferred file size: 0 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Literal data: 0 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Matched data: 0 bytes[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list size: 1683010[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list generation time: 0.001 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: File list transfer time: 0.000 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes sent: 1690007[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes received: 6996[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: sent 1690007 bytes  received 6996 bytes  199647.41 bytes/sec[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: total size is 4500281988  speedup is 2651.90[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: final sync finished (8 seconds)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: resume vm[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Resuming...[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: vm is online again after 8 seconds[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: creating archive '/backups/dump/vzdump-openvz-100-2013_09_10-12_41_27.tar.lzo'[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes written: 4543467520 (4.3GiB, 68MiB/s)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: archive file size: 1.89GB[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Finished Backup of VM 100 (00:02:09)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Backup job finished successfully[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK OK[/FONT][/COLOR]

My LVM look seem fine here

#df -vh

Code:
Filesystem                        Size  Used Avail Use% Mounted on
udev                               10M     0   10M   0% /dev
tmpfs                             794M  344K  794M   1% /run
/dev/mapper/pve-root               95G  6.1G   84G   7% /
tmpfs                             5.0M     0  5.0M   0% /run/lock
tmpfs                             1.6G   22M  1.6G   2% /run/shm
/dev/mapper/pve-data              800G  2.8G  797G   1% /var/lib/vz
/dev/sda1                         495M   56M  414M  12% /boot
/dev/mapper/vgbackups-lvmbackups  1.8T   13G  1.7T   1% /backups
/dev/fuse                          30M   16K   30M   1% /etc/pve
/dev/mapper/imagescache           1.8T  4.6G  1.7T   1% /images
/images/private/100               500G  4.4G  496G   1% /var/lib/vz/root/100
none                              1.0G  4.0K  1.0G   1% /var/lib/vz/root/100/dev
none                              1.0G   24K  1.0G   1% /var/lib/vz/root/100/dev/shm


#pvdisplay
Code:
--- Physical volume ---  PV Name               /dev/sdc1
  VG Name               vgbackups
  PV Size               1.82 TiB / not usable 4.09 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              476931
  Free PE               0
  Allocated PE          476931
  PV UUID               33lP8Y-sW5q-3KJe-nIJb-I92x-PIGp-HhuQ4X


  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               vgimages
  PV Size               1.82 TiB / not usable 4.09 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              476931
  Free PE               0
  Allocated PE          476931
  PV UUID               BfQnNm-3iIW-Z3wl-FnM0-d2Kb-mY1b-GkgdCI


  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               pve
  PV Size               931.01 GiB / not usable 0
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              238339
  Free PE               4095
  Allocated PE          234244
  PV UUID               LhffLX-ncb3-hzz0-oKyC-B9ZW-JzAc-khcwFi

#vgdisplay
Code:
  --- Volume group ---
  VG Name               vgbackups
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.82 TiB
  PE Size               4.00 MiB
  Total PE              476931
  Alloc PE / Size       476931 / 1.82 TiB
  Free  PE / Size       0 / 0
  VG UUID               ZIQF7D-YYfS-SGUv-U3Mz-qToQ-7VpW-1eReaB


  --- Volume group ---
  VG Name               vgimages
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.82 TiB
  PE Size               4.00 MiB
  Total PE              476931
  Alloc PE / Size       476931 / 1.82 TiB
  Free  PE / Size       0 / 0
  VG UUID               Ak1N5w-AP9U-oKCU-zrnm-oeYF-3dRM-u1eo5h


  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  20
  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               931.01 GiB
  PE Size               4.00 MiB
  Total PE              238339
  Alloc PE / Size       234244 / 915.02 GiB
  Free  PE / Size       4095 / 16.00 GiB
  VG UUID               6AP7TE-0m7g-7na3-bFu2-XPOQ-oOYz-kCoQrV

lvdisplay
Code:
  --- Logical volume ---
  LV Path                /dev/vgbackups/lvmbackups
  LV Name                lvmbackups
  VG Name                vgbackups
  LV UUID                aFgV7t-MeYw-ujO7-oO4H-AW9w-0z1Y-ldLUy2
  LV Write Access        read/write
  LV Creation host, time proxmox, 2013-08-23 17:26:37 +0700
  LV Status              available
  # open                 1
  LV Size                1.82 TiB
  Current LE             476931
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1


  --- Logical volume ---
  LV Path                /dev/vgimages/lvmimages
  LV Name                lvmimages
  VG Name                vgimages
  LV UUID                9Xr8vo-GDym-I4fL-cS3j-0vtL-mbl6-IlREiC
  LV Write Access        read/write
  LV Creation host, time proxmox, 2013-08-23 17:51:49 +0700
  LV Status              available
  # open                 1
  LV Size                1.82 TiB
  Current LE             476931
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2


  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                PQtqQO-7HcJ-LKUZ-lKmk-fcif-QMJH-LkLyJY
  LV Write Access        read/write
  LV Creation host, time proxmox, 2013-07-17 00:19:41 +0700
  LV Status              available
  # open                 1
  LV Size                7.00 GiB
  Current LE             1792
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3


  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                y1lQdi-MQzi-jveJ-tL2C-kPNO-eOUv-4BkAop
  LV Write Access        read/write
  LV Creation host, time proxmox, 2013-07-17 00:19:42 +0700
  LV Status              available
  # open                 1
  LV Size                96.00 GiB
  Current LE             24576
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0


  --- Logical volume ---
  LV Path                /dev/pve/data
  LV Name                data
  VG Name                pve
  LV UUID                krWdxv-aMaj-CNmU-C6tz-jMHk-5xpe-IaWEk2
  LV Write Access        read/write
  LV Creation host, time proxmox, 2013-07-17 00:19:42 +0700
  LV Status              available
  # open                 1
  LV Size                812.02 GiB
  Current LE             207876
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4




#cat /etc/pve/storage.cfg
Code:
dir: local    path /var/lib/vz
    content images,iso,vztmpl,rootdir
    maxfiles 99


dir: backups
    path /backups
    content iso,vztmpl,backup
    maxfiles 99


dir: image-ct
    path /images
    content images,rootdir

    maxfiles 0




#cat
/etc/pve/openvz/100.conf
Code:
ONBOOT="no"

PHYSPAGES="0:524288"
SWAPPAGES="0:1048576"
KMEMSIZE="975175680:1073741824"
DCACHESIZE="487587840:536870912"
LOCKEDPAGES="262144"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"


# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="524288000:576716800"
DISKINODES="100000000:110000000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"


# CPU fair scheduler parameter
CPUUNITS="1000"
CPUS="4"
HOSTNAME="fuelzhosting.com"
SEARCHDOMAIN="fuelzhosting.com"
NAMESERVER=""
IP_ADDRESS=""
VE_ROOT="/var/lib/vz/root/100"
VE_PRIVATE="/images/private/100"

OSTEMPLATE="centos-6-standard_6.3-1_amd64.tar.gz"

# lsblk
Code:
NAME                            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                               8:0    0 931.5G  0 disk
|-sda1                            8:1    0   511M  0 part /boot
`-sda2                            8:2    0   931G  0 part
  |-pve-root (dm-0)             253:0    0    96G  0 lvm  /
  |-pve-swap (dm-3)             253:3    0     7G  0 lvm  [SWAP]
  `-pve-data (dm-4)             253:4    0   812G  0 lvm  /var/lib/vz
sdb                               8:16   0   1.8T  0 disk
`-sdb1                            8:17   0   1.8T  0 part
  `-vgimages-lvmimages (dm-2)   253:2    0   1.8T  0 lvm
    `-imagescache (dm-5)        253:5    0   1.8T  0 dm   /images
sdc                               8:32   0   1.8T  0 disk
`-sdc1                            8:33   0   1.8T  0 part
  `-vgbackups-lvmbackups (dm-1) 253:1    0   1.8T  0 lvm  /backups
sdd                               8:48   0 111.8G  0 disk
`-sdd1                            8:49   0 111.8G  0 part
  `-imagescache (dm-5)          253:5    0   1.8T  0 dm   /images
sr0                              11:0    1  1024M  0 rom
[COLOR=#333333]


How to fix it?
Thank you.
[/COLOR]
 
Why do you use such setup?
VE_ROOT="/var/lib/vz/root/100"
VE_PRIVATE="/images/private/100"

Does it work when you use the default setup (VE_PRIVATE="/var/lib/vz/private/100")
 
Hi Dietmar,

I just install Proxmox VE 3.0 and then create CT (VZ100) on local directory and after that I attache SSD Drive for FlashCache name "/dev/sdd" and create mount point as "/images"

Actually It working normally on Proxmox. So it interference ?
 
I already change FlashCache mount point to other name and remove /images and reboot
After reboot CT can't start it notice :

Code:
stat(/images/private/100): No such file or directory
Then I just restore the backup to CT and start again it run normally.

# df -vh
Code:
Filesystem                        Size  Used Avail Use% Mounted on
udev                               10M     0   10M   0% /dev
tmpfs                             794M  344K  794M   1% /run
/dev/mapper/pve-root               95G  6.1G   84G   7% /
tmpfs                             5.0M     0  5.0M   0% /run/lock
tmpfs                             1.6G   22M  1.6G   2% /run/shm
/dev/mapper/pve-data              800G  7.2G  793G   1% /var/lib/vz
/dev/sda1                         495M   56M  414M  12% /boot
/dev/mapper/vgbackups-lvmbackups  1.8T   15G  1.7T   1% /backups
/dev/fuse                          30M   16K   30M   1% /etc/pve
/dev/mapper/imagescache           1.8T  4.6G  1.7T   1% /imgcachedir
/var/lib/vz/private/100           500G  4.5G  496G   1% /var/lib/vz/root/100
none                              1.0G  4.0K  1.0G   1% /var/lib/vz/root/100/dev
none                              1.0G   24K  1.0G   1% /var/lib/vz/root/100/dev/shm


and Backup with Snapshot again it work without any problems

Code:
[COLOR=#000000][FONT=tahoma]INFO: starting new backup job: vzdump 100 --remove 0 --mode snapshot --compress lzo --storage backups --node proxmox[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Starting Backup of VM 100 (openvz)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: CTID 100 exist mounted running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: status = running[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: backup mode: snapshot[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: ionice priority: 7[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap-proxmox-0')[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO:   Logical volume "vzsnap-proxmox-0" created[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: creating archive '/backups/dump/vzdump-openvz-100-2013_09_10-15_13_11.tar.lzo'[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Total bytes written: 4668467200 (4.4GiB, 38MiB/s)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: archive file size: 2.00GB[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Finished Backup of VM 100 (00:02:20)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]INFO: Backup job finished successfully[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK OK
[/FONT][/COLOR]


and have some change on


#cat /etc/pve/openvz/100.conf

Code:
ONBOOT="no"


PHYSPAGES="0:524288"
SWAPPAGES="0:1048576"
KMEMSIZE="975175680:1073741824"
DCACHESIZE="487587840:536870912"
LOCKEDPAGES="262144"
PRIVVMPAGES="unlimited"
SHMPAGES="unlimited"
NUMPROC="unlimited"
VMGUARPAGES="0:unlimited"
OOMGUARPAGES="0:unlimited"
NUMTCPSOCK="unlimited"
NUMFLOCK="unlimited"
NUMPTY="unlimited"
NUMSIGINFO="unlimited"
TCPSNDBUF="unlimited"
TCPRCVBUF="unlimited"
OTHERSOCKBUF="unlimited"
DGRAMRCVBUF="unlimited"
NUMOTHERSOCK="unlimited"
NUMFILE="unlimited"
NUMIPTENT="unlimited"


# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="524288000:576716800"
DISKINODES="100000000:110000000"
QUOTATIME="0"
QUOTAUGIDLIMIT="0"


# CPU fair scheduler parameter
CPUUNITS="1000"
CPUS="4"
HOSTNAME="fuelzhosting.com"
SEARCHDOMAIN="fuelzhosting.com"
NAMESERVER=""
IP_ADDRESS=""
VE_ROOT="/var/lib/vz/root/100"
VE_PRIVATE="/var/lib/vz/private/100"
OSTEMPLATE="centos-6-standard_6.3-1_amd64.tar.gz"

It work !

But I have a little question when #df -vh

It normal that show ??? (none none mean???)

/var/lib/vz/private/100 500G 4.5G 496G 1% /var/lib/vz/root/100
none 1.0G 4.0K 1.0G 1% /var/lib/vz/root/100/dev
none 1.0G 24K 1.0G 1% /var/lib/vz/root/100/dev/shm

thank you