xref: /freebsd/sys/contrib/openzfs/man/man8/zpool-labelclear.8 (revision 058ac3e8063366dafa634d9107642e12b038bf09)
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 https://opensource.org/licenses/CDDL-1.0.
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 May 31, 2021
30.Dt ZPOOL-LABELCLEAR 8
31.Os
32.
33.Sh NAME
34.Nm zpool-labelclear
35.Nd remove ZFS label information from device
36.Sh SYNOPSIS
37.Nm zpool
38.Cm labelclear
39.Op Fl f
40.Ar device
41.
42.Sh DESCRIPTION
43Removes ZFS label information from the specified
44.Ar device .
45If the
46.Ar device
47is a cache device, it also removes the L2ARC header
48(persistent L2ARC).
49The
50.Ar device
51must not be part of an active pool configuration.
52.Bl -tag -width Ds
53.It Fl f
54Treat exported or foreign devices as inactive.
55.El
56.
57.Sh SEE ALSO
58.Xr zpool-destroy 8 ,
59.Xr zpool-detach 8 ,
60.Xr zpool-remove 8 ,
61.Xr zpool-replace 8
62