diff options
Diffstat (limited to 'mdadm.8')
-rw-r--r-- | mdadm.8 | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -135,7 +135,11 @@ This provides a convenient interface to a .I hot-plug system. As each device is detected, .I mdadm -has a chance to include it in some array as appropriate. +has a chance to include it in some array as appropriate. Optionally, +with the +.I \-\-fail +flag is passed in then we will remove the device from any active array +instead of adding it. If a .B CONTAINER @@ -189,7 +193,7 @@ Change the size or shape of an active array. .TP .BR \-I ", " \-\-incremental -Add a single device into an appropriate array, and possibly start the array. +Add/remove a single device to/from an appropriate array, and possibly start the array. .TP .B \-\-auto-detect @@ -1235,6 +1239,12 @@ in .B mdadm.conf as requiring an external bitmap, that bitmap will be attached first. +.TP +.BR \-\-fail ", " \-f +This allows the hot-plug system to remove devices that have fully disappeared +from the kernel. It will first fail and then remove the device from any +array it belongs to. + .SH For Monitor mode: .TP .BR \-m ", " \-\-mail @@ -2141,6 +2151,10 @@ Usage: .I component-device .HP 12 Usage: +.B mdadm \-\-incremental \-\-fail +.I component-device +.HP 12 +Usage: .B mdadm \-\-incremental \-\-rebuild .HP 12 Usage: @@ -2153,6 +2167,11 @@ passed to .B "mdadm \-\-incremental" to be conditionally added to an appropriate array. +Conversely, it can also be used with the +.B \-\-fail +flag to do just the opposite and find whatever array a particular device +is part of and remove the device from the array. + If the device passed is a .B CONTAINER device created by a previous call to |