After reboot unable to detect lvm volume group

___jul

New Member
May 26, 2012
15
0
1
Hello,


I'm working on an old version of proxmox
# pveversion -v
pve-manager: 1.9-26 (pve-manager/1.9/6567)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 1.9-50
pve-kernel-2.6.32-6-pve: 2.6.32-50
qemu-server: 1.1-32
pve-firmware: 1.0-14
libpve-storage-perl: 1.0-19
vncterm: 0.9-2
vzctl: 3.0.29-3pve1
vzdump: 1.2-16
vzprocps: 2.0.11-2
vzquota: 3.0.11-1dso1
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.0-6

But until a recient reboot, server get frozen (no explication) I can't do snapshot anymore.
Snapshot was working fine before.
To get snapshot, I added an usb disk to server, parted the disk in 2,

  • /dev/sdb1 to pve lvm group.
  • /dev/sdb2 mounted as /mnt/backup to be the dumpdir.
parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: WD DM001 External (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


Number Start End Size File system Name Flags
1 17,4kB 400GB 400GB Backup
2 400GB 800GB 400GB ext3 dumpdir



I was monitoring my vzdump so I get trace of the past like :
Fri Oct 12 03:17:01 CEST 2012
root 320700 0.0 0.0 54044 14420 ? Ss 03:00 0:00 /usr/bin/perl -w /usr/sbin/vzdump --quiet --snapshot --compress --size 5000 --dumpdir /mnt/backup/ --maxfiles 1 205 root 320928 0.0 0.0 8844 1120 ? S 03:00 0:00 s
h -c (cd /mnt/vzsnap0/private/205;find . '(' -regex '^\.$' ')' -o '(' -type 's' -prune ')' -o -print0|sed 's/\\/\\\\/g'|tar czpf - --totals --sparse --numeric-owner --no-recursion --ignore-failed-read --one-file-
system --null -T -) >/mnt/backup/vzdump-openvz-205-2012_10_12-03_00_01.dat root 320929 0.0 0.0 8844 620 ? S 03:00 0:00 sh -c (cd /mnt/vzsnap0/private/205;find . '(' -regex '^\.$' ')' -o '(' -type 's' -prune ')'
-o -print0|sed 's/\\/\\\\/g'|tar czpf - --totals --sparse --numeric-owner --no-recursion --ignore-failed-read --one-file-system --null -T -) >/mnt/backup/vzdump-openvz-205-2012_10_12-03_00_01.dat root 347270 0
.0 0.0 13848 1252 ? Ss 03:17 0:00 /bin/sh /home/adminit/diag-vzdump.sh root 347274 0.0 0.0 13852 500 ? S 03:17 0:00 /bin/sh /home/adminit/diag-vzdump.sh root 347276 0.0 0.0 8892 808 ? S 03:17 0:00 grep vzdump
#############################################
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
data pve owi-ao 910.46G
vzsnap-proxmox-prod-xxx-0 pve swi-ao 4.88G data 87.74
#############################################
VG #PV #LV #SN Attr VSize VFree vzdump --quiet --snapshot --compress --dumpdir /mnt/backup/ --maxfiles 1 103
pve 2 2 1 wz--n- 1.25T 367.64G
#############################################
--- Logical volume ---
LV Name /dev/pve/data
VG Name pve
LV UUID R82noF-Wg5z-rUjm-B9VR-Meio-1IOI-g4yhsO
LV Write Access read/write
LV snapshot status source of
/dev/pve/vzsnap-proxmox-prod-xxx-0 [active]
LV Status available
# open 1
LV Size 910.46 GB
Current LE 233078
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/pve/vzsnap-proxmox-prod-xxx-0
VG Name pve
LV UUID 2Uwyg0-wzyT-opTe-Gto1-KjJf-T5Gk-YAlygp
LV Write Access read/write
LV snapshot status active destination for /dev/pve/data
LV Status available
# open 1
LV Size 910.46 GB
Current LE 233078
COW-table size 4.88 GB
COW-table LE 1250
Allocated to snapshot 87.74%
Snapshot chunk size 4.00 KB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1


But now using
Code:
"vzdump --quiet --snapshot --compress --dumpdir /mnt/backup/ --maxfiles 1 103"
I get :
oct 12 04:58:28 INFO: Starting Backup of VM 103 (openvz)
oct 12 04:58:28 INFO: CTID 103 exist mounted running
oct 12 04:58:28 INFO: status = CTID 103 exist mounted running
oct 12 04:58:28 INFO: mode failure - unable to detect lvm volume group
oct 12 04:58:28 INFO: trying 'suspend' mode instead
oct 12 04:58:28 INFO: backup mode: suspend

However/dev/sdb2 is mounted
mount -v
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/mapper/pve-data on /var/lib/vz type ext3 (rw)
beancounter on /proc/vz/beancounter type cgroup (rw,name=beancounter)
container on /proc/vz/container type cgroup (rw,name=container)
fairsched on /proc/vz/fairsched type cgroup (rw,name=fairsched)
/dev/sdb2 on /mnt/backup type ext3 (rw)



/dev/sdb1 is added to lvm
pvdisplay
--- Physical volume ---
PV Name /dev/sda5
VG Name pve
PV Size 910,46 GB / not usable 4,00 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 233078
Free PE 0
Allocated PE 233078
PV UUID xXY3e4-Lfsi-dmEx-s88N-UZbo-yTHp-SZArxg

--- Physical volume ---
PV Name /dev/sdb1
VG Name pve
PV Size 372,53 GB / not usable 1,71 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 95367
Free PE 95367
Allocated PE 0
PV UUID YsKzJ0-c2fU-N5Dr-xUfl-e4VE-w7W8-0OTmJE


pvscan
PV /dev/sda5 VG pve lvm2 [910,46 GB / 0 free]
PV /dev/sdb1 VG pve lvm2 [372,53 GB / 372,53 GB free]
Total: 2 [1,25 TB] / in use: 2 [1,25 TB] / in no VG: 0 [0 ]

But the snapshot is yet not possible.
What's wrong ?

Thank you for your help,

Jul
 
Last edited:

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!