1 |
Am 10.12.2012 15:08, schrieb Nilesh Govindrajan: |
2 |
> Hi, |
3 |
> |
4 |
> I have a raid0 (kernel autodetect) array, over which I have put LVM |
5 |
> and then there are volumes on the LVM for /var, /tmp, swap and /home. |
6 |
> |
7 |
> The problem is, raid0 array gets recognized, but localmount fails to |
8 |
> mount because lvm doesn't seem to start before localmount (due to my |
9 |
> root being on SSD, I can't watch the output of openrc easily). |
10 |
> |
11 |
> For now I have added this to my rc.conf - |
12 |
> rc_localmount_before="lvm" |
13 |
> rc_localmount_need="lvm" |
14 |
> rc_lvm_after="localmount" |
15 |
> |
16 |
> This fixes the problem, but localmount still executes before lvm and |
17 |
> terminates with operational error. Then lvm starts up and localmount |
18 |
> runs again successfully. |
19 |
> |
20 |
> Any idea why this happens? |
21 |
> |
22 |
> The localmount script in init.d has proper depends: |
23 |
> |
24 |
> depend() |
25 |
> { |
26 |
> need fsck |
27 |
> use lvm modules mtab |
28 |
> after lvm modules |
29 |
> keyword -jail -openvz -prefix -vserver -lxc |
30 |
> } |
31 |
> |
32 |
> -- |
33 |
> Nilesh Govindrajan |
34 |
> http://nileshgr.com |
35 |
> |
36 |
|
37 |
Please provide `/sbin/rc-update show`. |
38 |
|
39 |
Have you tried toggling rc_depend_strict? |
40 |
|
41 |
Regards, |
42 |
Florian Philipp |