xref: /freebsd-src/sys/contrib/openzfs/man/man8/zpool-status.8 (revision eda14cbc264d6969b02f2b1994cef11148e914f1)
1*eda14cbcSMatt Macy.\"
2*eda14cbcSMatt Macy.\" CDDL HEADER START
3*eda14cbcSMatt Macy.\"
4*eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
5*eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
6*eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
7*eda14cbcSMatt Macy.\"
8*eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing.
10*eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
11*eda14cbcSMatt Macy.\" and limitations under the License.
12*eda14cbcSMatt Macy.\"
13*eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
14*eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
16*eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
17*eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
18*eda14cbcSMatt Macy.\"
19*eda14cbcSMatt Macy.\" CDDL HEADER END
20*eda14cbcSMatt Macy.\"
21*eda14cbcSMatt Macy.\"
22*eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
23*eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
24*eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
25*eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc.
26*eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
27*eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc.
28*eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
29*eda14cbcSMatt Macy.\"
30*eda14cbcSMatt Macy.Dd May 15, 2020
31*eda14cbcSMatt Macy.Dt ZPOOL-STATUS 8
32*eda14cbcSMatt Macy.Os
33*eda14cbcSMatt Macy.Sh NAME
34*eda14cbcSMatt Macy.Nm zpool Ns Pf - Cm status
35*eda14cbcSMatt Macy.Nd Display detailed health status for the given ZFS storage pools
36*eda14cbcSMatt Macy.Sh SYNOPSIS
37*eda14cbcSMatt Macy.Nm
38*eda14cbcSMatt Macy.Cm status
39*eda14cbcSMatt Macy.Oo Fl c Ar SCRIPT Oc
40*eda14cbcSMatt Macy.Op Fl DigLpPstvx
41*eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d
42*eda14cbcSMatt Macy.Oo Ar pool Oc Ns ...
43*eda14cbcSMatt Macy.Op Ar interval Op Ar count
44*eda14cbcSMatt Macy.Sh DESCRIPTION
45*eda14cbcSMatt Macy.Bl -tag -width Ds
46*eda14cbcSMatt Macy.It Xo
47*eda14cbcSMatt Macy.Nm
48*eda14cbcSMatt Macy.Cm status
49*eda14cbcSMatt Macy.Op Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns ...
50*eda14cbcSMatt Macy.Op Fl DigLpPstvx
51*eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d
52*eda14cbcSMatt Macy.Oo Ar pool Oc Ns ...
53*eda14cbcSMatt Macy.Op Ar interval Op Ar count
54*eda14cbcSMatt Macy.Xc
55*eda14cbcSMatt MacyDisplays the detailed health status for the given pools.
56*eda14cbcSMatt MacyIf no
57*eda14cbcSMatt Macy.Ar pool
58*eda14cbcSMatt Macyis specified, then the status of each pool in the system is displayed.
59*eda14cbcSMatt MacyFor more information on pool and device health, see the
60*eda14cbcSMatt Macy.Em Device Failure and Recovery
61*eda14cbcSMatt Macysection of
62*eda14cbcSMatt Macy.Xr zpoolconcepts 8 .
63*eda14cbcSMatt Macy.Pp
64*eda14cbcSMatt MacyIf a scrub or resilver is in progress, this command reports the percentage done
65*eda14cbcSMatt Macyand the estimated time to completion.
66*eda14cbcSMatt MacyBoth of these are only approximate, because the amount of data in the pool and
67*eda14cbcSMatt Macythe other workloads on the system can change.
68*eda14cbcSMatt Macy.Bl -tag -width Ds
69*eda14cbcSMatt Macy.It Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns ...
70*eda14cbcSMatt MacyRun a script (or scripts) on each vdev and include the output as a new column
71*eda14cbcSMatt Macyin the
72*eda14cbcSMatt Macy.Nm zpool Cm status
73*eda14cbcSMatt Macyoutput.  See the
74*eda14cbcSMatt Macy.Fl c
75*eda14cbcSMatt Macyoption of
76*eda14cbcSMatt Macy.Nm zpool Cm iostat
77*eda14cbcSMatt Macyfor complete details.
78*eda14cbcSMatt Macy.It Fl i
79*eda14cbcSMatt MacyDisplay vdev initialization status.
80*eda14cbcSMatt Macy.It Fl g
81*eda14cbcSMatt MacyDisplay vdev GUIDs instead of the normal device names. These GUIDs
82*eda14cbcSMatt Macycan be used in place of device names for the zpool
83*eda14cbcSMatt Macydetach/offline/remove/replace commands.
84*eda14cbcSMatt Macy.It Fl L
85*eda14cbcSMatt MacyDisplay real paths for vdevs resolving all symbolic links. This can
86*eda14cbcSMatt Macybe used to look up the current block device name regardless of the
87*eda14cbcSMatt Macy.Pa /dev/disk/
88*eda14cbcSMatt Macypath used to open it.
89*eda14cbcSMatt Macy.It Fl p
90*eda14cbcSMatt MacyDisplay numbers in parsable (exact) values.
91*eda14cbcSMatt Macy.It Fl P
92*eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of
93*eda14cbcSMatt Macythe path. This can be used in conjunction with the
94*eda14cbcSMatt Macy.Fl L
95*eda14cbcSMatt Macyflag.
96*eda14cbcSMatt Macy.It Fl D
97*eda14cbcSMatt MacyDisplay a histogram of deduplication statistics, showing the allocated
98*eda14cbcSMatt Macy.Pq physically present on disk
99*eda14cbcSMatt Macyand referenced
100*eda14cbcSMatt Macy.Pq logically referenced in the pool
101*eda14cbcSMatt Macyblock counts and sizes by reference count.
102*eda14cbcSMatt Macy.It Fl s
103*eda14cbcSMatt MacyDisplay the number of leaf VDEV slow IOs.  This is the number of IOs that
104*eda14cbcSMatt Macydidn't complete in \fBzio_slow_io_ms\fR milliseconds (default 30 seconds).
105*eda14cbcSMatt MacyThis does not necessarily mean the IOs failed to complete, just took an
106*eda14cbcSMatt Macyunreasonably long amount of time.  This may indicate a problem with the
107*eda14cbcSMatt Macyunderlying storage.
108*eda14cbcSMatt Macy.It Fl t
109*eda14cbcSMatt MacyDisplay vdev TRIM status.
110*eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d
111*eda14cbcSMatt MacyDisplay a time stamp.
112*eda14cbcSMatt MacySpecify
113*eda14cbcSMatt Macy.Sy u
114*eda14cbcSMatt Macyfor a printed representation of the internal representation of time.
115*eda14cbcSMatt MacySee
116*eda14cbcSMatt Macy.Xr time 2 .
117*eda14cbcSMatt MacySpecify
118*eda14cbcSMatt Macy.Sy d
119*eda14cbcSMatt Macyfor standard date format.
120*eda14cbcSMatt MacySee
121*eda14cbcSMatt Macy.Xr date 1 .
122*eda14cbcSMatt Macy.It Fl v
123*eda14cbcSMatt MacyDisplays verbose data error information, printing out a complete list of all
124*eda14cbcSMatt Macydata errors since the last complete pool scrub.
125*eda14cbcSMatt Macy.It Fl x
126*eda14cbcSMatt MacyOnly display status for pools that are exhibiting errors or are otherwise
127*eda14cbcSMatt Macyunavailable.
128*eda14cbcSMatt MacyWarnings about pools not using the latest on-disk format will not be included.
129*eda14cbcSMatt Macy.El
130*eda14cbcSMatt Macy.El
131*eda14cbcSMatt Macy.Sh SEE ALSO
132*eda14cbcSMatt Macy.Xr zpool-events 8 ,
133*eda14cbcSMatt Macy.Xr zpool-history 8 ,
134*eda14cbcSMatt Macy.Xr zpool-iostat 8 ,
135*eda14cbcSMatt Macy.Xr zpool-list 8 ,
136*eda14cbcSMatt Macy.Xr zpool-resilver 8 ,
137*eda14cbcSMatt Macy.Xr zpool-scrub 8 ,
138*eda14cbcSMatt Macy.Xr zpool-wait 8
139