xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-detach.8 (revision 517e52b6c21ccff22c46df0dcd15c19baee3d86c)
1.\"
2.\" CDDL HEADER START
3.\"
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.
7.\"
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.
12.\"
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]
18.\"
19.\" CDDL HEADER END
20.\"
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.
28.\"
29.Dd August 9, 2019
30.Dt ZPOOL-DETACH 8
31.Os
32.
33.Sh NAME
34.Nm zpool-detach
35.Nd detach device from ZFS mirror
36.Sh SYNOPSIS
37.Nm zpool
38.Cm detach
39.Ar pool device
40.
41.Sh DESCRIPTION
42Detaches
43.Ar device
44from a mirror.
45The operation is refused if there are no other valid replicas of the data.
46If
47.Ar device
48may be re-added to the pool later on then consider the
49.Nm zpool Cm offline
50command instead.
51.
52.Sh SEE ALSO
53.Xr zpool-attach 8 ,
54.Xr zpool-labelclear 8 ,
55.Xr zpool-offline 8 ,
56.Xr zpool-remove 8 ,
57.Xr zpool-replace 8 ,
58.Xr zpool-split 8
59