Linux Recover From A Lost Software RAID device (Rebuild RAID 5 Software Array)

Posted on in Categories , , , , , , last updated June 20, 2008

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.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment