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 9*271171e0SMartin 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) 2009 Sun Microsystems, Inc. All Rights Reserved. 22eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 23eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 28eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 29eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 30eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 31eda14cbcSMatt Macy.\" 32eda14cbcSMatt Macy.Dd June 30, 2019 33eda14cbcSMatt Macy.Dt ZFS-UPGRADE 8 34eda14cbcSMatt Macy.Os 3516038816SMartin Matuska. 36eda14cbcSMatt Macy.Sh NAME 377877fdebSMatt Macy.Nm zfs-upgrade 3816038816SMartin Matuska.Nd manage on-disk version of ZFS filesystems 39eda14cbcSMatt Macy.Sh SYNOPSIS 407877fdebSMatt Macy.Nm zfs 41eda14cbcSMatt Macy.Cm upgrade 427877fdebSMatt Macy.Nm zfs 43eda14cbcSMatt Macy.Cm upgrade 44eda14cbcSMatt Macy.Fl v 457877fdebSMatt Macy.Nm zfs 46eda14cbcSMatt Macy.Cm upgrade 47eda14cbcSMatt Macy.Op Fl r 48eda14cbcSMatt Macy.Op Fl V Ar version 4916038816SMartin Matuska.Fl a Ns | Ns Ar filesystem 5016038816SMartin Matuska. 51eda14cbcSMatt Macy.Sh DESCRIPTION 52eda14cbcSMatt Macy.Bl -tag -width "" 53eda14cbcSMatt Macy.It Xo 547877fdebSMatt Macy.Nm zfs 55eda14cbcSMatt Macy.Cm upgrade 56eda14cbcSMatt Macy.Xc 57eda14cbcSMatt MacyDisplays a list of file systems that are not the most recent version. 58eda14cbcSMatt Macy.It Xo 597877fdebSMatt Macy.Nm zfs 60eda14cbcSMatt Macy.Cm upgrade 61eda14cbcSMatt Macy.Fl v 62eda14cbcSMatt Macy.Xc 63eda14cbcSMatt MacyDisplays a list of currently supported file system versions. 64eda14cbcSMatt Macy.It Xo 657877fdebSMatt Macy.Nm zfs 66eda14cbcSMatt Macy.Cm upgrade 67eda14cbcSMatt Macy.Op Fl r 68eda14cbcSMatt Macy.Op Fl V Ar version 6916038816SMartin Matuska.Fl a Ns | Ns Ar filesystem 70eda14cbcSMatt Macy.Xc 71eda14cbcSMatt MacyUpgrades file systems to a new on-disk version. 72eda14cbcSMatt MacyOnce this is done, the file systems will no longer be accessible on systems 7316038816SMartin Matuskarunning older versions of ZFS. 74eda14cbcSMatt Macy.Nm zfs Cm send 75eda14cbcSMatt Macystreams generated from new snapshots of these file systems cannot be accessed on 7616038816SMartin Matuskasystems running older versions of ZFS. 77eda14cbcSMatt Macy.Pp 78eda14cbcSMatt MacyIn general, the file system version is independent of the pool version. 79eda14cbcSMatt MacySee 803ff01b23SMartin Matuska.Xr zpool-features 7 8116038816SMartin Matuskafor information on features of ZFS storage pools. 82eda14cbcSMatt Macy.Pp 83eda14cbcSMatt MacyIn some cases, the file system version and the pool version are interrelated and 84eda14cbcSMatt Macythe pool version must be upgraded before the file system version can be 85eda14cbcSMatt Macyupgraded. 8616038816SMartin Matuska.Bl -tag -width "filesystem" 87eda14cbcSMatt Macy.It Fl V Ar version 8816038816SMartin MatuskaUpgrade to 89eda14cbcSMatt Macy.Ar version . 9016038816SMartin MatuskaIf not specified, upgrade to the most recent version. 91eda14cbcSMatt MacyThis 92eda14cbcSMatt Macyoption can only be used to increase the version number, and only up to the most 9316038816SMartin Matuskarecent version supported by this version of ZFS. 94eda14cbcSMatt Macy.It Fl a 95eda14cbcSMatt MacyUpgrade all file systems on all imported pools. 96eda14cbcSMatt Macy.It Ar filesystem 97eda14cbcSMatt MacyUpgrade the specified file system. 98eda14cbcSMatt Macy.It Fl r 99eda14cbcSMatt MacyUpgrade the specified file system and all descendent file systems. 100eda14cbcSMatt Macy.El 101eda14cbcSMatt Macy.El 102eda14cbcSMatt Macy.Sh SEE ALSO 103eda14cbcSMatt Macy.Xr zpool-upgrade 8 104