mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
2619 asynchronous destruction of ZFS file systems 2747 SPA versioning with zfs feature flags Reviewed by: Matt Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <gwilson@delphix.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com> Approved by: Eric Schrock <Eric.Schrock@delphix.com> References: illumos/illumos-gate@53089ab7c8 illumos/illumos-gate@ad135b5d64 illumos changeset: 13700:2889e2596bd6 https://www.illumos.org/issues/2619 https://www.illumos.org/issues/2747 NOTE: The grub specific changes were not ported. This change must be made to the Linux grub packages. Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
15313c5e18
commit
9ae529ec5d
@@ -0,0 +1,172 @@
|
||||
'\" te
|
||||
.\" Copyright (c) 2012 by Delphix. All rights reserved.
|
||||
.\" The contents of this file are subject to the terms of the Common Development
|
||||
.\" and Distribution License (the "License"). You may not use this file except
|
||||
.\" in compliance with the License. You can obtain a copy of the license at
|
||||
.\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
|
||||
.\"
|
||||
.\" See the License for the specific language governing permissions and
|
||||
.\" limitations under the License. When distributing Covered Code, include this
|
||||
.\" CDDL HEADER in each file and include the License file at
|
||||
.\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
|
||||
.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
|
||||
.\" own identifying information:
|
||||
.\" Portions Copyright [yyyy] [name of copyright owner]
|
||||
.TH ZPOOL-FEATURES 5 "Mar 16, 2012"
|
||||
.SH NAME
|
||||
zpool\-features \- ZFS pool feature descriptions
|
||||
.SH DESCRIPTION
|
||||
.sp
|
||||
.LP
|
||||
ZFS pool on\-disk format versions are specified via "features" which replace
|
||||
the old on\-disk format numbers (the last supported on\-disk format number is
|
||||
28). To enable a feature on a pool use the \fBzpool\fR(1M) command to set
|
||||
the \fBfeature@\fR\fIfeature_name\fR property to \fBenabled\fR.
|
||||
.sp
|
||||
.LP
|
||||
The pool format does not affect file system version compatibility or the ability
|
||||
to send file systems between pools.
|
||||
.sp
|
||||
.LP
|
||||
Since most features can be enabled independently of each other the on\-disk
|
||||
format of the pool is specified by the set of all features marked as
|
||||
\fBactive\fR on the pool. If the pool was created by another software version
|
||||
this set may include unsupported features.
|
||||
.SS "Identifying features"
|
||||
.sp
|
||||
.LP
|
||||
Every feature has a guid of the form \fIcom.example:feature_name\fR. The reverse
|
||||
DNS name ensures that the feature's guid is unique across all ZFS
|
||||
implementations. When unsupported features are encountered on a pool they will
|
||||
be identified by their guids. Refer to the documentation for the ZFS
|
||||
implementation that created the pool for information about those features.
|
||||
.sp
|
||||
.LP
|
||||
Each supported feature also has a short name. By convention a feature's short
|
||||
name is the portion of its guid which follows the ':' (e.g.
|
||||
\fIcom.example:feature_name\fR would have the short name \fIfeature_name\fR),
|
||||
however a feature's short name may differ across ZFS implementations if
|
||||
following the convention would result in name conflicts.
|
||||
.SS "Feature states"
|
||||
.sp
|
||||
.LP
|
||||
Features can be in one of three states:
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBactive\fR\fR
|
||||
.ad
|
||||
.RS 12n
|
||||
This feature's on\-disk format changes are in effect on the pool. Support for
|
||||
this feature is required to import the pool in read\-write mode. If this
|
||||
feature is not read-only compatible, support is also required to import the pool
|
||||
in read\-only mode (see "Read\-only compatibility").
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBenabled\fR\fR
|
||||
.ad
|
||||
.RS 12n
|
||||
An administrator has marked this feature as enabled on the pool, but the
|
||||
feature's on\-disk format changes have not been made yet. The pool can still be
|
||||
imported by software that does not support this feature, but changes may be made
|
||||
to the on\-disk format at any time which will move the feature to the
|
||||
\fBactive\fR state. Some features may support returning to the \fBenabled\fR
|
||||
state after becoming \fBactive\fR. See feature\-specific documentation for
|
||||
details.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fBdisabled\fR
|
||||
.ad
|
||||
.RS 12n
|
||||
This feature's on\-disk format changes have not been made and will not be made
|
||||
unless an administrator moves the feature to the \fBenabled\fR state. Features
|
||||
cannot be disabled once they have been enabled.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.LP
|
||||
The state of supported features is exposed through pool properties of the form
|
||||
\fIfeature@short_name\fR.
|
||||
.SS "Read\-only compatibility"
|
||||
.sp
|
||||
.LP
|
||||
Some features may make on\-disk format changes that do not interfere with other
|
||||
software's ability to read from the pool. These features are referred to as
|
||||
"read\-only compatible". If all unsupported features on a pool are read\-only
|
||||
compatible, the pool can be imported in read\-only mode by setting the
|
||||
\fBreadonly\fR property during import (see \fBzpool\fR(1M) for details on
|
||||
importing pools).
|
||||
.SS "Unsupported features"
|
||||
.sp
|
||||
.LP
|
||||
For each unsupported feature enabled on an imported pool a pool property
|
||||
named \fIunsupported@feature_guid\fR will indicate why the import was allowed
|
||||
despite the unsupported feature. Possible values for this property are:
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBinactive\fR\fR
|
||||
.ad
|
||||
.RS 12n
|
||||
The feature is in the \fBenabled\fR state and therefore the pool's on\-disk
|
||||
format is still compatible with software that does not support this feature.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBreadonly\fR\fR
|
||||
.ad
|
||||
.RS 12n
|
||||
The feature is read\-only compatible and the pool has been imported in
|
||||
read\-only mode.
|
||||
.RE
|
||||
|
||||
.SS "Feature dependencies"
|
||||
.sp
|
||||
.LP
|
||||
Some features depend on other features being enabled in order to function
|
||||
properly. Enabling a feature will automatically enable any features it
|
||||
depends on.
|
||||
.SH FEATURES
|
||||
.sp
|
||||
.LP
|
||||
The following features are supported on this system:
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBasync_destroy\fR\fR
|
||||
.ad
|
||||
.RS 4n
|
||||
.TS
|
||||
l l .
|
||||
GUID com.delphix:async_destroy
|
||||
READ\-ONLY COMPATIBLE yes
|
||||
DEPENDENCIES none
|
||||
.TE
|
||||
|
||||
Destroying a file system requires traversing all of its data in order to
|
||||
return its used space to the pool. Without \fBasync_destroy\fR the file system
|
||||
is not fully removed until all space has been reclaimed. If the destroy
|
||||
operation is interrupted by a reboot or power outage the next attempt to open
|
||||
the pool will need to complete the destroy operation synchronously.
|
||||
|
||||
When \fBasync_destroy\fR is enabled the file system's data will be reclaimed
|
||||
by a background process, allowing the destroy operation to complete without
|
||||
traversing the entire file system. The background process is able to resume
|
||||
interrupted destroys after the pool has been opened, eliminating the need
|
||||
to finish interrupted destroys as part of the open operation. The amount
|
||||
of space remaining to be reclaimed by the background process is available
|
||||
through the \fBfreeing\fR property.
|
||||
|
||||
This feature is only \fBactive\fR while \fBfreeing\fR is non\-zero.
|
||||
.RE
|
||||
.SH "SEE ALSO"
|
||||
\fBzpool\fR(1M)
|
||||
+86
-22
@@ -3,10 +3,19 @@
|
||||
.\" Copyright 2011 Nexenta Systems, Inc. All rights reserved.
|
||||
.\" Copyright (c) 2012 by Delphix. All Rights Reserved.
|
||||
.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
|
||||
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
|
||||
.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
|
||||
.\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
|
||||
.TH zpool 8 "2 August 2012" "ZFS pool 28, filesystem 5" "System Administration Commands"
|
||||
.\" The contents of this file are subject to the terms of the Common Development
|
||||
.\" and Distribution License (the "License"). You may not use this file except
|
||||
.\" in compliance with the License. You can obtain a copy of the license at
|
||||
.\" usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
|
||||
.\"
|
||||
.\" See the License for the specific language governing permissions and
|
||||
.\" limitations under the License. When distributing Covered Code, include this
|
||||
.\" CDDL HEADER in each file and include the License file at
|
||||
.\" usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this
|
||||
.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
|
||||
.\" own identifying information:
|
||||
.\" Portions Copyright [yyyy] [name of copyright owner]
|
||||
.TH zpool 8 "14 December 2012" "ZFS pool 28, filesystem 5" "System Administration Commands"
|
||||
.SH NAME
|
||||
zpool \- configures ZFS storage pools
|
||||
.SH SYNOPSIS
|
||||
@@ -32,7 +41,7 @@ zpool \- configures ZFS storage pools
|
||||
|
||||
.LP
|
||||
.nf
|
||||
\fBzpool create\fR [\fB-fn\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR]
|
||||
\fBzpool create\fR [\fB-fnd\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR]
|
||||
... [\fB-m\fR \fImountpoint\fR] [\fB-R\fR \fIroot\fR] \fIpool\fR \fIvdev\fR ...
|
||||
.fi
|
||||
|
||||
@@ -463,17 +472,6 @@ Amount of storage available within the pool. This property can also be referred
|
||||
Percentage of pool space used. This property can also be referred to by its shortened column name, "cap".
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
.na
|
||||
\fB\fBcomment\fR\fR
|
||||
.ad
|
||||
.RS 20n
|
||||
.rt
|
||||
A text string consisting of printable ASCII characters that will be stored such that it is available even if the pool becomes faulted. An administrator can provide additional information about a pool using this property.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
@@ -482,11 +480,32 @@ A text string consisting of printable ASCII characters that will be stored such
|
||||
.ad
|
||||
.RS 20n
|
||||
Amount of uninitialized space within the pool or device that can be used to
|
||||
increase the total capacity of the pool. Uninitialized space consists of
|
||||
any space on an EFI labeled vdev which has not been brought online
|
||||
increase the total capacity of the pool. Uninitialized space consists of
|
||||
any space on an EFI labeled vdev which has not been brought online
|
||||
(i.e. zpool online -e). This space occurs when a LUN is dynamically expanded.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBfree\fR\fR
|
||||
.ad
|
||||
.RS 20n
|
||||
The amount of free space available in the pool.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBfreeing\fR\fR
|
||||
.ad
|
||||
.RS 20n
|
||||
After a file system or snapshot is destroyed, the space it was using is
|
||||
returned to the pool asynchronously. \fB\fBfreeing\fR\fR is the amount of
|
||||
space remaining to be reclaimed. Over time \fB\fBfreeing\fR\fR will decrease
|
||||
while \fB\fBfree\fR\fR increases.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
@@ -519,6 +538,16 @@ A unique identifier for the pool.
|
||||
Total size of the storage pool.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBunsupported@\fR\fIfeature_guid\fR\fR
|
||||
.ad
|
||||
.RS 20n
|
||||
Information about unsupported features that are enabled on the pool. See
|
||||
\fBzpool-features\fR(5) for details.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
@@ -532,7 +561,7 @@ Amount of storage space used within the pool.
|
||||
|
||||
.sp
|
||||
.LP
|
||||
These space usage properties report actual physical space available to the storage pool. The physical space can be different from the total amount of space that any contained datasets can actually use. The amount of space used in a \fBraidz\fR configuration depends on the characteristics of the data being written. In addition, \fBZFS\fR reserves some space for internal accounting that the \fBzfs\fR(8) command takes into account, but the \fBzpool\fR command does not. For non-full pools of a reasonable size, these effects should be invisible. For small pools, or pools that are close to being completely full, these discrepancies may become more noticeable.
|
||||
The space usage properties report actual physical space available to the storage pool. The physical space can be different from the total amount of space that any contained datasets can actually use. The amount of space used in a \fBraidz\fR configuration depends on the characteristics of the data being written. In addition, \fBZFS\fR reserves some space for internal accounting that the \fBzfs\fR(8) command takes into account, but the \fBzpool\fR command does not. For non-full pools of a reasonable size, these effects should be invisible. For small pools, or pools that are close to being completely full, these discrepancies may become more noticeable.
|
||||
|
||||
.sp
|
||||
.LP
|
||||
@@ -613,6 +642,17 @@ Controls the location of where the pool configuration is cached. Discovering all
|
||||
Multiple pools can share the same cache file. Because the kernel destroys and recreates this file when pools are added and removed, care should be taken when attempting to access this file. When the last pool using a \fBcachefile\fR is exported or destroyed, the file is removed.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
.na
|
||||
\fB\fBcomment\fR=\fB\fItext\fR\fR
|
||||
.ad
|
||||
.sp .6
|
||||
.RS 4n
|
||||
A text string consisting of printable ASCII characters that will be stored such that it is available even if the pool becomes faulted. An administrator can provide additional information about a pool using this property.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
@@ -668,6 +708,18 @@ Prints out a message to the console and generates a system crash dump.
|
||||
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fBfeature@\fR\fIfeature_name\fR=\fBenabled\fR\fR
|
||||
.ad
|
||||
.RS 4n
|
||||
The value of this property is the current state of \fIfeature_name\fR. The
|
||||
only valid value when setting this property is \fBenabled\fR which moves
|
||||
\fIfeature_name\fR to the enabled state. See \fBzpool-features\fR(5) for
|
||||
details on feature states.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
@@ -687,7 +739,7 @@ Controls whether information about snapshots associated with this pool is output
|
||||
.ad
|
||||
.sp .6
|
||||
.RS 4n
|
||||
The current on-disk version of the pool. This can be increased, but never decreased. The preferred method of updating pools is with the "\fBzpool upgrade\fR" command, though this property can be used when a specific version is needed for backwards compatibility. This property can be any number between 1 and the current version reported by "\fBzpool upgrade -v\fR".
|
||||
The current on-disk version of the pool. This can be increased, but never decreased. The preferred method of updating pools is with the "\fBzpool upgrade\fR" command, though this property can be used when a specific version is needed for backwards compatibility. Once feature flags are enabled on a pool this property will no longer have a value.
|
||||
.RE
|
||||
|
||||
.SS "Subcommands"
|
||||
@@ -801,7 +853,7 @@ Clears device errors in a pool. If no arguments are specified, all device errors
|
||||
.ne 2
|
||||
.mk
|
||||
.na
|
||||
\fB\fBzpool create\fR [\fB-fn\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR] ... [\fB-m\fR \fImountpoint\fR] [\fB-R\fR \fIroot\fR] \fIpool\fR \fIvdev\fR ...\fR
|
||||
\fB\fBzpool create\fR [\fB-fnd\fR] [\fB-o\fR \fIproperty=value\fR] ... [\fB-O\fR \fIfile-system-property=value\fR] ... [\fB-m\fR \fImountpoint\fR] [\fB-R\fR \fIroot\fR] \fIpool\fR \fIvdev\fR ...\fR
|
||||
.ad
|
||||
.sp .6
|
||||
.RS 4n
|
||||
@@ -813,6 +865,8 @@ The command also checks that the replication strategy for the pool is consistent
|
||||
.sp
|
||||
Unless the \fB-R\fR option is specified, the default mount point is "/\fIpool\fR". The mount point must not exist or must be empty, or else the root dataset cannot be mounted. This can be overridden with the \fB-m\fR option.
|
||||
.sp
|
||||
By default all supported features are enabled on the new pool unless the \fB-d\fR option is specified.
|
||||
.sp
|
||||
.ne 2
|
||||
.mk
|
||||
.na
|
||||
@@ -838,6 +892,16 @@ Displays the configuration that would be used without actually creating the pool
|
||||
.ne 2
|
||||
.mk
|
||||
.na
|
||||
\fB\fB-d\fR\fR
|
||||
.ad
|
||||
.sp .6
|
||||
.RS 4n
|
||||
Do not enable any features on the new pool. Individual features can be enabled by setting their corresponding properties to \fBenabled\fR with the \fB-o\fR option. See \fBzpool-features\fR(5) for details about feature properties.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fB\fB-o\fR \fIproperty=value\fR [\fB-o\fR \fIproperty=value\fR] ...\fR
|
||||
.ad
|
||||
.sp .6
|
||||
@@ -1965,4 +2029,4 @@ Invalid command line options were specified.
|
||||
.SH SEE ALSO
|
||||
.sp
|
||||
.LP
|
||||
\fBzfs\fR(8)
|
||||
\fBzfs\fR(8), \fBzpool-features\fR(5)
|
||||
|
||||
Reference in New Issue
Block a user