Hide Forgot
Looking at the man page for raidadd (from raidtools-0.90-3) it is apparent that the /sbin/raidadd and /sbin/raidrun commands are now obsolete. The /sbin/raidstart command now takes care of both functions. In the /etc/rc.d/rc.sysinit startup script, these two obsolete commands are referenced, instead of /sbin/raidstart. The script in it's current form will not start raid devices on boot as it is intended. Below is a (untested -- I haven't rebooted yet) patch against rc.sysinit that should fix the problem. ---------- cut here -------- --- rc.sysinit.orig Tue Apr 13 20:05:12 1999 +++ rc.sysinit Thu May 6 00:47:42 1999 @@ -206,15 +206,10 @@ fi # Add raid devices -if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidadd ]; then - action "Starting up RAID devices" raidadd -a +if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then + action "Starting up RAID devices" raidstart -a rc=$? - if [ $rc = 0 ]; then - raidrun -a - rc=$? - fi # A non-zero return means there were problems. if [ $rc -gt 0 ]; then
Oops. Lines 7/8 and lines 10/11 got wrapped. Paste them together and the patch should apply.
*** Bug 2634 has been marked as a duplicate of this bug. *** The new raidtools (0.90) used in RH 6.0 do not contain raidadd and raidrun any longer. However, there are still calls to these programs in rc.sysinit: if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidadd ]; then action "Starting up RAID devices" raidadd -a rc=$? if [ $rc = 0 ]; then raidrun -a rc=$? fi (...) In order to make the script work this should be changed to the following: if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then action "Starting up RAID devices" raidstart --all rc=$? (...)
*** This bug has been marked as a duplicate of 2328 ***
Isn't this functonality what raid's auto detect features are for? All the raid code in /etc/rc.d/rc.sysinit should be commented out (or deleted). By "updating" /etc/rc.d/rc.sysinit as above you will probably cause conflicts with existing autodetected raid systems (like mine).