diff options
author | NeilBrown <neilb@suse.de> | 2012-10-23 07:27:15 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-23 07:27:15 +0200 |
commit | 70c55e36b73827579fcb2dadbb6359ef605191ff (patch) | |
tree | af568358a6d2ab5c760820177fe121ab3ca4d0fa /ReadMe.c | |
parent | test: keep separate log file for each failed test. (diff) | |
download | mdadm-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 'ReadMe.c')
-rw-r--r-- | ReadMe.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -146,6 +146,8 @@ struct option long_options[] = { {"remove", 0, 0, Remove}, {"fail", 0, 0, Fail}, {"set-faulty",0, 0, Fail}, + {"replace", 0, 0, Replace}, + {"with", 0, 0, With}, {"run", 0, 0, 'R'}, {"stop", 0, 0, 'S'}, {"readonly", 0, 0, 'o'}, @@ -309,6 +311,7 @@ char OptionHelp[] = " --remove -r : remove subsequent devices\n" " --fail -f : mark subsequent devices as faulty\n" " --set-faulty : same as --fail\n" +" --replace : mark a device for replacement\n" " --run -R : start a partially built array\n" " --stop -S : deactivate array, releasing all resources\n" " --readonly -o : mark array as readonly\n" @@ -462,6 +465,10 @@ char Help_manage[] = " --remove -r : remove subsequent devices, which must not be active\n" " --fail -f : mark subsequent devices a faulty\n" " --set-faulty : same as --fail\n" +" --replace : mark device(s) to be replaced by spares. Once\n" +" : replacement completes, device will be marked faulty\n" +" --with : Indicate which spare a previous '--replace' should\n" +" : prefer to use\n" " --run -R : start a partially built array\n" " --stop -S : deactivate array, releasing all resources\n" " --readonly -o : mark array as readonly\n" |