xref: /illumos-gate/usr/src/man/man7/zpool-features.7 (revision f17620a4f72a29025a22655ba8735ccd20ae174f)
1.\"
2.\" Copyright (c) 2013, 2017 by Delphix. All rights reserved.
3.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
4.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
5.\" Copyright (c) 2014 Integros [integros.com]
6.\" The contents of this file are subject to the terms of the Common Development
7.\" and Distribution License (the "License").  You may not use this file except
8.\" in compliance with the License. You can obtain a copy of the license at
9.\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
10.\"
11.\" See the License for the specific language governing permissions and
12.\" limitations under the License. When distributing Covered Code, include this
13.\" CDDL HEADER in each file and include the License file at
14.\" usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this
15.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
16.\" own identifying information:
17.\" Portions Copyright [yyyy] [name of copyright owner]
18.\" Copyright (c) 2019, Klara Inc.
19.\" Copyright (c) 2019, Allan Jude
20.Dd June 21, 2022
21.Dt ZPOOL-FEATURES 7
22.Os
23.
24.Sh NAME
25.Nm zpool-features
26.Nd description of ZFS pool features
27.
28.Sh DESCRIPTION
29ZFS pool on-disk format versions are specified via
30.Dq features
31which replace the old on-disk format numbers
32.Pq the last supported on-disk format number is 28 .
33To enable a feature on a pool use the
34.Nm zpool Cm upgrade ,
35or set the
36.Sy feature Ns @ Ns Ar feature-name
37property to
38.Sy enabled .
39.Pp
40The pool format does not affect file system version compatibility or the ability
41to send file systems between pools.
42.Pp
43Since most features can be enabled independently of each other, the on-disk
44format of the pool is specified by the set of all features marked as
45.Sy active
46on the pool.
47If the pool was created by another software version
48this set may include unsupported features.
49.
50.Ss Identifying features
51Every feature has a GUID of the form
52.Ar com.example : Ns Ar feature-name .
53The reversed DNS name ensures that the feature's GUID is unique across all ZFS
54implementations.
55When unsupported features are encountered on a pool they will
56be identified by their GUIDs.
57Refer to the documentation for the ZFS
58implementation that created the pool for information about those features.
59.Pp
60Each supported feature also has a short name.
61By convention a feature's short name is the portion of its GUID which follows the
62.Sq \&:
63.Po
64i.e.
65.Ar com.example : Ns Ar feature-name
66would have the short name
67.Ar feature-name
68.Pc ,
69however a feature's short name may differ across ZFS implementations if
70following the convention would result in name conflicts.
71.
72.Ss Feature states
73Features can be in one of three states:
74.Bl -tag -width "disabled"
75.It Sy active
76This feature's on-disk format changes are in effect on the pool.
77Support for this feature is required to import the pool in read-write mode.
78If this feature is not read-only compatible,
79support is also required to import the pool in read-only mode
80.Pq see Sx Read-only compatibility .
81.It Sy enabled
82An administrator has marked this feature as enabled on the pool, but the
83feature's on-disk format changes have not been made yet.
84The pool can still be imported by software that does not support this feature,
85but changes may be made to the on-disk format at any time
86which will move the feature to the
87.Sy active
88state.
89Some features may support returning to the
90.Sy enabled
91state after becoming
92.Sy active .
93See feature-specific documentation for details.
94.It Sy disabled
95This feature's on-disk format changes have not been made and will not be made
96unless an administrator moves the feature to the
97.Sy enabled
98state.
99Features cannot be disabled once they have been enabled.
100.El
101.Pp
102The state of supported features is exposed through pool properties of the form
103.Sy feature Ns @ Ns Ar short-name .
104.
105.Ss Read-only compatibility
106Some features may make on-disk format changes that do not interfere with other
107software's ability to read from the pool.
108These features are referred to as
109.Dq read-only compatible .
110If all unsupported features on a pool are read-only compatible,
111the pool can be imported in read-only mode by setting the
112.Sy readonly
113property during import
114.Po see
115.Xr zpool 8
116for details on importing pools
117.Pc .
118.
119.Ss Unsupported features
120For each unsupported feature enabled on an imported pool, a pool property
121named
122.Sy unsupported Ns @ Ns Ar feature-name
123will indicate why the import was allowed despite the unsupported feature.
124Possible values for this property are:
125.Bl -tag -width "readonly"
126.It Sy inactive
127The feature is in the
128.Sy enabled
129state and therefore the pool's on-disk
130format is still compatible with software that does not support this feature.
131.It Sy readonly
132The feature is read-only compatible and the pool has been imported in
133read-only mode.
134.El
135.
136.Ss Feature dependencies
137Some features depend on other features being enabled in order to function.
138Enabling a feature will automatically enable any features it depends on.
139.
140.de feature
141.It Sy \\$2
142.Bl -tag -compact -width "READ-ONLY COMPATIBLE"
143.It GUID
144.Sy \\$1:\\$2
145.if !"\\$4"" \{\
146.It DEPENDENCIES
147\fB\\$4\fP\c
148.if !"\\$5"" , \fB\\$5\fP\c
149.if !"\\$6"" , \fB\\$6\fP\c
150.if !"\\$7"" , \fB\\$7\fP\c
151.if !"\\$8"" , \fB\\$8\fP\c
152.if !"\\$9"" , \fB\\$9\fP\c
153.\}
154.It READ-ONLY COMPATIBLE
155\\$3
156.El
157.Pp
158..
159.
160.ds instant-never \
161.No This feature becomes Sy active No as soon as it is enabled \
162and will never return to being Sy enabled .
163.
164.ds remount-upgrade \
165.No Each filesystem will be upgraded automatically when remounted, \
166or when a new file is created under that filesystem. \
167The upgrade can also be triggered on filesystems via \
168Nm zfs Cm set Sy version Ns = Ns Sy current Ar fs . \
169No The upgrade process runs in the background and may take a while to complete \
170for filesystems containing large amounts of files.
171.
172.de checksum-spiel
173When the
174.Sy \\$1
175feature is set to
176.Sy enabled ,
177the administrator can turn on the
178.Sy \\$1
179checksum on any dataset using
180.Nm zfs Cm set Sy checksum Ns = Ns Sy \\$1 Ar dset
181.Po see Xr zfs 8 Pc .
182This feature becomes
183.Sy active
184once a
185.Sy checksum
186property has been set to
187.Sy \\$1 ,
188and will return to being
189.Sy enabled
190once all filesystems that have ever had their checksum set to
191.Sy \\$1
192are destroyed.
193..
194.
195.Sh FEATURES
196The following features are supported on this system:
197.Bl -tag -width Ds
198.feature org.zfsonlinux allocation_classes yes
199This feature enables support for separate allocation classes.
200.Pp
201This feature becomes
202.Sy active
203when a dedicated allocation class vdev
204.Pq dedup or special
205is created with the
206.Nm zpool Cm create No or Nm zpool Cm add No commands .
207With device removal, it can be returned to the
208.Sy enabled
209state if all the dedicated allocation class vdevs are removed.
210.
211.feature com.delphix async_destroy yes
212Destroying a file system requires traversing all of its data in order to
213return its used space to the pool.
214Without
215.Sy async_destroy ,
216the file system is not fully removed until all space has been reclaimed.
217If the destroy operation is interrupted by a reboot or power outage,
218the next attempt to open the pool will need to complete the destroy
219operation synchronously.
220.Pp
221When
222.Sy async_destroy
223is enabled, the file system's data will be reclaimed by a background process,
224allowing the destroy operation to complete
225without traversing the entire file system.
226The background process is able to resume
227interrupted destroys after the pool has been opened, eliminating the need
228to finish interrupted destroys as part of the open operation.
229The amount of space remaining to be reclaimed by the background process
230is available through the
231.Sy freeing
232property.
233.Pp
234This feature is only
235.Sy active
236while
237.Sy freeing
238is non-zero.
239.
240.feature com.delphix bookmarks yes extensible_dataset
241This feature enables use of the
242.Nm zfs Cm bookmark
243command.
244.Pp
245This feature is
246.Sy active
247while any bookmarks exist in the pool.
248All bookmarks in the pool can be listed by running
249.Nm zfs Cm list Fl t Sy bookmark Fl r Ar poolname .
250.
251.feature com.datto bookmark_v2 no bookmark extensible_dataset
252This feature enables the creation and management of larger bookmarks which are
253needed for other features in ZFS.
254.Pp
255This feature becomes
256.Sy active
257when a v2 bookmark is created and will be returned to the
258.Sy enabled
259state when all v2 bookmarks are destroyed.
260.
261.feature com.delphix device_removal no
262This feature enables the
263.Nm zpool Cm remove
264command to remove top-level vdevs,
265evacuating them to reduce the total size of the pool.
266.Pp
267This feature becomes
268.Sy active
269when the
270.Nm zpool Cm remove
271command is used
272on a top-level vdev, and will never return to being
273.Sy enabled .
274.
275.feature org.illumos edonr no extensible_dataset
276This feature enables the use of the Edon-R hash algorithm for checksum,
277including for nopwrite
278.Po if compression is also enabled, an overwrite of
279a block whose checksum matches the data being written will be ignored
280.Pc .
281In an abundance of caution, Edon-R requires verification when used with
282dedup:
283.Nm zfs Cm set Sy dedup Ns = Ns Sy edonr , Ns Sy verify
284.Po see Xr zfs 8 Pc .
285.Pp
286Edon-R is a very high-performance hash algorithm that was part
287of the NIST SHA-3 competition.
288It provides extremely high hash performance
289.Pq over 350% faster than SHA-256 ,
290but was not selected because of its unsuitability
291as a general purpose secure hash algorithm.
292This implementation utilizes the new salted checksumming functionality
293in ZFS, which means that the checksum is pre-seeded with a secret
294256-bit random key
295.Pq stored on the pool
296before being fed the data block to be checksummed.
297Thus the produced checksums are unique to a given pool,
298preventing hash collision attacks on systems with dedup.
299.Pp
300.checksum-spiel edonr
301.
302.feature com.delphix embedded_data no
303This feature improves the performance and compression ratio of
304highly-compressible blocks.
305Blocks whose contents can compress to 112 bytes
306or smaller can take advantage of this feature.
307.Pp
308When this feature is enabled, the contents of highly-compressible blocks are
309stored in the block
310.Dq pointer
311itself
312.Po a misnomer in this case, as it contains
313the compressed data, rather than a pointer to its location on disk
314.Pc .
315Thus the space of the block
316.Pq one sector, typically 512 B or 4 KiB
317is saved, and no additional I/O is needed to read and write the data block.
318.
319\*[instant-never]
320.
321.feature com.delphix empty_bpobj yes
322This feature increases the performance of creating and using a large
323number of snapshots of a single filesystem or volume, and also reduces
324the disk space required.
325.Pp
326When there are many snapshots, each snapshot uses many Block Pointer
327Objects
328.Pq bpobjs
329to track blocks associated with that snapshot.
330However, in common use cases, most of these bpobjs are empty.
331This feature allows us to create each bpobj on-demand,
332thus eliminating the empty bpobjs.
333.Pp
334This feature is
335.Sy active
336while there are any filesystems, volumes,
337or snapshots which were created after enabling this feature.
338.
339.feature com.delphix enabled_txg yes
340Once this feature is enabled, ZFS records the transaction group number
341in which new features are enabled.
342This has no user-visible impact, but other features may depend on this feature.
343.Pp
344This feature becomes
345.Sy active
346as soon as it is enabled and will never return to being
347.Sy enabled .
348.
349.feature com.datto encryption no bookmark_v2 extensible_dataset
350This feature enables the creation and management of natively encrypted datasets.
351.Pp
352This feature becomes
353.Sy active
354when an encrypted dataset is created and will be returned to the
355.Sy enabled
356state when all datasets that use this feature are destroyed.
357.
358.feature com.delphix extensible_dataset no
359This feature allows more flexible use of internal ZFS data structures,
360and exists for other features to depend on.
361.Pp
362This feature will be
363.Sy active
364when the first dependent feature uses it, and will be returned to the
365.Sy enabled
366state when all datasets that use this feature are destroyed.
367.
368.feature com.joyent filesystem_limits yes extensible_dataset
369This feature enables filesystem and snapshot limits.
370These limits can be used to control how many filesystems and/or snapshots
371can be created at the point in the tree on which the limits are set.
372.Pp
373This feature is
374.Sy active
375once either of the limit properties has been set on a dataset
376and will never return to being
377.Sy enabled .
378.
379.feature com.delphix hole_birth no enabled_txg
380This feature has/had bugs, the result of which is that, if you do a
381.Nm zfs Cm send Fl i
382.Pq or Fl R , No since it uses Fl i
383from an affected dataset, the receiving party will not see any checksum
384or other errors, but the resulting destination snapshot
385will not match the source.
386Its use by
387.Nm zfs Cm send Fl i
388has been disabled by default
389.Po
390see
391.Sy send_holes_without_birth_time
392in
393.Xr zfs 4
394.Pc .
395.Pp
396This feature improves performance of incremental sends
397.Pq Nm zfs Cm send Fl i
398and receives for objects with many holes.
399The most common case of hole-filled objects is zvols.
400.Pp
401An incremental send stream from snapshot
402.Sy A No to snapshot Sy B
403contains information about every block that changed between
404.Sy A No and Sy B .
405Blocks which did not change between those snapshots can be
406identified and omitted from the stream using a piece of metadata called
407the
408.Dq block birth time ,
409but birth times are not recorded for holes
410.Pq blocks filled only with zeroes .
411Since holes created after
412.Sy A No cannot be distinguished from holes created before Sy A ,
413information about every hole in the entire filesystem or zvol
414is included in the send stream.
415.Pp
416For workloads where holes are rare this is not a problem.
417However, when incrementally replicating filesystems or zvols with many holes
418.Pq for example a zvol formatted with another filesystem
419a lot of time will be spent sending and receiving unnecessary information
420about holes that already exist on the receiving side.
421.Pp
422Once the
423.Sy hole_birth
424feature has been enabled the block birth times
425of all new holes will be recorded.
426Incremental sends between snapshots created after this feature is enabled
427will use this new metadata to avoid sending information about holes that
428already exist on the receiving side.
429.Pp
430\*[instant-never]
431.
432.feature org.open-zfs large_blocks no extensible_dataset
433This feature allows the record size on a dataset to be set larger than 128 KiB.
434.Pp
435This feature becomes
436.Sy active
437once a dataset contains a file with a block size larger than 128 KiB,
438and will return to being
439.Sy enabled
440once all filesystems that have ever had their recordsize larger than 128 KiB
441are destroyed.
442.
443.feature org.zfsonlinux large_dnode no extensible_dataset
444This feature allows the size of dnodes in a dataset to be set larger than 512 B.
445.
446This feature becomes
447.Sy active
448once a dataset contains an object with a dnode larger than 512 B,
449which occurs as a result of setting the
450.Sy dnodesize
451dataset property to a value other than
452.Sy legacy .
453The feature will return to being
454.Sy enabled
455once all filesystems that have ever contained a dnode larger than 512 B
456are destroyed.
457Large dnodes allow more data to be stored in the bonus buffer,
458thus potentially improving performance by avoiding the use of spill blocks.
459.
460.feature com.delphix log_spacemap yes com.delphix:spacemap_v2
461This feature improves performance for heavily-fragmented pools,
462especially when workloads are heavy in random-writes.
463It does so by logging all the metaslab changes on a single spacemap every TXG
464instead of scattering multiple writes to all the metaslab spacemaps.
465.Pp
466\*[instant-never]
467.
468.feature org.illumos lz4_compress no
469.Sy lz4
470is a high-performance real-time compression algorithm that
471features significantly faster compression and decompression as well as a
472higher compression ratio than the older
473.Sy lzjb
474compression.
475Typically,
476.Sy lz4
477compression is approximately 50% faster on compressible data and 200% faster
478on incompressible data than
479.Sy lzjb .
480It is also approximately 80% faster on decompression,
481while giving approximately a 10% better compression ratio.
482.Pp
483When the
484.Sy lz4_compress
485feature is set to
486.Sy enabled ,
487the administrator can turn on
488.Sy lz4
489compression on any dataset on the pool using the
490.Xr zfs 8
491command.
492All newly written metadata will be compressed with the
493.Sy lz4
494algorithm.
495.Pp
496\*[instant-never]
497.
498.feature com.joyent multi_vdev_crash_dump no
499This feature allows a dump device to be configured with a pool comprised
500of multiple vdevs.
501Those vdevs may be arranged in any mirrored or raidz configuration.
502.Pp
503When the
504.Sy multi_vdev_crash_dump
505feature is set to
506.Sy enabled ,
507the administrator can use
508.Xr dumpadm 8
509to configure a dump device on a pool comprised of multiple vdevs.
510.Pp
511Under
512.Fx
513and Linux this feature is unused, but registered for compatibility.
514New pools created on these systems will have the feature
515.Sy enabled
516but will never transition to
517.Sy active ,
518as this functionality is not required for crash dump support.
519Existing pools where this feature is
520.Sy active
521can be imported.
522.
523.feature com.delphix obsolete_counts yes device_removal
524This feature is an enhancement of
525.Sy device_removal ,
526which will over time reduce the memory used to track removed devices.
527When indirect blocks are freed or remapped,
528we note that their part of the indirect mapping is
529.Dq obsolete
530– no longer needed.
531.Pp
532This feature becomes
533.Sy active
534when the
535.Nm zpool Cm remove
536command is used on a top-level vdev, and will never return to being
537.Sy enabled .
538.
539.feature org.zfsonlinux project_quota yes extensible_dataset
540This feature allows administrators to account the spaces and objects usage
541information against the project identifier
542.Pq ID .
543.Pp
544The project ID is an object-based attribute.
545When upgrading an existing filesystem,
546objects without a project ID will be assigned a zero project ID.
547When this feature is enabled, newly created objects inherit
548their parent directories' project ID if the parent's inherit flag is set
549.Pq via Nm chattr Sy [+-]P No or Nm zfs Cm project Fl s Ns | Ns Fl C .
550Otherwise, the new object's project ID will be zero.
551An object's project ID can be changed at any time by the owner
552.Pq or privileged user
553via
554.Nm chattr Fl p Ar prjid
555or
556.Nm zfs Cm project Fl p Ar prjid .
557.Pp
558This feature will become
559.Sy active
560as soon as it is enabled and will never return to being
561.Sy disabled .
562\*[remount-upgrade]
563.
564.feature com.datto resilver_defer yes
565This feature allows ZFS to postpone new resilvers if an existing one is already
566in progress.
567Without this feature, any new resilvers will cause the currently
568running one to be immediately restarted from the beginning.
569.Pp
570This feature becomes
571.Sy active
572once a resilver has been deferred, and returns to being
573.Sy enabled
574when the deferred resilver begins.
575.
576.feature org.illumos sha512 no extensible_dataset
577This feature enables the use of the SHA-512/256 truncated hash algorithm
578.Pq FIPS 180-4
579for checksum and dedup.
580The native 64-bit arithmetic of SHA-512 provides an approximate 50%
581performance boost over SHA-256 on 64-bit hardware
582and is thus a good minimum-change replacement candidate
583for systems where hash performance is important,
584but these systems cannot for whatever reason utilize the faster
585.Sy skein No and Sy edonr
586algorithms.
587.Pp
588.checksum-spiel sha512
589.
590.feature org.illumos skein no extensible_dataset
591This feature enables the use of the Skein hash algorithm for checksum and dedup.
592Skein is a high-performance secure hash algorithm that was a
593finalist in the NIST SHA-3 competition.
594It provides a very high security margin and high performance on 64-bit hardware
595.Pq 80% faster than SHA-256 .
596This implementation also utilizes the new salted checksumming
597functionality in ZFS, which means that the checksum is pre-seeded with a
598secret 256-bit random key
599.Pq stored on the pool
600before being fed the data block to be checksummed.
601Thus the produced checksums are unique to a given pool,
602preventing hash collision attacks on systems with dedup.
603.Pp
604.checksum-spiel skein
605.
606.feature com.delphix spacemap_histogram yes
607This features allows ZFS to maintain more information about how free space
608is organized within the pool.
609If this feature is
610.Sy enabled ,
611it will be activated when a new space map object is created, or
612an existing space map is upgraded to the new format,
613and never returns back to being
614.Sy enabled .
615.
616.feature com.delphix spacemap_v2 yes
617This feature enables the use of the new space map encoding which
618consists of two words
619.Pq instead of one
620whenever it is advantageous.
621The new encoding allows space maps to represent large regions of
622space more efficiently on-disk while also increasing their maximum
623addressable offset.
624.Pp
625This feature becomes
626.Sy active
627once it is
628.Sy enabled ,
629and never returns back to being
630.Sy enabled .
631.
632.feature org.zfsonlinux userobj_accounting yes extensible_dataset
633This feature allows administrators to account the object usage information
634by user and group.
635.Pp
636\*[instant-never]
637\*[remount-upgrade]
638.
639.feature org.openzfs zilsaxattr yes extensible_dataset
640This feature enables
641.Sy xattr Ns = Ns Sy sa
642extended attribute logging in the ZIL.
643If enabled, extended attribute changes
644.Pq both Sy xattrdir Ns = Ns Sy dir No and Sy xattr Ns = Ns Sy sa
645are guaranteed to be durable if either the dataset had
646.Sy sync Ns = Ns Sy always
647set at the time the changes were made, or
648.Xr sync 2
649is called on the dataset after the changes were made.
650.Pp
651This feature becomes
652.Sy active
653when a ZIL is created for at least one dataset and will be returned to the
654.Sy enabled
655state when it is destroyed for all datasets that use this feature.
656.
657.feature com.delphix zpool_checkpoint yes
658This feature enables the
659.Nm zpool Cm checkpoint
660command that can checkpoint the state of the pool
661at the time it was issued and later rewind back to it or discard it.
662.Pp
663This feature becomes
664.Sy active
665when the
666.Nm zpool Cm checkpoint
667command is used to checkpoint the pool.
668The feature will only return back to being
669.Sy enabled
670when the pool is rewound or the checkpoint has been discarded.
671.El
672.
673.Sh SEE ALSO
674.Xr zfs 8 ,
675.Xr zpool 8
676