Replacing a failed 3TB disk into RAID 1

General support questions
Post Reply
TecHouse
Posts: 1
Joined: 2017/06/20 11:06:14

Replacing a failed 3TB disk into RAID 1

Post by TecHouse » 2017/06/20 11:17:03

Hi All,

I am having a issue with replacing a failed disk and adding this into the running array.
The server is currently setup with software RAID 1.

The disc has been replaced however attempts to add this device back into the array have been unsuccessfully.
I have used sgdisk to rebuild the partitions (sdb1, sdb2, sdb3). However when I add sdb3 back into the array using this following command:

mdadm --manage /dev/md1 --add /dev/sdb3
mdadm: add new device failed for /dev/sdb3 as 3: Invalid argument

I receive the above error.
Here is my command history:

sgdisk -R /dev/sdb /dev/sda
sgdisk -G /dev/sdb
sgdisk -p /dev/sda
sgdisk -p /dev/sdb
mdadm --manage /dev/md0 --add /dev/sdb1
mdadm: added /dev/sdb1
mdadm --manage /dev/md1 --add /dev/sdb3
mdadm: add new device failed for /dev/sdb3 as 3: Invalid argument

Could anyone share any light on the issue ?

CaViCcHi
Posts: 68
Joined: 2012/04/18 17:03:15
Contact:

Re: Replacing a failed 3TB disk into RAID 1

Post by CaViCcHi » 2017/06/28 00:37:35

what are your partitions like?

what does cat /proc/mdstat say?

maybe you forgot to remove the failed disk(s) from the array?

Post Reply