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 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 write checksum verify errors that have occured
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.
94 Display a histogram of deduplication statistics, showing the allocated
95 .Pq physically present on disk
97 .Pq logically referenced in the pool
98 block counts and sizes by reference count.
99 If repeated, (-DD), also shows statistics on how much of the DDT is resident
102 Only show unhealthy vdevs (not-ONLINE or with errors).
104 Display vdev GUIDs instead of the normal device names
105 These GUIDs can be used in place of device names for the zpool
106 detach/offline/remove/replace commands.
108 Display vdev initialization status.
110 Display real paths for vdevs resolving all symbolic links.
111 This can be used to look up the current block device name regardless of the
113 path used to open it.
115 Display numbers in parsable (exact) values.
117 Display full paths for vdevs instead of only the last component of
119 This can be used in conjunction with the
123 Display the number of leaf vdev slow I/O operations.
124 This is the number of I/O operations that didn't complete in
127 .Pq Sy 30000 No by default .
128 This does not necessarily mean the I/O operations failed to complete, just took
130 unreasonably long amount of time.
131 This may indicate a problem with the underlying storage.
133 Display vdev TRIM status.
134 .It Fl T Sy u Ns | Ns Sy d
135 Display a time stamp.
138 for a printed representation of the internal representation of time.
143 for standard date format.
147 Displays verbose data error information, printing out a complete list of all
148 data errors since the last complete pool scrub.
149 If the head_errlog feature is enabled and files containing errors have been
150 removed then the respective filenames will not be reported in subsequent runs
153 Only display status for pools that are exhibiting errors or are otherwise
155 Warnings about pools not using the latest on-disk format will not be included.
159 .\" These are, respectively, examples 16 from zpool.8
160 .\" Make sure to update them bidirectionally
161 .Ss Example 1 : No Adding output columns
162 Additional columns can be added to the
163 .Nm zpool Cm status No and Nm zpool Cm iostat No output with Fl c .
164 .Bd -literal -compact -offset Ds
165 .No # Nm zpool Cm status Fl c Pa vendor , Ns Pa model , Ns Pa size
166 NAME STATE READ WRITE CKSUM vendor model size
168 mirror-0 ONLINE 0 0 0
169 U1 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
170 U10 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
171 U11 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
172 U12 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
173 U13 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
174 U14 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T
176 .No # Nm zpool Cm iostat Fl vc Pa size
177 capacity operations bandwidth
178 pool alloc free read write read write size
179 ---------- ----- ----- ----- ----- ----- ----- ----
180 rpool 14.6G 54.9G 4 55 250K 2.69M
181 sda1 14.6G 54.9G 4 55 250K 2.69M 70G
182 ---------- ----- ----- ----- ----- ----- ----- ----
185 .Ss Example 2 : No Display the status output in JSON format
186 .Nm zpool Cm status No can output in JSON format if
190 can be used to run a script on each VDEV.
191 .Bd -literal -compact -offset Ds
192 .No # Nm zpool Cm status Fl j Fl c Pa vendor , Ns Pa model , Ns Pa size | Nm jq
195 "command": "zpool status",
203 "guid": "3920273586464696295",
205 "spa_version": "5000",
211 "alloc_space": "62.6G",
212 "total_space": "15.0T",
213 "def_space": "11.3T",
216 "checksum_errors": "0",
220 "vdev_type": "raidz",
221 "guid": "763132626387621737",
223 "alloc_space": "62.5G",
224 "total_space": "10.9T",
225 "def_space": "7.26T",
226 "rep_dev_size": "10.9T",
229 "checksum_errors": "0",
231 "ca1eb824-c371-491d-ac13-37637e35c683": {
232 "name": "ca1eb824-c371-491d-ac13-37637e35c683",
234 "guid": "12841765308123764671",
235 "path": "/dev/disk/by-partuuid/ca1eb824-c371-491d-ac13-37637e35c683",
237 "rep_dev_size": "3.64T",
238 "phys_space": "3.64T",
241 "checksum_errors": "0",
243 "model": "WDC WD40EFZX-68AWUN0",
246 "97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7": {
247 "name": "97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7",
249 "guid": "1527839927278881561",
250 "path": "/dev/disk/by-partuuid/97cd98fb-8fb8-4ac4-bc84-bd8950a7ace7",
252 "rep_dev_size": "3.64T",
253 "phys_space": "3.64T",
256 "checksum_errors": "0",
258 "model": "WDC WD40EFZX-68AWUN0",
261 "e9ddba5f-f948-4734-a472-cb8aa5f0ff65": {
262 "name": "e9ddba5f-f948-4734-a472-cb8aa5f0ff65",
264 "guid": "6982750226085199860",
265 "path": "/dev/disk/by-partuuid/e9ddba5f-f948-4734-a472-cb8aa5f0ff65",
267 "rep_dev_size": "3.64T",
268 "phys_space": "3.64T",
271 "checksum_errors": "0",
273 "model": "WDC WD40EFZX-68AWUN0",
284 "vdev_type": "mirror",
285 "guid": "2227766268377771003",
287 "alloc_space": "89.1M",
288 "total_space": "3.62T",
289 "def_space": "3.62T",
290 "rep_dev_size": "3.62T",
293 "checksum_errors": "0",
295 "db017360-d8e9-4163-961b-144ca75293a3": {
296 "name": "db017360-d8e9-4163-961b-144ca75293a3",
298 "guid": "17880913061695450307",
299 "path": "/dev/disk/by-partuuid/db017360-d8e9-4163-961b-144ca75293a3",
301 "rep_dev_size": "3.63T",
302 "phys_space": "3.64T",
305 "checksum_errors": "0",
307 "model": "WDC WD40EFZX-68AWUN0",
310 "952c3baf-b08a-4a8c-b7fa-33a07af5fe6f": {
311 "name": "952c3baf-b08a-4a8c-b7fa-33a07af5fe6f",
313 "guid": "10276374011610020557",
314 "path": "/dev/disk/by-partuuid/952c3baf-b08a-4a8c-b7fa-33a07af5fe6f",
316 "rep_dev_size": "3.63T",
317 "phys_space": "3.64T",
320 "checksum_errors": "0",
322 "model": "WDC WD40EFZX-68AWUN0",
329 "25d418f8-92bd-4327-b59f-7ef5d5f50d81": {
330 "name": "25d418f8-92bd-4327-b59f-7ef5d5f50d81",
332 "guid": "3935742873387713123",
333 "path": "/dev/disk/by-partuuid/25d418f8-92bd-4327-b59f-7ef5d5f50d81",
335 "alloc_space": "37.4M",
336 "total_space": "444G",
338 "rep_dev_size": "444G",
339 "phys_space": "447G",
342 "checksum_errors": "0",
344 "model": "Micron_5300_MTFDDAK480TDS",
356 .Xr zpool-history 8 ,
359 .Xr zpool-resilver 8 ,