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.\" 29eda14cbcSMatt Macy.Dd August 9, 2019 30eda14cbcSMatt Macy.Dt ZPOOL-GET 8 31eda14cbcSMatt Macy.Os 3216038816SMartin Matuska. 33eda14cbcSMatt Macy.Sh NAME 347877fdebSMatt Macy.Nm zpool-get 3516038816SMartin Matuska.Nd retrieve properties of ZFS storage pools 36eda14cbcSMatt Macy.Sh SYNOPSIS 377877fdebSMatt Macy.Nm zpool 38eda14cbcSMatt Macy.Cm get 39eda14cbcSMatt Macy.Op Fl Hp 40ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int, --json-pool-key-guid 4116038816SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 4216038816SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 4316038816SMartin Matuska.Oo Ar pool Oc Ns … 44681ce946SMartin Matuska. 45681ce946SMartin Matuska.Nm zpool 46681ce946SMartin Matuska.Cm get 47681ce946SMartin Matuska.Op Fl Hp 48ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int 49681ce946SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 50681ce946SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 51681ce946SMartin Matuska.Ar pool 52681ce946SMartin Matuska.Oo Sy all-vdevs Ns | Ns 53681ce946SMartin Matuska.Ar vdev Oc Ns … 54681ce946SMartin Matuska. 557877fdebSMatt Macy.Nm zpool 56eda14cbcSMatt Macy.Cm set 57eda14cbcSMatt Macy.Ar property Ns = Ns Ar value 58eda14cbcSMatt Macy.Ar pool 5916038816SMartin Matuska. 60681ce946SMartin Matuska.Nm zpool 61681ce946SMartin Matuska.Cm set 62681ce946SMartin Matuska.Ar property Ns = Ns Ar value 63681ce946SMartin Matuska.Ar pool 64681ce946SMartin Matuska.Ar vdev 65681ce946SMartin Matuska. 66eda14cbcSMatt Macy.Sh DESCRIPTION 67eda14cbcSMatt Macy.Bl -tag -width Ds 68eda14cbcSMatt Macy.It Xo 697877fdebSMatt Macy.Nm zpool 70eda14cbcSMatt Macy.Cm get 71eda14cbcSMatt Macy.Op Fl Hp 72ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int, --json-pool-key-guid 7316038816SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 7416038816SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 7516038816SMartin Matuska.Oo Ar pool Oc Ns … 76eda14cbcSMatt Macy.Xc 77eda14cbcSMatt MacyRetrieves the given list of properties 78eda14cbcSMatt Macy.Po 79eda14cbcSMatt Macyor all properties if 80eda14cbcSMatt Macy.Sy all 81eda14cbcSMatt Macyis used 82eda14cbcSMatt Macy.Pc 83eda14cbcSMatt Macyfor the specified storage pool(s). 84eda14cbcSMatt MacyThese properties are displayed with the following fields: 8516038816SMartin Matuska.Bl -tag -compact -offset Ds -width "property" 8616038816SMartin Matuska.It Sy name 8716038816SMartin MatuskaName of storage pool. 8816038816SMartin Matuska.It Sy property 8916038816SMartin MatuskaProperty name. 9016038816SMartin Matuska.It Sy value 9116038816SMartin MatuskaProperty value. 9216038816SMartin Matuska.It Sy source 9316038816SMartin MatuskaProperty source, either 9416038816SMartin Matuska.Sy default No or Sy local . 9516038816SMartin Matuska.El 96eda14cbcSMatt Macy.Pp 97eda14cbcSMatt MacySee the 983ff01b23SMartin Matuska.Xr zpoolprops 7 99eda14cbcSMatt Macymanual page for more information on the available pool properties. 10016038816SMartin Matuska.Bl -tag -compact -offset Ds -width "-o field" 101*87bf66d4SMartin Matuska.It Fl j , -json Op Ar --json-int, --json-pool-key-guid 102ce4dcb97SMartin MatuskaDisplay the list of properties in JSON format. 103ce4dcb97SMartin MatuskaSpecify 104ce4dcb97SMartin Matuska.Sy --json-int 105ce4dcb97SMartin Matuskato display the numbers in integer format instead of strings in JSON output. 106ce4dcb97SMartin MatuskaSpecify 107ce4dcb97SMartin Matuska.Sy --json-pool-key-guid 108ce4dcb97SMartin Matuskato set pool GUID as key for pool objects instead of pool name. 109eda14cbcSMatt Macy.It Fl H 110eda14cbcSMatt MacyScripted mode. 111eda14cbcSMatt MacyDo not display headers, and separate fields by a single tab instead of arbitrary 112eda14cbcSMatt Macyspace. 113eda14cbcSMatt Macy.It Fl o Ar field 11416038816SMartin MatuskaA comma-separated list of columns to display, defaults to 11516038816SMartin Matuska.Sy name , Ns Sy property , Ns Sy value , Ns Sy source . 116eda14cbcSMatt Macy.It Fl p 117eda14cbcSMatt MacyDisplay numbers in parsable (exact) values. 118eda14cbcSMatt Macy.El 119eda14cbcSMatt Macy.It Xo 1207877fdebSMatt Macy.Nm zpool 121681ce946SMartin Matuska.Cm get 122ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int 123681ce946SMartin Matuska.Op Fl Hp 124681ce946SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 125681ce946SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 126681ce946SMartin Matuska.Ar pool 127681ce946SMartin Matuska.Oo Sy all-vdevs Ns | Ns 128681ce946SMartin Matuska.Ar vdev Oc Ns … 129681ce946SMartin Matuska.Xc 130681ce946SMartin MatuskaRetrieves the given list of properties 131681ce946SMartin Matuska.Po 132681ce946SMartin Matuskaor all properties if 133681ce946SMartin Matuska.Sy all 134681ce946SMartin Matuskais used 135681ce946SMartin Matuska.Pc 136681ce946SMartin Matuskafor the specified vdevs 137681ce946SMartin Matuska.Po 138681ce946SMartin Matuskaor all vdevs if 139681ce946SMartin Matuska.Sy all-vdevs 140681ce946SMartin Matuskais used 141681ce946SMartin Matuska.Pc 142681ce946SMartin Matuskain the specified pool. 143681ce946SMartin MatuskaThese properties are displayed with the following fields: 144681ce946SMartin Matuska.Bl -tag -compact -offset Ds -width "property" 145681ce946SMartin Matuska.It Sy name 146681ce946SMartin MatuskaName of vdev. 147681ce946SMartin Matuska.It Sy property 148681ce946SMartin MatuskaProperty name. 149681ce946SMartin Matuska.It Sy value 150681ce946SMartin MatuskaProperty value. 151681ce946SMartin Matuska.It Sy source 152681ce946SMartin MatuskaProperty source, either 153681ce946SMartin Matuska.Sy default No or Sy local . 154681ce946SMartin Matuska.El 155681ce946SMartin Matuska.Pp 156681ce946SMartin MatuskaSee the 157681ce946SMartin Matuska.Xr vdevprops 7 158681ce946SMartin Matuskamanual page for more information on the available pool properties. 159681ce946SMartin Matuska.Bl -tag -compact -offset Ds -width "-o field" 160*87bf66d4SMartin Matuska.It Fl j , -json Op Ar --json-int 161ce4dcb97SMartin MatuskaDisplay the list of properties in JSON format. 162ce4dcb97SMartin MatuskaSpecify 163ce4dcb97SMartin Matuska.Sy --json-int 164ce4dcb97SMartin Matuskato display the numbers in integer format instead of strings in JSON output. 165681ce946SMartin Matuska.It Fl H 166681ce946SMartin MatuskaScripted mode. 167681ce946SMartin MatuskaDo not display headers, and separate fields by a single tab instead of arbitrary 168681ce946SMartin Matuskaspace. 169681ce946SMartin Matuska.It Fl o Ar field 170681ce946SMartin MatuskaA comma-separated list of columns to display, defaults to 171681ce946SMartin Matuska.Sy name , Ns Sy property , Ns Sy value , Ns Sy source . 172681ce946SMartin Matuska.It Fl p 173681ce946SMartin MatuskaDisplay numbers in parsable (exact) values. 174681ce946SMartin Matuska.El 175681ce946SMartin Matuska.It Xo 176681ce946SMartin Matuska.Nm zpool 177eda14cbcSMatt Macy.Cm set 178eda14cbcSMatt Macy.Ar property Ns = Ns Ar value 179eda14cbcSMatt Macy.Ar pool 180eda14cbcSMatt Macy.Xc 181eda14cbcSMatt MacySets the given property on the specified pool. 182eda14cbcSMatt MacySee the 1833ff01b23SMartin Matuska.Xr zpoolprops 7 184eda14cbcSMatt Macymanual page for more information on what properties can be set and acceptable 185eda14cbcSMatt Macyvalues. 186681ce946SMartin Matuska.It Xo 187681ce946SMartin Matuska.Nm zpool 188681ce946SMartin Matuska.Cm set 189681ce946SMartin Matuska.Ar property Ns = Ns Ar value 190681ce946SMartin Matuska.Ar pool 191681ce946SMartin Matuska.Ar vdev 192681ce946SMartin Matuska.Xc 193681ce946SMartin MatuskaSets the given property on the specified vdev in the specified pool. 194681ce946SMartin MatuskaSee the 195681ce946SMartin Matuska.Xr vdevprops 7 196681ce946SMartin Matuskamanual page for more information on what properties can be set and acceptable 197681ce946SMartin Matuskavalues. 198eda14cbcSMatt Macy.El 19916038816SMartin Matuska. 200eda14cbcSMatt Macy.Sh SEE ALSO 201681ce946SMartin Matuska.Xr vdevprops 7 , 2023ff01b23SMartin Matuska.Xr zpool-features 7 , 2033ff01b23SMartin Matuska.Xr zpoolprops 7 , 2043ff01b23SMartin Matuska.Xr zpool-list 8 205