Bug 2604 - Obsolete /sbin/raidadd command referenced in /etc/rc.d/rc.sysinit
Obsolete /sbin/raidadd command referenced in /etc/rc.d/rc.sysinit
Status: CLOSED DUPLICATE of bug 2328
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
: 2634 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1999-05-06 13:51 EDT by Paul Iadonisi
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-05-10 12:28:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Iadonisi 1999-05-06 13:51:29 EDT
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 @@

 # 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


-	if [ $rc = 0 ]; then
-		raidrun -a
-		rc=$?
-	fi

 	# A non-zero return means there were problems.
 	if [ $rc -gt 0 ]; then
Comment 1 Paul Iadonisi 1999-05-06 13:54:59 EDT
Oops.  Lines 7/8 and lines 10/11 got wrapped.  Paste them together and
the patch should apply.
Comment 2 Bill Nottingham 1999-05-07 15:01:59 EDT
*** 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

	if [ $rc = 0 ]; then
		raidrun -a

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
Comment 3 Bill Nottingham 1999-05-10 12:28:59 EDT
*** This bug has been marked as a duplicate of 2328 ***
Comment 4 marcm 1999-05-23 22:43:59 EDT
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

By "updating" /etc/rc.d/rc.sysinit as above you will probably cause
conflicts with existing autodetected raid systems (like mine).

Note You need to log in before you can comment on or make changes to this bug.