path: root/man
diff options
authorAndriy Gapon <avg@FreeBSD.org>2017-04-14 16:53:34 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-04-14 16:53:34 +0000
commitbe0769e638de9f7208df5298f84ff001eef85989 (patch)
treec593e44f98357661248cf3b789d01332c69b5c6b /man
parent1d381d5c2c69adaa66932575eb71a1b30d12f572 (diff)
7280 Allow changing global libzpool variables in zdb and ztest through command line
illumos/illumos-gate@0e60744c982adecd0a1f146f5637475d07ab1069 https://github.com/illumos/illumos-gate/commit/0e60744c982adecd0a1f146f5637475d07ab1069 https://www.illumos.org/issues/7280 zdb is very handy for diagnosing problems with a pool in a safe and quick way. When a pool is in a bad shape, we often want to disable some fail-safes, or adjust some tunables in order to open them. In the kernel, this is done by changing public variables in mdb. The goal of this feature is to add the same capability to zdb and ztest, so that they can change libzpool tuneables from the command line. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Pavel Zakharov <pavel.zakharov@delphix.com>
Notes: svn path=/vendor/illumos/dist/; revision=316858
Diffstat (limited to 'man')
1 files changed, 13 insertions, 1 deletions
diff --git a/man/man1m/zdb.1m b/man/man1m/zdb.1m
index 260fa854db56..ed74d510d0dd 100644
--- a/man/man1m/zdb.1m
+++ b/man/man1m/zdb.1m
@@ -21,7 +21,7 @@
\fBzdb\fR [-CumdibcsDvhLMXFPAG] [-e [-p \fIpath\fR...]] [-t \fItxg\fR]
[-U \fIcache\fR] [-I \fIinflight I/Os\fR] [-x \fIdumpdir\fR]
- [\fIpoolname\fR [\fIobject\fR ...]]
+ [-o \fIvar\fR=\fIvalue\fR] ... [\fIpoolname\fR [\fIobject\fR ...]]
\fBzdb\fR [-divPA] [-e [-p \fIpath\fR...]] [-U \fIcache\fR]
@@ -423,6 +423,18 @@ option.
.ne 2
+\fB-o \fIvar\fR=\fIvalue\fR ... \fR
+.sp .6
+.RS 4n
+Set the given global libzpool variable to the provided value. The value must
+be an unsigned 32-bit integer. Currently only little-endian systems are
+supported to avoid accidentally setting the high 32 bits of 64-bit variables.
+.ne 2
.sp .6