[vox-tech] Software IDE Root RAID on Linux

Bill Broadley vox-tech@lists.lugod.org
Tue, 12 Mar 2002 22:20:10 -0800


Redhat-7.2 makes this quite easy as well, in fact I did it on
the box I'm typing this on:

[bill@bilbo bill]$ cat /etc/redhat-release 
Red Hat Linux release 7.2 (Enigma)
[bill@bilbo bill]$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md1              25316412   9936080  14094332  42% /
/dev/md0              25316412  15296880   8733532  64% /d0
none                    256804         0    256804   0% /dev/shm
[bill@bilbo bill]$ cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid5] 
read_ahead 1024 sectors
md0 : active raid1 hdc2[1] hda2[0]
      25720000 blocks [2/2] [UU]

Just select Make raid at the partition screen and assign it to /.

BTW I recommend checking that root receives email, cp /proc/mdstat to /var/mdstate; then setup a crontab:
0,15,30,45 * * * * /usr/bin/diff /proc/mdstat /var/mdstat

That way if the raid loses a disk you get email every 15 minutes, of course
this doesn't help much unless your using a redundant mirror (anything but
raid-0).

Enjoy.


-- 
Bill Broadley
Mathematics/Institute of Theoretical Dynamics
UC Davis