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 https://opensource.org/licenses/CDDL-1.0.
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]
21 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
23 .\" Copyright (c) 2012 Cyril Plisko. All Rights Reserved.
24 .\" Copyright (c) 2017 Datto Inc.
25 .\" Copyright (c) 2018 George Melikov. All Rights Reserved.
26 .\" Copyright 2017 Nexenta Systems, Inc.
27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
35 .Nd replace one device with another in ZFS storage pool
40 .Oo Fl o Ar property Ns = Ns Ar value Oc
41 .Ar pool Ar device Op Ar new-device
48 This is equivalent to attaching
50 waiting for it to resilver, and then detaching
52 Any in progress scrub will be cancelled.
56 must be greater than or equal to the minimum size of all the devices in a mirror
57 or raidz configuration.
60 is required if the pool is not redundant.
63 is not specified, it defaults to
65 This form of replacement is useful after an existing disk has failed and has
66 been physically replaced.
67 In this case, the new disk may have the same
69 path as the old device, even though it is actually a different disk.
75 even if it appears to be in use.
76 Not all devices can be overridden in this manner.
77 .It Fl o Ar property Ns = Ns Ar value
78 Sets the given pool properties.
81 manual page for a list of valid properties that can be set.
82 The only property supported at the moment is
87 is reconstructed sequentially to restore redundancy as quickly as possible.
88 Checksums are not verified during sequential reconstruction so a scrub is
89 started when the resilver completes.
90 Sequential reconstruction is not supported for raidz configurations.
92 Waits until the replacement has completed before returning.
97 .Xr zpool-initialize 8 ,