raid
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
raid [2009/11/16 14:25] – 172.26.0.166 | raid [2009/11/17 05:59] – 172.26.0.166 | ||
---|---|---|---|
Line 79: | Line 79: | ||
# mdadm /dev/md3 --fail /dev/hda1 --remove /dev/hda1 | # mdadm /dev/md3 --fail /dev/hda1 --remove /dev/hda1 | ||
# mdadm /dev/md4 --fail /dev/hda6 --remove / | # mdadm /dev/md4 --fail /dev/hda6 --remove / | ||
+ | <note warning> You must Shutdown the server before you physically remove the drive! </ | ||
Shut the server down and replace the faulty drive with a new one. After booting your drive letters may have shifted around, so just be sure to verify which is which before proceeding. | Shut the server down and replace the faulty drive with a new one. After booting your drive letters may have shifted around, so just be sure to verify which is which before proceeding. | ||
Clone the partition table from the good drive to the bad one: | Clone the partition table from the good drive to the bad one: | ||
Line 96: | Line 96: | ||
# mdadm /dev/md3 --add /dev/hdd1 | # mdadm /dev/md3 --add /dev/hdd1 | ||
# mdadm /dev/md4 --add / | # mdadm /dev/md4 --add / | ||
+ | After adding you can monitor the progress of the RAID rebuilds by looking in ''/ | ||
+ | < | ||
+ | md3 : active raid1 hdd1[1] hda1[0] | ||
+ | 200704 blocks [2/2] [UU] | ||
+ | |||
+ | md1 : active raid1 hdd3[2] hda3[0] | ||
+ | 26627648 blocks [2/1] [U_] | ||
+ | [===================> | ||
+ | |||
+ | md2 : inactive hda5[0] | ||
+ | 18434304 blocks | ||
+ | |||
+ | md4 : active raid1 hdd6[2] hda6[0] | ||
+ | 2168640 blocks [2/1] [U_] | ||
+ | resync=DELAYED | ||
+ | |||
+ | md0 : active raid1 hdd2[1] hda2[0] | ||
+ | 30716160 blocks [2/2] [UU] | ||
+ | |||
+ | unused devices: < | ||
Clearing any previous raid info on a disk (eg. reusing a disk from another decommissioned raid array) | Clearing any previous raid info on a disk (eg. reusing a disk from another decommissioned raid array) | ||
Line 116: | Line 135: | ||
How do you know which physical disk is broken to replace it? | How do you know which physical disk is broken to replace it? | ||
+ | f | ||
===== Hardware RAID ===== | ===== Hardware RAID ===== |
raid.txt · Last modified: 2010/09/19 23:58 by aorth