Linux System Administration
Filesystems (Continued)
RAID Configuration - mdadm.conf
In general, it's best to create an
/etc/mdadm.conf
file after you have created an array and update the file when new arrays are created.
Without an
/etc/mdadm.conf
file you'd need to specify more detailed information about an array on the command in order to activate it.
mdadm
even provides an easy way to generate ARRAY lines:
$ mdadm --detail --scan
ARRAY /dev/md0 level=raid0 num-devices=2 UUID=410a299e:4cdd535e:169d3df4:48b7144a
So after you're done building arrays you could copy the output of
mdadm --detail --scan
to
/etc/mdadm.conf
.
You manually create a DEVICE entry as well.
Based on the example above, here is what the /etc/mdadm.conf file might look like:
DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 level=raid0 num-devices=2 UUID=410a299e:4cdd535e:169d3df4:48b7144a
Prev
Page 16
Next