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

Bug 1552

Summary: bug in startup scripts concerning LVM
Product: Gentoo Linux Reporter: Thilo Bangert (RETIRED) (RETIRED) <bangert>
Component: [OLD] Core systemAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-04-05 15:41:14 UTC
Hi,

on my lvm setup i noticed that the lvm gets activated _after_ the checkfs skript
is run

therefor i get many error messages when the startup script wants to check my lvm
"partitions"

solution:
the lvm startup in localmount should be place earlier - before the filesystem check

gentoo ROCKS
thanks
Thilo
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-06 11:27:18 UTC
Anything special needed for LVM startup ?  Like should / be mounted RW, or
is RO ok ?
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-04-06 12:07:30 UTC
no, it should be fine

i'll be a little more specific (just to make sure)..
this is in /etc/init.d/localmount

        # LVM support for /usr, /home, /opt ....
        if [ -x /sbin/vgchange -a -f /etc/lvmtab ]
        then
                ebegin "Setting up the Logical Volume Manager"
                #still echo stderr for debugging
                /sbin/vgscan && /sbin/vgchange -a y >/dev/null
                eend $? "Failed to setup the LVM"
        fi

and it works great...
but when you have lvm volumes in you fstab checkfs will try to check them
this fails because the devices have not been created yet, because lvm is not
started up yet...

so the above part should be moved from localmount to the beginning of checkfs
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-06 13:26:47 UTC
Understood, but since I do not use LVM, im trying to find out if you need
/ mounted RW to start LVM, or if it can be RO .... I want to find out
how far I can take things basically ;)
Comment 4 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2002-04-06 13:46:14 UTC
doh - i did'n catch that / of course means root ;-)

i believe / (root) needs to be RW as vgscan will write to /etc/lvmtab.d/ and
/etc/lvmtab

i don't know what happens if / is still RO
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-21 13:35:57 UTC
Fixed on CVS, should be in new release of baselayout soon.