Hi,<br>
<br>
I have a problem with importing an exported Volume Group. Hopefully you can help me with this.<br>
<br>
Here's the error message:<br>
<br>
matrix:/tmp # vgimport -v -f vgData /dev/hdb1<br>
vgimport -- locking logical volume manager<br>
vgimport -- checking volume group name<br>
vgimport -- checking volume group "vgData" existence<br>
vgimport -- trying to read physical volume<br>
vgimport -- checking for duplicate physical volumes<br>
vgimport -- checking physical volume name "/dev/hdb1"<br>
vgimport -- reading data of physical volume "/dev/hdb1" from disk<br>
vgimport -- checking for exported physical volume "/dev/hdb1"<br>
vgimport -- checking consistency of physical volume "/dev/hdb1"<br>
vgimport -- reallocating memory<br>
vgimport -- reading exported volume group data  of "vgData" from disk(s)<br>
vgimport -- ERROR "lv_read_all_lv(): number of LV" reading data of volume group "vgData"<br>
<br>
<br>
Background Information:<br>
<br>
The power supply of my PC broke. After replacing it, the system would not boot, so I tried different<br>
things to recover. One of these things was booting Knoppix. This worked only after I removed an<br>
apparently broken USB card. I was stupid enough to try and mount the VG within Knoppix. It did<br>
not work, but I issued the vgexport command for no real reason *sigh*<br>
After that I bootet my normal system (see below) and was unable to mount or import the VG.<br>
<br>
<br>
Some more info on the system:<br>
<br>
matrix:/tmp # uname -a<br>
Linux matrix 2.4.21-273-athlon #1 Mon Jan 17 13:03:46 UTC 2005 i686 athlon i386 GNU/Linux<br>
<br>
matrix:/tmp # cat /etc/SuSE-release <br>
SuSE Linux 9.0 (i586)<br>
VERSION = 9.0<br>
<br>
matrix:/tmp # vgdisplay --version<br>
vgdisplay: Logical Volume Manager 1.0.7(mp-v6)<br>
Heinz Mauelshagen, Sistina Software  28/03/2003 (IOP 10)<br>
<br clear="all">matrix:/tmp # vgscan -v<br>
vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"<br>
vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d"<br>
vgscan -- reading all physical volumes (this may take a while...)<br>
vgscan -- scanning for all active volume group(s) first<br>
vgscan -- reading data of volume group "vgDataPV_EXP" from physical volume(s)<br>
vgscan -- ERROR "lv_read_all_lv(): number of LV" can't get data of volume group "vgDataPV_EXP" from physical volume(s)<br>
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created<br>
vgscan -- WARNING: This program does not do a VGDA backup of your volume group<br>
<br>
matrix:/tmp # pvscan -v<br>
pvscan -- reading all physical volumes (this may take a while...)<br>
pvscan -- walking through all physical volumes found<br>
pvscan -- inactive PV "/dev/hdb1"  is in EXPORTED VG "vgData" [186.30 GB / 42.81 GB free]<br>
pvscan -- total: 1 [186.31 GB] / in use: 1 [186.31 GB] / in no VG: 0 [0]<br>
<br>
matrix:/tmp # pvdata -PP /dev/hdb1<br>
--- Physical volume ---<br>
PV Name               /dev/hdb1<br>
VG Name               vgDataPV_EXP<br>
PV
Size              
186.31 GB [390716864 secs] / NOT usable 4.31 MB [LVM: 310 KB]<br>
PV#                   1<br>
PV Status             NOT available<br>
Allocatable           yes<br>
Cur LV                6<br>
PE Size (KByte)       4096<br>
Total PE              47693<br>
Free PE               10960<br>
Allocated PE          36733<br>
PV
UUID              
6COP7v-pdrO-5NDv-K7ib-12DB<div id="mb_0">-e1IF-oXL4Zf<br>
pv_dev                   0:0<br>
system_id                PV_EXPKnoppix1155900061<br>
pv_on_disk.base          0<br>
pv_on_disk.size          1024<br>
vg_on_disk.base          4096<br>
vg_on_disk.size          4096<br>
pv_uuidlist_on_disk.base 8192<br>
pv_uuidlist_on_disk.size 32768<br>
lv_on_disk.base          40960<br>
lv_on_disk.size          83968<br>
pe_on_disk.base          126976<br>
pe_on_disk.size          4395008<br>
<br>
matrix:~ # ls -l /etc/lvmconf/<br>
total 6428<br>
drwxr-xr-x    2 root    
root          360 Nov
27  2005 .<br>
drwxr-xr-x   77 root     root         8000 Oct 23 00:28 ..<br>
-rw-r-----    1 root    
root       926764 Nov 27  2005
vgData.conf<br>
-rw-r-----    1 root    
root       906284 Oct 10  2005
vgData.conf.1.old<br>
-rw-r-----    1 root    
root       885804 Feb  4  2005
vgData.conf.2.old<br>
-rw-r-----    1 root    
root       803884 Sep 29  2004
vgData.conf.3.old<br>
-rw-r-----    1 root    
root       783404 Sep 25  2004
vgData.conf.4.old<br>
-rw-r-----    1 root    
root       762924 Sep 18  2004
vgData.conf.5.old<br>
-rw-r-----    1 root    
root       760920 Sep 10  2004
vgData.conf.6.old<br>
-rw-r-----    1 root    
root       719960 Aug 18  2004
vgData.conf.7.old<br>
<br>
matrix:~ # vgcfgrestore -v -n vgData -ll <br>
vgcfgrestore -- INFO: using backup file "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- locking logical volume manager<br>
vgcfgrestore -- restoring volume group "vgData" from "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- checking existence of "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- reading volume group data for "vgData" from "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- reading physical volume data for "vgData" from "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- reading logical volume data for "vgData" from "/etc/lvmconf/vgData.conf"<br>
vgcfgrestore -- checking volume group consistency of "vgData"<br>
vgcfgrestore -- checking volume group consistency of "vgData"<br>
--- Volume group ---<br>
VG Name               vgData<br>
VG Access             read/write<br>
VG Status             NOT available/resizable<br>
VG #                  0<br>
MAX LV                256<br>
Cur LV                6<br>
Open LV               0<br>
MAX LV Size           255.99 GB<br>
Max PV                256<br>
Cur PV                1<br>
Act PV                1<br>
VG Size               186.30 GB<br>
PE Size               4 MB<br>
Total PE              47693<br>
Alloc PE / Size       36733 / 143.49 GB<br>
Free  PE / Size       10960 / 42.81 GB<br>
VG
UUID              
sVZZnE-ctpQ-AlZ6-HTgo-4arL-M6Yj-BKKw62<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/lvOldHome<br>
VG Name                vgData<br>
LV Write Access        read/write<br>
LV Status              NOT available<br>
LV #                   1<br>
# open                 0<br>
LV Size                5 GB<br>
Current LE             1280<br>
Allocated LE           1280<br>
Allocation             next free<br>
Read ahead sectors     1024<br>
Block device           58:0<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/lvHome<br>
VG Name                vgData<br>
LV Write Access        read/write<br>
vgcfgrestore -- "/etc/lvmtab.d/vgData" doesn't exist<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/lvMP3<br>
VG Name                vgData<br>
LV Write Access        read/write<br>
LV Status              NOT available<br>
LV #                   3<br>
# open                 0<br>
LV Size                50 GB<br>
Current LE             12800<br>
Allocated LE           12800<br>
Allocation             next free<br>
Read ahead sectors     1024<br>
Block device           58:1<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/lvVideo<br>
VG Name                vgData<br>
LV Write Access        read/write<br>
LV Status              NOT available<br>
LV #                   4<br>
# open                 0<br>
LV Size                45 GB<br>
Current LE             11520<br>
Allocated LE           11520<br>
Allocation             next free<br>
Read ahead sectors     1024<br>
Block device           58:3<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/lvMatrixHome<br>
VG Name                vgData<br>
LV Write Access        read/write<br>
LV Status              NOT available<br>
LV #                   5<br>
# open                 0<br>
LV Size                29 GB<br>
Current LE             7424<br>
Allocated LE           7424<br>
Allocation             next free<br>
Read ahead sectors     1024<br>
Block device           58:4<br>
<br>
--- Logical volume ---<br>
LV Name                /dev/vgData/SnapHome<br>
VG Name                vgData<br>
LV Write Access        read only<br>
vgcfgrestore -- "/etc/lvmtab.d/vgData" doesn't exist<br>
<br>
<br>
--- Physical volume ---<br>
PV Name               /dev/hdb1<br>
VG Name               vgData<br>
PV
Size              
186.31 GB [390716864 secs] / NOT usable 4.31 MB [LVM: 314 KB]<br>
PV#                   2<br>
PV Status             available<br>
Allocatable           yes<br>
Cur LV                6<br>
PE Size (KByte)       4096<br>
Total PE              47693<br>
Free PE               10960<br>
Allocated PE          36733<br>
PV
UUID              
6COP7v-pdrO-5NDv-K7ib-12DB-e1IF-oXL4Zf<br>
<br>
matrix:~ # vgdisplay -Dv<br>
vgdisplay -- WARNING: volume group "vgDataPV_EXP" is exported<br>
vgdisplay -- ERROR "lv_read_all_lv(): number of LV" getting data of "vgDataPV_EXP" from disk(s)<br>
<br>
<br>
I attached the output of vgscan -d as gzipped file.<br>
<br>
Please let me know if you need any more information. <br>
Thank you very much in advance for any help!<br>
</div><br clear="all"><br>cu,<br><br>  Sebastian<br>-- <br>Sebastian Wormser<br>If you gotta be dumb, you gotta be tough.