> Hi, > > I have a raid0 (kernel autodetect) array, over which I have put LVM > and then there are volumes on the LVM for /var, /tmp, swap and /home. > > The problem is, raid0 array gets recognized, but localmount fails to > mount because lvm doesn't seem to start before localmount (due to my > root being on SSD, I can't watch the output of openrc easily). > > For now I have added this to my rc.conf - > rc_localmount_before="lvm"
In other words: "localmount" should run before "lvm" > rc_localmount_need="lvm" "localmount" requires "lvm" > rc_lvm_after="localmount" "lvm" should run after "localmount" Line 1 and 3 do the same. Line 2 is a contradiction. > This fixes the problem, but localmount still executes before lvm and > terminates with operational error. Then lvm starts up and localmount > runs again successfully. > > Any idea why this happens? Yes (See above) > The localmount script in init.d has proper depends: > > depend() > { > need fsck > use lvm modules mtab > after lvm modules > keyword -jail -openvz -prefix -vserver -lxc > } This should work. I actually have a similar setup and did not need to add the lines to rc.conf. All I did was do what I was told: Add "lvm" to the "boot" runlevel. Can you remove the lines from "rc.conf", ensure "lvm" is in the "boot" runlevel (And not in any other, like "default") and then let us know if you still get the error during reboot? If it all goes by too fast, can you press "I" during boot to get interactive and then let us know: 1) Which starts first, "lvm" or "localmount" 2) What error messages do you see for any of the services. Kind regards, Joost Roeleveld