summaryrefslogtreecommitdiffstats
path: root/mdadm.8.in
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-23 07:27:15 +0200
committerNeilBrown <neilb@suse.de>2012-10-23 07:27:15 +0200
commit70c55e36b73827579fcb2dadbb6359ef605191ff (patch)
treeaf568358a6d2ab5c760820177fe121ab3ca4d0fa /mdadm.8.in
parenttest: keep separate log file for each failed test. (diff)
downloadmdadm-70c55e36b73827579fcb2dadbb6359ef605191ff.tar.xz
mdadm-70c55e36b73827579fcb2dadbb6359ef605191ff.zip
Add support for --replace and --with
--replace can be used to replace a device without completely failing it. Once the replacement completes the device will be failed. --with can indicate which of several spares to use. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.8.in')
-rw-r--r--mdadm.8.in24
1 files changed, 22 insertions, 2 deletions
diff --git a/mdadm.8.in b/mdadm.8.in
index d30963b6..23e31228 100644
--- a/mdadm.8.in
+++ b/mdadm.8.in
@@ -216,8 +216,9 @@ to detect and assemble arrays \(em possibly in an
If a device is given before any options, or if the first option is
.BR \-\-add ,
.BR \-\-fail ,
-or
.BR \-\-remove ,
+or
+.BR \-\-replace ,
then the MANAGE mode is assumed.
Anything other than these will cause the
.B Misc
@@ -1283,7 +1284,7 @@ have already been marked as failed.
.TP
.BR \-f ", " \-\-fail
-mark listed devices as faulty.
+Mark listed devices as faulty.
As well as the name of a device file, the word
.B detached
can be given. This will cause any device that has been detached from
@@ -1295,6 +1296,25 @@ same as
.BR \-\-fail .
.TP
+.B \-\-replace
+Mark listed devices as requiring replacement. As soon as a spare is
+available, it will be rebuilt and will replace the marked device.
+This is similar to marking a device as faulty, but the device remains
+in service during the recovery process to increase resilience against
+multiple failures. When the replacement process finishes, the
+replaced device will be marked as faulty.
+
+.TP
+.B \-\-with
+This can follow a list of
+.B \-\-replace
+devices. The devices listed after
+.B \-\-with
+will be preferentially used to replace the devices listed after
+.BR \-\-replace .
+These device must already be spare devices in the array.
+
+.TP
.BR \-\-write\-mostly
Subsequent devices that are added or re\-added will have the 'write-mostly'
flag set. This is only valid for RAID1 and means that the 'md' driver