Liquidstate

The digital home of Bryan Ross
  • rss
  • Home
  • About
  • Photos

How to fix a failed RAID-1 array

September 11, 2007

Problem: One of the disks in your software RAID-1 array has failed.

Solution:

Check the status of your software raid array:
[root@server] mdadm –misc –detail /dev/md0

Remove the failed disk from the array set. Be careful not to remove the wrong one!
[root@server] mdadm –manage /dev/md0 –remove /dev/sdb1

Physically replace the faulty disk unit with a replacement which is identical to, or larger than the failed disk. Partition the new disk so that the partitions are equal to, or larger than, the size of the partitions on the healthy disk using fdisk.

Add the new disk to your software RAID-1 array:
[root@server] mdadm –manage /dev/md0 –add /dev/sdb1

The array should rebuilt automatically, but you can monitor its progress with:
[root@server] mdadm –misc –detail /dev/md0

Categories
Linux
Tags
Linux, raid
Trackback
Trackback

« Converting from Ext2 to Ext3 filesystems Using dmidecode to read the BIOS »

Navigation

  • Apple (1)
  • Diving (60)
  • Linux (11)
  • Microsoft (2)
  • Sailing (24)
  • Uncategorized (2)

Photos (view gallery)

IMG_1773IMG_1775IMG_1765IMG_1766IMG_1750IMG_1755IMG_1770IMG_1767IMG_1760

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox