zpool-get8
Retrieve properties of zfs storage pools
Usage
zpool {get
[-Hp]
[-j
[--json-int,
--json-pool-key-guid]]
[-o
field
[,field]
…]
all | property
[,property]
…
[pool]
…}
zpool {get
[-Hp]
[-j
[--json-int]]
[-o
field
[,field]
…]
all | property
[,property]
…
pool
[{all-vdevs | vdev}]
…}
zpool set
property=value
pool
zpool set
property=value
pool
vdev
Overview
-
zpoolget[-Hp] [-j[--json-int, --json-pool-key-guid]] [-ofield[,field]…]all|property[,property]… [pool]… Retrieves the given list of properties( or all properties ifallis used) for the specified storage pool(s). These properties are displayed with the following fields:name-
Name of storage pool.
property-
Property name.
value-
Property value.
source-
Property source, either
defaultorlocal.See the zpoolprops(7) manual page for more information on the available pool properties.
-j,--json[--json-int, --json-pool-key-guid]-
Display the list of properties in JSON format. Specify
--json-intto display the numbers in integer format instead of strings in JSON output. Specify--json-pool-key-guidto set pool GUID as key for pool objects instead of pool name. -
-H -
Scripted mode. Do not display headers, and separate fields by a single tab instead of arbitrary space.
-
-o field -
A comma-separated list of columns to display, defaults to
name,property,value,source. -
-p -
Display numbers in parsable (exact) values.
-
zpoolget[-j[--json-int]] [-Hp] [-ofield[,field]…]all|property[,property]… pool[all-vdevs| vdev]… Retrieves the given list of properties( or all properties ifallis used) for the specified vdevs( or all vdevs ifall-vdevsis used) in the specified pool. These properties are displayed with the following fields:name-
Name of vdev.
property-
Property name.
value-
Property value.
source-
Property source, either
defaultorlocal.See the vdevprops(7) manual page for more information on the available pool properties.
-
-j, --json [--json-int] -
Display the list of properties in JSON format. Specify
--json-intto display the numbers in integer format instead of strings in JSON output. -
-H -
Scripted mode. Do not display headers, and separate fields by a single tab instead of arbitrary space.
-
-o field -
A comma-separated list of columns to display, defaults to
name,property,value,source. -
-p -
Display numbers in parsable (exact) values.
-
-
zpoolsetproperty=value pool Sets the given property on the specified pool. See the zpoolprops(7) manual page for more information on what properties can be set and acceptable values. -
zpoolsetproperty=value pool vdev Sets the given property on the specified vdev in the specified pool. See the vdevprops(7) manual page for more information on what properties can be set and acceptable values.
Releases
3 releases since Debian 11 (Bullseye); the text changed 2 times.
--json since Debian 13 (Trixie);
-j since Debian 13 (Trixie).