]> git.ipfire.org Git - thirdparty/mdadm.git/blame - mdadm.conf.5
mdadm-0.7.2
[thirdparty/mdadm.git] / mdadm.conf.5
CommitLineData
56eb10c0
NB
1.TH MDADM.CONF 5
2.SH NAME
3mdadm.conf \- configuration for management of Software Raid with mdadm
4.SH SYNOPSIS
5/etc/mdadm.conf
6.SH DESCRIPTION
7.PP
8.B mdadm
11a3e71d 9is a tool for creating, managing, and monitoring RAID devices using the
56eb10c0
NB
10.B md
11driver in Linux.
12.PP
13Some common tasks, such as assembling all arrays, can be simplified
11a3e71d 14by describing the devices and array in this configuation file.
56eb10c0
NB
15
16.SS SYNTAX
17The file should be seen as a collection of words separated by white
18space (space, tab, or newline).
11a3e71d 19Any word that beings with a hash sign (#) starts a comment and that
56eb10c0
NB
20word together with the remainder of the line are ignored.
21
22Any line that start with white space (space or tab) is treated as
23though it were a continuation of the previous line.
24
25Empty lines are ignored, but otherwise each (non continuation) line
26must start with a keyword as listed below. The key words are case
27insensitve and can be abbreviated to 3 characters.
28
29The keywords are:
30.TP
31.B DEVICE
32A
33.B device
34line lists the devices (whole devices or partitions) that might contain
35a component of an MD array. When looking for the components of an
36array,
37.B mdadm
38will scan these devices and no others.
39
40The
41.B device
42line may contain a number of different devices (separated by spaces)
43and each device name can contain wild cards as defined by
44.BR glob (7).
45
46Also, there may be several device lines present in the file.
47
11a3e71d
NB
48For example:
49.IP
50DEVICE /dev/hda* /dev/hdc*
51.br
52DEV /dev/sd*
53.br
54DEVICE /dev/discs/disc*/disc
55
56eb10c0
NB
56.TP
57.B ARRAY
11a3e71d
NB
58The ARRAY lines identify actual arrays. The second word on the line
59should be the name of the device where the array is normally
60assembled, such as
61.BR /dev/md1 .
62Subsequent words identify the array. If multiple identities are given,
63then the array must match ALL identities to be considered a match.
64Each identity word has a tag, and equals sign, and some value.
65The options are:
66
67.RS 4
68.TP
69.B uuid=
70The value should be a 128 bit uuid in hexadecimal, with punctuation
71interspersed if desired. This must match the uuid stored in the
72superblock.
73.TP
74.B super-minor=
75The value is an integer which indicates the minor number that was
76stored in the superblock when the array was created. When an array is
77created as /dev/mdX, then the minor number X is stored.
78.TP
79.B devices=
80The value is a comma separated list of device names. Precisely these
81devices will be used to assemble the array. Note that the devices
82listed there must also be listed on a DEVICE line.
83.TP
84.B level=
85The value is a raid level. This is not normally used to
86identify an array, but is supported so that the output of
87
88.B "mdadm --examine --scan"
89
90can be use directly in the configuration file.
91.TP
92.B disks=
93The value is the number of disks in a complete active array. As with
94.B level=
95this is mainly for compatibility with the output of
56eb10c0 96
11a3e71d
NB
97.BR "mdadm --examine --scan" .
98.RE
56eb10c0 99.SH SEE ALSO
11a3e71d
NB
100.BR mdadm (8),
101.BR md (4).
56eb10c0 102