45 Drives Knowledge Base
KB450023 - How do I rebuild drive that has failed and has been hot swapped with a new one in my storage array
https://knowledgebase.45drives.com/kb/how-do-i-rebuild-drive-that-has-failed-and-has-been-hot-swapped-with-a-new-one-in-my-storage-array/

KB450023 - How do I rebuild drive that has failed and has been hot swapped with a new one in my storage array

Posted on November 9, 2018 by Rob MacQueen


This assumes you have identified the drive (please see technical bulletin on identifying the drives in the storage array).

Remove failed drive:
mdadm --manage /dev/md0 --fail /dev/sdb1 ( Change md0 to your actual raid device - and change sdb1 to the actual drive in your system you are removing )

Then remove the drive from storage array

Add the drive to the array and run

Add new drive:
mdadm /dev/md0 --add /dev/sdc1 ( Change md0 to your actual raid device - and change sdc1 to the actual drive you are adding to your system )

This should be all you need to allow you to replace the drive and rebuild the array.

KB450023 – How do I rebuild drive that has failed and has been hot swapped with a new one in my storage array – 45 Drives Knowledge Base

KB450023 – How do I rebuild drive that has failed and has been hot swapped with a new one in my storage array

Last modified: November 13, 2018
You are here:
  • KB Home
  • Hardware
  • KB450023 – How do I rebuild drive that has failed and has been hot swapped with a new one in my storage array
Estimated reading time: < 1 min

This assumes you have identified the drive (please see technical bulletin on identifying the drives in the storage array).

Remove failed drive:
mdadm –manage /dev/md0 –fail /dev/sdb1 ( Change md0 to your actual raid device – and change sdb1 to the actual drive in your system you are removing )

Then remove the drive from storage array

Add the drive to the array and run

Add new drive:
mdadm /dev/md0 –add /dev/sdc1 ( Change md0 to your actual raid device – and change sdc1 to the actual drive you are adding to your system )

This should be all you need to allow you to replace the drive and rebuild the array.

Was this article helpful?
Dislike 0
Views: 122
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access