Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Localmount starts before LVM Florian Philipp <lists@×××××××××××.net>
Re: [gentoo-user] Localmount starts before LVM Salvatore Borgia <salvo2789@×××××.com>
Re: [gentoo-user] Localmount starts before LVM Kerin Millar <kerframil@×××××××××××.uk>
Re: [gentoo-user] Localmount starts before LVM "J. Roeleveld" <joost@××××××××.org>
[gentoo-user] Re: Localmount starts before LVM [resolved] Nilesh Govindrajan <me@××××××××.com>