Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

(On Ubuntu 11.10 - configuration inherited from 10.10)

Occasionally the boot process seems to suffer a race condition where a starting process misses some of the Raid-1 FSes, build via mdadm.

Looking at the start script, runlevel 5, (3 is similar anyway)

K00ntop
S15bind9
S16openvpn
S20kerneloops
S20nfs-kernel-server
S20nginx
S20php5-fpm
S20postfix
S20speech-dispatcher
S20winbind
S20xinetd
S23ntp
S25bluetooth
S25mdadm
...

There a bunch of processes started before mdadm, and nginx has some of web data on a MD array. While it's unlikely someone accesses the server at this very time, I wonder if it could be the reason.

Actually, I'm a bit surprised mdadm to be started that late in the boot process.
Is it not/recommended to run it earlier, say S10?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

S25mdadm turns on RAID monitoring only. The RAIDs themselves are enabled, and the associated filesystems are fsck'd and mounted much earlier as part of the general system init procedure that precedes the running of the startup scripts in rcN.d.

share|improve this answer
    
Concise and to the point. Thanks. –  ring0 Feb 27 '12 at 5:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.