Linux Recover From A Lost Software RAID device (Rebuild RAID 5 Software Array)
Q. How can I recover from a lost software RAID device in CentOS version 4 / Debian version 3 / Red Hat Enterprise Linux 3 or 4 server system under RAID 5 software configuration?
A. Type the following command to reassembling array using automatic detection methods:
Linux command to recover the software RAID array
Login as root user and type the command:
# mdadm -Ac partitions /dev/mdX -m dev
# mdadm -Ac partitions /dev/md0 -m dev
Replace /dev/mdX with actual device name. Above command should recover the RAID device./dev/md0.