path: root/man
diff options
authorAndriy Gapon <avg@FreeBSD.org>2017-05-26 11:59:20 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-05-26 11:59:20 +0000
commit5fbf54a543bc023e52a9dd435eab55bf8fa9d3fd (patch)
treee1247cbd0f721d718e8419329ac4b5c295f53a8c /man
parent23d34c427899be1c6394e493f6bc16746782e519 (diff)
6418 zpool should have a label clearing command
illumos/illumos-gate@6401734d545a04c18f68b448202f9d9a77216bb9 https://github.com/illumos/illumos-gate/commit/6401734d545a04c18f68b448202f9d9a77216bb9 https://www.illumos.org/issues/6418 An easy, direct means of sanitizing pool vdevs can be helpful for management purposes. FreeBSD has had a 'zpool labelclear' for some time, see: https:// svnweb.freebsd.org/base?view=revision&revision=224171 SpectraBSD has a slightly updated version, which I propose for inclusion. Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Will Andrews <will@firepipe.net> Note: the bulk of the change has been already imported, this is a follow up that imports zpool.1m changes.
Notes: svn path=/vendor/illumos/dist/; revision=318939
Diffstat (limited to 'man')
1 files changed, 20 insertions, 1 deletions
diff --git a/man/man1m/zpool.1m b/man/man1m/zpool.1m
index 30145db55d8a..eadb5482be97 100644
--- a/man/man1m/zpool.1m
+++ b/man/man1m/zpool.1m
@@ -23,7 +23,7 @@
.\" Copyright (c) 2013 by Delphix. All rights reserved.
.\" Copyright 2016 Nexenta Systems, Inc.
-.Dd March 25, 2016
+.Dd March 30, 2016
@@ -103,6 +103,10 @@
.Oo Ar pool Oc Ns ...
.Op Ar interval Op Ar count
+.Cm labelclear
+.Op Fl f
+.Ar device
.Cm list
.Op Fl Hpv
.Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
@@ -1154,6 +1158,21 @@ pool, in addition to the pool-wide statistics.
.It Xo
+.Cm labelclear
+.Op Fl f
+.Ar device
+Removes ZFS label information from the specified
+.Ar device .
+.Ar device
+must not be part of an active pool configuration.
+.Bl -tag -width Ds
+.It Fl f
+Treat exported or foreign devices as inactive.
+.It Xo
.Cm list
.Op Fl Hpv
.Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...