logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

zpool-get.8 (5153B)


  1. .\"
  2. .\" CDDL HEADER START
  3. .\"
  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.
  7. .\"
  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.
  12. .\"
  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]
  18. .\"
  19. .\" CDDL HEADER END
  20. .\"
  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.
  28. .\"
  29. .Dd August 9, 2019
  30. .Dt ZPOOL-GET 8
  31. .Os
  32. .
  33. .Sh NAME
  34. .Nm zpool-get
  35. .Nd retrieve properties of ZFS storage pools
  36. .Sh SYNOPSIS
  37. .Nm zpool
  38. .Cm get
  39. .Op Fl Hp
  40. .Op Fl j Op Ar --json-int, --json-pool-key-guid
  41. .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
  42. .Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns …
  43. .Oo Ar pool Oc Ns …
  44. .
  45. .Nm zpool
  46. .Cm get
  47. .Op Fl Hp
  48. .Op Fl j Op Ar --json-int
  49. .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
  50. .Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns …
  51. .Ar pool
  52. .Oo Sy all-vdevs Ns | Ns
  53. .Ar vdev Oc Ns …
  54. .
  55. .Nm zpool
  56. .Cm set
  57. .Ar property Ns = Ns Ar value
  58. .Ar pool
  59. .
  60. .Nm zpool
  61. .Cm set
  62. .Ar property Ns = Ns Ar value
  63. .Ar pool
  64. .Ar vdev
  65. .
  66. .Sh DESCRIPTION
  67. .Bl -tag -width Ds
  68. .It Xo
  69. .Nm zpool
  70. .Cm get
  71. .Op Fl Hp
  72. .Op Fl j Op Ar --json-int, --json-pool-key-guid
  73. .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
  74. .Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns …
  75. .Oo Ar pool Oc Ns …
  76. .Xc
  77. Retrieves the given list of properties
  78. .Po
  79. or all properties if
  80. .Sy all
  81. is used
  82. .Pc
  83. for the specified storage pool(s).
  84. These properties are displayed with the following fields:
  85. .Bl -tag -compact -offset Ds -width "property"
  86. .It Sy name
  87. Name of storage pool.
  88. .It Sy property
  89. Property name.
  90. .It Sy value
  91. Property value.
  92. .It Sy source
  93. Property source, either
  94. .Sy default No or Sy local .
  95. .El
  96. .Pp
  97. See the
  98. .Xr zpoolprops 7
  99. manual page for more information on the available pool properties.
  100. .Bl -tag -compact -offset Ds -width "-o field"
  101. .It Fl j , -json Op Ar --json-int, --json-pool-key-guid
  102. Display the list of properties in JSON format.
  103. Specify
  104. .Sy --json-int
  105. to display the numbers in integer format instead of strings in JSON output.
  106. Specify
  107. .Sy --json-pool-key-guid
  108. to set pool GUID as key for pool objects instead of pool name.
  109. .It Fl H
  110. Scripted mode.
  111. Do not display headers, and separate fields by a single tab instead of arbitrary
  112. space.
  113. .It Fl o Ar field
  114. A comma-separated list of columns to display, defaults to
  115. .Sy name , Ns Sy property , Ns Sy value , Ns Sy source .
  116. .It Fl p
  117. Display numbers in parsable (exact) values.
  118. .El
  119. .It Xo
  120. .Nm zpool
  121. .Cm get
  122. .Op Fl j Op Ar --json-int
  123. .Op Fl Hp
  124. .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
  125. .Sy all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns …
  126. .Ar pool
  127. .Oo Sy all-vdevs Ns | Ns
  128. .Ar vdev Oc Ns …
  129. .Xc
  130. Retrieves the given list of properties
  131. .Po
  132. or all properties if
  133. .Sy all
  134. is used
  135. .Pc
  136. for the specified vdevs
  137. .Po
  138. or all vdevs if
  139. .Sy all-vdevs
  140. is used
  141. .Pc
  142. in the specified pool.
  143. These properties are displayed with the following fields:
  144. .Bl -tag -compact -offset Ds -width "property"
  145. .It Sy name
  146. Name of vdev.
  147. .It Sy property
  148. Property name.
  149. .It Sy value
  150. Property value.
  151. .It Sy source
  152. Property source, either
  153. .Sy default No or Sy local .
  154. .El
  155. .Pp
  156. See the
  157. .Xr vdevprops 7
  158. manual page for more information on the available pool properties.
  159. .Bl -tag -compact -offset Ds -width "-o field"
  160. .It Fl j , -json Op Ar --json-int
  161. Display the list of properties in JSON format.
  162. Specify
  163. .Sy --json-int
  164. to display the numbers in integer format instead of strings in JSON output.
  165. .It Fl H
  166. Scripted mode.
  167. Do not display headers, and separate fields by a single tab instead of arbitrary
  168. space.
  169. .It Fl o Ar field
  170. A comma-separated list of columns to display, defaults to
  171. .Sy name , Ns Sy property , Ns Sy value , Ns Sy source .
  172. .It Fl p
  173. Display numbers in parsable (exact) values.
  174. .El
  175. .It Xo
  176. .Nm zpool
  177. .Cm set
  178. .Ar property Ns = Ns Ar value
  179. .Ar pool
  180. .Xc
  181. Sets the given property on the specified pool.
  182. See the
  183. .Xr zpoolprops 7
  184. manual page for more information on what properties can be set and acceptable
  185. values.
  186. .It Xo
  187. .Nm zpool
  188. .Cm set
  189. .Ar property Ns = Ns Ar value
  190. .Ar pool
  191. .Ar vdev
  192. .Xc
  193. Sets the given property on the specified vdev in the specified pool.
  194. See the
  195. .Xr vdevprops 7
  196. manual page for more information on what properties can be set and acceptable
  197. values.
  198. .El
  199. .
  200. .Sh SEE ALSO
  201. .Xr vdevprops 7 ,
  202. .Xr zpool-features 7 ,
  203. .Xr zpoolprops 7 ,
  204. .Xr zpool-list 8