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 list information about ZFS storage pools
40 .Op Fl j Op Ar --json-int, --json-pool-key-guid
41 .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns …
42 .Op Fl T Sy u Ns | Ns Sy d
44 .Op Ar interval Op Ar count
47 Lists the given pools along with a health status and space usage.
50 are specified, all pools in the system are listed.
53 the information is printed every
58 is specified, the command exits after
62 .It Fl j Op Ar --json-int, --json-pool-key-guid
63 Display the list of pools in JSON format.
66 to display the numbers in integer format instead of strings.
68 .Sy --json-pool-key-guid
69 to set pool GUID as key for pool objects instead of pool names.
71 Display vdev GUIDs instead of the normal device names.
72 These GUIDs can be used in place of device names for the zpool
73 detach/offline/remove/replace commands.
76 Do not display headers, and separate fields by a single tab instead of arbitrary
79 Comma-separated list of properties to display.
82 manual page for a list of valid properties.
84 .Sy name , size , allocated , free , checkpoint, expandsize , fragmentation ,
85 .Sy capacity , dedupratio , health , altroot .
87 Display real paths for vdevs resolving all symbolic links.
88 This can be used to look up the current block device name regardless of the
92 Display numbers in parsable
96 Display full paths for vdevs instead of only the last component of
98 This can be used in conjunction with the
101 .It Fl T Sy u Ns | Ns Sy d
102 Display a time stamp.
105 for a printed representation of the internal representation of time.
110 for standard date format.
115 Reports usage statistics for individual vdevs within the pool, in addition to
116 the pool-wide statistics.
120 .\" These are, respectively, examples 6, 15 from zpool.8
121 .\" Make sure to update them bidirectionally
122 .Ss Example 1 : No Listing Available ZFS Storage Pools
123 The following command lists all available pools on the system.
124 In this case, the pool
126 is faulted due to a missing device.
127 The results from this command are similar to the following:
128 .Bd -literal -compact -offset Ds
129 .No # Nm zpool Cm list
130 NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
131 rpool 19.9G 8.43G 11.4G - 33% 42% 1.00x ONLINE -
132 tank 61.5G 20.0G 41.5G - 48% 32% 1.00x ONLINE -
133 zion - - - - - - - FAULTED -
136 .Ss Example 2 : No Displaying expanded space on a device
137 The following command displays the detailed information for the pool
139 This pool is comprised of a single raidz vdev where one of its devices
140 increased its capacity by 10 GiB.
141 In this example, the pool will not be able to utilize this extra capacity until
142 all the devices under the raidz vdev have been expanded.
143 .Bd -literal -compact -offset Ds
144 .No # Nm zpool Cm list Fl v Ar data
145 NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
146 data 23.9G 14.6G 9.30G - 48% 61% 1.00x ONLINE -
147 raidz1 23.9G 14.6G 9.30G - 48%
153 .Ss Example 3 : No Displaying expanded space on a device
154 The following command lists all available pools on the system in JSON
156 .Bd -literal -compact -offset Ds
157 .No # Nm zpool Cm list Fl j | Nm jq
160 "command": "zpool list",
169 "guid": "15220353080205405147",
171 "spa_version": "5000",