Changes between Initial Version and Version 1 of SoftwareRaid


Ignore:
Timestamp:
12/14/07 12:29:13 (10 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SoftwareRaid

    v1 v1  
     1= Linux Multiple Device RAID = 
     2 
     3[http://www.linuxdevcenter.com/lpt/a/2776 mdadm: A New Tool For Linux Software RAID Management] 
     4by Derek Vadala 12/05/2002 
     5 
     6Used for amgydala `/usr/local/data`; See HardwareRaid for other systems. 
     7 
     8{{{ 
     9mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb /dev/sdc /dev/sdd 
     10cat > /etc/mdadm.conf <<EOF 
     11MAILADDR root 
     12PROGRAM mdadm 
     13DEVICE /dev/sdb /dev/sdc /dev/sdd 
     14ARRAY /dev/md0 devices=/dev/sdb,/dev/sdc,/dev/sdd num-devices=3 level=5 
     15EOF 
     16 
     17cat /proc/mdstat 
     18mke2fs -j /dev/md0 
     19# turn off autocheck since it's RAID 
     20tune2fs -c0 -i0 /dev/md0 
     21 
     22mkdir -p /usr/local/data/ 
     23chown nobody:nobody /usr/local/data/ 
     24echo '/dev/md0                /usr/local/data/        ext3    defaults        0 0' > /etc/fstab 
     25mount /usr/local/data/ 
     26chkconfig mdmonitor on 
     27}}} 
     28 
     29http://www.tldp.org/HOWTO/Software-RAID-HOWTO-5.html 
     30