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

Bug 88323

Summary: lvm2 needs static linking if /usr is on lvm ( lvm doc needs update )
Product: [OLD] Docs-user Reporter: david martin <musicae>
Component: LVM HOWTOAssignee: Docs Team <docs-team>
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description david martin 2005-04-08 01:29:33 UTC
on boot while trying to mount my lvm i got a message saying
it cant find library libgpm.so ( of course it is in /usr/lib which is on a lv )
so it cannot mount all the fs on my lv ( /usr /tmp /var and /home )
/ and /boot are standard partition

SOLUTION : static link the library in sys-fs/lvm2
echo "sys-fs/lvm2 static" >> /etc/portage/package.use
emerge lvm2

static linking could also be mandatory in the ebuild


Reproducible: Always
Steps to Reproduce:
1.standard install with /usr on lvm 
2.emerge lvm2
3.reboot 

Actual Results:  
failed to mount all fs on lv
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-04-08 02:32:22 UTC
There's already a warning in the lvm2 guide:

"""
Warning: The LVM2 available on the 2005.0 installation CDs is erroneously linked dynamically against a library (libgpm) which resides in /usr. This means you cannot have your /usr in an LVM environment as well. Either install the latest version or version 2.0.33 (not -r1) which are built statically.
"""