Gentoo Archives: gentoo-user

From: Salvatore Borgia <salvo2789@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Localmount starts before LVM
Date: Mon, 10 Dec 2012 15:46:14
Message-Id: CABRtZ3UtVSBWpPQNxp7jZvDOm9Gjzpyu9mOfp-7L8bF=Shy9jA@mail.gmail.com
In Reply to: [gentoo-user] Localmount starts before LVM by Nilesh Govindrajan
1 Hi, do you have put "dolvm" option in your kernel string in grub.conf?
2
3
4 2012/12/10 Nilesh Govindrajan <me@××××××××.com>
5
6 > Hi,
7 >
8 > I have a raid0 (kernel autodetect) array, over which I have put LVM
9 > and then there are volumes on the LVM for /var, /tmp, swap and /home.
10 >
11 > The problem is, raid0 array gets recognized, but localmount fails to
12 > mount because lvm doesn't seem to start before localmount (due to my
13 > root being on SSD, I can't watch the output of openrc easily).
14 >
15 > For now I have added this to my rc.conf -
16 > rc_localmount_before="lvm"
17 > rc_localmount_need="lvm"
18 > rc_lvm_after="localmount"
19 >
20 > This fixes the problem, but localmount still executes before lvm and
21 > terminates with operational error. Then lvm starts up and localmount
22 > runs again successfully.
23 >
24 > Any idea why this happens?
25 >
26 > The localmount script in init.d has proper depends:
27 >
28 > depend()
29 > {
30 > need fsck
31 > use lvm modules mtab
32 > after lvm modules
33 > keyword -jail -openvz -prefix -vserver -lxc
34 > }
35 >
36 > --
37 > Nilesh Govindrajan
38 > http://nileshgr.com
39 >
40 >

Replies

Subject Author
Re: [gentoo-user] Localmount starts before LVM Nilesh Govindrajan <me@××××××××.com>