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.\" 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.\" 30eda14cbcSMatt Macy.Dd August 9, 2019 31eda14cbcSMatt Macy.Dt ZPOOL-UPGRADE 8 32eda14cbcSMatt Macy.Os 33*16038816SMartin Matuska. 34eda14cbcSMatt Macy.Sh NAME 357877fdebSMatt Macy.Nm zpool-upgrade 36*16038816SMartin 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 46*16038816SMartin Matuska.Fl a Ns | Ns Ar pool Ns … 47*16038816SMartin 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 59*16038816SMartin Matuskato enable all features on all pools (subject to the 60*16038816SMartin Matuska.Fl o Sy compatibility 61*16038816SMartin Matuskaproperty). 62eda14cbcSMatt Macy.It Xo 637877fdebSMatt Macy.Nm zpool 64eda14cbcSMatt Macy.Cm upgrade 65eda14cbcSMatt Macy.Fl v 66eda14cbcSMatt Macy.Xc 67*16038816SMartin MatuskaDisplays legacy ZFS versions supported by the this version of ZFS. 68eda14cbcSMatt MacySee 69eda14cbcSMatt Macy.Xr zpool-features 5 70*16038816SMartin 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 75*16038816SMartin Matuska.Fl a Ns | Ns Ar pool Ns … 76eda14cbcSMatt Macy.Xc 77*16038816SMartin MatuskaEnables all supported features on the given pool. 78*16038816SMartin Matuska.Pp 79*16038816SMartin MatuskaIf the pool has specified compatibility feature sets using the 80*16038816SMartin Matuska.Fl o Sy compatibility 81ee36e25aSMartin Matuskaproperty, only the features present in all requested compatibility sets will be 82*16038816SMartin Matuskaenabled. 83*16038816SMartin MatuskaIf this property is set to 84*16038816SMartin Matuska.Ar legacy 85*16038816SMartin Matuskathen no upgrade will take place. 86*16038816SMartin 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 90eda14cbcSMatt Macy.Xr zpool-features 5 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 95ee36e25aSMartin MatuskaEnables all supported features (from specified compatibility sets, if any) on all 96ee36e25aSMartin Matuskapools. 97eda14cbcSMatt Macy.It Fl V Ar version 98eda14cbcSMatt MacyUpgrade to the specified legacy version. 99*16038816SMartin MatuskaIf specified, no features will be enabled on the pool. 100eda14cbcSMatt MacyThis option can only be used to increase the version number up to the last 101eda14cbcSMatt Macysupported legacy version number. 102eda14cbcSMatt Macy.El 103eda14cbcSMatt Macy.El 104*16038816SMartin Matuska. 105eda14cbcSMatt Macy.Sh SEE ALSO 106eda14cbcSMatt Macy.Xr zpool-features 5 , 107*16038816SMartin Matuska.Xr zpool-history 8 , 108eda14cbcSMatt Macy.Xr zpoolconcepts 8 , 109*16038816SMartin Matuska.Xr zpoolprops 8 110