xref: /freebsd-src/sys/contrib/openzfs/man/man8/zpool-list.8 (revision 7877fdebeeb35fad1cbbafce22598b1bdf97c786)
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
9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing.
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.\"
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.\"
30eda14cbcSMatt Macy.Dd August 9, 2019
31eda14cbcSMatt Macy.Dt ZPOOL-LIST 8
32eda14cbcSMatt Macy.Os
33eda14cbcSMatt Macy.Sh NAME
34*7877fdebSMatt Macy.Nm zpool-list
35eda14cbcSMatt Macy.Nd Lists ZFS storage pools along with a health status and space usage
36eda14cbcSMatt Macy.Sh SYNOPSIS
37*7877fdebSMatt Macy.Nm zpool
38eda14cbcSMatt Macy.Cm list
39eda14cbcSMatt Macy.Op Fl HgLpPv
40eda14cbcSMatt Macy.Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
41eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d
42eda14cbcSMatt Macy.Oo Ar pool Oc Ns ...
43eda14cbcSMatt Macy.Op Ar interval Op Ar count
44eda14cbcSMatt Macy.Sh DESCRIPTION
45eda14cbcSMatt Macy.Bl -tag -width Ds
46eda14cbcSMatt Macy.It Xo
47*7877fdebSMatt Macy.Nm zpool
48eda14cbcSMatt Macy.Cm list
49eda14cbcSMatt Macy.Op Fl HgLpPv
50eda14cbcSMatt Macy.Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
51eda14cbcSMatt Macy.Op Fl T Sy u Ns | Ns Sy d
52eda14cbcSMatt Macy.Oo Ar pool Oc Ns ...
53eda14cbcSMatt Macy.Op Ar interval Op Ar count
54eda14cbcSMatt Macy.Xc
55eda14cbcSMatt MacyLists the given pools along with a health status and space usage.
56eda14cbcSMatt MacyIf no
57eda14cbcSMatt Macy.Ar pool Ns s
58eda14cbcSMatt Macyare specified, all pools in the system are listed.
59eda14cbcSMatt MacyWhen given an
60eda14cbcSMatt Macy.Ar interval ,
61eda14cbcSMatt Macythe information is printed every
62eda14cbcSMatt Macy.Ar interval
63eda14cbcSMatt Macyseconds until ^C is pressed.
64eda14cbcSMatt MacyIf
65eda14cbcSMatt Macy.Ar count
66eda14cbcSMatt Macyis specified, the command exits after
67eda14cbcSMatt Macy.Ar count
68eda14cbcSMatt Macyreports are printed.
69eda14cbcSMatt Macy.Bl -tag -width Ds
70eda14cbcSMatt Macy.It Fl g
71eda14cbcSMatt MacyDisplay vdev GUIDs instead of the normal device names. These GUIDs
72eda14cbcSMatt Macycan be used in place of device names for the zpool
73eda14cbcSMatt Macydetach/offline/remove/replace commands.
74eda14cbcSMatt Macy.It Fl H
75eda14cbcSMatt MacyScripted mode.
76eda14cbcSMatt MacyDo not display headers, and separate fields by a single tab instead of arbitrary
77eda14cbcSMatt Macyspace.
78eda14cbcSMatt Macy.It Fl o Ar property
79eda14cbcSMatt MacyComma-separated list of properties to display.
80eda14cbcSMatt MacySee the
81eda14cbcSMatt Macy.Xr zpoolprops
82eda14cbcSMatt Macymanual page for a list of valid properties.
83eda14cbcSMatt MacyThe default list is
84eda14cbcSMatt Macy.Cm name , size , allocated , free , checkpoint, expandsize , fragmentation ,
85eda14cbcSMatt Macy.Cm capacity , dedupratio , health , altroot .
86eda14cbcSMatt Macy.It Fl L
87eda14cbcSMatt MacyDisplay real paths for vdevs resolving all symbolic links. This can
88eda14cbcSMatt Macybe used to look up the current block device name regardless of the
89eda14cbcSMatt Macy/dev/disk/ path used to open it.
90eda14cbcSMatt Macy.It Fl p
91eda14cbcSMatt MacyDisplay numbers in parsable
92eda14cbcSMatt Macy.Pq exact
93eda14cbcSMatt Macyvalues.
94eda14cbcSMatt Macy.It Fl P
95eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of
96eda14cbcSMatt Macythe path. This can be used in conjunction with the
97eda14cbcSMatt Macy.Fl L
98eda14cbcSMatt Macyflag.
99eda14cbcSMatt Macy.It Fl T Sy u Ns | Ns Sy d
100eda14cbcSMatt MacyDisplay a time stamp.
101eda14cbcSMatt MacySpecify
102eda14cbcSMatt Macy.Sy u
103eda14cbcSMatt Macyfor a printed representation of the internal representation of time.
104eda14cbcSMatt MacySee
105eda14cbcSMatt Macy.Xr time 2 .
106eda14cbcSMatt MacySpecify
107eda14cbcSMatt Macy.Sy d
108eda14cbcSMatt Macyfor standard date format.
109eda14cbcSMatt MacySee
110eda14cbcSMatt Macy.Xr date 1 .
111eda14cbcSMatt Macy.It Fl v
112eda14cbcSMatt MacyVerbose statistics.
113eda14cbcSMatt MacyReports usage statistics for individual vdevs within the pool, in addition to
114*7877fdebSMatt Macythe pool-wide statistics.
115eda14cbcSMatt Macy.El
116eda14cbcSMatt Macy.El
117eda14cbcSMatt Macy.Sh SEE ALSO
118eda14cbcSMatt Macy.Xr zpool-import 8 ,
119eda14cbcSMatt Macy.Xr zpool-status 8
120