4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
22 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
23 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
24 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
25 .\" Copyright (c) 2017 Datto Inc.
26 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
27 .\" Copyright 2017 Nexenta Systems, Inc.
28 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
34 .Nm zpool Ns Pf - Cm remove
35 .Nd Remove a device from a ZFS storage pool
40 .Ar pool Ar device Ns ...
51 .Ar pool Ar device Ns ...
53 Removes the specified device from the pool.
54 This command supports removing hot spare, cache, log, and both mirrored and
55 non-redundant primary top-level vdevs, including dedup and special vdevs.
56 When the primary pool storage includes a top-level raidz vdev only hot spare,
57 cache, and log devices can be removed.
58 Note that keys for all encrypted datasets must be loaded for top-level vdevs
61 Removing a top-level vdev reduces the total amount of space in the storage pool.
62 The specified device will be evacuated by copying all allocated space from it to
63 the other devices in the pool.
66 command initiates the removal and returns, while the evacuation continues in
68 The removal progress can be monitored with
70 If an IO error is encountered during the removal process it will be
73 feature flag must be enabled to remove a top-level vdev, see
74 .Xr zpool-features 5 .
76 A mirrored top-level device (log or data) can be removed by specifying the top-level mirror for the
78 Non-log devices or data devices that are part of a mirrored configuration can be removed using
84 Do not actually perform the removal ("no-op").
85 Instead, print the estimated amount of memory that will be used by the
86 mapping table after the removal completes.
87 This is nonzero only for top-level vdevs.
91 Used in conjunction with the
93 flag, displays numbers as parsable (exact) values.
95 Waits until the removal has completed before returning.
103 Stops and cancels an in-progress removal of a top-level vdev.
108 .Xr zpool-offline 8 ,
109 .Xr zpool-labelclear 8 ,
110 .Xr zpool-replace 8 ,