Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146180

Summary: after upgrade to baselayout-1.12.4-r7 lvm2-2.02.06 udev-087, lvm2 can't export logical volumes
Product: Gentoo Linux Reporter: Aben Siatris <aben>
Component: [OLD] baselayoutAssignee: Eric Edgar (RETIRED) <rocket>
Status: RESOLVED FIXED    
Severity: blocker CC: base-system
Priority: Highest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: system lvm2 log
vgscan.log
vgdisplay.log
lvscan.log
pvscan.log

Description Aben Siatris 2006-09-03 13:24:22 UTC
system can't boot and mount logical volumes of volume group after upgrade.
I have /usr and /var partition as logical volumes, so my options are very limited.

vgdisplay don't show me any logical volume
vgscan found volume group vg0
in vg0 metadata is all configurations about logical volumes saved correctly. I have backup of metadata too
vgscan read correctly metadata from physical volumes
#label/label.c:158  /dev/sda12: lvm2 label detected
#cache/lvmcache.c:665   lvmcache: /dev/sda12: VG vg0 no longer exported
#format_text/format-text.c:954    /dev/sda12: Fiybd netadat at 6656 suze 6372 for vg0 (blah blah blah)
#cache/lvmcache.c:665   lvmcache: /dev/sda12: VG vg0 now exported
...
#metadata/pv_manip.c:241   /dev/sda8 0:    0  680: downloads(0:0)
...
#metadata/pv_manip.c:241   /dev/sda6 2: 2201  183: NULL(0:0)
...

$dmsetup ls
No devices found

$vgdisplay
VG Name vg0
System ID
Format lvm2
Metadata Areas 8
Metadata Swquence No 270
VG Access read/write
VG Status exported/resizable
MAX LV 255
Cur LV 6
Open LV 0
Max PV 255
Cur PV 8
Act PV 8
....

$lvdisplay
...
Volume group "vg0" is exported
...
(nothing about logical volumes)
Comment 1 Aben Siatris 2006-09-03 23:00:46 UTC
Created attachment 95912 [details]
system lvm2 log
Comment 2 Aben Siatris 2006-09-03 23:01:07 UTC
Created attachment 95913 [details]
vgscan.log
Comment 3 Aben Siatris 2006-09-03 23:01:25 UTC
Created attachment 95915 [details]
vgdisplay.log
Comment 4 Aben Siatris 2006-09-03 23:01:46 UTC
Created attachment 95916 [details]
lvscan.log
Comment 5 Aben Siatris 2006-09-03 23:02:07 UTC
Created attachment 95917 [details]
pvscan.log
Comment 6 Aben Siatris 2006-09-04 05:27:23 UTC
kernel sources is ck-sources-2.6.17_p1-r2
Comment 7 Aben Siatris 2006-09-04 09:19:22 UTC
problem solved by:
$vgimport -a