mdadm --detail --scan >> /etc/mdadm/mdadm.conf

Category: Administration

mdadm --detail --scan >> /etc/mdadm/mdadm.conf

Persist RAID configuration to mdadm.conf

Appends the current array definitions to /etc/mdadm/mdadm.conf so the system assembles them automatically at boot. Without this file, arrays may come up under different names or not at all. Run it once after creating or changing an array, as root.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.