Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1552 - bug in startup scripts concerning LVM
Summary: bug in startup scripts concerning LVM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-05 15:41 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.