45Drives 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 – 45Drives Knowledge Base
Did you know  45Drives offers free  public and private  webinars ? Click here to learn more  & register! Build & Price

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

You are here:

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: 141
© 2021 - 45Drives Knowledge Base
Unboxing Racking Storage Drives Cable Setup Power UPS Sizing Remote Access