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. 28eda14cbcSMatt Macy.\" 2916038816SMartin Matuska.Dd June 2, 2021 30eda14cbcSMatt Macy.Dt ZPOOL-SPLIT 8 31eda14cbcSMatt Macy.Os 3216038816SMartin Matuska. 33eda14cbcSMatt Macy.Sh NAME 347877fdebSMatt Macy.Nm zpool-split 3516038816SMartin Matuska.Nd split devices off ZFS storage pool, creating new pool 36eda14cbcSMatt Macy.Sh SYNOPSIS 377877fdebSMatt Macy.Nm zpool 38eda14cbcSMatt Macy.Cm split 39eda14cbcSMatt Macy.Op Fl gLlnP 4016038816SMartin Matuska.Oo Fl o Ar property Ns = Ns Ar value Oc Ns … 41eda14cbcSMatt Macy.Op Fl R Ar root 42eda14cbcSMatt Macy.Ar pool newpool 4316038816SMartin Matuska.Oo Ar device Oc Ns … 4416038816SMartin Matuska. 45eda14cbcSMatt Macy.Sh DESCRIPTION 46eda14cbcSMatt MacySplits devices off 47eda14cbcSMatt Macy.Ar pool 48eda14cbcSMatt Macycreating 49eda14cbcSMatt Macy.Ar newpool . 50eda14cbcSMatt MacyAll vdevs in 51eda14cbcSMatt Macy.Ar pool 52eda14cbcSMatt Macymust be mirrors and the pool must not be in the process of resilvering. 53eda14cbcSMatt MacyAt the time of the split, 54eda14cbcSMatt Macy.Ar newpool 55eda14cbcSMatt Macywill be a replica of 56eda14cbcSMatt Macy.Ar pool . 57eda14cbcSMatt MacyBy default, the 58eda14cbcSMatt Macylast device in each mirror is split from 59eda14cbcSMatt Macy.Ar pool 60eda14cbcSMatt Macyto create 61eda14cbcSMatt Macy.Ar newpool . 62eda14cbcSMatt Macy.Pp 63eda14cbcSMatt MacyThe optional device specification causes the specified device(s) to be 64eda14cbcSMatt Macyincluded in the new 65eda14cbcSMatt Macy.Ar pool 66eda14cbcSMatt Macyand, should any devices remain unspecified, 67eda14cbcSMatt Macythe last device in each mirror is used as would be by default. 68eda14cbcSMatt Macy.Bl -tag -width Ds 69eda14cbcSMatt Macy.It Fl g 7016038816SMartin MatuskaDisplay vdev GUIDs instead of the normal device names. 7116038816SMartin MatuskaThese GUIDs can be used in place of device names for the zpool 72eda14cbcSMatt Macydetach/offline/remove/replace commands. 73eda14cbcSMatt Macy.It Fl L 7416038816SMartin MatuskaDisplay real paths for vdevs resolving all symbolic links. 7516038816SMartin MatuskaThis can be used to look up the current block device name regardless of the 76eda14cbcSMatt Macy.Pa /dev/disk/ 77eda14cbcSMatt Macypath used to open it. 78eda14cbcSMatt Macy.It Fl l 79eda14cbcSMatt MacyIndicates that this command will request encryption keys for all encrypted 8016038816SMartin Matuskadatasets it attempts to mount as it is bringing the new pool online. 8116038816SMartin MatuskaNote that if any datasets have 8216038816SMartin Matuska.Sy keylocation Ns = Ns Sy prompt , 8316038816SMartin Matuskathis command will block waiting for the keys to be entered. 84*bb2d13b6SMartin MatuskaWithout this flag, encrypted datasets will be left unavailable until the keys 85*bb2d13b6SMartin Matuskaare loaded. 86eda14cbcSMatt Macy.It Fl n 8716038816SMartin MatuskaDo a dry-run 8816038816SMartin Matuska.Pq Qq No-op 8916038816SMartin Matuskasplit: do not actually perform it. 90eda14cbcSMatt MacyPrint out the expected configuration of 91eda14cbcSMatt Macy.Ar newpool . 92eda14cbcSMatt Macy.It Fl P 93eda14cbcSMatt MacyDisplay full paths for vdevs instead of only the last component of 9416038816SMartin Matuskathe path. 9516038816SMartin MatuskaThis can be used in conjunction with the 96eda14cbcSMatt Macy.Fl L 97eda14cbcSMatt Macyflag. 98eda14cbcSMatt Macy.It Fl o Ar property Ns = Ns Ar value 99eda14cbcSMatt MacySets the specified property for 100eda14cbcSMatt Macy.Ar newpool . 101eda14cbcSMatt MacySee the 1023ff01b23SMartin Matuska.Xr zpoolprops 7 103eda14cbcSMatt Macymanual page for more information on the available pool properties. 104eda14cbcSMatt Macy.It Fl R Ar root 105eda14cbcSMatt MacySet 106eda14cbcSMatt Macy.Sy altroot 107eda14cbcSMatt Macyfor 108eda14cbcSMatt Macy.Ar newpool 109eda14cbcSMatt Macyto 110eda14cbcSMatt Macy.Ar root 111eda14cbcSMatt Macyand automatically import it. 112eda14cbcSMatt Macy.El 11316038816SMartin Matuska. 114eda14cbcSMatt Macy.Sh SEE ALSO 115eda14cbcSMatt Macy.Xr zpool-import 8 , 116eda14cbcSMatt Macy.Xr zpool-list 8 , 117eda14cbcSMatt Macy.Xr zpool-remove 8 118