X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=mdadm.8.in;h=09aff8116fef6e3ad698761a131fb6915ae5bf28;hb=f81a2b56c4b437f66aaf5582a9c6b7f5ab2103c4;hp=c8559dae8e789a30e0c4ee826745a42980629977;hpb=74db60b00a43a5ae636477c10c24e923e76049ce;p=thirdparty%2Fmdadm.git diff --git a/mdadm.8.in b/mdadm.8.in index c8559dae..09aff811 100644 --- a/mdadm.8.in +++ b/mdadm.8.in @@ -5,7 +5,7 @@ .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" See file COPYING in distribution for details. -.TH MDADM 8 "" v3.2.5 +.TH MDADM 8 "" v3.3 .SH NAME mdadm \- manage MD devices .I aka @@ -125,7 +125,7 @@ Currently supported growth options including changing the active size of component devices and changing the number of active devices in Linear and RAID levels 0/1/4/5/6, changing the RAID level between 0, 1, 5, and 6, and between 0 and 10, -changing the chunk size and layout for RAID 0,4,5,6, as well as adding or +changing the chunk size and layout for RAID 0,4,5,6,10 as well as adding or removing a write-intent bitmap. .TP @@ -263,16 +263,22 @@ the exact meaning of this option in different contexts. .TP .BR \-c ", " \-\-config= -Specify the config file. Default is to use -.BR /etc/mdadm.conf , -or if that is missing then -.BR /etc/mdadm/mdadm.conf . +Specify the config file or directory. Default is to use +.B /etc/mdadm.conf +and +.BR /etc/mdadm.conf.d , +or if those are missing then +.B /etc/mdadm/mdadm.conf +and +.BR /etc/mdadm/mdadm.conf.d . If the config file given is .B "partitions" then nothing will be read, but .I mdadm will act as though the config file contained exactly -.B "DEVICE partitions containers" +.br +.B " DEVICE partitions containers" +.br and will read .B /proc/partitions to find a list of devices to scan, and @@ -284,6 +290,13 @@ is given for the config file, then .I mdadm will act as though the config file were empty. +If the name given is of a directory, then +.I mdadm +will collect all the files contained in the directory with a name ending +in +.BR .conf , +sort them lexically, and process all of those files as config files. + .TP .BR \-s ", " \-\-scan Scan config file or @@ -1071,6 +1084,7 @@ argument given to this flag can be one of .BR no\-bitmap , .BR bbl , .BR no-\bbl , +.BR metadata , or .BR super\-minor . @@ -1167,6 +1181,19 @@ This will cause to determine the maximum usable amount of space on each device and update the relevant field in the metadata. +The +.B metadata +option only works on v0.90 metadata arrays and will convert them to +v1.0 metadata. The array must not be dirty (i.e. it must not need a +sync) and it must not have a write-intent bitmap. + +The old metadata will remain on the devices, but will appear older +than the new metadata and so will usually be ignored. The old metadata +(or indeed the new metadata) can be removed by giving the appropriate +.B \-\-metadata= +option to +.BR \-\-zero\-superblock . + The .B no\-bitmap option can be used when an array has an internal bitmap which is @@ -1230,7 +1257,7 @@ with redundancy. They don't apply to RAID0 or Linear. .TP .BR \-\-re\-add -re\-add a device that was previous removed from an array. +re\-add a device that was previously removed from an array. If the metadata on the device reports that it is a member of the array, and the slot that it used is still vacant, then the device will be added back to the array in the same position. This will normally @@ -1488,7 +1515,9 @@ doesn't appear to be valid. If the device is a container and the argument to \-\-kill\-subarray specifies an inactive subarray in the container, then the subarray is deleted. Deleting all subarrays will leave an 'empty-container' or -spare superblock on the drives. See \-\-zero\-superblock for completely +spare superblock on the drives. See +.B \-\-zero\-superblock +for completely removing a superblock. Note that some formats depend on the subarray index for generating a UUID, this command will fail if it would change the UUID of an active subarray. @@ -2447,7 +2476,7 @@ change the "size" attribute for RAID1, RAID4, RAID5 and RAID6. increase or decrease the "raid\-devices" attribute of RAID0, RAID1, RAID4, RAID5, and RAID6. .IP \(bu 4 -change the chunk-size and layout of RAID0, RAID4, RAID5 and RAID6. +change the chunk-size and layout of RAID0, RAID4, RAID5, RAID6 and RAID10. .IP \(bu 4 convert between RAID1 and RAID5, between RAID5 and RAID6, between RAID0, RAID4, and RAID5, and between RAID0 and RAID10 (in the near-2 mode). @@ -2809,6 +2838,28 @@ These checks can be suppressed by setting IMSM_NO_PLATFORM=1 in the environment. This can be useful for testing or for disaster recovery. You should be aware that interoperability may be compromised by setting this value. + +.TP +.B MDADM_CONF_AUTO +Any string given in this variable is added to the start of the +.B AUTO +line in the config file, or treated as the whole +.B AUTO +line if none is given. It can be used to disable certain metadata +types when +.I mdadm +is called from a boot script. For example +.br +.B " export MDADM_CONF_AUTO='-ddf -imsm' +.br +will make sure that +.I mdadm +does not automatically assemble any DDF or +IMSM arrays that are found. This can be useful on systems configured +to manage such arrays with +.BR dmraid . + + .SH EXAMPLES .B " mdadm \-\-query /dev/name-of-device" @@ -2960,6 +3011,11 @@ they contain MD super block, and gives identifying information .BR mdadm.conf (5) for more details. +.SS /etc/mdadm.conf.d + +A directory containing configuration files which are read in lexical +order. + .SS {MAP_PATH} When .B \-\-incremental