diff options
author | Tony Hutter <[email protected]> | 2017-05-19 12:30:16 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-05-19 12:30:16 -0700 |
commit | 4a283c7f77eb5065e9f03b122bf8ead4f4a1e2be (patch) | |
tree | 2a4daf72ae62343aa7f24305a592fc2f31bb2eeb /man/man8 | |
parent | a32df59e187a6187eb96c52b93cf02e8af51f327 (diff) |
Force fault a vdev with 'zpool offline -f'
This patch adds a '-f' option to 'zpool offline' to fault a vdev
instead of bringing it offline. Unlike the OFFLINE state, the
FAULTED state will trigger the FMA code, allowing for things like
autoreplace and triggering the slot fault LED. The -f faults
persist across imports, unless they were set with the temporary
(-t) flag. Both persistent and temporary faults can be cleared
with zpool clear.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #6094
Diffstat (limited to 'man/man8')
-rw-r--r-- | man/man8/zpool.8 | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8 index 89ef1bc7b..8b793623e 100644 --- a/man/man8/zpool.8 +++ b/man/man8/zpool.8 @@ -114,7 +114,7 @@ zpool \- configures ZFS storage pools .LP .nf -\fBzpool offline\fR [\fB-t\fR] \fIpool\fR \fIdevice\fR ... +\fBzpool offline\fR [\fB-f\fR] [\fB-t\fR] \fIpool\fR \fIdevice\fR ... .fi .LP @@ -1908,13 +1908,21 @@ Verbose statistics. Reports usage statistics for individual \fIvdevs\fR within t .sp .ne 2 .na -\fB\fBzpool offline\fR [\fB-t\fR] \fIpool\fR \fIdevice\fR ...\fR +\fB\fBzpool offline\fR [\fB-f\fR] [\fB-t\fR] \fIpool\fR \fIdevice\fR ...\fR .ad .sp .6 .RS 4n Takes the specified physical device offline. While the \fIdevice\fR is offline, no attempt is made to read or write to the device. .sp -This command is not applicable to spares or cache devices. +.ne 2 +.na +\fB\fB-f\fR\fR +.ad +.RS 6n +Force fault. Instead of offlining the disk, put it into a faulted state. The +fault will persist across imports unless the \fB-t\fR flag was specified. +.RE + .sp .ne 2 .na |