xref: /freebsd-src/sys/contrib/openzfs/man/man7/zpoolprops.7 (revision 17aab35a77a1b1bf02fc85bb8ffadccb0ca5006d)
13ff01b23SMartin Matuska.\"
23ff01b23SMartin Matuska.\" CDDL HEADER START
33ff01b23SMartin Matuska.\"
43ff01b23SMartin Matuska.\" The contents of this file are subject to the terms of the
53ff01b23SMartin Matuska.\" Common Development and Distribution License (the "License").
63ff01b23SMartin Matuska.\" You may not use this file except in compliance with the License.
73ff01b23SMartin Matuska.\"
83ff01b23SMartin Matuska.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0.
103ff01b23SMartin Matuska.\" See the License for the specific language governing permissions
113ff01b23SMartin Matuska.\" and limitations under the License.
123ff01b23SMartin Matuska.\"
133ff01b23SMartin Matuska.\" When distributing Covered Code, include this CDDL HEADER in each
143ff01b23SMartin Matuska.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153ff01b23SMartin Matuska.\" If applicable, add the following below this CDDL HEADER, with the
163ff01b23SMartin Matuska.\" fields enclosed by brackets "[]" replaced with your own identifying
173ff01b23SMartin Matuska.\" information: Portions Copyright [yyyy] [name of copyright owner]
183ff01b23SMartin Matuska.\"
193ff01b23SMartin Matuska.\" CDDL HEADER END
203ff01b23SMartin Matuska.\"
213ff01b23SMartin Matuska.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
223ff01b23SMartin Matuska.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
233ff01b23SMartin Matuska.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
243ff01b23SMartin Matuska.\" Copyright (c) 2017 Datto Inc.
253ff01b23SMartin Matuska.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
263ff01b23SMartin Matuska.\" Copyright 2017 Nexenta Systems, Inc.
273ff01b23SMartin Matuska.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
283ff01b23SMartin Matuska.\" Copyright (c) 2021, Colm Buckley <colm@tuatha.org>
29c98ecfceSAllan Jude.\" Copyright (c) 2023, Klara Inc.
303ff01b23SMartin Matuska.\"
31*17aab35aSMartin Matuska.Dd November 18, 2024
323ff01b23SMartin Matuska.Dt ZPOOLPROPS 7
333ff01b23SMartin Matuska.Os
343ff01b23SMartin Matuska.
353ff01b23SMartin Matuska.Sh NAME
363ff01b23SMartin Matuska.Nm zpoolprops
373ff01b23SMartin Matuska.Nd properties of ZFS storage pools
383ff01b23SMartin Matuska.
393ff01b23SMartin Matuska.Sh DESCRIPTION
403ff01b23SMartin MatuskaEach pool has several properties associated with it.
413ff01b23SMartin MatuskaSome properties are read-only statistics while others are configurable and
423ff01b23SMartin Matuskachange the behavior of the pool.
433ff01b23SMartin Matuska.Pp
44c98ecfceSAllan JudeUser properties have no effect on ZFS behavior.
45c98ecfceSAllan JudeUse them to annotate pools in a way that is meaningful in your environment.
46c98ecfceSAllan JudeFor more information about user properties, see the
47c98ecfceSAllan Jude.Sx User Properties
48c98ecfceSAllan Judesection.
49c98ecfceSAllan Jude.Pp
503ff01b23SMartin MatuskaThe following are read-only properties:
513ff01b23SMartin Matuska.Bl -tag -width "unsupported@guid"
522a58b312SMartin Matuska.It Sy allocated
533ff01b23SMartin MatuskaAmount of storage used within the pool.
543ff01b23SMartin MatuskaSee
553ff01b23SMartin Matuska.Sy fragmentation
563ff01b23SMartin Matuskaand
573ff01b23SMartin Matuska.Sy free
583ff01b23SMartin Matuskafor more information.
592a58b312SMartin Matuska.It Sy bcloneratio
602a58b312SMartin MatuskaThe ratio of the total amount of storage that would be required to store all
612a58b312SMartin Matuskathe cloned blocks without cloning to the actual storage used.
622a58b312SMartin MatuskaThe
632a58b312SMartin Matuska.Sy bcloneratio
642a58b312SMartin Matuskaproperty is calculated as:
652a58b312SMartin Matuska.Pp
662a58b312SMartin Matuska.Sy ( ( bclonesaved + bcloneused ) * 100 ) / bcloneused
672a58b312SMartin Matuska.It Sy bclonesaved
682a58b312SMartin MatuskaThe amount of additional storage that would be required if block cloning
692a58b312SMartin Matuskawas not used.
702a58b312SMartin Matuska.It Sy bcloneused
712a58b312SMartin MatuskaThe amount of storage used by cloned blocks.
723ff01b23SMartin Matuska.It Sy capacity
733ff01b23SMartin MatuskaPercentage of pool space used.
743ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
753ff01b23SMartin Matuska.Sy cap .
76ce4dcb97SMartin Matuska.It Sy dedupcached
77ce4dcb97SMartin MatuskaTotal size of the deduplication table currently loaded into the ARC.
78ce4dcb97SMartin MatuskaSee
79ce4dcb97SMartin Matuska.Xr zpool-prefetch 8 .
80ce4dcb97SMartin Matuska.It Sy dedup_table_size
81ce4dcb97SMartin MatuskaTotal on-disk size of the deduplication table.
823ff01b23SMartin Matuska.It Sy expandsize
833ff01b23SMartin MatuskaAmount of uninitialized space within the pool or device that can be used to
843ff01b23SMartin Matuskaincrease the total capacity of the pool.
853ff01b23SMartin MatuskaOn whole-disk vdevs, this is the space beyond the end of the GPT –
863ff01b23SMartin Matuskatypically occurring when a LUN is dynamically expanded
873ff01b23SMartin Matuskaor a disk replaced with a larger one.
883ff01b23SMartin MatuskaOn partition vdevs, this is the space appended to the partition after it was
893ff01b23SMartin Matuskaadded to the pool – most likely by resizing it in-place.
903ff01b23SMartin MatuskaThe space can be claimed for the pool by bringing it online with
913ff01b23SMartin Matuska.Sy autoexpand=on
923ff01b23SMartin Matuskaor using
933ff01b23SMartin Matuska.Nm zpool Cm online Fl e .
943ff01b23SMartin Matuska.It Sy fragmentation
953ff01b23SMartin MatuskaThe amount of fragmentation in the pool.
963ff01b23SMartin MatuskaAs the amount of space
973ff01b23SMartin Matuska.Sy allocated
983ff01b23SMartin Matuskaincreases, it becomes more difficult to locate
993ff01b23SMartin Matuska.Sy free
1003ff01b23SMartin Matuskaspace.
1013ff01b23SMartin MatuskaThis may result in lower write performance compared to pools with more
1023ff01b23SMartin Matuskaunfragmented free space.
1033ff01b23SMartin Matuska.It Sy free
1043ff01b23SMartin MatuskaThe amount of free space available in the pool.
1053ff01b23SMartin MatuskaBy contrast, the
1063ff01b23SMartin Matuska.Xr zfs 8
1073ff01b23SMartin Matuska.Sy available
1083ff01b23SMartin Matuskaproperty describes how much new data can be written to ZFS filesystems/volumes.
1093ff01b23SMartin MatuskaThe zpool
1103ff01b23SMartin Matuska.Sy free
111bb2d13b6SMartin Matuskaproperty is not generally useful for this purpose, and can be substantially more
112bb2d13b6SMartin Matuskathan the zfs
1133ff01b23SMartin Matuska.Sy available
1143ff01b23SMartin Matuskaspace.
1153ff01b23SMartin MatuskaThis discrepancy is due to several factors, including raidz parity;
116bb2d13b6SMartin Matuskazfs reservation, quota, refreservation, and refquota properties; and space set
117bb2d13b6SMartin Matuskaaside by
1183ff01b23SMartin Matuska.Sy spa_slop_shift
1193ff01b23SMartin Matuska(see
1203ff01b23SMartin Matuska.Xr zfs 4
1213ff01b23SMartin Matuskafor more information).
1223ff01b23SMartin Matuska.It Sy freeing
1233ff01b23SMartin MatuskaAfter a file system or snapshot is destroyed, the space it was using is
1243ff01b23SMartin Matuskareturned to the pool asynchronously.
1253ff01b23SMartin Matuska.Sy freeing
1263ff01b23SMartin Matuskais the amount of space remaining to be reclaimed.
1273ff01b23SMartin MatuskaOver time
1283ff01b23SMartin Matuska.Sy freeing
1293ff01b23SMartin Matuskawill decrease while
1303ff01b23SMartin Matuska.Sy free
1313ff01b23SMartin Matuskaincreases.
1322a58b312SMartin Matuska.It Sy guid
1332a58b312SMartin MatuskaA unique identifier for the pool.
1343ff01b23SMartin Matuska.It Sy health
1353ff01b23SMartin MatuskaThe current health of the pool.
1363ff01b23SMartin MatuskaHealth can be one of
1373ff01b23SMartin Matuska.Sy ONLINE , DEGRADED , FAULTED , OFFLINE, REMOVED , UNAVAIL .
138*17aab35aSMartin Matuska.It Sy last_scrubbed_txg
139*17aab35aSMartin MatuskaIndicates the transaction group (TXG) up to which the most recent scrub
140*17aab35aSMartin Matuskaoperation has checked and repaired the dataset.
141*17aab35aSMartin MatuskaThis provides insight into the data integrity status of their pool at
142*17aab35aSMartin Matuskaa specific point in time.
143*17aab35aSMartin Matuska.Xr zpool-scrub 8
144*17aab35aSMartin Matuskacan utilize this property to scan only data that has changed since the last
145*17aab35aSMartin Matuskascrub completed, when given the
146*17aab35aSMartin Matuska.Fl C
147*17aab35aSMartin Matuskaflag.
148*17aab35aSMartin MatuskaThis property is not updated when performing an error scrub with the
149*17aab35aSMartin Matuska.Fl e
150*17aab35aSMartin Matuskaflag.
1512a58b312SMartin Matuska.It Sy leaked
1522a58b312SMartin MatuskaSpace not released while
1532a58b312SMartin Matuska.Sy freeing
1542a58b312SMartin Matuskadue to corruption, now permanently leaked into the pool.
1553ff01b23SMartin Matuska.It Sy load_guid
1563ff01b23SMartin MatuskaA unique identifier for the pool.
1573ff01b23SMartin MatuskaUnlike the
1583ff01b23SMartin Matuska.Sy guid
1593ff01b23SMartin Matuskaproperty, this identifier is generated every time we load the pool (i.e. does
1603ff01b23SMartin Matuskanot persist across imports/exports) and never changes while the pool is loaded
1613ff01b23SMartin Matuska(even if a
1623ff01b23SMartin Matuska.Sy reguid
1633ff01b23SMartin Matuskaoperation takes place).
1643ff01b23SMartin Matuska.It Sy size
1653ff01b23SMartin MatuskaTotal size of the storage pool.
1663ff01b23SMartin Matuska.It Sy unsupported@ Ns Em guid
1673ff01b23SMartin MatuskaInformation about unsupported features that are enabled on the pool.
1683ff01b23SMartin MatuskaSee
1693ff01b23SMartin Matuska.Xr zpool-features 7
1703ff01b23SMartin Matuskafor details.
1713ff01b23SMartin Matuska.El
1723ff01b23SMartin Matuska.Pp
1733ff01b23SMartin MatuskaThe space usage properties report actual physical space available to the
1743ff01b23SMartin Matuskastorage pool.
1753ff01b23SMartin MatuskaThe physical space can be different from the total amount of space that any
1763ff01b23SMartin Matuskacontained datasets can actually use.
1773ff01b23SMartin MatuskaThe amount of space used in a raidz configuration depends on the characteristics
1783ff01b23SMartin Matuskaof the data being written.
1793ff01b23SMartin MatuskaIn addition, ZFS reserves some space for internal accounting that the
1803ff01b23SMartin Matuska.Xr zfs 8
1813ff01b23SMartin Matuskacommand takes into account, but the
1823ff01b23SMartin Matuska.Nm
1833ff01b23SMartin Matuskacommand does not.
1843ff01b23SMartin MatuskaFor non-full pools of a reasonable size, these effects should be invisible.
1853ff01b23SMartin MatuskaFor small pools, or pools that are close to being completely full, these
1863ff01b23SMartin Matuskadiscrepancies may become more noticeable.
1873ff01b23SMartin Matuska.Pp
1883ff01b23SMartin MatuskaThe following property can be set at creation time and import time:
1893ff01b23SMartin Matuska.Bl -tag -width Ds
1903ff01b23SMartin Matuska.It Sy altroot
1913ff01b23SMartin MatuskaAlternate root directory.
1923ff01b23SMartin MatuskaIf set, this directory is prepended to any mount points within the pool.
1933ff01b23SMartin MatuskaThis can be used when examining an unknown pool where the mount points cannot be
1943ff01b23SMartin Matuskatrusted, or in an alternate boot environment, where the typical paths are not
1953ff01b23SMartin Matuskavalid.
1963ff01b23SMartin Matuska.Sy altroot
1973ff01b23SMartin Matuskais not a persistent property.
1983ff01b23SMartin MatuskaIt is valid only while the system is up.
1993ff01b23SMartin MatuskaSetting
2003ff01b23SMartin Matuska.Sy altroot
2013ff01b23SMartin Matuskadefaults to using
2023ff01b23SMartin Matuska.Sy cachefile Ns = Ns Sy none ,
2033ff01b23SMartin Matuskathough this may be overridden using an explicit setting.
2043ff01b23SMartin Matuska.El
2053ff01b23SMartin Matuska.Pp
2063ff01b23SMartin MatuskaThe following property can be set only at import time:
2073ff01b23SMartin Matuska.Bl -tag -width Ds
2083ff01b23SMartin Matuska.It Sy readonly Ns = Ns Sy on Ns | Ns Sy off
2093ff01b23SMartin MatuskaIf set to
2103ff01b23SMartin Matuska.Sy on ,
2113ff01b23SMartin Matuskathe pool will be imported in read-only mode.
2123ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
2133ff01b23SMartin Matuska.Sy rdonly .
2143ff01b23SMartin Matuska.El
2153ff01b23SMartin Matuska.Pp
2163ff01b23SMartin MatuskaThe following properties can be set at creation time and import time, and later
2173ff01b23SMartin Matuskachanged with the
2183ff01b23SMartin Matuska.Nm zpool Cm set
2193ff01b23SMartin Matuskacommand:
2203ff01b23SMartin Matuska.Bl -tag -width Ds
221c7046f76SMartin Matuska.It Sy ashift Ns = Ns Ar ashift
2223ff01b23SMartin MatuskaPool sector size exponent, to the power of
2233ff01b23SMartin Matuska.Sy 2
2243ff01b23SMartin Matuska(internally referred to as
2253ff01b23SMartin Matuska.Sy ashift ) .
2263ff01b23SMartin MatuskaValues from 9 to 16, inclusive, are valid; also, the
2273ff01b23SMartin Matuskavalue 0 (the default) means to auto-detect using the kernel's block
2283ff01b23SMartin Matuskalayer and a ZFS internal exception list.
2293ff01b23SMartin MatuskaI/O operations will be aligned to the specified size boundaries.
2303ff01b23SMartin MatuskaAdditionally, the minimum (disk)
2313ff01b23SMartin Matuskawrite size will be set to the specified size, so this represents a
232c03c5b1cSMartin Matuskaspace/performance trade-off.
2333ff01b23SMartin MatuskaFor optimal performance, the pool sector size should be greater than
2343ff01b23SMartin Matuskaor equal to the sector size of the underlying disks.
2353ff01b23SMartin MatuskaThe typical case for setting this property is when
2363ff01b23SMartin Matuskaperformance is important and the underlying disks use 4KiB sectors but
2373ff01b23SMartin Matuskareport 512B sectors to the OS (for compatibility reasons); in that
2383ff01b23SMartin Matuskacase, set
2393ff01b23SMartin Matuska.Sy ashift Ns = Ns Sy 12
2403ff01b23SMartin Matuska(which is
2413ff01b23SMartin Matuska.Sy 1<<12 No = Sy 4096 ) .
2423ff01b23SMartin MatuskaWhen set, this property is
2433ff01b23SMartin Matuskaused as the default hint value in subsequent vdev operations (add,
2443ff01b23SMartin Matuskaattach and replace).
2453ff01b23SMartin MatuskaChanging this value will not modify any existing
2463ff01b23SMartin Matuskavdev, not even on disk replacement; however it can be used, for
2473ff01b23SMartin Matuskainstance, to replace a dying 512B sectors disk with a newer 4KiB
2483ff01b23SMartin Matuskasectors device: this will probably result in bad performance but at the
2493ff01b23SMartin Matuskasame time could prevent loss of data.
2503ff01b23SMartin Matuska.It Sy autoexpand Ns = Ns Sy on Ns | Ns Sy off
2513ff01b23SMartin MatuskaControls automatic pool expansion when the underlying LUN is grown.
2523ff01b23SMartin MatuskaIf set to
2533ff01b23SMartin Matuska.Sy on ,
2543ff01b23SMartin Matuskathe pool will be resized according to the size of the expanded device.
2553ff01b23SMartin MatuskaIf the device is part of a mirror or raidz then all devices within that
2563ff01b23SMartin Matuskamirror/raidz group must be expanded before the new space is made available to
2573ff01b23SMartin Matuskathe pool.
2583ff01b23SMartin MatuskaThe default behavior is
2593ff01b23SMartin Matuska.Sy off .
2603ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
2613ff01b23SMartin Matuska.Sy expand .
2623ff01b23SMartin Matuska.It Sy autoreplace Ns = Ns Sy on Ns | Ns Sy off
2633ff01b23SMartin MatuskaControls automatic device replacement.
2643ff01b23SMartin MatuskaIf set to
2653ff01b23SMartin Matuska.Sy off ,
2663ff01b23SMartin Matuskadevice replacement must be initiated by the administrator by using the
2673ff01b23SMartin Matuska.Nm zpool Cm replace
2683ff01b23SMartin Matuskacommand.
2693ff01b23SMartin MatuskaIf set to
2703ff01b23SMartin Matuska.Sy on ,
2713ff01b23SMartin Matuskaany new device, found in the same physical location as a device that previously
2723ff01b23SMartin Matuskabelonged to the pool, is automatically formatted and replaced.
2733ff01b23SMartin MatuskaThe default behavior is
2743ff01b23SMartin Matuska.Sy off .
2753ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
2763ff01b23SMartin Matuska.Sy replace .
2773ff01b23SMartin MatuskaAutoreplace can also be used with virtual disks (like device
2783ff01b23SMartin Matuskamapper) provided that you use the /dev/disk/by-vdev paths setup by
2793ff01b23SMartin Matuskavdev_id.conf.
2803ff01b23SMartin MatuskaSee the
2813ff01b23SMartin Matuska.Xr vdev_id 8
2823ff01b23SMartin Matuskamanual page for more details.
2833ff01b23SMartin MatuskaAutoreplace and autoonline require the ZFS Event Daemon be configured and
2843ff01b23SMartin Matuskarunning.
2853ff01b23SMartin MatuskaSee the
2863ff01b23SMartin Matuska.Xr zed 8
2873ff01b23SMartin Matuskamanual page for more details.
2883ff01b23SMartin Matuska.It Sy autotrim Ns = Ns Sy on Ns | Ns Sy off
2893ff01b23SMartin MatuskaWhen set to
2903ff01b23SMartin Matuska.Sy on
2913ff01b23SMartin Matuskaspace which has been recently freed, and is no longer allocated by the pool,
2923ff01b23SMartin Matuskawill be periodically trimmed.
2933ff01b23SMartin MatuskaThis allows block device vdevs which support
2943ff01b23SMartin MatuskaBLKDISCARD, such as SSDs, or file vdevs on which the underlying file system
2953ff01b23SMartin Matuskasupports hole-punching, to reclaim unused blocks.
2963ff01b23SMartin MatuskaThe default value for this property is
2973ff01b23SMartin Matuska.Sy off .
2983ff01b23SMartin Matuska.Pp
2993ff01b23SMartin MatuskaAutomatic TRIM does not immediately reclaim blocks after a free.
3003ff01b23SMartin MatuskaInstead, it will optimistically delay allowing smaller ranges to be aggregated
3013ff01b23SMartin Matuskainto a few larger ones.
3023ff01b23SMartin MatuskaThese can then be issued more efficiently to the storage.
3033ff01b23SMartin MatuskaTRIM on L2ARC devices is enabled by setting
3043ff01b23SMartin Matuska.Sy l2arc_trim_ahead > 0 .
3053ff01b23SMartin Matuska.Pp
3063ff01b23SMartin MatuskaBe aware that automatic trimming of recently freed data blocks can put
3073ff01b23SMartin Matuskasignificant stress on the underlying storage devices.
3083ff01b23SMartin MatuskaThis will vary depending of how well the specific device handles these commands.
3093ff01b23SMartin MatuskaFor lower-end devices it is often possible to achieve most of the benefits
3103ff01b23SMartin Matuskaof automatic trimming by running an on-demand (manual) TRIM periodically
3113ff01b23SMartin Matuskausing the
3123ff01b23SMartin Matuska.Nm zpool Cm trim
3133ff01b23SMartin Matuskacommand.
3143ff01b23SMartin Matuska.It Sy bootfs Ns = Ns Sy (unset) Ns | Ns Ar pool Ns Op / Ns Ar dataset
3153ff01b23SMartin MatuskaIdentifies the default bootable dataset for the root pool.
316bb2d13b6SMartin MatuskaThis property is expected to be set mainly by the installation and upgrade
317bb2d13b6SMartin Matuskaprograms.
3183ff01b23SMartin MatuskaNot all Linux distribution boot processes use the bootfs property.
3193ff01b23SMartin Matuska.It Sy cachefile Ns = Ns Ar path Ns | Ns Sy none
3203ff01b23SMartin MatuskaControls the location of where the pool configuration is cached.
3213ff01b23SMartin MatuskaDiscovering all pools on system startup requires a cached copy of the
3223ff01b23SMartin Matuskaconfiguration data that is stored on the root file system.
3233ff01b23SMartin MatuskaAll pools in this cache are automatically imported when the system boots.
3243ff01b23SMartin MatuskaSome environments, such as install and clustering, need to cache this
3253ff01b23SMartin Matuskainformation in a different location so that pools are not automatically
3263ff01b23SMartin Matuskaimported.
3273ff01b23SMartin MatuskaSetting this property caches the pool configuration in a different location that
3283ff01b23SMartin Matuskacan later be imported with
3293ff01b23SMartin Matuska.Nm zpool Cm import Fl c .
3303ff01b23SMartin MatuskaSetting it to the value
3313ff01b23SMartin Matuska.Sy none
3323ff01b23SMartin Matuskacreates a temporary pool that is never cached, and the
3333ff01b23SMartin Matuska.Qq
3343ff01b23SMartin Matuska.Pq empty string
3353ff01b23SMartin Matuskauses the default location.
3363ff01b23SMartin Matuska.Pp
3373ff01b23SMartin MatuskaMultiple pools can share the same cache file.
3383ff01b23SMartin MatuskaBecause the kernel destroys and recreates this file when pools are added and
3393ff01b23SMartin Matuskaremoved, care should be taken when attempting to access this file.
3403ff01b23SMartin MatuskaWhen the last pool using a
3413ff01b23SMartin Matuska.Sy cachefile
3423ff01b23SMartin Matuskais exported or destroyed, the file will be empty.
3433ff01b23SMartin Matuska.It Sy comment Ns = Ns Ar text
3443ff01b23SMartin MatuskaA text string consisting of printable ASCII characters that will be stored
3453ff01b23SMartin Matuskasuch that it is available even if the pool becomes faulted.
3463ff01b23SMartin MatuskaAn administrator can provide additional information about a pool using this
3473ff01b23SMartin Matuskaproperty.
3483ff01b23SMartin Matuska.It Sy compatibility Ns = Ns Sy off Ns | Ns Sy legacy Ns | Ns Ar file Ns Oo , Ns Ar file Oc Ns …
3493ff01b23SMartin MatuskaSpecifies that the pool maintain compatibility with specific feature sets.
3503ff01b23SMartin MatuskaWhen set to
3513ff01b23SMartin Matuska.Sy off
3523ff01b23SMartin Matuska(or unset) compatibility is disabled (all features may be enabled); when set to
353f552d7adSMartin Matuska.Sy legacy
3543ff01b23SMartin Matuskano features may be enabled.
3553ff01b23SMartin MatuskaWhen set to a comma-separated list of filenames
3563ff01b23SMartin Matuska(each filename may either be an absolute path, or relative to
3573ff01b23SMartin Matuska.Pa /etc/zfs/compatibility.d
3583ff01b23SMartin Matuskaor
3593ff01b23SMartin Matuska.Pa /usr/share/zfs/compatibility.d )
3603ff01b23SMartin Matuskathe lists of requested features are read from those files, separated by
3613ff01b23SMartin Matuskawhitespace and/or commas.
3623ff01b23SMartin MatuskaOnly features present in all files may be enabled.
3633ff01b23SMartin Matuska.Pp
3643ff01b23SMartin MatuskaSee
3653ff01b23SMartin Matuska.Xr zpool-features 7 ,
3663ff01b23SMartin Matuska.Xr zpool-create 8
3673ff01b23SMartin Matuskaand
3683ff01b23SMartin Matuska.Xr zpool-upgrade 8
3693ff01b23SMartin Matuskafor more information on the operation of compatibility feature sets.
370ce4dcb97SMartin Matuska.It Sy dedup_table_quota Ns = Ns Ar number Ns | Ns Sy none Ns | Ns Sy auto
371ce4dcb97SMartin MatuskaThis property sets a limit on the on-disk size of the pool's dedup table.
372ce4dcb97SMartin MatuskaEntries will not be added to the dedup table once this size is reached;
373ce4dcb97SMartin Matuskaif a dedup table already exists, and is larger than this size, they
374ce4dcb97SMartin Matuskawill not be removed as part of setting this property.
375ce4dcb97SMartin MatuskaExisting entries will still have their reference counts updated.
376ce4dcb97SMartin Matuska.Pp
377ce4dcb97SMartin MatuskaThe actual size limit of the table may be above or below the quota,
378ce4dcb97SMartin Matuskadepending on the actual on-disk size of the entries (which may be
379ce4dcb97SMartin Matuskaapproximated for purposes of calculating the quota).
380ce4dcb97SMartin MatuskaThat is, setting a quota size of 1M may result in the maximum size being
381ce4dcb97SMartin Matuskaslightly below, or slightly above, that value.
382ce4dcb97SMartin MatuskaSet to
383ce4dcb97SMartin Matuska.Sy 'none'
384ce4dcb97SMartin Matuskato disable.
385ce4dcb97SMartin MatuskaIn automatic mode, which is the default, the size of a dedicated dedup vdev
386ce4dcb97SMartin Matuskais used as the quota limit.
387ce4dcb97SMartin Matuska.Pp
388ce4dcb97SMartin MatuskaThe
389ce4dcb97SMartin Matuska.Sy dedup_table_quota
390ce4dcb97SMartin Matuskaproperty works for both legacy and fast dedup tables.
3913ff01b23SMartin Matuska.It Sy dedupditto Ns = Ns Ar number
3923ff01b23SMartin MatuskaThis property is deprecated and no longer has any effect.
3933ff01b23SMartin Matuska.It Sy delegation Ns = Ns Sy on Ns | Ns Sy off
3943ff01b23SMartin MatuskaControls whether a non-privileged user is granted access based on the dataset
3953ff01b23SMartin Matuskapermissions defined on the dataset.
3963ff01b23SMartin MatuskaSee
3973ff01b23SMartin Matuska.Xr zfs 8
3983ff01b23SMartin Matuskafor more information on ZFS delegated administration.
3993ff01b23SMartin Matuska.It Sy failmode Ns = Ns Sy wait Ns | Ns Sy continue Ns | Ns Sy panic
4003ff01b23SMartin MatuskaControls the system behavior in the event of catastrophic pool failure.
4013ff01b23SMartin MatuskaThis condition is typically a result of a loss of connectivity to the underlying
4023ff01b23SMartin Matuskastorage device(s) or a failure of all devices within the pool.
4033ff01b23SMartin MatuskaThe behavior of such an event is determined as follows:
4043ff01b23SMartin Matuska.Bl -tag -width "continue"
4053ff01b23SMartin Matuska.It Sy wait
4063ff01b23SMartin MatuskaBlocks all I/O access until the device connectivity is recovered and the errors
407e92ffd9bSMartin Matuskaare cleared with
408e92ffd9bSMartin Matuska.Nm zpool Cm clear .
4093ff01b23SMartin MatuskaThis is the default behavior.
4103ff01b23SMartin Matuska.It Sy continue
4113ff01b23SMartin MatuskaReturns
4123ff01b23SMartin Matuska.Er EIO
4133ff01b23SMartin Matuskato any new write I/O requests but allows reads to any of the remaining healthy
4143ff01b23SMartin Matuskadevices.
4153ff01b23SMartin MatuskaAny write requests that have yet to be committed to disk would be blocked.
4163ff01b23SMartin Matuska.It Sy panic
4173ff01b23SMartin MatuskaPrints out a message to the console and generates a system crash dump.
4183ff01b23SMartin Matuska.El
4193ff01b23SMartin Matuska.It Sy feature@ Ns Ar feature_name Ns = Ns Sy enabled
4203ff01b23SMartin MatuskaThe value of this property is the current state of
4213ff01b23SMartin Matuska.Ar feature_name .
4223ff01b23SMartin MatuskaThe only valid value when setting this property is
4233ff01b23SMartin Matuska.Sy enabled
4243ff01b23SMartin Matuskawhich moves
4253ff01b23SMartin Matuska.Ar feature_name
4263ff01b23SMartin Matuskato the enabled state.
4273ff01b23SMartin MatuskaSee
4283ff01b23SMartin Matuska.Xr zpool-features 7
4293ff01b23SMartin Matuskafor details on feature states.
4303ff01b23SMartin Matuska.It Sy listsnapshots Ns = Ns Sy on Ns | Ns Sy off
4313ff01b23SMartin MatuskaControls whether information about snapshots associated with this pool is
4323ff01b23SMartin Matuskaoutput when
4333ff01b23SMartin Matuska.Nm zfs Cm list
4343ff01b23SMartin Matuskais run without the
4353ff01b23SMartin Matuska.Fl t
4363ff01b23SMartin Matuskaoption.
4373ff01b23SMartin MatuskaThe default value is
4383ff01b23SMartin Matuska.Sy off .
4393ff01b23SMartin MatuskaThis property can also be referred to by its shortened name,
4403ff01b23SMartin Matuska.Sy listsnaps .
4413ff01b23SMartin Matuska.It Sy multihost Ns = Ns Sy on Ns | Ns Sy off
4423ff01b23SMartin MatuskaControls whether a pool activity check should be performed during
4433ff01b23SMartin Matuska.Nm zpool Cm import .
4443ff01b23SMartin MatuskaWhen a pool is determined to be active it cannot be imported, even with the
4453ff01b23SMartin Matuska.Fl f
4463ff01b23SMartin Matuskaoption.
4473ff01b23SMartin MatuskaThis property is intended to be used in failover configurations
4483ff01b23SMartin Matuskawhere multiple hosts have access to a pool on shared storage.
4493ff01b23SMartin Matuska.Pp
4503ff01b23SMartin MatuskaMultihost provides protection on import only.
4513ff01b23SMartin MatuskaIt does not protect against an
4523ff01b23SMartin Matuskaindividual device being used in multiple pools, regardless of the type of vdev.
4533ff01b23SMartin MatuskaSee the discussion under
4543ff01b23SMartin Matuska.Nm zpool Cm create .
4553ff01b23SMartin Matuska.Pp
4563ff01b23SMartin MatuskaWhen this property is on, periodic writes to storage occur to show the pool is
4573ff01b23SMartin Matuskain use.
4583ff01b23SMartin MatuskaSee
4593ff01b23SMartin Matuska.Sy zfs_multihost_interval
4603ff01b23SMartin Matuskain the
4613ff01b23SMartin Matuska.Xr zfs 4
4623ff01b23SMartin Matuskamanual page.
4633ff01b23SMartin MatuskaIn order to enable this property each host must set a unique hostid.
4643ff01b23SMartin MatuskaSee
4653ff01b23SMartin Matuska.Xr genhostid 1
4663ff01b23SMartin Matuska.Xr zgenhostid 8
4673ff01b23SMartin Matuska.Xr spl 4
4683ff01b23SMartin Matuskafor additional details.
4693ff01b23SMartin MatuskaThe default value is
4703ff01b23SMartin Matuska.Sy off .
4713ff01b23SMartin Matuska.It Sy version Ns = Ns Ar version
4723ff01b23SMartin MatuskaThe current on-disk version of the pool.
4733ff01b23SMartin MatuskaThis can be increased, but never decreased.
4743ff01b23SMartin MatuskaThe preferred method of updating pools is with the
4753ff01b23SMartin Matuska.Nm zpool Cm upgrade
4763ff01b23SMartin Matuskacommand, though this property can be used when a specific version is needed for
4773ff01b23SMartin Matuskabackwards compatibility.
4783ff01b23SMartin MatuskaOnce feature flags are enabled on a pool this property will no longer have a
4793ff01b23SMartin Matuskavalue.
4803ff01b23SMartin Matuska.El
481c98ecfceSAllan Jude.
482c98ecfceSAllan Jude.Ss User Properties
483c98ecfceSAllan JudeIn addition to the standard native properties, ZFS supports arbitrary user
484c98ecfceSAllan Judeproperties.
485c98ecfceSAllan JudeUser properties have no effect on ZFS behavior, but applications or
486c98ecfceSAllan Judeadministrators can use them to annotate pools.
487c98ecfceSAllan Jude.Pp
488c98ecfceSAllan JudeUser property names must contain a colon
489c98ecfceSAllan Jude.Pq Qq Sy \&:
490c98ecfceSAllan Judecharacter to distinguish them from native properties.
491c98ecfceSAllan JudeThey may contain lowercase letters, numbers, and the following punctuation
492c98ecfceSAllan Judecharacters: colon
493c98ecfceSAllan Jude.Pq Qq Sy \&: ,
494c98ecfceSAllan Judedash
495c98ecfceSAllan Jude.Pq Qq Sy - ,
496c98ecfceSAllan Judeperiod
497c98ecfceSAllan Jude.Pq Qq Sy \&. ,
498c98ecfceSAllan Judeand underscore
499c98ecfceSAllan Jude.Pq Qq Sy _ .
500c98ecfceSAllan JudeThe expected convention is that the property name is divided into two portions
501c98ecfceSAllan Judesuch as
502c98ecfceSAllan Jude.Ar module : Ns Ar property ,
503c98ecfceSAllan Judebut this namespace is not enforced by ZFS.
504ce4dcb97SMartin MatuskaUser property names can be at most 255 characters, and cannot begin with a dash
505c98ecfceSAllan Jude.Pq Qq Sy - .
506c98ecfceSAllan Jude.Pp
507c98ecfceSAllan JudeWhen making programmatic use of user properties, it is strongly suggested to use
508c98ecfceSAllan Judea reversed DNS domain name for the
509c98ecfceSAllan Jude.Ar module
510c98ecfceSAllan Judecomponent of property names to reduce the chance that two
511c98ecfceSAllan Judeindependently-developed packages use the same property name for different
512c98ecfceSAllan Judepurposes.
513c98ecfceSAllan Jude.Pp
514c98ecfceSAllan JudeThe values of user properties are arbitrary strings and
515c98ecfceSAllan Judeare never validated.
516c98ecfceSAllan JudeAll of the commands that operate on properties
517c98ecfceSAllan Jude.Po Nm zpool Cm list ,
518c98ecfceSAllan Jude.Nm zpool Cm get ,
519c98ecfceSAllan Jude.Nm zpool Cm set ,
520c98ecfceSAllan Judeand so forth
521c98ecfceSAllan Jude.Pc
522c98ecfceSAllan Judecan be used to manipulate both native properties and user properties.
523c98ecfceSAllan JudeUse
524c98ecfceSAllan Jude.Nm zpool Cm set Ar name Ns =
525c98ecfceSAllan Judeto clear a user property.
526c98ecfceSAllan JudeProperty values are limited to 8192 bytes.
527