[linux-lvm] lvm1.0.8: vgcfgrestore does not seem to work

Stefan Lucke stefan at lucke.in-berlin.de
Thu Jun 22 20:00:26 UTC 2006


Hi, I know I'm running an old system, but yesterday I got some troubles.
It started with a simple read I/O error on an lvm disk. There are 2 x 300GB
disks in that VG. Next step was that first 8 sectors were zeroed on the first
disk in that VG. pvscan showed only the 2nd of this VG and disks of other
VGs. Doing a: 
./vgcfgrestore -ll -n vg01 -v -f /etc/lvmconf/vg01.conf  /dev/sde
shows expected values for this VG:
vgcfgrestore -- locking logical volume manager
vgcfgrestore -- restoring volume group "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- checking existence of "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading volume group data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading physical volume data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- reading logical volume data for "vg01" from "/etc/lvmconf/vg01.conf"
vgcfgrestore -- checking volume group consistency of "vg01"
vgcfgrestore -- checking volume group consistency of "vg01"
--- Volume group ---
VG Name               vg01
VG Access             read/write
VG Status             NOT available/resizable
VG #                  1
MAX LV                255
Cur LV                1
Open LV               0
MAX LV Size           1.00 TB
Max PV                255
Cur PV                2
Act PV                2
VG Size               558.78 GB
PE Size               32.00 MB
Total PE              17881
Alloc PE / Size       16356 / 511.12 GB
Free  PE / Size       1525 / 47.66 GB
VG UUID               QOShhy-bTvW-sBL6-z9L8-aEgS-q9rt-Kd8lMw

--- Logical volume ---
LV Name                /dev/vg01/lv02
VG Name                vg01
LV Write Access        read/write
LV Status              NOT available
LV #                   1
# open                 0
LV Size                511.12 GB
Current LE             16356
Allocated LE           16356
Allocation             next free
Read ahead sectors     120
Block device           58:1


--- Physical volume ---
PV Name               /dev/sde
VG Name               vg01
PV Size               279.40 GB / NOT usable 55.67 MB [LVM: 158.00 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       32768
Total PE              8939
Free PE               0
Allocated PE          8939
PV UUID               IheqIs-8lN7-GoSh-YTvX-LJdk-gtib-xSH6uY

--- Physical volume ---
PV Name               /dev/sdb
VG Name               vg01
PV Size               279.48 GB / NOT usable 44.82 MB [LVM: 158.00 KB]
PV#                   2
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       32768
Total PE              8942
Free PE               1525
Allocated PE          7417
PV UUID               ptD8W7-aPU9-G7kU-TLtw-8g71-orH0-KwzYdm



vgcfgrestore -- unlocking logical volume manager

but a subsequent vgscan only finds my other VG

Hopefully I havn't lost the entire video data :-( .
Really need some advice.

-- 
Stefan Lucke




More information about the linux-lvm mailing list