An error may occur if the sda or sdb for the specific md# you are trying to rebuild is in Failed (F) status. In such a case, you would need to run 'mdadm remove' and then run 'mdadm add'Here is an example output of 'cat /proc/mdstat' showing the RAID status:
[[email protected] admin]# cat /proc/mdstat
Personalities : [raid0] [raid1]
md1 : active raid1 sdb1 sda1
104320 blocks [2/2] [UU]
md5 : active raid1 sdb5(F) sda5
8008256 blocks [2/1] [U_]
md6 : active raid1 sdb6 sda6
236002752 blocks [2/2] [UU]
Notice the (F) against sdb for md5 in the output above.
If the sda or the sdb for a specific md# is in failed state, then an error occurs stating the device or resource busy while performing the rebuild using 'mdadm add' command as per the instructions in article 3808.
In the example above, the following error is seen:
[[email protected] admin]# mdadm -a /dev/md5 /dev/sdb5
mdadm: Cannot open /dev/sdb5: Device or resource busy
[[email protected] admin]#