System Management

An administrator runs cat /proc/mdstat on a server and sees that the array md0 (RAID 1) shows [2/1] [U_] with /dev/sdc1 listed as failed (F). A new disk has been installed and partitioned as /dev/sdd1. Which sequence of mdadm commands BEST restores full redundancy?

Show the answer

Correct answerD. mdadm /dev/md0 --remove /dev/sdc1, then mdadm /dev/md0 --add /dev/sdd1

Removing the failed member and adding the replacement lets md rebuild the mirror onto the new disk, which /proc/mdstat will show as a recovery. Re-running --create on the existing members risks overwriting metadata and destroying the data, so it is not a repair step.