Raidtools vs. mdadm?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've been using mdadm to create and manage my RAID devices (RAID1 and
RAID5).

I've not really given much thought to how they are started at boot time -
they just are!

On Fedora Core 2, RAID devics are started from /etc/rc.d/rc.sysinit. The
default install used raidtools to start the arrays, but I have patched
rc.sysinit with the following patch:

--- rc.sysinit.orig     2004-02-04 01:42:10.000000000 -0600
+++ rc.sysinit  2004-02-04 02:26:45.000000000 -0600
@@ -435,6 +435,10 @@
        /etc/rc.modules
 fi

+if [ -f /etc/mdadm.conf ]; then
+       /sbin/mdadm -A -s
+fi
+
 update_boot_stage RCraid
 if [ -f /etc/raidtab ]; then
        # Add raid devices
@@ -467,6 +471,10 @@
                                RESULT=0
                                RAIDDEV="$RAIDDEV(skipped)"
                        fi
+                       if [ $RESULT -gt 0 -a -x /sbin/mdadm ]; then
+                               /sbin/mdadm -Ac partitions $i -m dev
+                               RESULT=$?
+                       fi
                        if [ $RESULT -gt 0 -a -x /sbin/raidstart ]; then
                                /sbin/raidstart $i
                                RESULT=$?


So, my question is: do I still need raidtools? Does it do anything that
mdadm can't?

Thanks,

R.

--
http://robinbowes.com 

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux