User Tools

Site Tools


blog:replace_faulty_disk_in_linux_md

This is an old revision of the document!


Replace faulty disk in linux md

Replacing a faulty drive in an mdadm managed RAID array.

  1. Use 'mdadm –manage /dev/mdX -r /dev/sdF' to remove the drive that was marked as faulty from the array.
  2. Power down and replace the drive with a good drive.
  3. Power up and set the partition table on the new drive to match those of the other drives in the array. Here we used 'sfdisk -d /dev/sdN | sfdisk /dev/sdF'.
  4. Add the proper partition on the new drive into the array, 'mdadm –manage /dev/mdX -a /dev/sdN2'
  5. Sit back and wait for the recovery to happen. The system will be a bit slow but usable.

Ref:

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
 __  __   ____   __  ___  ____   _   __
 \ \/ /  /  _/  /  |/  / / __ \ | | / /
  \  /  _/ /   / /|_/ / / /_/ / | |/ / 
  /_/  /___/  /_/  /_/  \____/  |___/
 
blog/replace_faulty_disk_in_linux_md.1388832925.txt.gz · Last modified: 2014-01-04 11:55 by brb