]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - cddl/contrib/opensolaris/cmd/zpool/zpool-features.7
Merge ZFS feature flags support and related bugfixes:
[FreeBSD/stable/9.git] / cddl / contrib / opensolaris / cmd / zpool / zpool-features.7
1 '\" te
2 .\" Copyright (c) 2012, Martin Matuska <mm@FreeBSD.org>.
3 .\" All Rights Reserved.
4 .\"
5 .\" The contents of this file are subject to the terms of the
6 .\" Common Development and Distribution License (the "License").
7 .\" You may not use this file except in compliance with the License.
8 .\"
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 .\" or http://www.opensolaris.org/os/licensing.
11 .\" See the License for the specific language governing permissions
12 .\" and limitations under the License.
13 .\"
14 .\" When distributing Covered Code, include this CDDL HEADER in each
15 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 .\" If applicable, add the following below this CDDL HEADER, with the
17 .\" fields enclosed by brackets "[]" replaced with your own identifying
18 .\" information: Portions Copyright [yyyy] [name of copyright owner]
19 .\"
20 .\" Copyright (c) 2012 by Delphix. All rights reserved.
21 .\"
22 .\" $FreeBSD$
23 .\"
24 .Dd Aug 28, 2012
25 .Dt ZPOOL-FEATURES 7
26 .Os
27 .Sh NAME
28 .Nm zpool-features
29 .Nd ZFS pool feature descriptions
30 .Sh DESCRIPTION
31 ZFS pool on\-disk format versions are specified via "features" which replace
32 the old on\-disk format numbers (the last supported on\-disk format number is
33 28).
34 To enable a feature on a pool use the
35 .Cm upgrade
36 subcommand of the
37 .Xr zpool 8
38 command, or set the
39 .Sy feature@feature_name
40 property to
41 .Ar enabled .
42 .Pp
43 The pool format does not affect file system version compatibility or the ability
44 to send file systems between pools.
45 .Pp
46 Since most features can be enabled independently of each other the on\-disk
47 format of the pool is specified by the set of all features marked as
48 .Sy active
49 on the pool. If the pool was created by another software version this set may
50 include unsupported features.
51 .Ss Identifying features
52 Every feature has a guid of the form
53 .Sy com.example:feature_name .
54 The reverse DNS name ensures that the feature's guid is unique across all ZFS
55 implementations. When unsupported features are encountered on a pool they will
56 be identified by their guids.
57 Refer to the documentation for the ZFS implementation that created the pool
58 for information about those features.
59 .Pp
60 Each supported feature also has a short name.
61 By convention a feature's short name is the portion of its guid which follows
62 the ':' (e.g.
63 .Sy com.example:feature_name
64 would have the short name
65 .Sy feature_name ),
66 however a feature's short name may differ across ZFS implementations if
67 following the convention would result in name conflicts.
68 .Ss Feature states
69 Features can be in one of three states:
70 .Bl -tag -width "XXXXXXXX"
71 .It Sy active
72 This feature's on\-disk format changes are in effect on the pool.
73 Support for this feature is required to import the pool in read\-write mode.
74 If this feature is not read-only compatible, support is also required to
75 import the pool in read\-only mode (see "Read\-only compatibility").
76 .It Sy enabled
77 An administrator has marked this feature as enabled on the pool, but the
78 feature's on\-disk format changes have not been made yet.
79 The pool can still be imported by software that does not support this feature,
80 but changes may be made to the on\-disk format at any time which will move
81 the feature to the
82 .Sy active
83 state.
84 Some features may support returning to the
85 .Sy enabled
86 state after becoming
87 .Sy active .
88 See feature\-specific documentation for details.
89 .It Sy disabled
90 This feature's on\-disk format changes have not been made and will not be made
91 unless an administrator moves the feature to the
92 .Sy enabled
93 state.
94 Features cannot be disabled once they have been enabled.
95 .El
96 .Pp
97 The state of supported features is exposed through pool properties of the form
98 .Sy feature@short_name .
99 .Ss Read\-only compatibility
100 Some features may make on\-disk format changes that do not interfere with other
101 software's ability to read from the pool.
102 These features are referred to as "read\-only compatible".
103 If all unsupported features on a pool are read\-only compatible, the pool can
104 be imported in read\-only mode by setting the
105 .Sy readonly
106 property during import (see
107 .Xr zpool 8
108 for details on importing pools).
109 .Ss Unsupported features
110 For each unsupported feature enabled on an imported pool a pool property
111 named
112 .Sy unsupported@feature_guid
113 will indicate why the import was allowed despite the unsupported feature.
114 Possible values for this property are:
115 .Bl -tag -width "XXXXXXXX"
116 .It Sy inactive
117 The feature is in the
118 .Sy enabled
119 state and therefore the pool's on\-disk format is still compatible with
120 software that does not support this feature.
121 .It Sy readonly
122 The feature is read\-only compatible and the pool has been imported in
123 read\-only mode.
124 .El
125 .Ss Feature dependencies
126 Some features depend on other features being enabled in order to function
127 properly.
128 Enabling a feature will automatically enable any features it depends on.
129 .Sh FEATURES
130 The following features are supported on this system:
131 .Bl -tag -width "XXXXXXXX"
132 .It Sy async_destroy
133 .Bl -column "READ\-ONLY COMPATIBLE" "com.delphix:async_destroy"
134 .It GUID Ta com.delphix:async_destroy
135 .It READ\-ONLY COMPATIBLE Ta yes
136 .It DEPENDENCIES Ta none
137 .El
138 .Pp
139 Destroying a file system requires traversing all of its data in order to
140 return its used space to the pool.
141 Without
142 .Sy async_destroy
143 the file system is not fully removed until all space has been reclaimed.
144 If the destroy operation is interrupted by a reboot or power outage the next
145 attempt to open the pool will need to complete the destroy operation
146 synchronously.
147 .Pp
148 When
149 .Sy async_destroy
150 is enabled the file system's data will be reclaimed by a background process,
151 allowing the destroy operation to complete without traversing the entire file
152 system.
153 The background process is able to resume interrupted destroys after the pool
154 has been opened, eliminating the need to finish interrupted destroys as part
155 of the open operation.
156 The amount of space remaining to be reclaimed by the background process is
157 available through the
158 .Sy freeing
159 property.
160 .Pp
161 This feature is only
162 .Sy active
163 while
164 .Sy freeing
165 is non\-zero.
166 .It Sy empty_bpobj
167 .Bl -column "READ\-ONLY COMPATIBLE" "com.delphix:empty_bpobj"
168 .It GUID Ta com.delphix:empty_bpobj
169 .It READ\-ONLY COMPATIBLE Ta yes
170 .It DEPENDENCIES Ta none
171 .El
172 .Pp
173 This feature increases the performance of creating and using a large number
174 of snapshots of a single filesystem or volume, and also reduces the disk
175 space required.
176 .Pp
177 When there are many snapshots, each snapshot uses many Block Pointer Objects
178 .Pq bpobj's
179 to track blocks associated with that snapshot.
180 However, in common use cases, most of these bpobj's are empty.
181 This feature allows us to create each bpobj on-demand, thus eliminating the
182 empty bpobjs.
183 .Pp
184 This feature is
185 .Sy active
186 while there are any filesystems, volumes, or snapshots which were created
187 after enabling this feature.
188 .El
189 .Sh SEE ALSO
190 .Xr zpool 8
191 .Sh AUTHORS
192 This manual page is a
193 .Xr mdoc 7
194 reimplementation of the
195 .Tn illumos
196 manual page
197 .Em zpool-features(5) ,
198 modified and customized for
199 .Fx
200 and licensed under the Common Development and Distribution License
201 .Pq Tn CDDL .
202 .Pp
203 The
204 .Xr mdoc 7
205 implementation of this manual page was initially written by
206 .An Martin Matuska Aq mm@FreeBSD.org .