diff options
author | Neil Brown <neilb@suse.de> | 2007-05-11 16:13:03 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-05-11 16:13:03 +1000 |
commit | b80da6616192d1bbfc65cba14c105ee68e71b517 (patch) | |
tree | ac564165ae86436d6e2290ce1922ff7999e7e442 /mdadm.8 | |
parent | 6f9a21a78fc78f1013522af90229d2741a7a5e2d (diff) | |
download | mdadm-b80da6616192d1bbfc65cba14c105ee68e71b517.tar.gz mdadm-b80da6616192d1bbfc65cba14c105ee68e71b517.tar.xz mdadm-b80da6616192d1bbfc65cba14c105ee68e71b517.zip |
Support failing and removed of detached and faulty devices.
This if you unplug a device and udev removes the entry from /dev,
you can still remove the device.
Diffstat (limited to 'mdadm.8')
-rw-r--r-- | mdadm.8 | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -859,11 +859,29 @@ re-add a device that was recently removed from an array. .TP .BR \-r ", " \-\-remove remove listed devices. They must not be active. i.e. they should -be failed or spare devices. +be failed or spare devices. As well as the name of a device file +(e.g. +.BR /dev/sda1 ) +the words +.B failed +and +.B detached +can be given to +.BR \-\-remove . +The first causes all failed device to be removed. The second causes +any device which is no longer connected to the system (i.e and open +returns +.BR ENXIO ) +to be removed. This will only succeed for devices that are spares or +have already been marked as failed. .TP .BR \-f ", " \-\-fail 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 +the system to be marked as failed. It can then be removed. .TP .BR \-\-set\-faulty @@ -1977,6 +1995,11 @@ appropriate. Rebuild the array map from any current arrays, and then start any that can be started. +.B " mdadm /dev/md4 --fail detached --remove detached" +.br +Any devices which are components of /dev/md4 will be marked as faulty +and then remove from the array. + .B " mdadm \-\-create \-\-help" .br Provide help about the Create mode. |