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

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, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 0 comments/add one below):