====== Linux Software RAID Quick Reference ====== ===== title ===== code ===== Enumerate RAIDs ===== mdadm -E /dev/sd[a-c][0-3] ===== Check RAID activity ===== cat /proc/mdstats ===== Detail RAID device ===== mdamd --detail /dev/md125 grep for State ===== create mdadm.conf ===== mdadm --detail --scan --verbose >> /etc/mdadm.conf This also shows devices UUID ===== SELinux RAID fix ===== restorecon -R /mnt/raid1 where ''/mnt/raid1'' is the mount path of the RAID ===== References ===== Build: https://www.tecmint.com/create-raid1-in-linux/ Repair: https://www.tecmint.com/recover-data-and-rebuild-failed-software-raid/ Reenable a disabled array: http://fibrevillage.com/storage/676-how-to-fix-linux-mdadm-inactive-array Rescue mbr/UEFI: https://www.thegeekdiary.com/centos-rhel-7-how-to-reinstall-grub2-from-rescue-mode/