raid
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
raid [2009/11/17 05:59] – 172.26.0.166 | raid [2009/11/18 13:54] – 172.26.0.166 | ||
---|---|---|---|
Line 50: | Line 50: | ||
| | ||
unused devices: < | unused devices: < | ||
- | |||
==== Repair RAID ==== | ==== Repair RAID ==== | ||
When a disk is failing you might see errors in the system logs from smartd like this: | When a disk is failing you might see errors in the system logs from smartd like this: | ||
Line 78: | Line 77: | ||
# mdadm /dev/md1 --fail /dev/hda3 --remove /dev/hda3 | # mdadm /dev/md1 --fail /dev/hda3 --remove /dev/hda3 | ||
# 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 /dev/hda6 |
+ | # mdadm --stop /dev/md2</ | ||
<note warning> You must Shutdown the server before you physically remove the drive! </ | <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. | ||
Line 91: | Line 91: | ||
/dev/sdc: msdos partitions 1 | /dev/sdc: msdos partitions 1 | ||
</ | </ | ||
- | You can now add the new partitions back to the arrays: | + | Re-create the scratch partition (RAID0): |
+ | < | ||
+ | # mkfs.ext3 /dev/md2 | ||
+ | # mount /dev/md2 / | ||
+ | You can now add the new partitions back to the RAID1 arrays: | ||
< | < | ||
# mdadm /dev/md1 --add /dev/hdd3 | # mdadm /dev/md1 --add /dev/hdd3 |
raid.txt · Last modified: 2010/09/19 23:58 by aorth