mdadm command line examples

View Raid Array Details

Looking in /proc, or viewing details about the raid array, or for a single member of the raid array.

~ # cat /proc/mdstat
~ # mdadm --detail /dev/md2
~ # mdadm --examine /dev/sdf1

Assemble/Start Inactive Raid

First stop the bad array, then force it to start, assuming the array is properly defined in /etc/mdadm.conf.

~ # mdadm --stop /dev/md2
~ # mdadm --assemble /dev/md2 --scan --force