xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-upgrade.8 (revision bb2d13b686e3ccf6c3ccb36209dfb7dcc108b182)
1eda14cbcSMatt Macy.\"
2eda14cbcSMatt Macy.\" CDDL HEADER START
3eda14cbcSMatt Macy.\"
4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
7eda14cbcSMatt Macy.\"
8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0.
10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
11eda14cbcSMatt Macy.\" and limitations under the License.
12eda14cbcSMatt Macy.\"
13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
18eda14cbcSMatt Macy.\"
19eda14cbcSMatt Macy.\" CDDL HEADER END
20eda14cbcSMatt Macy.\"
21eda14cbcSMatt Macy.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22eda14cbcSMatt Macy.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23eda14cbcSMatt Macy.\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24eda14cbcSMatt Macy.\" Copyright (c) 2017 Datto Inc.
25eda14cbcSMatt Macy.\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26eda14cbcSMatt Macy.\" Copyright 2017 Nexenta Systems, Inc.
27eda14cbcSMatt Macy.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
28ee36e25aSMartin Matuska.\" Copyright (c) 2021, Colm Buckley <colm@tuatha.org>
29eda14cbcSMatt Macy.\"
30da5137abSMartin Matuska.Dd March 16, 2022
31eda14cbcSMatt Macy.Dt ZPOOL-UPGRADE 8
32eda14cbcSMatt Macy.Os
3316038816SMartin Matuska.
34eda14cbcSMatt Macy.Sh NAME
357877fdebSMatt Macy.Nm zpool-upgrade
3616038816SMartin Matuska.Nd manage version and feature flags of ZFS storage pools
37eda14cbcSMatt Macy.Sh SYNOPSIS
387877fdebSMatt Macy.Nm zpool
39eda14cbcSMatt Macy.Cm upgrade
407877fdebSMatt Macy.Nm zpool
41eda14cbcSMatt Macy.Cm upgrade
42eda14cbcSMatt Macy.Fl v
437877fdebSMatt Macy.Nm zpool
44eda14cbcSMatt Macy.Cm upgrade
45eda14cbcSMatt Macy.Op Fl V Ar version
4616038816SMartin Matuska.Fl a Ns | Ns Ar pool Ns …
4716038816SMartin Matuska.
48eda14cbcSMatt Macy.Sh DESCRIPTION
49eda14cbcSMatt Macy.Bl -tag -width Ds
50eda14cbcSMatt Macy.It Xo
517877fdebSMatt Macy.Nm zpool
52eda14cbcSMatt Macy.Cm upgrade
53eda14cbcSMatt Macy.Xc
54eda14cbcSMatt MacyDisplays pools which do not have all supported features enabled and pools
55eda14cbcSMatt Macyformatted using a legacy ZFS version number.
56eda14cbcSMatt MacyThese pools can continue to be used, but some features may not be available.
57eda14cbcSMatt MacyUse
58eda14cbcSMatt Macy.Nm zpool Cm upgrade Fl a
5916038816SMartin Matuskato enable all features on all pools (subject to the
6016038816SMartin Matuska.Fl o Sy compatibility
6116038816SMartin Matuskaproperty).
62eda14cbcSMatt Macy.It Xo
637877fdebSMatt Macy.Nm zpool
64eda14cbcSMatt Macy.Cm upgrade
65eda14cbcSMatt Macy.Fl v
66eda14cbcSMatt Macy.Xc
6716038816SMartin MatuskaDisplays legacy ZFS versions supported by the this version of ZFS.
68eda14cbcSMatt MacySee
693ff01b23SMartin Matuska.Xr zpool-features 7
7016038816SMartin Matuskafor a description of feature flags features supported by this version of ZFS.
71eda14cbcSMatt Macy.It Xo
727877fdebSMatt Macy.Nm zpool
73eda14cbcSMatt Macy.Cm upgrade
74eda14cbcSMatt Macy.Op Fl V Ar version
7516038816SMartin Matuska.Fl a Ns | Ns Ar pool Ns …
76eda14cbcSMatt Macy.Xc
7716038816SMartin MatuskaEnables all supported features on the given pool.
7816038816SMartin Matuska.Pp
7916038816SMartin MatuskaIf the pool has specified compatibility feature sets using the
8016038816SMartin Matuska.Fl o Sy compatibility
81ee36e25aSMartin Matuskaproperty, only the features present in all requested compatibility sets will be
8216038816SMartin Matuskaenabled.
8316038816SMartin MatuskaIf this property is set to
8416038816SMartin Matuska.Ar legacy
8516038816SMartin Matuskathen no upgrade will take place.
8616038816SMartin Matuska.Pp
87eda14cbcSMatt MacyOnce this is done, the pool will no longer be accessible on systems that do not
88eda14cbcSMatt Macysupport feature flags.
89eda14cbcSMatt MacySee
903ff01b23SMartin Matuska.Xr zpool-features 7
91eda14cbcSMatt Macyfor details on compatibility with systems that support feature flags, but do not
92eda14cbcSMatt Macysupport all features enabled on the pool.
93eda14cbcSMatt Macy.Bl -tag -width Ds
94eda14cbcSMatt Macy.It Fl a
95*bb2d13b6SMartin MatuskaEnables all supported features (from specified compatibility sets, if any) on
96*bb2d13b6SMartin Matuskaall
97ee36e25aSMartin Matuskapools.
98eda14cbcSMatt Macy.It Fl V Ar version
99eda14cbcSMatt MacyUpgrade to the specified legacy version.
10016038816SMartin MatuskaIf specified, no features will be enabled on the pool.
101eda14cbcSMatt MacyThis option can only be used to increase the version number up to the last
102eda14cbcSMatt Macysupported legacy version number.
103eda14cbcSMatt Macy.El
104eda14cbcSMatt Macy.El
10516038816SMartin Matuska.
106da5137abSMartin Matuska.Sh EXAMPLES
107da5137abSMartin Matuska.\" These are, respectively, examples 10 from zpool.8
108da5137abSMartin Matuska.\" Make sure to update them bidirectionally
109da5137abSMartin Matuska.Ss Example 1 : No Upgrading All ZFS Storage Pools to the Current Version
110da5137abSMartin MatuskaThe following command upgrades all ZFS Storage pools to the current version of
111da5137abSMartin Matuskathe software:
112da5137abSMartin Matuska.Bd -literal -compact -offset Ds
113da5137abSMartin Matuska.No # Nm zpool Cm upgrade Fl a
114da5137abSMartin MatuskaThis system is currently running ZFS version 2.
115da5137abSMartin Matuska.Ed
116da5137abSMartin Matuska.
117eda14cbcSMatt Macy.Sh SEE ALSO
1183ff01b23SMartin Matuska.Xr zpool-features 7 ,
1193ff01b23SMartin Matuska.Xr zpoolconcepts 7 ,
1203ff01b23SMartin Matuska.Xr zpoolprops 7 ,
1213ff01b23SMartin Matuska.Xr zpool-history 8
122