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 39eda14cbcSMatt Macy.Op Fl DigLpPstvx 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 6016038816SMartin Matuska.It Fl c Op Ar SCRIPT1 Ns Oo , Ns Ar SCRIPT2 Oc Ns … 61eda14cbcSMatt MacyRun a script (or scripts) on each vdev and include the output as a new column 62eda14cbcSMatt Macyin the 63eda14cbcSMatt Macy.Nm zpool Cm status 6416038816SMartin Matuskaoutput. 6516038816SMartin MatuskaSee the 66eda14cbcSMatt Macy.Fl c 67eda14cbcSMatt Macyoption of 68eda14cbcSMatt Macy.Nm zpool Cm iostat 69eda14cbcSMatt Macyfor complete details. 70eda14cbcSMatt Macy.It Fl i 71eda14cbcSMatt MacyDisplay vdev initialization status. 72eda14cbcSMatt Macy.It Fl g 7316038816SMartin MatuskaDisplay vdev GUIDs instead of the normal device names 7416038816SMartin MatuskaThese GUIDs can be used in place of device names for the zpool 75eda14cbcSMatt Macydetach/offline/remove/replace commands. 76eda14cbcSMatt Macy.It Fl L 7716038816SMartin MatuskaDisplay real paths for vdevs resolving all symbolic links. 7816038816SMartin MatuskaThis can be used to look up the current block device name regardless of the 79eda14cbcSMatt Macy.Pa /dev/disk/ 80eda14cbcSMatt Macypath used to open it. 81eda14cbcSMatt Macy.It Fl p 82eda14cbcSMatt MacyDisplay numbers in parsable (exact) values. 83eda14cbcSMatt Macy.It Fl P 84eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of 8516038816SMartin Matuskathe path. 8616038816SMartin MatuskaThis can be used in conjunction with the 87eda14cbcSMatt Macy.Fl L 88eda14cbcSMatt Macyflag. 89eda14cbcSMatt Macy.It Fl D 90eda14cbcSMatt MacyDisplay a histogram of deduplication statistics, showing the allocated 91eda14cbcSMatt Macy.Pq physically present on disk 92eda14cbcSMatt Macyand referenced 93eda14cbcSMatt Macy.Pq logically referenced in the pool 94eda14cbcSMatt Macyblock counts and sizes by reference count. 95eda14cbcSMatt Macy.It Fl s 96c03c5b1cSMartin MatuskaDisplay the number of leaf vdev slow I/O operations. 97c03c5b1cSMartin MatuskaThis is the number of I/O operations that didn't complete in 9816038816SMartin Matuska.Sy zio_slow_io_ms 99c03c5b1cSMartin Matuskamilliseconds 100c03c5b1cSMartin Matuska.Pq Sy 30000 No by default . 101bb2d13b6SMartin MatuskaThis does not necessarily mean the I/O operations failed to complete, just took 102bb2d13b6SMartin Matuskaan 10316038816SMartin Matuskaunreasonably long amount of time. 10416038816SMartin MatuskaThis may indicate a problem with the underlying storage. 105eda14cbcSMatt Macy.It Fl t 106eda14cbcSMatt MacyDisplay vdev TRIM status. 107eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d 108eda14cbcSMatt MacyDisplay a time stamp. 109eda14cbcSMatt MacySpecify 110eda14cbcSMatt Macy.Sy u 111eda14cbcSMatt Macyfor a printed representation of the internal representation of time. 112eda14cbcSMatt MacySee 113eda14cbcSMatt Macy.Xr time 2 . 114eda14cbcSMatt MacySpecify 115eda14cbcSMatt Macy.Sy d 116eda14cbcSMatt Macyfor standard date format. 117eda14cbcSMatt MacySee 118eda14cbcSMatt Macy.Xr date 1 . 119eda14cbcSMatt Macy.It Fl v 120eda14cbcSMatt MacyDisplays verbose data error information, printing out a complete list of all 121eda14cbcSMatt Macydata errors since the last complete pool scrub. 122*e639e0d2SMartin MatuskaIf the head_errlog feature is enabled and files containing errors have been 123*e639e0d2SMartin Matuskaremoved then the respective filenames will not be reported in subsequent runs 124*e639e0d2SMartin Matuskaof this command. 125eda14cbcSMatt Macy.It Fl x 126eda14cbcSMatt MacyOnly display status for pools that are exhibiting errors or are otherwise 127eda14cbcSMatt Macyunavailable. 128eda14cbcSMatt MacyWarnings about pools not using the latest on-disk format will not be included. 129eda14cbcSMatt Macy.El 13016038816SMartin Matuska. 131da5137abSMartin Matuska.Sh EXAMPLES 132da5137abSMartin Matuska.\" These are, respectively, examples 16 from zpool.8 133da5137abSMartin Matuska.\" Make sure to update them bidirectionally 134da5137abSMartin Matuska.Ss Example 1 : No Adding output columns 135da5137abSMartin MatuskaAdditional columns can be added to the 136da5137abSMartin Matuska.Nm zpool Cm status No and Nm zpool Cm iostat No output with Fl c . 137da5137abSMartin Matuska.Bd -literal -compact -offset Ds 138da5137abSMartin Matuska.No # Nm zpool Cm status Fl c Pa vendor , Ns Pa model , Ns Pa size 139da5137abSMartin Matuska NAME STATE READ WRITE CKSUM vendor model size 140da5137abSMartin Matuska tank ONLINE 0 0 0 141da5137abSMartin Matuska mirror-0 ONLINE 0 0 0 142da5137abSMartin Matuska U1 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 143da5137abSMartin Matuska U10 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 144da5137abSMartin Matuska U11 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 145da5137abSMartin Matuska U12 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 146da5137abSMartin Matuska U13 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 147da5137abSMartin Matuska U14 ONLINE 0 0 0 SEAGATE ST8000NM0075 7.3T 148da5137abSMartin Matuska 149da5137abSMartin Matuska.No # Nm zpool Cm iostat Fl vc Pa size 150da5137abSMartin Matuska capacity operations bandwidth 151da5137abSMartin Matuskapool alloc free read write read write size 152da5137abSMartin Matuska---------- ----- ----- ----- ----- ----- ----- ---- 153da5137abSMartin Matuskarpool 14.6G 54.9G 4 55 250K 2.69M 154da5137abSMartin Matuska sda1 14.6G 54.9G 4 55 250K 2.69M 70G 155da5137abSMartin Matuska---------- ----- ----- ----- ----- ----- ----- ---- 156da5137abSMartin Matuska.Ed 157da5137abSMartin Matuska. 158eda14cbcSMatt Macy.Sh SEE ALSO 159eda14cbcSMatt Macy.Xr zpool-events 8 , 160eda14cbcSMatt Macy.Xr zpool-history 8 , 161eda14cbcSMatt Macy.Xr zpool-iostat 8 , 162eda14cbcSMatt Macy.Xr zpool-list 8 , 163eda14cbcSMatt Macy.Xr zpool-resilver 8 , 164eda14cbcSMatt Macy.Xr zpool-scrub 8 , 165eda14cbcSMatt Macy.Xr zpool-wait 8 166