My situation is different from this one.
I have a CentOS system with 3 hard drives, and the following software RAID arrays:
/boot on RAID 1 over 2 disks / on RAID 5 over 3 disks swap on RAID 0 over 2 disks (I believe)
My 3rd drive failed. At the beginning, no big deal, the array was still working. But after 1 day, when I got ready to swap the bad disk, the system cannot boot anymore with the new disk in:
md: md2: raid array is not clean -- starting background reconstruction raid5: cannot start dirty degraded array for md2 raid5: failed to run raid set md2 [...] Kernel panic
It stops there. I have no shell. I've tried to but on the Rescue disk, but I don't know how to go from there: my arrays are not seen, so I cannot rebuild them. Exact same issue if I boot with 2 disks, or with the bad disk as my 3rd drive.
How can I fix the array now that I have a new drive?