blog:replace_faulty_disk_in_linux_md
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| blog:replace_faulty_disk_in_linux_md [2011-09-08 13:58] – brb | blog:replace_faulty_disk_in_linux_md [2014-01-04 11:56] (current) – brb | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Replacing a faulty drive in an mdadm managed RAID array. | Replacing a faulty drive in an mdadm managed RAID array. | ||
| - | - Use 'mdadm --manage /dev/md0 -r /dev/sdd' to remove the drive that was marked as faulty from the array. | + | - Use 'mdadm --manage /dev/mdX -r /dev/sdF' to remove the drive that was marked as faulty from the array. |
| - Power down and replace the drive with a good drive. | - Power down and replace the drive with a good drive. | ||
| - | - Power up and set the partition table on the new drive to match those of the other drives in the array. Here we used ' | + | - Power up and set the partition table on the new drive to match those of the other drives in the array. Here we used ' |
| - | - Add the proper partition on the new drive into the array, 'mdadm --manage /dev/md0 -a /dev/sdd2' | + | - Add the proper partition on the new drive into the array, 'mdadm --manage /dev/mdX -a /dev/sdN2' |
| - | - Sit back and wait for the recovery to happen, you can 'watch cat / | + | - Sit back and wait for the recovery to happen. |
| - | + | ||
| - | Ref: http://www.linuxquestions.org/ | + | |
| + | Ref: | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| {{tag> | {{tag> | ||
blog/replace_faulty_disk_in_linux_md.1315483122.txt.gz · Last modified: 2011-09-08 13:58 by brb
