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 scsii磁盘驱动器在 raid5 系统上被 Linux 指定为 'sda' 到 'sdd',在 raid1 系统上被指定为 'hda' 和 'hdc'。
由于测试大型可挂载根目录的 RAID 阵列因 ckraid 重启问题而困难,我重新分区了我的交换空间,以便包含一个较小的 RAID 分区用于测试,sda6,sdb6,sdc6,sdd6,以及一个小的 root 和 /usr/src 分区对,用于开发和测试 raid 内核和工具。您可能会觉得这很有帮助。
<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 100m在开发此实用程序后,sdx2 和 hdx3 分区被切换为 'swap'。我本可以在另一台机器上完成,但是,我的其他 Linux 机器上的库和内核都过时了一年或更长时间,我更喜欢在目标机器上构建它。
选择此分区方案是为了在任何一个驱动器发生灾难性故障时,系统将继续运行并可启动,只需最少的努力且不会丢失数据。
"/sbin/mkraid /etc/raid<it/x/.conf -f --only-superblock"以重建剩余的超级块。
mdadd -ar
cat /proc/mdstat | grep md0 > /dosx/raidboot/raidgood.ref shutdown -r now以进行干净的重启,系统将再次启动。