xref: /freebsd/sys/contrib/openzfs/man/man8/zfs-upgrade.8 (revision 7877fdebeeb35fad1cbbafce22598b1bdf97c786)
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
9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing.
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.\"
22eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
23eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
24eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
25eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
26eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
27eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
28eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com]
29eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved.
30eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc.
31eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc.
32eda14cbcSMatt Macy.\"
33eda14cbcSMatt Macy.Dd June 30, 2019
34eda14cbcSMatt Macy.Dt ZFS-UPGRADE 8
35eda14cbcSMatt Macy.Os
36eda14cbcSMatt Macy.Sh NAME
37*7877fdebSMatt Macy.Nm zfs-upgrade
38eda14cbcSMatt Macy.Nd Manage upgrading the on-disk version of filesystems.
39eda14cbcSMatt Macy.Sh SYNOPSIS
40*7877fdebSMatt Macy.Nm zfs
41eda14cbcSMatt Macy.Cm upgrade
42*7877fdebSMatt Macy.Nm zfs
43eda14cbcSMatt Macy.Cm upgrade
44eda14cbcSMatt Macy.Fl v
45*7877fdebSMatt Macy.Nm zfs
46eda14cbcSMatt Macy.Cm upgrade
47eda14cbcSMatt Macy.Op Fl r
48eda14cbcSMatt Macy.Op Fl V Ar version
49eda14cbcSMatt Macy.Fl a | Ar filesystem
50eda14cbcSMatt Macy.Sh DESCRIPTION
51eda14cbcSMatt Macy.Bl -tag -width ""
52eda14cbcSMatt Macy.It Xo
53*7877fdebSMatt Macy.Nm zfs
54eda14cbcSMatt Macy.Cm upgrade
55eda14cbcSMatt Macy.Xc
56eda14cbcSMatt MacyDisplays a list of file systems that are not the most recent version.
57eda14cbcSMatt Macy.It Xo
58*7877fdebSMatt Macy.Nm zfs
59eda14cbcSMatt Macy.Cm upgrade
60eda14cbcSMatt Macy.Fl v
61eda14cbcSMatt Macy.Xc
62eda14cbcSMatt MacyDisplays a list of currently supported file system versions.
63eda14cbcSMatt Macy.It Xo
64*7877fdebSMatt Macy.Nm zfs
65eda14cbcSMatt Macy.Cm upgrade
66eda14cbcSMatt Macy.Op Fl r
67eda14cbcSMatt Macy.Op Fl V Ar version
68eda14cbcSMatt Macy.Fl a | Ar filesystem
69eda14cbcSMatt Macy.Xc
70eda14cbcSMatt MacyUpgrades file systems to a new on-disk version.
71eda14cbcSMatt MacyOnce this is done, the file systems will no longer be accessible on systems
72eda14cbcSMatt Macyrunning older versions of the software.
73eda14cbcSMatt Macy.Nm zfs Cm send
74eda14cbcSMatt Macystreams generated from new snapshots of these file systems cannot be accessed on
75eda14cbcSMatt Macysystems running older versions of the software.
76eda14cbcSMatt Macy.Pp
77eda14cbcSMatt MacyIn general, the file system version is independent of the pool version.
78eda14cbcSMatt MacySee
79eda14cbcSMatt Macy.Xr zpool 8
80eda14cbcSMatt Macyfor information on the
81eda14cbcSMatt Macy.Nm zpool Cm upgrade
82eda14cbcSMatt Macycommand.
83eda14cbcSMatt Macy.Pp
84eda14cbcSMatt MacyIn some cases, the file system version and the pool version are interrelated and
85eda14cbcSMatt Macythe pool version must be upgraded before the file system version can be
86eda14cbcSMatt Macyupgraded.
87eda14cbcSMatt Macy.Bl -tag -width "-V"
88eda14cbcSMatt Macy.It Fl V Ar version
89eda14cbcSMatt MacyUpgrade to the specified
90eda14cbcSMatt Macy.Ar version .
91eda14cbcSMatt MacyIf the
92eda14cbcSMatt Macy.Fl V
93eda14cbcSMatt Macyflag is not specified, this command upgrades to the most recent version.
94eda14cbcSMatt MacyThis
95eda14cbcSMatt Macyoption can only be used to increase the version number, and only up to the most
96eda14cbcSMatt Macyrecent version supported by this software.
97eda14cbcSMatt Macy.It Fl a
98eda14cbcSMatt MacyUpgrade all file systems on all imported pools.
99eda14cbcSMatt Macy.It Ar filesystem
100eda14cbcSMatt MacyUpgrade the specified file system.
101eda14cbcSMatt Macy.It Fl r
102eda14cbcSMatt MacyUpgrade the specified file system and all descendent file systems.
103eda14cbcSMatt Macy.El
104eda14cbcSMatt Macy.El
105eda14cbcSMatt Macy.Sh SEE ALSO
106eda14cbcSMatt Macy.Xr zpool-upgrade 8
107