> On Tuesday 11 December 2012 01:14:39 PM IST, J. Roeleveld wrote: >>> 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 >> >> > > Removing those lines didn't help,
What is the end-result without the lines? > but I removed my stupidity there -- > the contradicting dependency issue. > It still doesn't start up before localmount. > > What I get when rc.conf is default without any manually inserted > depends/etc: > https://dl.dropbox.com/u/25780056/2012-12-11%2012.46.59.jpg & > https://dl.dropbox.com/u/25780056/2012-12-11%2012.48.13.jpg > > My current rc.conf has this: > > rc_localmount_need="lvm" > rc_localmount_after="lvm" > rc_fsck_after="lvm" > rc_fsck_need="lvm" > rc_lvm_before="localmount" > > At least I have a usable system now and doesn't use my SSD for /var due > to the failed LVM mount. > But this results in one localmount failure -> lvm -> localmount success. > > I'm on openrc 0.11.8. I use an older version still. In rc.conf, I only set the "need" lines for init-scripts I created myself. I never used the other lines. Do you have /usr on / ? Or on a seperate partition? Which metadata version did you use for the software raid setup? Can you add "mdadm" to the boot-runlevel? -- Joost