управлять MD-устройствами, также известными как Linux Software RAID (manage MD devices aka Linux Software RAID)
DEVICE NAMES
mdadm understand two sorts of names for array devices.
The first is the so-called 'standard' format name, which matches
the names used by the kernel and which appear in /proc/mdstat.
The second sort can be freely chosen, but must reside in
/dev/md/. When giving a device name to mdadm to create or
assemble an array, either full path name such as /dev/md0 or
/dev/md/home can be given, or just the suffix of the second sort
of name, such as home can be given.
When mdadm chooses device names during auto-assembly or
incremental assembly, it will sometimes add a small sequence
number to the end of the name to avoid conflicted between
multiple arrays that have the same name. If mdadm can reasonably
determine that the array really is meant for this host, either by
a hostname in the metadata, or by the presence of the array in
mdadm.conf
, then it will leave off the suffix if possible. Also
if the homehost is specified as <ignore>
mdadm will only use a
suffix if a different array of the same name already exists or is
listed in the config file.
The standard names for non-partitioned arrays (the only sort of
md array available in 2.4 and earlier) are of the form
/dev/mdNN
where NN is a number. The standard names for partitionable
arrays (as available from 2.6 onwards) are of the form:
/dev/md_dNN
Partition numbers should be indicated by adding "pMM" to these,
thus "/dev/md/d1p2".
From kernel version 2.6.28 the "non-partitioned array" can
actually be partitioned. So the "md_dNN
" names are no longer
needed, and partitions such as "/dev/mdNN
pXX
" are possible.
From kernel version 2.6.29 standard names can be non-numeric
following the form:
/dev/md_XXX
where XXX
is any string. These names are supported by mdadm
since version 3.3 provided they are enabled in mdadm.conf.