xref: /freebsd/sys/contrib/openzfs/man/man7/zpoolprops.7 (revision c98ecfceb36159e52c8d7e5cfc0d376393a6a60b)
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>
29*c98ecfceSAllan Jude.\" Copyright (c) 2023, Klara Inc.
303ff01b23SMartin Matuska.\"
31*c98ecfceSAllan Jude.Dd April 18, 2023
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
44*c98ecfceSAllan JudeUser properties have no effect on ZFS behavior.
45*c98ecfceSAllan JudeUse them to annotate pools in a way that is meaningful in your environment.
46*c98ecfceSAllan JudeFor more information about user properties, see the
47*c98ecfceSAllan Jude.Sx User Properties
48*c98ecfceSAllan Judesection.
49*c98ecfceSAllan 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 .
763ff01b23SMartin Matuska.It Sy expandsize
773ff01b23SMartin MatuskaAmount of uninitialized space within the pool or device that can be used to
783ff01b23SMartin Matuskaincrease the total capacity of the pool.
793ff01b23SMartin MatuskaOn whole-disk vdevs, this is the space beyond the end of the GPT –
803ff01b23SMartin Matuskatypically occurring when a LUN is dynamically expanded
813ff01b23SMartin Matuskaor a disk replaced with a larger one.
823ff01b23SMartin MatuskaOn partition vdevs, this is the space appended to the partition after it was
833ff01b23SMartin Matuskaadded to the pool – most likely by resizing it in-place.
843ff01b23SMartin MatuskaThe space can be claimed for the pool by bringing it online with
853ff01b23SMartin Matuska.Sy autoexpand=on
863ff01b23SMartin Matuskaor using
873ff01b23SMartin Matuska.Nm zpool Cm online Fl e .
883ff01b23SMartin Matuska.It Sy fragmentation
893ff01b23SMartin MatuskaThe amount of fragmentation in the pool.
903ff01b23SMartin MatuskaAs the amount of space
913ff01b23SMartin Matuska.Sy allocated
923ff01b23SMartin Matuskaincreases, it becomes more difficult to locate
933ff01b23SMartin Matuska.Sy free
943ff01b23SMartin Matuskaspace.
953ff01b23SMartin MatuskaThis may result in lower write performance compared to pools with more
963ff01b23SMartin Matuskaunfragmented free space.
973ff01b23SMartin Matuska.It Sy free
983ff01b23SMartin MatuskaThe amount of free space available in the pool.
993ff01b23SMartin MatuskaBy contrast, the
1003ff01b23SMartin Matuska.Xr zfs 8
1013ff01b23SMartin Matuska.Sy available
1023ff01b23SMartin Matuskaproperty describes how much new data can be written to ZFS filesystems/volumes.
1033ff01b23SMartin MatuskaThe zpool
1043ff01b23SMartin Matuska.Sy free
105bb2d13b6SMartin Matuskaproperty is not generally useful for this purpose, and can be substantially more
106bb2d13b6SMartin Matuskathan the zfs
1073ff01b23SMartin Matuska.Sy available
1083ff01b23SMartin Matuskaspace.
1093ff01b23SMartin MatuskaThis discrepancy is due to several factors, including raidz parity;
110bb2d13b6SMartin Matuskazfs reservation, quota, refreservation, and refquota properties; and space set
111bb2d13b6SMartin Matuskaaside by
1123ff01b23SMartin Matuska.Sy spa_slop_shift
1133ff01b23SMartin Matuska(see
1143ff01b23SMartin Matuska.Xr zfs 4
1153ff01b23SMartin Matuskafor more information).
1163ff01b23SMartin Matuska.It Sy freeing
1173ff01b23SMartin MatuskaAfter a file system or snapshot is destroyed, the space it was using is
1183ff01b23SMartin Matuskareturned to the pool asynchronously.
1193ff01b23SMartin Matuska.Sy freeing
1203ff01b23SMartin Matuskais the amount of space remaining to be reclaimed.
1213ff01b23SMartin MatuskaOver time
1223ff01b23SMartin Matuska.Sy freeing
1233ff01b23SMartin Matuskawill decrease while
1243ff01b23SMartin Matuska.Sy free
1253ff01b23SMartin Matuskaincreases.
1262a58b312SMartin Matuska.It Sy guid
1272a58b312SMartin MatuskaA unique identifier for the pool.
1283ff01b23SMartin Matuska.It Sy health
1293ff01b23SMartin MatuskaThe current health of the pool.
1303ff01b23SMartin MatuskaHealth can be one of
1313ff01b23SMartin Matuska.Sy ONLINE , DEGRADED , FAULTED , OFFLINE, REMOVED , UNAVAIL .
1322a58b312SMartin Matuska.It Sy leaked
1332a58b312SMartin MatuskaSpace not released while
1342a58b312SMartin Matuska.Sy freeing
1352a58b312SMartin Matuskadue to corruption, now permanently leaked into the pool.
1363ff01b23SMartin Matuska.It Sy load_guid
1373ff01b23SMartin MatuskaA unique identifier for the pool.
1383ff01b23SMartin MatuskaUnlike the
1393ff01b23SMartin Matuska.Sy guid
1403ff01b23SMartin Matuskaproperty, this identifier is generated every time we load the pool (i.e. does
1413ff01b23SMartin Matuskanot persist across imports/exports) and never changes while the pool is loaded
1423ff01b23SMartin Matuska(even if a
1433ff01b23SMartin Matuska.Sy reguid
1443ff01b23SMartin Matuskaoperation takes place).
1453ff01b23SMartin Matuska.It Sy size
1463ff01b23SMartin MatuskaTotal size of the storage pool.
1473ff01b23SMartin Matuska.It Sy unsupported@ Ns Em guid
1483ff01b23SMartin MatuskaInformation about unsupported features that are enabled on the pool.
1493ff01b23SMartin MatuskaSee
1503ff01b23SMartin Matuska.Xr zpool-features 7
1513ff01b23SMartin Matuskafor details.
1523ff01b23SMartin Matuska.El
1533ff01b23SMartin Matuska.Pp
1543ff01b23SMartin MatuskaThe space usage properties report actual physical space available to the
1553ff01b23SMartin Matuskastorage pool.
1563ff01b23SMartin MatuskaThe physical space can be different from the total amount of space that any
1573ff01b23SMartin Matuskacontained datasets can actually use.
1583ff01b23SMartin MatuskaThe amount of space used in a raidz configuration depends on the characteristics
1593ff01b23SMartin Matuskaof the data being written.
1603ff01b23SMartin MatuskaIn addition, ZFS reserves some space for internal accounting that the
1613ff01b23SMartin Matuska.Xr zfs 8
1623ff01b23SMartin Matuskacommand takes into account, but the
1633ff01b23SMartin Matuska.Nm
1643ff01b23SMartin Matuskacommand does not.
1653ff01b23SMartin MatuskaFor non-full pools of a reasonable size, these effects should be invisible.
1663ff01b23SMartin MatuskaFor small pools, or pools that are close to being completely full, these
1673ff01b23SMartin Matuskadiscrepancies may become more noticeable.
1683ff01b23SMartin Matuska.Pp
1693ff01b23SMartin MatuskaThe following property can be set at creation time and import time:
1703ff01b23SMartin Matuska.Bl -tag -width Ds
1713ff01b23SMartin Matuska.It Sy altroot
1723ff01b23SMartin MatuskaAlternate root directory.
1733ff01b23SMartin MatuskaIf set, this directory is prepended to any mount points within the pool.
1743ff01b23SMartin MatuskaThis can be used when examining an unknown pool where the mount points cannot be
1753ff01b23SMartin Matuskatrusted, or in an alternate boot environment, where the typical paths are not
1763ff01b23SMartin Matuskavalid.
1773ff01b23SMartin Matuska.Sy altroot
1783ff01b23SMartin Matuskais not a persistent property.
1793ff01b23SMartin MatuskaIt is valid only while the system is up.
1803ff01b23SMartin MatuskaSetting
1813ff01b23SMartin Matuska.Sy altroot
1823ff01b23SMartin Matuskadefaults to using
1833ff01b23SMartin Matuska.Sy cachefile Ns = Ns Sy none ,
1843ff01b23SMartin Matuskathough this may be overridden using an explicit setting.
1853ff01b23SMartin Matuska.El
1863ff01b23SMartin Matuska.Pp
1873ff01b23SMartin MatuskaThe following property can be set only at import time:
1883ff01b23SMartin Matuska.Bl -tag -width Ds
1893ff01b23SMartin Matuska.It Sy readonly Ns = Ns Sy on Ns | Ns Sy off
1903ff01b23SMartin MatuskaIf set to
1913ff01b23SMartin Matuska.Sy on ,
1923ff01b23SMartin Matuskathe pool will be imported in read-only mode.
1933ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
1943ff01b23SMartin Matuska.Sy rdonly .
1953ff01b23SMartin Matuska.El
1963ff01b23SMartin Matuska.Pp
1973ff01b23SMartin MatuskaThe following properties can be set at creation time and import time, and later
1983ff01b23SMartin Matuskachanged with the
1993ff01b23SMartin Matuska.Nm zpool Cm set
2003ff01b23SMartin Matuskacommand:
2013ff01b23SMartin Matuska.Bl -tag -width Ds
202c7046f76SMartin Matuska.It Sy ashift Ns = Ns Ar ashift
2033ff01b23SMartin MatuskaPool sector size exponent, to the power of
2043ff01b23SMartin Matuska.Sy 2
2053ff01b23SMartin Matuska(internally referred to as
2063ff01b23SMartin Matuska.Sy ashift ) .
2073ff01b23SMartin MatuskaValues from 9 to 16, inclusive, are valid; also, the
2083ff01b23SMartin Matuskavalue 0 (the default) means to auto-detect using the kernel's block
2093ff01b23SMartin Matuskalayer and a ZFS internal exception list.
2103ff01b23SMartin MatuskaI/O operations will be aligned to the specified size boundaries.
2113ff01b23SMartin MatuskaAdditionally, the minimum (disk)
2123ff01b23SMartin Matuskawrite size will be set to the specified size, so this represents a
213c03c5b1cSMartin Matuskaspace/performance trade-off.
2143ff01b23SMartin MatuskaFor optimal performance, the pool sector size should be greater than
2153ff01b23SMartin Matuskaor equal to the sector size of the underlying disks.
2163ff01b23SMartin MatuskaThe typical case for setting this property is when
2173ff01b23SMartin Matuskaperformance is important and the underlying disks use 4KiB sectors but
2183ff01b23SMartin Matuskareport 512B sectors to the OS (for compatibility reasons); in that
2193ff01b23SMartin Matuskacase, set
2203ff01b23SMartin Matuska.Sy ashift Ns = Ns Sy 12
2213ff01b23SMartin Matuska(which is
2223ff01b23SMartin Matuska.Sy 1<<12 No = Sy 4096 ) .
2233ff01b23SMartin MatuskaWhen set, this property is
2243ff01b23SMartin Matuskaused as the default hint value in subsequent vdev operations (add,
2253ff01b23SMartin Matuskaattach and replace).
2263ff01b23SMartin MatuskaChanging this value will not modify any existing
2273ff01b23SMartin Matuskavdev, not even on disk replacement; however it can be used, for
2283ff01b23SMartin Matuskainstance, to replace a dying 512B sectors disk with a newer 4KiB
2293ff01b23SMartin Matuskasectors device: this will probably result in bad performance but at the
2303ff01b23SMartin Matuskasame time could prevent loss of data.
2313ff01b23SMartin Matuska.It Sy autoexpand Ns = Ns Sy on Ns | Ns Sy off
2323ff01b23SMartin MatuskaControls automatic pool expansion when the underlying LUN is grown.
2333ff01b23SMartin MatuskaIf set to
2343ff01b23SMartin Matuska.Sy on ,
2353ff01b23SMartin Matuskathe pool will be resized according to the size of the expanded device.
2363ff01b23SMartin MatuskaIf the device is part of a mirror or raidz then all devices within that
2373ff01b23SMartin Matuskamirror/raidz group must be expanded before the new space is made available to
2383ff01b23SMartin Matuskathe pool.
2393ff01b23SMartin MatuskaThe default behavior is
2403ff01b23SMartin Matuska.Sy off .
2413ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
2423ff01b23SMartin Matuska.Sy expand .
2433ff01b23SMartin Matuska.It Sy autoreplace Ns = Ns Sy on Ns | Ns Sy off
2443ff01b23SMartin MatuskaControls automatic device replacement.
2453ff01b23SMartin MatuskaIf set to
2463ff01b23SMartin Matuska.Sy off ,
2473ff01b23SMartin Matuskadevice replacement must be initiated by the administrator by using the
2483ff01b23SMartin Matuska.Nm zpool Cm replace
2493ff01b23SMartin Matuskacommand.
2503ff01b23SMartin MatuskaIf set to
2513ff01b23SMartin Matuska.Sy on ,
2523ff01b23SMartin Matuskaany new device, found in the same physical location as a device that previously
2533ff01b23SMartin Matuskabelonged to the pool, is automatically formatted and replaced.
2543ff01b23SMartin MatuskaThe default behavior is
2553ff01b23SMartin Matuska.Sy off .
2563ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name,
2573ff01b23SMartin Matuska.Sy replace .
2583ff01b23SMartin MatuskaAutoreplace can also be used with virtual disks (like device
2593ff01b23SMartin Matuskamapper) provided that you use the /dev/disk/by-vdev paths setup by
2603ff01b23SMartin Matuskavdev_id.conf.
2613ff01b23SMartin MatuskaSee the
2623ff01b23SMartin Matuska.Xr vdev_id 8
2633ff01b23SMartin Matuskamanual page for more details.
2643ff01b23SMartin MatuskaAutoreplace and autoonline require the ZFS Event Daemon be configured and
2653ff01b23SMartin Matuskarunning.
2663ff01b23SMartin MatuskaSee the
2673ff01b23SMartin Matuska.Xr zed 8
2683ff01b23SMartin Matuskamanual page for more details.
2693ff01b23SMartin Matuska.It Sy autotrim Ns = Ns Sy on Ns | Ns Sy off
2703ff01b23SMartin MatuskaWhen set to
2713ff01b23SMartin Matuska.Sy on
2723ff01b23SMartin Matuskaspace which has been recently freed, and is no longer allocated by the pool,
2733ff01b23SMartin Matuskawill be periodically trimmed.
2743ff01b23SMartin MatuskaThis allows block device vdevs which support
2753ff01b23SMartin MatuskaBLKDISCARD, such as SSDs, or file vdevs on which the underlying file system
2763ff01b23SMartin Matuskasupports hole-punching, to reclaim unused blocks.
2773ff01b23SMartin MatuskaThe default value for this property is
2783ff01b23SMartin Matuska.Sy off .
2793ff01b23SMartin Matuska.Pp
2803ff01b23SMartin MatuskaAutomatic TRIM does not immediately reclaim blocks after a free.
2813ff01b23SMartin MatuskaInstead, it will optimistically delay allowing smaller ranges to be aggregated
2823ff01b23SMartin Matuskainto a few larger ones.
2833ff01b23SMartin MatuskaThese can then be issued more efficiently to the storage.
2843ff01b23SMartin MatuskaTRIM on L2ARC devices is enabled by setting
2853ff01b23SMartin Matuska.Sy l2arc_trim_ahead > 0 .
2863ff01b23SMartin Matuska.Pp
2873ff01b23SMartin MatuskaBe aware that automatic trimming of recently freed data blocks can put
2883ff01b23SMartin Matuskasignificant stress on the underlying storage devices.
2893ff01b23SMartin MatuskaThis will vary depending of how well the specific device handles these commands.
2903ff01b23SMartin MatuskaFor lower-end devices it is often possible to achieve most of the benefits
2913ff01b23SMartin Matuskaof automatic trimming by running an on-demand (manual) TRIM periodically
2923ff01b23SMartin Matuskausing the
2933ff01b23SMartin Matuska.Nm zpool Cm trim
2943ff01b23SMartin Matuskacommand.
2953ff01b23SMartin Matuska.It Sy bootfs Ns = Ns Sy (unset) Ns | Ns Ar pool Ns Op / Ns Ar dataset
2963ff01b23SMartin MatuskaIdentifies the default bootable dataset for the root pool.
297bb2d13b6SMartin MatuskaThis property is expected to be set mainly by the installation and upgrade
298bb2d13b6SMartin Matuskaprograms.
2993ff01b23SMartin MatuskaNot all Linux distribution boot processes use the bootfs property.
3003ff01b23SMartin Matuska.It Sy cachefile Ns = Ns Ar path Ns | Ns Sy none
3013ff01b23SMartin MatuskaControls the location of where the pool configuration is cached.
3023ff01b23SMartin MatuskaDiscovering all pools on system startup requires a cached copy of the
3033ff01b23SMartin Matuskaconfiguration data that is stored on the root file system.
3043ff01b23SMartin MatuskaAll pools in this cache are automatically imported when the system boots.
3053ff01b23SMartin MatuskaSome environments, such as install and clustering, need to cache this
3063ff01b23SMartin Matuskainformation in a different location so that pools are not automatically
3073ff01b23SMartin Matuskaimported.
3083ff01b23SMartin MatuskaSetting this property caches the pool configuration in a different location that
3093ff01b23SMartin Matuskacan later be imported with
3103ff01b23SMartin Matuska.Nm zpool Cm import Fl c .
3113ff01b23SMartin MatuskaSetting it to the value
3123ff01b23SMartin Matuska.Sy none
3133ff01b23SMartin Matuskacreates a temporary pool that is never cached, and the
3143ff01b23SMartin Matuska.Qq
3153ff01b23SMartin Matuska.Pq empty string
3163ff01b23SMartin Matuskauses the default location.
3173ff01b23SMartin Matuska.Pp
3183ff01b23SMartin MatuskaMultiple pools can share the same cache file.
3193ff01b23SMartin MatuskaBecause the kernel destroys and recreates this file when pools are added and
3203ff01b23SMartin Matuskaremoved, care should be taken when attempting to access this file.
3213ff01b23SMartin MatuskaWhen the last pool using a
3223ff01b23SMartin Matuska.Sy cachefile
3233ff01b23SMartin Matuskais exported or destroyed, the file will be empty.
3243ff01b23SMartin Matuska.It Sy comment Ns = Ns Ar text
3253ff01b23SMartin MatuskaA text string consisting of printable ASCII characters that will be stored
3263ff01b23SMartin Matuskasuch that it is available even if the pool becomes faulted.
3273ff01b23SMartin MatuskaAn administrator can provide additional information about a pool using this
3283ff01b23SMartin Matuskaproperty.
3293ff01b23SMartin Matuska.It Sy compatibility Ns = Ns Sy off Ns | Ns Sy legacy Ns | Ns Ar file Ns Oo , Ns Ar file Oc Ns …
3303ff01b23SMartin MatuskaSpecifies that the pool maintain compatibility with specific feature sets.
3313ff01b23SMartin MatuskaWhen set to
3323ff01b23SMartin Matuska.Sy off
3333ff01b23SMartin Matuska(or unset) compatibility is disabled (all features may be enabled); when set to
3343ff01b23SMartin Matuska.Sy legacy Ns
3353ff01b23SMartin Matuskano features may be enabled.
3363ff01b23SMartin MatuskaWhen set to a comma-separated list of filenames
3373ff01b23SMartin Matuska(each filename may either be an absolute path, or relative to
3383ff01b23SMartin Matuska.Pa /etc/zfs/compatibility.d
3393ff01b23SMartin Matuskaor
3403ff01b23SMartin Matuska.Pa /usr/share/zfs/compatibility.d )
3413ff01b23SMartin Matuskathe lists of requested features are read from those files, separated by
3423ff01b23SMartin Matuskawhitespace and/or commas.
3433ff01b23SMartin MatuskaOnly features present in all files may be enabled.
3443ff01b23SMartin Matuska.Pp
3453ff01b23SMartin MatuskaSee
3463ff01b23SMartin Matuska.Xr zpool-features 7 ,
3473ff01b23SMartin Matuska.Xr zpool-create 8
3483ff01b23SMartin Matuskaand
3493ff01b23SMartin Matuska.Xr zpool-upgrade 8
3503ff01b23SMartin Matuskafor more information on the operation of compatibility feature sets.
3513ff01b23SMartin Matuska.It Sy dedupditto Ns = Ns Ar number
3523ff01b23SMartin MatuskaThis property is deprecated and no longer has any effect.
3533ff01b23SMartin Matuska.It Sy delegation Ns = Ns Sy on Ns | Ns Sy off
3543ff01b23SMartin MatuskaControls whether a non-privileged user is granted access based on the dataset
3553ff01b23SMartin Matuskapermissions defined on the dataset.
3563ff01b23SMartin MatuskaSee
3573ff01b23SMartin Matuska.Xr zfs 8
3583ff01b23SMartin Matuskafor more information on ZFS delegated administration.
3593ff01b23SMartin Matuska.It Sy failmode Ns = Ns Sy wait Ns | Ns Sy continue Ns | Ns Sy panic
3603ff01b23SMartin MatuskaControls the system behavior in the event of catastrophic pool failure.
3613ff01b23SMartin MatuskaThis condition is typically a result of a loss of connectivity to the underlying
3623ff01b23SMartin Matuskastorage device(s) or a failure of all devices within the pool.
3633ff01b23SMartin MatuskaThe behavior of such an event is determined as follows:
3643ff01b23SMartin Matuska.Bl -tag -width "continue"
3653ff01b23SMartin Matuska.It Sy wait
3663ff01b23SMartin MatuskaBlocks all I/O access until the device connectivity is recovered and the errors
367e92ffd9bSMartin Matuskaare cleared with
368e92ffd9bSMartin Matuska.Nm zpool Cm clear .
3693ff01b23SMartin MatuskaThis is the default behavior.
3703ff01b23SMartin Matuska.It Sy continue
3713ff01b23SMartin MatuskaReturns
3723ff01b23SMartin Matuska.Er EIO
3733ff01b23SMartin Matuskato any new write I/O requests but allows reads to any of the remaining healthy
3743ff01b23SMartin Matuskadevices.
3753ff01b23SMartin MatuskaAny write requests that have yet to be committed to disk would be blocked.
3763ff01b23SMartin Matuska.It Sy panic
3773ff01b23SMartin MatuskaPrints out a message to the console and generates a system crash dump.
3783ff01b23SMartin Matuska.El
3793ff01b23SMartin Matuska.It Sy feature@ Ns Ar feature_name Ns = Ns Sy enabled
3803ff01b23SMartin MatuskaThe value of this property is the current state of
3813ff01b23SMartin Matuska.Ar feature_name .
3823ff01b23SMartin MatuskaThe only valid value when setting this property is
3833ff01b23SMartin Matuska.Sy enabled
3843ff01b23SMartin Matuskawhich moves
3853ff01b23SMartin Matuska.Ar feature_name
3863ff01b23SMartin Matuskato the enabled state.
3873ff01b23SMartin MatuskaSee
3883ff01b23SMartin Matuska.Xr zpool-features 7
3893ff01b23SMartin Matuskafor details on feature states.
3903ff01b23SMartin Matuska.It Sy listsnapshots Ns = Ns Sy on Ns | Ns Sy off
3913ff01b23SMartin MatuskaControls whether information about snapshots associated with this pool is
3923ff01b23SMartin Matuskaoutput when
3933ff01b23SMartin Matuska.Nm zfs Cm list
3943ff01b23SMartin Matuskais run without the
3953ff01b23SMartin Matuska.Fl t
3963ff01b23SMartin Matuskaoption.
3973ff01b23SMartin MatuskaThe default value is
3983ff01b23SMartin Matuska.Sy off .
3993ff01b23SMartin MatuskaThis property can also be referred to by its shortened name,
4003ff01b23SMartin Matuska.Sy listsnaps .
4013ff01b23SMartin Matuska.It Sy multihost Ns = Ns Sy on Ns | Ns Sy off
4023ff01b23SMartin MatuskaControls whether a pool activity check should be performed during
4033ff01b23SMartin Matuska.Nm zpool Cm import .
4043ff01b23SMartin MatuskaWhen a pool is determined to be active it cannot be imported, even with the
4053ff01b23SMartin Matuska.Fl f
4063ff01b23SMartin Matuskaoption.
4073ff01b23SMartin MatuskaThis property is intended to be used in failover configurations
4083ff01b23SMartin Matuskawhere multiple hosts have access to a pool on shared storage.
4093ff01b23SMartin Matuska.Pp
4103ff01b23SMartin MatuskaMultihost provides protection on import only.
4113ff01b23SMartin MatuskaIt does not protect against an
4123ff01b23SMartin Matuskaindividual device being used in multiple pools, regardless of the type of vdev.
4133ff01b23SMartin MatuskaSee the discussion under
4143ff01b23SMartin Matuska.Nm zpool Cm create .
4153ff01b23SMartin Matuska.Pp
4163ff01b23SMartin MatuskaWhen this property is on, periodic writes to storage occur to show the pool is
4173ff01b23SMartin Matuskain use.
4183ff01b23SMartin MatuskaSee
4193ff01b23SMartin Matuska.Sy zfs_multihost_interval
4203ff01b23SMartin Matuskain the
4213ff01b23SMartin Matuska.Xr zfs 4
4223ff01b23SMartin Matuskamanual page.
4233ff01b23SMartin MatuskaIn order to enable this property each host must set a unique hostid.
4243ff01b23SMartin MatuskaSee
4253ff01b23SMartin Matuska.Xr genhostid 1
4263ff01b23SMartin Matuska.Xr zgenhostid 8
4273ff01b23SMartin Matuska.Xr spl 4
4283ff01b23SMartin Matuskafor additional details.
4293ff01b23SMartin MatuskaThe default value is
4303ff01b23SMartin Matuska.Sy off .
4313ff01b23SMartin Matuska.It Sy version Ns = Ns Ar version
4323ff01b23SMartin MatuskaThe current on-disk version of the pool.
4333ff01b23SMartin MatuskaThis can be increased, but never decreased.
4343ff01b23SMartin MatuskaThe preferred method of updating pools is with the
4353ff01b23SMartin Matuska.Nm zpool Cm upgrade
4363ff01b23SMartin Matuskacommand, though this property can be used when a specific version is needed for
4373ff01b23SMartin Matuskabackwards compatibility.
4383ff01b23SMartin MatuskaOnce feature flags are enabled on a pool this property will no longer have a
4393ff01b23SMartin Matuskavalue.
4403ff01b23SMartin Matuska.El
441*c98ecfceSAllan Jude.
442*c98ecfceSAllan Jude.Ss User Properties
443*c98ecfceSAllan JudeIn addition to the standard native properties, ZFS supports arbitrary user
444*c98ecfceSAllan Judeproperties.
445*c98ecfceSAllan JudeUser properties have no effect on ZFS behavior, but applications or
446*c98ecfceSAllan Judeadministrators can use them to annotate pools.
447*c98ecfceSAllan Jude.Pp
448*c98ecfceSAllan JudeUser property names must contain a colon
449*c98ecfceSAllan Jude.Pq Qq Sy \&:
450*c98ecfceSAllan Judecharacter to distinguish them from native properties.
451*c98ecfceSAllan JudeThey may contain lowercase letters, numbers, and the following punctuation
452*c98ecfceSAllan Judecharacters: colon
453*c98ecfceSAllan Jude.Pq Qq Sy \&: ,
454*c98ecfceSAllan Judedash
455*c98ecfceSAllan Jude.Pq Qq Sy - ,
456*c98ecfceSAllan Judeperiod
457*c98ecfceSAllan Jude.Pq Qq Sy \&. ,
458*c98ecfceSAllan Judeand underscore
459*c98ecfceSAllan Jude.Pq Qq Sy _ .
460*c98ecfceSAllan JudeThe expected convention is that the property name is divided into two portions
461*c98ecfceSAllan Judesuch as
462*c98ecfceSAllan Jude.Ar module : Ns Ar property ,
463*c98ecfceSAllan Judebut this namespace is not enforced by ZFS.
464*c98ecfceSAllan JudeUser property names can be at most 256 characters, and cannot begin with a dash
465*c98ecfceSAllan Jude.Pq Qq Sy - .
466*c98ecfceSAllan Jude.Pp
467*c98ecfceSAllan JudeWhen making programmatic use of user properties, it is strongly suggested to use
468*c98ecfceSAllan Judea reversed DNS domain name for the
469*c98ecfceSAllan Jude.Ar module
470*c98ecfceSAllan Judecomponent of property names to reduce the chance that two
471*c98ecfceSAllan Judeindependently-developed packages use the same property name for different
472*c98ecfceSAllan Judepurposes.
473*c98ecfceSAllan Jude.Pp
474*c98ecfceSAllan JudeThe values of user properties are arbitrary strings and
475*c98ecfceSAllan Judeare never validated.
476*c98ecfceSAllan JudeAll of the commands that operate on properties
477*c98ecfceSAllan Jude.Po Nm zpool Cm list ,
478*c98ecfceSAllan Jude.Nm zpool Cm get ,
479*c98ecfceSAllan Jude.Nm zpool Cm set ,
480*c98ecfceSAllan Judeand so forth
481*c98ecfceSAllan Jude.Pc
482*c98ecfceSAllan Judecan be used to manipulate both native properties and user properties.
483*c98ecfceSAllan JudeUse
484*c98ecfceSAllan Jude.Nm zpool Cm set Ar name Ns =
485*c98ecfceSAllan Judeto clear a user property.
486*c98ecfceSAllan JudeProperty values are limited to 8192 bytes.
487