]> git.proxmox.com Git - mirror_zfs.git/blame - man/man5/zpool-features.5
Fix type mismatch on 32-bit systems
[mirror_zfs.git] / man / man5 / zpool-features.5
CommitLineData
9ae529ec 1'\" te
93cf2076 2.\" Copyright (c) 2013 by Delphix. All rights reserved.
9759c60f 3.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
788eb90c 4.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
9ae529ec
CS
5.\" The contents of this file are subject to the terms of the Common Development
6.\" and Distribution License (the "License"). You may not use this file except
7.\" in compliance with the License. You can obtain a copy of the license at
8.\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
9.\"
10.\" See the License for the specific language governing permissions and
11.\" limitations under the License. When distributing Covered Code, include this
12.\" CDDL HEADER in each file and include the License file at
13.\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
14.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
15.\" own identifying information:
16.\" Portions Copyright [yyyy] [name of copyright owner]
93cf2076 17.TH ZPOOL-FEATURES 5 "Aug 27, 2013"
9ae529ec
CS
18.SH NAME
19zpool\-features \- ZFS pool feature descriptions
20.SH DESCRIPTION
21.sp
22.LP
23ZFS pool on\-disk format versions are specified via "features" which replace
24the old on\-disk format numbers (the last supported on\-disk format number is
b9b24bb4 2528). To enable a feature on a pool use the \fBupgrade\fR subcommand of the
a3177028 26\fBzpool\fR(8) command, or set the \fBfeature@\fR\fIfeature_name\fR property
b9b24bb4 27to \fBenabled\fR.
9ae529ec
CS
28.sp
29.LP
30The pool format does not affect file system version compatibility or the ability
31to send file systems between pools.
32.sp
33.LP
34Since most features can be enabled independently of each other the on\-disk
35format of the pool is specified by the set of all features marked as
36\fBactive\fR on the pool. If the pool was created by another software version
37this set may include unsupported features.
38.SS "Identifying features"
39.sp
40.LP
41Every feature has a guid of the form \fIcom.example:feature_name\fR. The reverse
42DNS name ensures that the feature's guid is unique across all ZFS
43implementations. When unsupported features are encountered on a pool they will
44be identified by their guids. Refer to the documentation for the ZFS
45implementation that created the pool for information about those features.
46.sp
47.LP
48Each supported feature also has a short name. By convention a feature's short
49name is the portion of its guid which follows the ':' (e.g.
50\fIcom.example:feature_name\fR would have the short name \fIfeature_name\fR),
51however a feature's short name may differ across ZFS implementations if
52following the convention would result in name conflicts.
53.SS "Feature states"
54.sp
55.LP
56Features can be in one of three states:
57.sp
58.ne 2
59.na
60\fB\fBactive\fR\fR
61.ad
62.RS 12n
63This feature's on\-disk format changes are in effect on the pool. Support for
64this feature is required to import the pool in read\-write mode. If this
65feature is not read-only compatible, support is also required to import the pool
66in read\-only mode (see "Read\-only compatibility").
67.RE
68
69.sp
70.ne 2
71.na
72\fB\fBenabled\fR\fR
73.ad
74.RS 12n
75An administrator has marked this feature as enabled on the pool, but the
76feature's on\-disk format changes have not been made yet. The pool can still be
77imported by software that does not support this feature, but changes may be made
78to the on\-disk format at any time which will move the feature to the
79\fBactive\fR state. Some features may support returning to the \fBenabled\fR
80state after becoming \fBactive\fR. See feature\-specific documentation for
81details.
82.RE
83
84.sp
85.ne 2
86.na
87\fBdisabled\fR
88.ad
89.RS 12n
90This feature's on\-disk format changes have not been made and will not be made
91unless an administrator moves the feature to the \fBenabled\fR state. Features
92cannot be disabled once they have been enabled.
93.RE
94
95.sp
96.LP
97The state of supported features is exposed through pool properties of the form
98\fIfeature@short_name\fR.
99.SS "Read\-only compatibility"
100.sp
101.LP
102Some features may make on\-disk format changes that do not interfere with other
103software's ability to read from the pool. These features are referred to as
104"read\-only compatible". If all unsupported features on a pool are read\-only
105compatible, the pool can be imported in read\-only mode by setting the
a3177028 106\fBreadonly\fR property during import (see \fBzpool\fR(8) for details on
9ae529ec
CS
107importing pools).
108.SS "Unsupported features"
109.sp
110.LP
111For each unsupported feature enabled on an imported pool a pool property
112named \fIunsupported@feature_guid\fR will indicate why the import was allowed
113despite the unsupported feature. Possible values for this property are:
114
115.sp
116.ne 2
117.na
118\fB\fBinactive\fR\fR
119.ad
120.RS 12n
121The feature is in the \fBenabled\fR state and therefore the pool's on\-disk
122format is still compatible with software that does not support this feature.
123.RE
124
125.sp
126.ne 2
127.na
128\fB\fBreadonly\fR\fR
129.ad
130.RS 12n
131The feature is read\-only compatible and the pool has been imported in
132read\-only mode.
133.RE
134
135.SS "Feature dependencies"
136.sp
137.LP
138Some features depend on other features being enabled in order to function
139properly. Enabling a feature will automatically enable any features it
140depends on.
141.SH FEATURES
142.sp
143.LP
144The following features are supported on this system:
145.sp
146.ne 2
147.na
148\fB\fBasync_destroy\fR\fR
149.ad
150.RS 4n
151.TS
152l l .
153GUID com.delphix:async_destroy
154READ\-ONLY COMPATIBLE yes
155DEPENDENCIES none
156.TE
157
158Destroying a file system requires traversing all of its data in order to
159return its used space to the pool. Without \fBasync_destroy\fR the file system
160is not fully removed until all space has been reclaimed. If the destroy
161operation is interrupted by a reboot or power outage the next attempt to open
162the pool will need to complete the destroy operation synchronously.
163
164When \fBasync_destroy\fR is enabled the file system's data will be reclaimed
165by a background process, allowing the destroy operation to complete without
166traversing the entire file system. The background process is able to resume
167interrupted destroys after the pool has been opened, eliminating the need
168to finish interrupted destroys as part of the open operation. The amount
169of space remaining to be reclaimed by the background process is available
170through the \fBfreeing\fR property.
171
172This feature is only \fBactive\fR while \fBfreeing\fR is non\-zero.
173.RE
753c3839
MA
174
175.sp
176.ne 2
177.na
178\fB\fBempty_bpobj\fR\fR
179.ad
180.RS 4n
181.TS
182l l .
183GUID com.delphix:empty_bpobj
184READ\-ONLY COMPATIBLE yes
185DEPENDENCIES none
186.TE
187
188This feature increases the performance of creating and using a large
189number of snapshots of a single filesystem or volume, and also reduces
190the disk space required.
191
192When there are many snapshots, each snapshot uses many Block Pointer
193Objects (bpobj's) to track blocks associated with that snapshot.
194However, in common use cases, most of these bpobj's are empty. This
195feature allows us to create each bpobj on-demand, thus eliminating the
196empty bpobjs.
197
198This feature is \fBactive\fR while there are any filesystems, volumes,
199or snapshots which were created after enabling this feature.
200.RE
201
788eb90c
JJ
202.sp
203.ne 2
204.na
205\fB\fBfilesystem_limits\fR\fR
206.ad
207.RS 4n
208.TS
209l l .
210GUID com.joyent:filesystem_limits
211READ\-ONLY COMPATIBLE yes
212DEPENDENCIES extensible_dataset
213.TE
214
215This feature enables filesystem and snapshot limits. These limits can be used
216to control how many filesystems and/or snapshots can be created at the point in
217the tree on which the limits are set.
218
219This feature is \fBactive\fR once either of the limit properties has been
220set on a dataset. Once activated the feature is never deactivated.
221.RE
222
9759c60f
ED
223.sp
224.ne 2
225.na
226\fB\fBlz4_compress\fR\fR
227.ad
228.RS 4n
229.TS
230l l .
231GUID org.illumos:lz4_compress
232READ\-ONLY COMPATIBLE no
233DEPENDENCIES none
234.TE
235
236\fBlz4\fR is a high-performance real-time compression algorithm that
237features significantly faster compression and decompression as well as a
238higher compression ratio than the older \fBlzjb\fR compression.
239Typically, \fBlz4\fR compression is approximately 50% faster on
240compressible data and 200% faster on incompressible data than
241\fBlzjb\fR. It is also approximately 80% faster on decompression, while
242giving approximately 10% better compression ratio.
243
244When the \fBlz4_compress\fR feature is set to \fBenabled\fR, the
245administrator can turn on \fBlz4\fR compression on any dataset on the
a3177028 246pool using the \fBzfs\fR(8) command. Please note that doing so will
9759c60f 247immediately activate the \fBlz4_compress\fR feature on the underlying
62bdd5eb
DL
248pool using the \fBzfs\fR(1M) command. Also, all newly written metadata
249will be compressed with \fBlz4\fR algorithm. Since this feature is not
250read-only compatible, this operation will render the pool unimportable
251on systems without support for the \fBlz4_compress\fR feature. Booting
252off of \fBlz4\fR-compressed root pools is supported.
253
254This feature becomes \fBactive\fR as soon as it is enabled and will
255never return to being \fBenabled\fB.
93cf2076
GW
256.RE
257
258.sp
259.ne 2
260.na
261\fB\fBspacemap_histogram\fR\fR
262.ad
263.RS 4n
264.TS
265l l .
266GUID com.delphix:spacemap_histogram
267READ\-ONLY COMPATIBLE yes
268DEPENDENCIES none
269.TE
270
271This features allows ZFS to maintain more information about how free space
272is organized within the pool. If this feature is \fBenabled\fR, ZFS will
273set this feature to \fBactive\fR when a new space map object is created or
274an existing space map is upgraded to the new format. Once the feature is
275\fBactive\fR, it will remain in that state until the pool is destroyed.
9759c60f
ED
276
277.RE
278
fa86b5db
MA
279.sp
280.ne 2
281.na
282\fB\fBextensible_dataset\fR\fR
283.ad
284.RS 4n
285.TS
286l l .
287GUID com.delphix:extensible_dataset
288READ\-ONLY COMPATIBLE no
289DEPENDENCIES none
290.TE
291
292This feature allows more flexible use of internal ZFS data structures,
293and exists for other features to depend on.
294
295This feature will be \fBactive\fR when the first dependent feature uses it,
296and will be returned to the \fBenabled\fR state when all datasets that use
297this feature are destroyed.
298
299.RE
300
da536844
MA
301.sp
302.ne 2
303.na
304\fB\fBbookmarks\fR\fR
305.ad
306.RS 4n
307.TS
308l l .
309GUID com.delphix:bookmarks
310READ\-ONLY COMPATIBLE yes
311DEPENDENCIES extensible_dataset
312.TE
313
314This feature enables use of the \fBzfs bookmark\fR subcommand.
315
316This feature is \fBactive\fR while any bookmarks exist in the pool.
317All bookmarks in the pool can be listed by running
318\fBzfs list -t bookmark -r \fIpoolname\fR\fR.
319
320.RE
321
b0bc7a84
MG
322.sp
323.ne 2
324.na
325\fB\fBenabled_txg\fR\fR
326.ad
327.RS 4n
328.TS
329l l .
330GUID com.delphix:enabled_txg
331READ\-ONLY COMPATIBLE yes
332DEPENDENCIES none
333.TE
334
335Once this feature is enabled ZFS records the transaction group number
336in which new features are enabled. This has no user-visible impact,
337but other features may depend on this feature.
338
339This feature becomes \fBactive\fR as soon as it is enabled and will
340never return to being \fBenabled\fB.
341
342.RE
343
344.sp
345.ne 2
346.na
347\fB\fBhole_birth\fR\fR
348.ad
349.RS 4n
350.TS
351l l .
352GUID com.delphix:hole_birth
353READ\-ONLY COMPATIBLE no
354DEPENDENCIES enabled_txg
355.TE
356
357This feature improves performance of incremental sends ("zfs send -i")
358and receives for objects with many holes. The most common case of
359hole-filled objects is zvols.
360
361An incremental send stream from snapshot \fBA\fR to snapshot \fBB\fR
362contains information about every block that changed between \fBA\fR and
363\fBB\fR. Blocks which did not change between those snapshots can be
364identified and omitted from the stream using a piece of metadata called
365the 'block birth time', but birth times are not recorded for holes (blocks
366filled only with zeroes). Since holes created after \fBA\fR cannot be
367distinguished from holes created before \fBA\fR, information about every
368hole in the entire filesystem or zvol is included in the send stream.
369
370For workloads where holes are rare this is not a problem. However, when
371incrementally replicating filesystems or zvols with many holes (for
372example a zvol formatted with another filesystem) a lot of time will
373be spent sending and receiving unnecessary information about holes that
374already exist on the receiving side.
375
376Once the \fBhole_birth\fR feature has been enabled the block birth times
377of all new holes will be recorded. Incremental sends between snapshots
378created after this feature is enabled will use this new metadata to avoid
379sending information about holes that already exist on the receiving side.
380
381This feature becomes \fBactive\fR as soon as it is enabled and will
382never return to being \fBenabled\fB.
383
384.RE
385
9b67f605
MA
386.sp
387.ne 2
388.na
389\fB\fBembedded_data\fR\fR
390.ad
391.RS 4n
392.TS
393l l .
394GUID com.delphix:embedded_data
395READ\-ONLY COMPATIBLE no
396DEPENDENCIES none
397.TE
398
399This feature improves the performance and compression ratio of
400highly-compressible blocks. Blocks whose contents can compress to 112 bytes
401or smaller can take advantage of this feature.
402
403When this feature is enabled, the contents of highly-compressible blocks are
404stored in the block "pointer" itself (a misnomer in this case, as it contains
405the compresseed data, rather than a pointer to its location on disk). Thus
406the space of the block (one sector, typically 512 bytes or 4KB) is saved,
407and no additional i/o is needed to read and write the data block.
408
409This feature becomes \fBactive\fR as soon as it is enabled and will
410never return to being \fBenabled\fR.
411
412.RE
b0bc7a84 413
9ae529ec 414.SH "SEE ALSO"
a3177028 415\fBzpool\fR(8)