Raid-1 Raid-5 Motherboard: Iwill P55TU dual ide adaptec scsi Processor: Intel P200 Disks: 2ea 7 gig 4 ea Segate 4.2 gig Maxtors wide scsiiThe disk drives are designated by linux as 'sda' through 'sdd' on the raid5 system and 'hda' and 'hdc' on the raid1 system.
Since testing a large root mountable RAID array is difficult because of the ckraid re-boot problem, I re-partitioned my swap space to include a smaller RAID partition for testing purposes, sda6,sdb6,sdc6,sdd6, and a small root and /usr/src partition pair for developing and testing the raid kernel and tools. You may find this helpful.
<bf/DEVELOPMENT SYSTEM - RAID5/ Device System Size Purpose /dev/sda1 dos boot 16 meg boot partition * /dev/sda2 extended 130 meg (see below) /dev/sda3 linux native 4 gig primary raid5-1 ----------------------sda2------------------------------ * /dev/sda5 linux swap 113 meg SWAP space * /dev/sda6 linux native 16 meg test raid5-1 ======================================================== /dev/sdb1 dos boot 16 meg boot partition duplicate * /dev/sdb2 extended 130 meg (see below) /dev/sdb3 linux native 4 gig primary raid5-2 ----------------------sdb2------------------------------ * /dev/sdb5 linux swap 113 meg SWAP space * /dev/sdb6 linux native 16 meg test raid5-2 ======================================================== * /dev/sdc2 extended 146 meg (see below) /dev/sdc3 linux native 4 gig primary raid5-3 ----------------------sdc2------------------------------ * /dev/sdc5 linux swap 130 meg development root partition * /dev/sdc6 linux native 16 meg test raid5-3 ======================================================== * /dev/sdd2 extended 146 meg (see below) /dev/sdd3 linux native 4 gig primary raid5-4 ----------------------sdd2------------------------------ * /dev/sdd5 linux swap 130 meg development /usr/src * /dev/sdd6 linux native 16 meg test raid5-4 <bf/DEVELOPMENT SYSTEM - RAID1/ Device System Size Purpose /dev/hda1 dos 16meg boot partition * /dev/hda2 extended 126m (see below) /dev/hda3 linux 126m development root partition /dev/hda4 linux 6+gig raid1-1 ----------------------hda2------------------------------ * /dev/hda5 linux 26m test raid1-1 * /dev/hda6 linux swap 100m ======================================================== /dev/hdc1 is simply an exact copy of hda1 so the partion can be made active if hda fails * /dev/hdc2 extended 126m (see below) /dev/hdc3 linux 126m development /usr/src /dev/hdc4 linux 6+gig raid1-2 ----------------------hdc2------------------------------ * /dev/hdc5 linux 26m test raid1-2 * /dev/hdc6 linux swap 100mThe sdx2 and hdx3 partitions were switched to 'swap' after developing this utility. I could have done it on another machine, however, the libraries and kernels are all about a year or more out of date on my other linux boxes and I preferred to build it on the target machine.
The partitioning scheme was chosen so that in the event that any one of the drives fails catastrophically, the system will continue to run and be bootable with minimum effort and NO data loss.
"/sbin/mkraid /etc/raid<it/x/.conf -f --only-superblock"to rebuild the remaining superblock(s).
mdadd -ar
cat /proc/mdstat | grep md0 > /dosx/raidboot/raidgood.ref shutdown -r nowto do a clean reboot, and the system is up again.