4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or https://opensource.org/licenses/CDDL-1.0.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24 .\" Copyright (c) 2017 Datto Inc.
25 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26 .\" Copyright 2017 Nexenta Systems, Inc.
27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
35 .Nd show detailed health status for ZFS storage pools
40 .Op Fl T Sy u Ns | Ns Sy d
41 .Op Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns …
43 .Op Ar interval Op Ar count
44 .Op Fl j Op Ar --json-int, --json-flat-vdevs, --json-pool-key-guid
47 Displays the detailed health status for the given pools.
50 is specified, then the status of each pool in the system is displayed.
51 For more information on pool and device health, see the
52 .Sx Device Failure and Recovery
56 If a scrub or resilver is in progress, this command reports the percentage done
57 and the estimated time to completion.
58 Both of these are only approximate, because the amount of data in the pool and
59 the other workloads on the system can change.
62 Display vdev enclosure slot power status (on or off).
63 .It Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns …
64 Run a script (or scripts) on each vdev and include the output as a new column
73 .It Fl j , -json Op Ar --json-int, --json-flat-vdevs, --json-pool-key-guid
74 Display the status for ZFS pools in JSON format.
77 to display numbers in integer format instead of strings.
80 to display vdevs in flat hierarchy instead of nested vdev objects.
82 .Sy --json-pool-key-guid
83 to set pool GUID as key for pool objects instead of pool names.
85 Display the number of Direct I/O read/write checksum verify errors that have
86 occured on a top-level VDEV.
88 .Sx zfs_vdev_direct_write_verify
91 for details about the conditions that can cause Direct I/O write checksum
92 verify failures to occur.
93 Direct I/O reads checksum verify errors can also occur if the contents of the
94 buffer are being manipulated after the I/O has been issued and is in flight.
95 In the case of Direct I/O read checksum verify errors, the I/O will be reissued
98 Display a histogram of deduplication statistics, showing the allocated
99 .Pq physically present on disk
101 .Pq logically referenced in the pool
102 block counts and sizes by reference count.
103 If repeated, (-DD), also shows statistics on how much of the DDT is resident
106 Only show unhealthy vdevs (not-ONLINE or with errors).
108 Display vdev GUIDs instead of the normal device names
109 These GUIDs can be used in place of device names for the zpool
110 detach/offline/remove/replace commands.
112 Display vdev initialization status.
114 Display real paths for vdevs resolving all symbolic links.
115 This can be used to look up the current block device name regardless of the
117 path used to open it.
119 Display numbers in parsable (exact) values.
121 Display full paths for vdevs instead of only the last component of
123 This can be used in conjunction with the
127 Display the number of leaf vdev slow I/O operations.
128 This is the number of I/O operations that didn't complete in
131 .Pq Sy 30000 No by default .
132 This does not necessarily mean the I/O operations failed to complete, just took
134 unreasonably long amount of time.
135 This may indicate a problem with the underlying storage.
137 Display vdev TRIM status.
138 .It Fl T Sy u Ns | Ns Sy d
139 Display a time stamp.
142 for a printed representation of the internal representation of time.
147 for standard date format.
151 Displays verbose data error information, printing out a complete list of all
152 data errors since the last complete pool scrub.
153 If the head_errlog feature is enabled and files containing errors have been
154 removed then the respective filenames will not be reported in subsequent runs
157 Only display status for pools that are exhibiting errors or are otherwise
159 Warnings about pools not using the latest on-disk format will not be included.
163 .\" These are, respectively, examples 16 from zpool.8
164 .\" Make sure to update them bidirectionally
165 .Ss Example 1 : No Adding output columns
166 Additional columns can be added to the
167 .Nm zpool Cm status No and Nm zpool Cm iostat No output with Fl c .
168 .Bd -literal -compact -offset Ds
169 .No # Nm zpool Cm status Fl c Pa vendor , Ns Pa model , Ns Pa size
170 NAME STATE READ WRITE CKSUM vendor model size
172 mirror-0 ONLINE 0 0 0
173 U1 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
174 U10 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
175 U11 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
176 U12 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
177 U13 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
178 U14 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
180 .No # Nm zpool Cm iostat Fl vc Pa size
181 capacity operations bandwidth
182 pool alloc free read write read write size
183 ---------- ----- ----- ----- ----- ----- ----- ----
184 rpool 14.6G 54.9G 4 55 250K 2.69M
185 sda1 14.6G 54.9G 4 55 250K 2.69M 70G
186 ---------- ----- ----- ----- ----- ----- ----- ----
189 .Ss Example 2 : No Display the status output in JSON format
190 .Nm zpool Cm status No can output in JSON format if
194 can be used to run a script on each VDEV.
195 .Bd -literal -compact -offset Ds
196 .No # Nm zpool Cm status Fl j Fl c Pa vendor , Ns Pa model , Ns Pa size | Nm jq
199 "command": "zpool status",
207 "guid": "3920273586464696295",
209 "spa_version": "5000",
215 "alloc_space": "62.6G",
216 "total_space": "15.0T",
217 "def_space": "11.3T",
220 "checksum_errors": "0",
224 "vdev_type": "raidz",
225 "guid": "763132626387621737",
227 "alloc_space": "62.5G",
228 "total_space": "10.9T",
229 "def_space": "7.26T",
230 "rep_dev_size": "10.9T",
233 "checksum_errors": "0",
235 "ca1eb824-c371-491d-ac13-37637e35c683": {
236 "name": "ca1eb824-c371-491d-ac13-37637e35c683",
238 "guid": "12841765308123764671",
239 "path": "/dev/disk/by-partuuid/ca1eb824-c371-491d-ac13-37637e35c683",
241 "rep_dev_size": "3.64T",
242 "phys_space": "3.64T",
245 "checksum_errors": "0",
247 "model": "WDC WD40EFZX-68AWUN0",
250 "97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7": {
251 "name": "97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7",
253 "guid": "1527839927278881561",
254 "path": "/dev/disk/by-partuuid/97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7",
256 "rep_dev_size": "3.64T",
257 "phys_space": "3.64T",
260 "checksum_errors": "0",
262 "model": "WDC WD40EFZX-68AWUN0",
265 "e9ddba5f-f948-4734-a472-cb8aa5f0ff65": {
266 "name": "e9ddba5f-f948-4734-a472-cb8aa5f0ff65",
268 "guid": "6982750226085199860",
269 "path": "/dev/disk/by-partuuid/e9ddba5f-f948-4734-a472-cb8aa5f0ff65",
271 "rep_dev_size": "3.64T",
272 "phys_space": "3.64T",
275 "checksum_errors": "0",
277 "model": "WDC WD40EFZX-68AWUN0",
288 "vdev_type": "mirror",
289 "guid": "2227766268377771003",
291 "alloc_space": "89.1M",
292 "total_space": "3.62T",
293 "def_space": "3.62T",
294 "rep_dev_size": "3.62T",
297 "checksum_errors": "0",
299 "db017360-d8e9-4163-961b-144ca75293a3": {
300 "name": "db017360-d8e9-4163-961b-144ca75293a3",
302 "guid": "17880913061695450307",
303 "path": "/dev/disk/by-partuuid/db017360-d8e9-4163-961b-144ca75293a3",
305 "rep_dev_size": "3.63T",
306 "phys_space": "3.64T",
309 "checksum_errors": "0",
311 "model": "WDC WD40EFZX-68AWUN0",
314 "952c3baf-b08a-4a8c-b7fa-33a07af5fe6f": {
315 "name": "952c3baf-b08a-4a8c-b7fa-33a07af5fe6f",
317 "guid": "10276374011610020557",
318 "path": "/dev/disk/by-partuuid/952c3baf-b08a-4a8c-b7fa-33a07af5fe6f",
320 "rep_dev_size": "3.63T",
321 "phys_space": "3.64T",
324 "checksum_errors": "0",
326 "model": "WDC WD40EFZX-68AWUN0",
333 "25d418f8-92bd-4327-b59f-7ef5d5f50d81": {
334 "name": "25d418f8-92bd-4327-b59f-7ef5d5f50d81",
336 "guid": "3935742873387713123",
337 "path": "/dev/disk/by-partuuid/25d418f8-92bd-4327-b59f-7ef5d5f50d81",
339 "alloc_space": "37.4M",
340 "total_space": "444G",
342 "rep_dev_size": "444G",
343 "phys_space": "447G",
346 "checksum_errors": "0",
348 "model": "Micron_5300_MTFDDAK480TDS",
360 .Xr zpool-history 8 ,
363 .Xr zpool-resilver 8 ,