Normalmente, os scripts de inicialização leem /etc/mdadm/mdadm.conf
para definições de ARRAY; Na falta que eles fazem algo "sensato", como a digitalização de todos os discos / partições para superblocos. A página man do mdadm sugere:
echo ’DEVICE /dev/hd[a-z] /dev/sd*[a-z]’ > mdadm.conf mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
This will find arrays which could be assembled from existing IDE and SCSI whole drives (not partitions), and store the information in the format of a config file. This file is very likely to contain unwanted detail, particularly the devices= entries. It should be reviewed and edited before being used as an actual config file.
como ponto de partida para uma configuração decente. A manpage do mdadm.conf fornece alguns exemplos:
DEVICE /dev/sd[bcdjkl]1
DEVICE /dev/hda1 /dev/hdb1
# /dev/md0 is known by its UID.
ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
# /dev/md1 contains all devices with a minor number of
# 1 in the superblock.
ARRAY /dev/md1 superminor=1
# /dev/md2 is made from precisely these two devices
ARRAY /dev/md2 devices=/dev/hda1,/dev/hdb1
Os nomes que você está vendo são os padrões:
The standard names for non-partitioned arrays (the only sort of md array available in 2.4 and earlier) are either of
/dev/mdNN /dev/md/NN
where NN is a number. The standard names for partitionable arrays (as available from 2.6 onwards) are either of
/dev/md/dNN /dev/md_dNN