1*61145dc2SMartin Matuska.\" SPDX-License-Identifier: CDDL-1.0 2eda14cbcSMatt Macy.\" 3eda14cbcSMatt Macy.\" CDDL HEADER START 4eda14cbcSMatt Macy.\" 5eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 6eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 7eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 8eda14cbcSMatt Macy.\" 9eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0. 11eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 12eda14cbcSMatt Macy.\" and limitations under the License. 13eda14cbcSMatt Macy.\" 14eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 15eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 17eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 18eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 19eda14cbcSMatt Macy.\" 20eda14cbcSMatt Macy.\" CDDL HEADER END 21eda14cbcSMatt Macy.\" 22eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. 23eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc. 26eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved. 27eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc. 28eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 29eda14cbcSMatt Macy.\" 30da5137abSMartin Matuska.Dd March 16, 2022 31eda14cbcSMatt Macy.Dt ZPOOL-LIST 8 32eda14cbcSMatt Macy.Os 3316038816SMartin Matuska. 34eda14cbcSMatt Macy.Sh NAME 357877fdebSMatt Macy.Nm zpool-list 3616038816SMartin Matuska.Nd list information about ZFS storage pools 37eda14cbcSMatt Macy.Sh SYNOPSIS 387877fdebSMatt Macy.Nm zpool 39eda14cbcSMatt Macy.Cm list 40eda14cbcSMatt Macy.Op Fl HgLpPv 41ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int, --json-pool-key-guid 4216038816SMartin Matuska.Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns … 43eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d 4416038816SMartin Matuska.Oo Ar pool Oc Ns … 45eda14cbcSMatt Macy.Op Ar interval Op Ar count 4616038816SMartin Matuska. 47eda14cbcSMatt Macy.Sh DESCRIPTION 48eda14cbcSMatt MacyLists the given pools along with a health status and space usage. 49eda14cbcSMatt MacyIf no 50eda14cbcSMatt Macy.Ar pool Ns s 51eda14cbcSMatt Macyare specified, all pools in the system are listed. 52eda14cbcSMatt MacyWhen given an 53eda14cbcSMatt Macy.Ar interval , 54eda14cbcSMatt Macythe information is printed every 55eda14cbcSMatt Macy.Ar interval 5616038816SMartin Matuskaseconds until killed. 57eda14cbcSMatt MacyIf 58eda14cbcSMatt Macy.Ar count 59eda14cbcSMatt Macyis specified, the command exits after 60eda14cbcSMatt Macy.Ar count 61eda14cbcSMatt Macyreports are printed. 62eda14cbcSMatt Macy.Bl -tag -width Ds 6387bf66d4SMartin Matuska.It Fl j , -json Op Ar --json-int, --json-pool-key-guid 64ce4dcb97SMartin MatuskaDisplay the list of pools in JSON format. 65ce4dcb97SMartin MatuskaSpecify 66ce4dcb97SMartin Matuska.Sy --json-int 67ce4dcb97SMartin Matuskato display the numbers in integer format instead of strings. 68ce4dcb97SMartin MatuskaSpecify 69ce4dcb97SMartin Matuska.Sy --json-pool-key-guid 70ce4dcb97SMartin Matuskato set pool GUID as key for pool objects instead of pool names. 71eda14cbcSMatt Macy.It Fl g 7216038816SMartin MatuskaDisplay vdev GUIDs instead of the normal device names. 7316038816SMartin MatuskaThese GUIDs can be used in place of device names for the zpool 74eda14cbcSMatt Macydetach/offline/remove/replace commands. 75eda14cbcSMatt Macy.It Fl H 76eda14cbcSMatt MacyScripted mode. 77eda14cbcSMatt MacyDo not display headers, and separate fields by a single tab instead of arbitrary 78eda14cbcSMatt Macyspace. 79eda14cbcSMatt Macy.It Fl o Ar property 80eda14cbcSMatt MacyComma-separated list of properties to display. 81eda14cbcSMatt MacySee the 823ff01b23SMartin Matuska.Xr zpoolprops 7 83eda14cbcSMatt Macymanual page for a list of valid properties. 84eda14cbcSMatt MacyThe default list is 8516038816SMartin Matuska.Sy name , size , allocated , free , checkpoint, expandsize , fragmentation , 8616038816SMartin Matuska.Sy capacity , dedupratio , health , altroot . 87eda14cbcSMatt Macy.It Fl L 8816038816SMartin MatuskaDisplay real paths for vdevs resolving all symbolic links. 8916038816SMartin MatuskaThis can be used to look up the current block device name regardless of the 9016038816SMartin Matuska.Pa /dev/disk 9116038816SMartin Matuskapath used to open it. 92eda14cbcSMatt Macy.It Fl p 93eda14cbcSMatt MacyDisplay numbers in parsable 94eda14cbcSMatt Macy.Pq exact 95eda14cbcSMatt Macyvalues. 96eda14cbcSMatt Macy.It Fl P 97eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of 9816038816SMartin Matuskathe path. 9916038816SMartin MatuskaThis can be used in conjunction with the 100eda14cbcSMatt Macy.Fl L 101eda14cbcSMatt Macyflag. 102eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d 103eda14cbcSMatt MacyDisplay a time stamp. 104eda14cbcSMatt MacySpecify 105eda14cbcSMatt Macy.Sy u 106eda14cbcSMatt Macyfor a printed representation of the internal representation of time. 107eda14cbcSMatt MacySee 108fd45b686SMartin Matuska.Xr time 1 . 109eda14cbcSMatt MacySpecify 110eda14cbcSMatt Macy.Sy d 111eda14cbcSMatt Macyfor standard date format. 112eda14cbcSMatt MacySee 113eda14cbcSMatt Macy.Xr date 1 . 114eda14cbcSMatt Macy.It Fl v 115eda14cbcSMatt MacyVerbose statistics. 116eda14cbcSMatt MacyReports usage statistics for individual vdevs within the pool, in addition to 1177877fdebSMatt Macythe pool-wide statistics. 118eda14cbcSMatt Macy.El 11916038816SMartin Matuska. 120da5137abSMartin Matuska.Sh EXAMPLES 121da5137abSMartin Matuska.\" These are, respectively, examples 6, 15 from zpool.8 122da5137abSMartin Matuska.\" Make sure to update them bidirectionally 123da5137abSMartin Matuska.Ss Example 1 : No Listing Available ZFS Storage Pools 124da5137abSMartin MatuskaThe following command lists all available pools on the system. 125da5137abSMartin MatuskaIn this case, the pool 126da5137abSMartin Matuska.Ar zion 127da5137abSMartin Matuskais faulted due to a missing device. 128da5137abSMartin MatuskaThe results from this command are similar to the following: 129da5137abSMartin Matuska.Bd -literal -compact -offset Ds 130da5137abSMartin Matuska.No # Nm zpool Cm list 131da5137abSMartin MatuskaNAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT 132da5137abSMartin Matuskarpool 19.9G 8.43G 11.4G - 33% 42% 1.00x ONLINE - 133da5137abSMartin Matuskatank 61.5G 20.0G 41.5G - 48% 32% 1.00x ONLINE - 134da5137abSMartin Matuskazion - - - - - - - FAULTED - 135da5137abSMartin Matuska.Ed 136da5137abSMartin Matuska. 137da5137abSMartin Matuska.Ss Example 2 : No Displaying expanded space on a device 138da5137abSMartin MatuskaThe following command displays the detailed information for the pool 139da5137abSMartin Matuska.Ar data . 140da5137abSMartin MatuskaThis pool is comprised of a single raidz vdev where one of its devices 141716fd348SMartin Matuskaincreased its capacity by 10 GiB. 142da5137abSMartin MatuskaIn this example, the pool will not be able to utilize this extra capacity until 143da5137abSMartin Matuskaall the devices under the raidz vdev have been expanded. 144da5137abSMartin Matuska.Bd -literal -compact -offset Ds 145da5137abSMartin Matuska.No # Nm zpool Cm list Fl v Ar data 146da5137abSMartin MatuskaNAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT 147da5137abSMartin Matuskadata 23.9G 14.6G 9.30G - 48% 61% 1.00x ONLINE - 148da5137abSMartin Matuska raidz1 23.9G 14.6G 9.30G - 48% 149da5137abSMartin Matuska sda - - - - - 150da5137abSMartin Matuska sdb - - - 10G - 151da5137abSMartin Matuska sdc - - - - - 152da5137abSMartin Matuska.Ed 153da5137abSMartin Matuska. 154ce4dcb97SMartin Matuska.Ss Example 3 : No Displaying expanded space on a device 155ce4dcb97SMartin MatuskaThe following command lists all available pools on the system in JSON 156ce4dcb97SMartin Matuskaformat. 157ce4dcb97SMartin Matuska.Bd -literal -compact -offset Ds 158ce4dcb97SMartin Matuska.No # Nm zpool Cm list Fl j | Nm jq 159ce4dcb97SMartin Matuska{ 160ce4dcb97SMartin Matuska "output_version": { 161ce4dcb97SMartin Matuska "command": "zpool list", 162ce4dcb97SMartin Matuska "vers_major": 0, 163ce4dcb97SMartin Matuska "vers_minor": 1 164ce4dcb97SMartin Matuska }, 165ce4dcb97SMartin Matuska "pools": { 166ce4dcb97SMartin Matuska "tank": { 167ce4dcb97SMartin Matuska "name": "tank", 168ce4dcb97SMartin Matuska "type": "POOL", 169ce4dcb97SMartin Matuska "state": "ONLINE", 170ce4dcb97SMartin Matuska "guid": "15220353080205405147", 171ce4dcb97SMartin Matuska "txg": "2671", 172ce4dcb97SMartin Matuska "spa_version": "5000", 173ce4dcb97SMartin Matuska "zpl_version": "5", 174ce4dcb97SMartin Matuska "properties": { 175ce4dcb97SMartin Matuska "size": { 176ce4dcb97SMartin Matuska "value": "111G", 177ce4dcb97SMartin Matuska "source": { 178ce4dcb97SMartin Matuska "type": "NONE", 179ce4dcb97SMartin Matuska "data": "-" 180ce4dcb97SMartin Matuska } 181ce4dcb97SMartin Matuska }, 182ce4dcb97SMartin Matuska "allocated": { 183ce4dcb97SMartin Matuska "value": "30.8G", 184ce4dcb97SMartin Matuska "source": { 185ce4dcb97SMartin Matuska "type": "NONE", 186ce4dcb97SMartin Matuska "data": "-" 187ce4dcb97SMartin Matuska } 188ce4dcb97SMartin Matuska }, 189ce4dcb97SMartin Matuska "free": { 190ce4dcb97SMartin Matuska "value": "80.2G", 191ce4dcb97SMartin Matuska "source": { 192ce4dcb97SMartin Matuska "type": "NONE", 193ce4dcb97SMartin Matuska "data": "-" 194ce4dcb97SMartin Matuska } 195ce4dcb97SMartin Matuska }, 196ce4dcb97SMartin Matuska "checkpoint": { 197ce4dcb97SMartin Matuska "value": "-", 198ce4dcb97SMartin Matuska "source": { 199ce4dcb97SMartin Matuska "type": "NONE", 200ce4dcb97SMartin Matuska "data": "-" 201ce4dcb97SMartin Matuska } 202ce4dcb97SMartin Matuska }, 203ce4dcb97SMartin Matuska "expandsize": { 204ce4dcb97SMartin Matuska "value": "-", 205ce4dcb97SMartin Matuska "source": { 206ce4dcb97SMartin Matuska "type": "NONE", 207ce4dcb97SMartin Matuska "data": "-" 208ce4dcb97SMartin Matuska } 209ce4dcb97SMartin Matuska }, 210ce4dcb97SMartin Matuska "fragmentation": { 211ce4dcb97SMartin Matuska "value": "0%", 212ce4dcb97SMartin Matuska "source": { 213ce4dcb97SMartin Matuska "type": "NONE", 214ce4dcb97SMartin Matuska "data": "-" 215ce4dcb97SMartin Matuska } 216ce4dcb97SMartin Matuska }, 217ce4dcb97SMartin Matuska "capacity": { 218ce4dcb97SMartin Matuska "value": "27%", 219ce4dcb97SMartin Matuska "source": { 220ce4dcb97SMartin Matuska "type": "NONE", 221ce4dcb97SMartin Matuska "data": "-" 222ce4dcb97SMartin Matuska } 223ce4dcb97SMartin Matuska }, 224ce4dcb97SMartin Matuska "dedupratio": { 225ce4dcb97SMartin Matuska "value": "1.00x", 226ce4dcb97SMartin Matuska "source": { 227ce4dcb97SMartin Matuska "type": "NONE", 228ce4dcb97SMartin Matuska "data": "-" 229ce4dcb97SMartin Matuska } 230ce4dcb97SMartin Matuska }, 231ce4dcb97SMartin Matuska "health": { 232ce4dcb97SMartin Matuska "value": "ONLINE", 233ce4dcb97SMartin Matuska "source": { 234ce4dcb97SMartin Matuska "type": "NONE", 235ce4dcb97SMartin Matuska "data": "-" 236ce4dcb97SMartin Matuska } 237ce4dcb97SMartin Matuska }, 238ce4dcb97SMartin Matuska "altroot": { 239ce4dcb97SMartin Matuska "value": "-", 240ce4dcb97SMartin Matuska "source": { 241ce4dcb97SMartin Matuska "type": "DEFAULT", 242ce4dcb97SMartin Matuska "data": "-" 243ce4dcb97SMartin Matuska } 244ce4dcb97SMartin Matuska } 245ce4dcb97SMartin Matuska } 246ce4dcb97SMartin Matuska } 247ce4dcb97SMartin Matuska } 248ce4dcb97SMartin Matuska} 249ce4dcb97SMartin Matuska 250ce4dcb97SMartin Matuska.Ed 251ce4dcb97SMartin Matuska. 252eda14cbcSMatt Macy.Sh SEE ALSO 253eda14cbcSMatt Macy.Xr zpool-import 8 , 254eda14cbcSMatt Macy.Xr zpool-status 8 255