161145dc2SMartin 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.\" 30eda14cbcSMatt Macy.Dd August 9, 2019 31eda14cbcSMatt Macy.Dt ZPOOL-GET 8 32eda14cbcSMatt Macy.Os 3316038816SMartin Matuska. 34eda14cbcSMatt Macy.Sh NAME 357877fdebSMatt Macy.Nm zpool-get 3616038816SMartin Matuska.Nd retrieve properties of ZFS storage pools 37eda14cbcSMatt Macy.Sh SYNOPSIS 387877fdebSMatt Macy.Nm zpool 39eda14cbcSMatt Macy.Cm get 40eda14cbcSMatt Macy.Op Fl Hp 41ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int, --json-pool-key-guid 4216038816SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 4316038816SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 4416038816SMartin Matuska.Oo Ar pool Oc Ns … 45681ce946SMartin Matuska. 46681ce946SMartin Matuska.Nm zpool 47681ce946SMartin Matuska.Cm get 48681ce946SMartin Matuska.Op Fl Hp 49ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int 50681ce946SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 51681ce946SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 52681ce946SMartin Matuska.Ar pool 53681ce946SMartin Matuska.Oo Sy all-vdevs Ns | Ns 54681ce946SMartin Matuska.Ar vdev Oc Ns … 55681ce946SMartin Matuska. 567877fdebSMatt Macy.Nm zpool 57eda14cbcSMatt Macy.Cm set 58eda14cbcSMatt Macy.Ar property Ns = Ns Ar value 59eda14cbcSMatt Macy.Ar pool 6016038816SMartin Matuska. 61681ce946SMartin Matuska.Nm zpool 62681ce946SMartin Matuska.Cm set 63681ce946SMartin Matuska.Ar property Ns = Ns Ar value 64681ce946SMartin Matuska.Ar pool 65681ce946SMartin Matuska.Ar vdev 66681ce946SMartin Matuska. 67eda14cbcSMatt Macy.Sh DESCRIPTION 68eda14cbcSMatt Macy.Bl -tag -width Ds 69eda14cbcSMatt Macy.It Xo 707877fdebSMatt Macy.Nm zpool 71eda14cbcSMatt Macy.Cm get 72eda14cbcSMatt Macy.Op Fl Hp 73ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int, --json-pool-key-guid 7416038816SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 7516038816SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 7616038816SMartin Matuska.Oo Ar pool Oc Ns … 77eda14cbcSMatt Macy.Xc 78eda14cbcSMatt MacyRetrieves the given list of properties 79eda14cbcSMatt Macy.Po 80eda14cbcSMatt Macyor all properties if 81eda14cbcSMatt Macy.Sy all 82eda14cbcSMatt Macyis used 83eda14cbcSMatt Macy.Pc 84eda14cbcSMatt Macyfor the specified storage pool(s). 85eda14cbcSMatt MacyThese properties are displayed with the following fields: 8616038816SMartin Matuska.Bl -tag -compact -offset Ds -width "property" 8716038816SMartin Matuska.It Sy name 8816038816SMartin MatuskaName of storage pool. 8916038816SMartin Matuska.It Sy property 9016038816SMartin MatuskaProperty name. 9116038816SMartin Matuska.It Sy value 9216038816SMartin MatuskaProperty value. 9316038816SMartin Matuska.It Sy source 9416038816SMartin MatuskaProperty source, either 9516038816SMartin Matuska.Sy default No or Sy local . 9616038816SMartin Matuska.El 97eda14cbcSMatt Macy.Pp 98eda14cbcSMatt MacySee the 993ff01b23SMartin Matuska.Xr zpoolprops 7 100eda14cbcSMatt Macymanual page for more information on the available pool properties. 10116038816SMartin Matuska.Bl -tag -compact -offset Ds -width "-o field" 10287bf66d4SMartin Matuska.It Fl j , -json Op Ar --json-int, --json-pool-key-guid 103ce4dcb97SMartin MatuskaDisplay the list of properties in JSON format. 104ce4dcb97SMartin MatuskaSpecify 105ce4dcb97SMartin Matuska.Sy --json-int 106ce4dcb97SMartin Matuskato display the numbers in integer format instead of strings in JSON output. 107ce4dcb97SMartin MatuskaSpecify 108ce4dcb97SMartin Matuska.Sy --json-pool-key-guid 109ce4dcb97SMartin Matuskato set pool GUID as key for pool objects instead of pool name. 110eda14cbcSMatt Macy.It Fl H 111eda14cbcSMatt MacyScripted mode. 112eda14cbcSMatt MacyDo not display headers, and separate fields by a single tab instead of arbitrary 113eda14cbcSMatt Macyspace. 114eda14cbcSMatt Macy.It Fl o Ar field 11516038816SMartin MatuskaA comma-separated list of columns to display, defaults to 11616038816SMartin Matuska.Sy name , Ns Sy property , Ns Sy value , Ns Sy source . 117eda14cbcSMatt Macy.It Fl p 118eda14cbcSMatt MacyDisplay numbers in parsable (exact) values. 119eda14cbcSMatt Macy.El 120eda14cbcSMatt Macy.It Xo 1217877fdebSMatt Macy.Nm zpool 122681ce946SMartin Matuska.Cm get 123ce4dcb97SMartin Matuska.Op Fl j Op Ar --json-int 124681ce946SMartin Matuska.Op Fl Hp 125681ce946SMartin Matuska.Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 126681ce946SMartin Matuska.Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns … 127681ce946SMartin Matuska.Ar pool 128681ce946SMartin Matuska.Oo Sy all-vdevs Ns | Ns 129681ce946SMartin Matuska.Ar vdev Oc Ns … 130681ce946SMartin Matuska.Xc 131681ce946SMartin MatuskaRetrieves the given list of properties 132681ce946SMartin Matuska.Po 133681ce946SMartin Matuskaor all properties if 134681ce946SMartin Matuska.Sy all 135681ce946SMartin Matuskais used 136681ce946SMartin Matuska.Pc 137681ce946SMartin Matuskafor the specified vdevs 138681ce946SMartin Matuska.Po 139681ce946SMartin Matuskaor all vdevs if 140681ce946SMartin Matuska.Sy all-vdevs 141681ce946SMartin Matuskais used 142681ce946SMartin Matuska.Pc 143681ce946SMartin Matuskain the specified pool. 144681ce946SMartin MatuskaThese properties are displayed with the following fields: 145681ce946SMartin Matuska.Bl -tag -compact -offset Ds -width "property" 146681ce946SMartin Matuska.It Sy name 147681ce946SMartin MatuskaName of vdev. 148681ce946SMartin Matuska.It Sy property 149681ce946SMartin MatuskaProperty name. 150681ce946SMartin Matuska.It Sy value 151681ce946SMartin MatuskaProperty value. 152681ce946SMartin Matuska.It Sy source 153681ce946SMartin MatuskaProperty source, either 154681ce946SMartin Matuska.Sy default No or Sy local . 155681ce946SMartin Matuska.El 156681ce946SMartin Matuska.Pp 157681ce946SMartin MatuskaSee the 158681ce946SMartin Matuska.Xr vdevprops 7 159681ce946SMartin Matuskamanual page for more information on the available pool properties. 160681ce946SMartin Matuska.Bl -tag -compact -offset Ds -width "-o field" 16187bf66d4SMartin Matuska.It Fl j , -json Op Ar --json-int 162ce4dcb97SMartin MatuskaDisplay the list of properties in JSON format. 163ce4dcb97SMartin MatuskaSpecify 164ce4dcb97SMartin Matuska.Sy --json-int 165ce4dcb97SMartin Matuskato display the numbers in integer format instead of strings in JSON output. 166681ce946SMartin Matuska.It Fl H 167681ce946SMartin MatuskaScripted mode. 168681ce946SMartin MatuskaDo not display headers, and separate fields by a single tab instead of arbitrary 169681ce946SMartin Matuskaspace. 170681ce946SMartin Matuska.It Fl o Ar field 171681ce946SMartin MatuskaA comma-separated list of columns to display, defaults to 172681ce946SMartin Matuska.Sy name , Ns Sy property , Ns Sy value , Ns Sy source . 173681ce946SMartin Matuska.It Fl p 174681ce946SMartin MatuskaDisplay numbers in parsable (exact) values. 175681ce946SMartin Matuska.El 176681ce946SMartin Matuska.It Xo 177681ce946SMartin Matuska.Nm zpool 178eda14cbcSMatt Macy.Cm set 179eda14cbcSMatt Macy.Ar property Ns = Ns Ar value 180eda14cbcSMatt Macy.Ar pool 181eda14cbcSMatt Macy.Xc 182eda14cbcSMatt MacySets the given property on the specified pool. 183eda14cbcSMatt MacySee the 1843ff01b23SMartin Matuska.Xr zpoolprops 7 185eda14cbcSMatt Macymanual page for more information on what properties can be set and acceptable 186eda14cbcSMatt Macyvalues. 187681ce946SMartin Matuska.It Xo 188681ce946SMartin Matuska.Nm zpool 189681ce946SMartin Matuska.Cm set 190681ce946SMartin Matuska.Ar property Ns = Ns Ar value 191681ce946SMartin Matuska.Ar pool 192681ce946SMartin Matuska.Ar vdev 193681ce946SMartin Matuska.Xc 194681ce946SMartin MatuskaSets the given property on the specified vdev in the specified pool. 195681ce946SMartin MatuskaSee the 196681ce946SMartin Matuska.Xr vdevprops 7 197681ce946SMartin Matuskamanual page for more information on what properties can be set and acceptable 198681ce946SMartin Matuskavalues. 199eda14cbcSMatt Macy.El 20016038816SMartin Matuska. 201eda14cbcSMatt Macy.Sh SEE ALSO 202681ce946SMartin Matuska.Xr vdevprops 7 , 2033ff01b23SMartin Matuska.Xr zpool-features 7 , 2043ff01b23SMartin Matuska.Xr zpoolprops 7 , 2053ff01b23SMartin Matuska.Xr zpool-list 8 206