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 |