Re-assembling the RAID-5 array reboots my CentOS-5 machine

Posted by xraminx on Server Fault See other posts from Server Fault or by xraminx
Published on 2010-12-20T03:15:03Z Indexed on 2010/12/21 7:55 UTC
Read the original article Hit count: 355

Filed under:
|
|
|
|

I have 3 HDD's, each divided into 3 partitions.

I had created a RAID-1 for boot partition

  • md0 created from sda0, sdb0

and had also created two RAID-5 arrays:

  • md1 created from sda1, sdb1, sdc1
  • md2 created from sda2, sdb2, sdc2

It used to work fine but one day I had to power off the machine (cold reboot) to get any response from the machine. After that, when the system started booting, it tried for a while to reconstruct the RAID arrays but after a few minutes it crashed silently.

I booted the system in linux rescue mode from the DVD and tried to re-assemble the RAID devices manually. I was able to re-assemble md0 and md1 using:

mdadm --assemble --scan /dev/md0

mdadm --assemble --scan /dev/md1

But when I try to re-assemble md2 using:

mdadm --assemble --scan /dev/md2

the system reboots silently again.

How can I fix this problem?

© Server Fault or respective owner

Related posts about linux

Related posts about raid