1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. 22eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved. 23eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc. 25eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved. 26eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc. 27eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 28eda14cbcSMatt Macy.\" 29da5137abSMartin Matuska.Dd March 16, 2022 30eda14cbcSMatt Macy.Dt ZPOOL-STATUS 8 31eda14cbcSMatt Macy.Os 3216038816SMartin Matuska. 33eda14cbcSMatt Macy.Sh NAME 347877fdebSMatt Macy.Nm zpool-status 3516038816SMartin Matuska.Nd show detailed health status for ZFS storage pools 36eda14cbcSMatt Macy.Sh SYNOPSIS 377877fdebSMatt Macy.Nm zpool 38eda14cbcSMatt Macy.Cm status 39*783d3ff6SMartin Matuska.Op Fl DegiLpPstvx 40eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d 4116038816SMartin Matuska.Op Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns … 4216038816SMartin Matuska.Oo Ar pool Oc Ns … 43eda14cbcSMatt Macy.Op Ar interval Op Ar count 4416038816SMartin Matuska. 45eda14cbcSMatt Macy.Sh DESCRIPTION 46eda14cbcSMatt MacyDisplays the detailed health status for the given pools. 47eda14cbcSMatt MacyIf no 48eda14cbcSMatt Macy.Ar pool 49eda14cbcSMatt Macyis specified, then the status of each pool in the system is displayed. 50eda14cbcSMatt MacyFor more information on pool and device health, see the 5116038816SMartin Matuska.Sx Device Failure and Recovery 52eda14cbcSMatt Macysection of 533ff01b23SMartin Matuska.Xr zpoolconcepts 7 . 54eda14cbcSMatt Macy.Pp 55eda14cbcSMatt MacyIf a scrub or resilver is in progress, this command reports the percentage done 56eda14cbcSMatt Macyand the estimated time to completion. 57eda14cbcSMatt MacyBoth of these are only approximate, because the amount of data in the pool and 58eda14cbcSMatt Macythe other workloads on the system can change. 59eda14cbcSMatt Macy.Bl -tag -width Ds 60b356da80SMartin Matuska.It Fl -power 61b356da80SMartin MatuskaDisplay vdev enclosure slot power status (on or off). 6216038816SMartin Matuska.It Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns … 63eda14cbcSMatt MacyRun a script (or scripts) on each vdev and include the output as a new column 64eda14cbcSMatt Macyin the 65eda14cbcSMatt Macy.Nm zpool Cm status 6616038816SMartin Matuskaoutput. 6716038816SMartin MatuskaSee the 68eda14cbcSMatt Macy.Fl c 69eda14cbcSMatt Macyoption of 70eda14cbcSMatt Macy.Nm zpool Cm iostat 71eda14cbcSMatt Macyfor complete details. 72*783d3ff6SMartin Matuska.It Fl D 73*783d3ff6SMartin MatuskaDisplay a histogram of deduplication statistics, showing the allocated 74*783d3ff6SMartin Matuska.Pq physically present on disk 75*783d3ff6SMartin Matuskaand referenced 76*783d3ff6SMartin Matuska.Pq logically referenced in the pool 77*783d3ff6SMartin Matuskablock counts and sizes by reference count. 78a4e5e010SMartin Matuska.It Fl e 79a4e5e010SMartin MatuskaOnly show unhealthy vdevs (not-ONLINE or with errors). 80eda14cbcSMatt Macy.It Fl g 8116038816SMartin MatuskaDisplay vdev GUIDs instead of the normal device names 8216038816SMartin MatuskaThese GUIDs can be used in place of device names for the zpool 83eda14cbcSMatt Macydetach/offline/remove/replace commands. 84*783d3ff6SMartin Matuska.It Fl i 85*783d3ff6SMartin MatuskaDisplay vdev initialization status. 86eda14cbcSMatt Macy.It Fl L 8716038816SMartin MatuskaDisplay real paths for vdevs resolving all symbolic links. 8816038816SMartin MatuskaThis can be used to look up the current block device name regardless of the 89eda14cbcSMatt Macy.Pa /dev/disk/ 90eda14cbcSMatt Macypath used to open it. 91eda14cbcSMatt Macy.It Fl p 92eda14cbcSMatt MacyDisplay numbers in parsable (exact) values. 93eda14cbcSMatt Macy.It Fl P 94eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of 9516038816SMartin Matuskathe path. 9616038816SMartin MatuskaThis can be used in conjunction with the 97eda14cbcSMatt Macy.Fl L 98eda14cbcSMatt Macyflag. 99eda14cbcSMatt Macy.It Fl s 100c03c5b1cSMartin MatuskaDisplay the number of leaf vdev slow I/O operations. 101c03c5b1cSMartin MatuskaThis is the number of I/O operations that didn't complete in 10216038816SMartin Matuska.Sy zio_slow_io_ms 103c03c5b1cSMartin Matuskamilliseconds 104c03c5b1cSMartin Matuska.Pq Sy 30000 No by default . 105bb2d13b6SMartin MatuskaThis does not necessarily mean the I/O operations failed to complete, just took 106bb2d13b6SMartin Matuskaan 10716038816SMartin Matuskaunreasonably long amount of time. 10816038816SMartin MatuskaThis may indicate a problem with the underlying storage. 109eda14cbcSMatt Macy.It Fl t 110eda14cbcSMatt MacyDisplay vdev TRIM status. 111eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d 112eda14cbcSMatt MacyDisplay a time stamp. 113eda14cbcSMatt MacySpecify 114eda14cbcSMatt Macy.Sy u 115eda14cbcSMatt Macyfor a printed representation of the internal representation of time. 116eda14cbcSMatt MacySee 117fd45b686SMartin Matuska.Xr time 1 . 118eda14cbcSMatt MacySpecify 119eda14cbcSMatt Macy.Sy d 120eda14cbcSMatt Macyfor standard date format. 121eda14cbcSMatt MacySee 122eda14cbcSMatt Macy.Xr date 1 . 123eda14cbcSMatt Macy.It Fl v 124eda14cbcSMatt MacyDisplays verbose data error information, printing out a complete list of all 125eda14cbcSMatt Macydata errors since the last complete pool scrub. 126e639e0d2SMartin MatuskaIf the head_errlog feature is enabled and files containing errors have been 127e639e0d2SMartin Matuskaremoved then the respective filenames will not be reported in subsequent runs 128e639e0d2SMartin Matuskaof this command. 129eda14cbcSMatt Macy.It Fl x 130eda14cbcSMatt MacyOnly display status for pools that are exhibiting errors or are otherwise 131eda14cbcSMatt Macyunavailable. 132eda14cbcSMatt MacyWarnings about pools not using the latest on-disk format will not be included. 133eda14cbcSMatt Macy.El 13416038816SMartin Matuska. 135da5137abSMartin Matuska.Sh EXAMPLES 136da5137abSMartin Matuska.\" These are, respectively, examples 16 from zpool.8 137da5137abSMartin Matuska.\" Make sure to update them bidirectionally 138da5137abSMartin Matuska.Ss Example 1 : No Adding output columns 139da5137abSMartin MatuskaAdditional columns can be added to the 140da5137abSMartin Matuska.Nm zpool Cm status No and Nm zpool Cm iostat No output with Fl c . 141da5137abSMartin Matuska.Bd -literal -compact -offset Ds 142da5137abSMartin Matuska.No # Nm zpool Cm status Fl c Pa vendor , Ns Pa model , Ns Pa size 143da5137abSMartin Matuska NAME STATE READ WRITE CKSUM vendor model size 144da5137abSMartin Matuska tank ONLINE 0 0 0 145da5137abSMartin Matuska mirror-0 ONLINE 0 0 0 146da5137abSMartin Matuska U1 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 147da5137abSMartin Matuska U10 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 148da5137abSMartin Matuska U11 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 149da5137abSMartin Matuska U12 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 150da5137abSMartin Matuska U13 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 151da5137abSMartin Matuska U14 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 152da5137abSMartin Matuska 153da5137abSMartin Matuska.No # Nm zpool Cm iostat Fl vc Pa size 154da5137abSMartin Matuska capacity operations bandwidth 155da5137abSMartin Matuskapool alloc free read write read write size 156da5137abSMartin Matuska---------- ----- ----- ----- ----- ----- ----- ---- 157da5137abSMartin Matuskarpool 14.6G 54.9G 4 55 250K 2.69M 158da5137abSMartin Matuska sda1 14.6G 54.9G 4 55 250K 2.69M 70G 159da5137abSMartin Matuska---------- ----- ----- ----- ----- ----- ----- ---- 160da5137abSMartin Matuska.Ed 161da5137abSMartin Matuska. 162eda14cbcSMatt Macy.Sh SEE ALSO 163eda14cbcSMatt Macy.Xr zpool-events 8 , 164eda14cbcSMatt Macy.Xr zpool-history 8 , 165eda14cbcSMatt Macy.Xr zpool-iostat 8 , 166eda14cbcSMatt Macy.Xr zpool-list 8 , 167eda14cbcSMatt Macy.Xr zpool-resilver 8 , 168eda14cbcSMatt Macy.Xr zpool-scrub 8 , 169eda14cbcSMatt Macy.Xr zpool-wait 8 170