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.
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.
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]
21 .\" Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved.
23 .\" lint-ok: WARNING: sections out of conventional order: Sh SYNOPSIS
31 .Nd libzpool debugging tool
33 This utility pokes configuration changes directly into a ZFS pool,
34 which is dangerous and can cause data corruption.
47 .Op Fl d Ar description
54 that is uniquely identified by
56 which is specified in the same form as a
62 is a short human readable explanation of the new feature.
68 can be safely opened in read-only mode by a system that does not understand the
79 Increment the reference count of the
86 flag decrements the reference count of the
94 flag indicates that the
96 feature is now required to read the pool MOS.
104 Repair labels of a specified
106 according to options.
108 Flags may be combined to do their functions simultaneously.
113 flag repairs corrupted label checksums
118 flag restores the label on a detached device
121 .Nm zhack Cm label repair Fl cu Ar device
122 Fix checksums and undetach a device
127 The following can be passed to all
129 invocations before any subcommand:
130 .Bl -tag -width "-d dir"
131 .It Fl c Ar cachefile
134 configuration from the
137 .Pa /etc/zfs/zpool.cache
144 Can be specified more than once.
149 .No # Nm zhack Cm feature stat Ar tank
151 org.illumos:lz4_compress = 0
153 com.delphix:async_destroy = 0
154 com.delphix:empty_bpobj = 0
156 com.delphix:async_destroy = Destroy filesystems asynchronously.
157 com.delphix:empty_bpobj = Snapshots use less space.
158 org.illumos:lz4_compress = LZ4 compression algorithm support.
160 .No # Nm zhack Cm feature enable Fl d No 'Predict future disk failures.' Ar tank com.example:clairvoyance
161 .No # Nm zhack Cm feature ref Ar tank com.example:clairvoyance
166 .Xr zpool-features 7 ,