xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-detach.8 (revision 271171e0d97b88ba2a7c3bf750c9672b484c1c13)
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
9*271171e0SMartin 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.\"
29eda14cbcSMatt Macy.Dd August 9, 2019
30eda14cbcSMatt Macy.Dt ZPOOL-DETACH 8
31eda14cbcSMatt Macy.Os
3216038816SMartin Matuska.
33eda14cbcSMatt Macy.Sh NAME
347877fdebSMatt Macy.Nm zpool-detach
3516038816SMartin Matuska.Nd detach device from ZFS mirror
36eda14cbcSMatt Macy.Sh SYNOPSIS
377877fdebSMatt Macy.Nm zpool
38eda14cbcSMatt Macy.Cm detach
39eda14cbcSMatt Macy.Ar pool device
4016038816SMartin Matuska.
41eda14cbcSMatt Macy.Sh DESCRIPTION
42eda14cbcSMatt MacyDetaches
43eda14cbcSMatt Macy.Ar device
44eda14cbcSMatt Macyfrom a mirror.
45eda14cbcSMatt MacyThe operation is refused if there are no other valid replicas of the data.
4616038816SMartin MatuskaIf
4716038816SMartin Matuska.Ar device
4816038816SMartin Matuskamay be re-added to the pool later on then consider the
4916038816SMartin Matuska.Nm zpool Cm offline
50eda14cbcSMatt Macycommand instead.
5116038816SMartin Matuska.
52eda14cbcSMatt Macy.Sh SEE ALSO
53eda14cbcSMatt Macy.Xr zpool-attach 8 ,
54eda14cbcSMatt Macy.Xr zpool-labelclear 8 ,
5516038816SMartin Matuska.Xr zpool-offline 8 ,
56eda14cbcSMatt Macy.Xr zpool-remove 8 ,
57eda14cbcSMatt Macy.Xr zpool-replace 8 ,
58eda14cbcSMatt Macy.Xr zpool-split 8
59