Hide Forgot
On boot, rc.sysinit looks for raidadd, which does not exist in the raidtools provided, raidtools-0.90-3. The correct command is raidstart, and the raidrun command no longer exists, either, so that should be commented out. This is with initscripts-4.00-1. Further, the raidtools RPM does not mention that even the latest kernels 2.2.[56] need to be patched to work with raidtools 0.90... this is a bit confusing to get things working. The comment implies that the 2.2.x kernels are ready to roll with these raidtools, which is false.
*** Bug 2604 has been marked as a duplicate of this bug. *** 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 ------- Additional Comments From iadonisi@colltech.com 05/06/99 13:54 ------- Oops. Lines 7/8 and lines 10/11 got wrapped. Paste them together and the patch should apply. ------- Additional Comments From notting@redhat.com 05/07/99 15:01 ------- *** 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=$? (...)
*** Bug 2411 has been marked as a duplicate of this bug. *** The obsoleted "raidrun" command is used in rc.sysinit to start raid, in stead of the current "raidstart".
fixed in initscripts-4.17-1, which will be in next week's rawhide release.
*** Bug 3095 has been marked as a duplicate of this bug. *** Hi, /etc/rc.d/rc.sysinit is still using raidadd and raidrun which are no longer part of the raidtool package. The system failed to startup if RAID devices are active. Please correct rc.sysinit and use /sbin/raidstart instead. regards, Jean Louis Ntakpe <ntakpe@ntakpe.com>
*** Bug 3248 has been marked as a duplicate of this bug. *** /etc/rc.d/rc.sysinit in RAID section references raidadd and raidrun which do not exist. The reference to raidadd should be changed to raidstart and the reference to raidrun should be removed.
*** Bug 4300 has been marked as a duplicate of this bug. *** In /etc/rc.d/rc.sysinit, a test is made for the executability of /sbin/raidadd, and raidrun, neither of which exist. The 6.0 code should refer to the executability of /sbin/raidstart (and execute it with a '-a' flag), and eliminate the 'if' clause that executes raidrun.
I'd also like to point out that many people use auto-detected raid arrays, with which raidstart/stop should not be run in initialization scripts.
*** Bug 5178 has been marked as a duplicate of this bug. *** rc.sysinit refers to the old 'raidadd' and 'raidrun' programs which are no longer part of the raidtools package. Instead, 'raidstart' is used to start the raid subsystem. Consequently, the rc.sysinit file needs to be modified, such as follows: if [ -f /proc/mdstat -a -f /etc/raidtab -a -x /sbin/raidstart ]; then action "Starting up RAID devices" raidstart -a rc=$? # A non-zero return means there were problems. if [ $rc -gt 0 ]; then ...etc
*** Bug 5344 has been marked as a duplicate of this bug. *** /etc/rc.d/rc.sysinit uses the older raidadd and raidrun commands. These commands are not included with the 6.0 distribution. In fact, they have replaced with the newer raidstart program (in the raidtools package). It is impossible to have raided filesystems mount at boot time with the commands currently in rc.sysinit.