diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-12-27 02:43:53 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2013-12-27 02:43:53 +0000 |
commit | ae3bc0acff3ffc184a1eab4fb7d2c0f76f47e9e9 (patch) | |
tree | 2b8f0a6b50569ec5369b518908b1e1c615e1deef /sbin/geom | |
parent | 7d1af5ca62e12f4eec296cfb743105177ba7690f (diff) | |
download | src-test2-ae3bc0acff3ffc184a1eab4fb7d2c0f76f47e9e9.tar.gz src-test2-ae3bc0acff3ffc184a1eab4fb7d2c0f76f47e9e9.zip |
Notes
Diffstat (limited to 'sbin/geom')
-rw-r--r-- | sbin/geom/class/mirror/geom_mirror.c | 7 | ||||
-rw-r--r-- | sbin/geom/class/mirror/gmirror.8 | 14 |
2 files changed, 20 insertions, 1 deletions
diff --git a/sbin/geom/class/mirror/geom_mirror.c b/sbin/geom/class/mirror/geom_mirror.c index 17cfccbd31b2..30f5f8494556 100644 --- a/sbin/geom/class/mirror/geom_mirror.c +++ b/sbin/geom/class/mirror/geom_mirror.c @@ -82,6 +82,13 @@ struct g_command class_commands[] = { { "deactivate", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, "[-v] name prov ..." }, + { "destroy", G_FLAG_VERBOSE, NULL, + { + { 'f', "force", NULL, G_TYPE_BOOL }, + G_OPT_SENTINEL + }, + "[-fv] name ..." + }, { "dump", 0, mirror_main, G_NULL_OPTS, "prov ..." }, diff --git a/sbin/geom/class/mirror/gmirror.8 b/sbin/geom/class/mirror/gmirror.8 index cabeac6c4854..bb48ecab7e31 100644 --- a/sbin/geom/class/mirror/gmirror.8 +++ b/sbin/geom/class/mirror/gmirror.8 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 20, 2013 +.Dd December 27, 2013 .Dt GMIRROR 8 .Os .Sh NAME @@ -86,6 +86,10 @@ .Ar name .Ar prov ... .Nm +.Cm destroy +.Op Fl fv +.Ar name ... +.Nm .Cm forget .Op Fl v .Ar name ... @@ -227,6 +231,14 @@ Activate the given component(s), which were marked as inactive before. .It Cm deactivate Mark the given component(s) as inactive, so it will not be automatically connected to the mirror. +.It Cm destroy +Stop the given mirror and clear metadata on all its components. +.Pp +Additional options include: +.Bl -tag -width ".Fl f" +.It Fl f +Stop the given mirror even if it is opened. +.El .It Cm forget Forget about components which are not connected. This command is useful when a disk has failed and cannot be reconnected, preventing the |