How do I rebuild a software RAID 1 array after a disk failure?
Issue
- One of the software RAID disks broke and now the system does not boot.
-
mdraid
was configured for/boot
and root filesystem. The disk/dev/sda
was recently removed to check if the system could boot using the remaining disk inmdraid
, and the test was successful. But it is not possible to add the/dev/sda2
partition back into themdraid
arraymd0
and the error below was presented:$ mdadm --manage /dev/md0 --re-add /dev/sda2 $ mdadm: --re-add for /dev/sda2 to /dev/md0 is not possible
Environment
- Red Hat Enterprise Linux (RHEL)
- 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.