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.
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.
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]
21 .\" Copyright (c) 2021 Klara, Inc.
29 .Nd native and user-defined properties of ZFS vdevs
32 Properties are divided into two types, native properties and user-defined
35 Native properties either export internal statistics or control ZFS behavior.
36 In addition, native properties are either editable or read-only.
37 User properties have no effect on ZFS behavior, but you can use them to annotate
38 vdevs in a way that is meaningful in your environment.
39 For more information about user properties, see the
44 Every vdev has a set of properties that export statistics about the vdev
45 as well as control various behaviors.
46 Properties are not inherited from top-level vdevs, with the exception of
47 checksum_n, checksum_t, io_n, io_t, slow_io_n, and slow_io_t.
49 The values of numeric properties can be specified using human-readable suffixes
56 The following are all valid
59 .Li 1536M , 1.5g , 1.50GB .
61 The values of non-numeric properties are case sensitive and must be lowercase.
63 The following native properties consist of read-only statistics about the
65 These properties can not be changed.
66 .Bl -tag -width "fragmentation"
68 Percentage of vdev space used
70 state of this vdev such as online, faulted, or offline
72 globally unique id of this vdev
74 The allocable size of this vdev
76 The physical size of this vdev
78 The physical sector size of this vdev expressed as the power of two
80 The total size of this vdev
82 The amount of remaining free space on this vdev
84 The amount of allocated space on this vdev
86 How much this vdev can expand by
88 Percent of fragmentation in this vdev
90 The level of parity for this vdev
92 The device id for this vdev
94 The physical path to the device
96 The enclosure path to the device
98 Field Replacable Unit, usually a model number
102 Comma separated list of children of this vdev
104 The number of children belonging to this vdev
105 .It Sy read_errors , write_errors , checksum_errors , initialize_errors , trim_errors
106 The number of errors of each type encountered by this vdev
108 The number of slow I/Os encountered by this vdev,
109 These represent I/O operations that didn't complete in
112 .Pq Sy 30000 No by default .
113 .It Sy null_ops , read_ops , write_ops , free_ops , claim_ops , trim_ops
114 The number of I/O operations of each type performed by this vdev
116 .Sy null_bytes , read_bytes , write_bytes , free_bytes , claim_bytes ,
119 The cumulative size of all operations of each type performed by this vdev
121 If this device is currently being removed from the pool
123 Indicates if a leaf device supports trim operations.
126 The following native properties can be used to change the behavior of a vdev.
127 .Bl -tag -width "allocating"
128 .It Sy checksum_n , checksum_t , io_n , io_t , slow_io_n , slow_io_t
129 Tune the fault management daemon by specifying checksum/io thresholds of <N>
130 errors in <T> seconds, respectively.
131 These properties can be set on leaf and top-level vdevs.
132 When the property is set on the leaf and top-level vdev, the value of the leaf
134 If the property is only set on the top-level vdev, this value will be used.
135 The value of these properties do not persist across vdev replacement.
136 For this reason, it is advisable to set the property on the top-level vdev -
137 not on the leaf vdev itself.
138 The default values for
140 are 10 errors in 600 seconds.
142 .Sy OpenZFS on FreeBSD
146 A text comment up to 8192 characters long
148 The amount of space to reserve for the EFI system partition
150 If this device should propage BIO errors back to ZFS, used to disable
153 The path to the device for this vdev
155 If this device should perform new allocations, used to disable a device
156 when it is scheduled for later removal.
161 In addition to the standard native properties, ZFS supports arbitrary user
163 User properties have no effect on ZFS behavior, but applications or
164 administrators can use them to annotate vdevs.
166 User property names must contain a colon
168 character to distinguish them from native properties.
169 They may contain lowercase letters, numbers, and the following punctuation
178 The expected convention is that the property name is divided into two portions
180 .Ar module : Ns Ar property ,
181 but this namespace is not enforced by ZFS.
182 User property names can be at most 256 characters, and cannot begin with a dash
185 When making programmatic use of user properties, it is strongly suggested to use
186 a reversed DNS domain name for the
188 component of property names to reduce the chance that two
189 independently-developed packages use the same property name for different
192 The values of user properties are arbitrary strings and
196 command with a blank value to clear a user property.
197 Property values are limited to 8192 bytes.