1 .\"
2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
5 .\" 1.0 of the CDDL.
6 .\"
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
10 .\"
11 .\"
12 .\" Copyright 2012, Richard Lowe.
13 .\" Copyright (c) 2012, 2017 by Delphix. All rights reserved.
14 .\" Copyright 2017 Nexenta Systems, Inc.
15 .\"
16 .Dd April 14, 2017
17 .Dt ZDB 1M
18 .Os
19 .Sh NAME
20 .Nm zdb
21 .Nd display zpool debugging and consistency information
22 .Sh SYNOPSIS
23 .Nm
24 .Op Fl AbcdDFGhikLMPsvX
25 .Op Fl e Oo Fl V Oc Op Fl p Ar path ...
26 .Op Fl I Ar inflight I/Os
27 .Oo Fl o Ar var Ns = Ns Ar value Oc Ns ...
28 .Op Fl t Ar txg
29 .Op Fl U Ar cache
30 .Op Fl x Ar dumpdir
31 .Op Ar poolname Op Ar object ...
32 .Nm
33 .Op Fl AdiPv
170 .Pq ZIL
171 entries relating to each dataset.
172 If specified multiple times, display counts of each intent log transaction type.
173 .It Fl k
174 Examine the checkpointed state of the pool.
175 Note, the on disk format of the pool is not reverted to the checkpointed state.
176 .It Fl l Ar device
177 Read the vdev labels from the specified device.
178 .Nm Fl l
179 will return 0 if valid label was found, 1 if error occurred, and 2 if no valid
180 labels were found.
181 .Pp
182 If the
183 .Fl q
184 option is also specified, don't print the labels.
185 .Pp
186 If the
187 .Fl u
188 option is also specified, also display the uberblocks on this device.
189 .It Fl L
190 Disable leak tracing and the loading of space maps.
191 By default,
192 .Nm
193 verifies that all non-free blocks are referenced, which can be very expensive.
194 .It Fl m
195 Display the offset, spacemap, and free space of each metaslab.
196 .It Fl mm
197 Also display information about the on-disk free space histogram associated with
198 each metaslab.
199 .It Fl mmm
200 Display the maximum contiguous free space, the in-core free space histogram, and
201 the percentage of free space in each space map.
202 .It Fl mmmm
203 Display every spacemap record.
204 .It Fl M
205 Display the offset, spacemap, and free space of each metaslab.
206 .It Fl MM
207 Also display information about the maximum contiguous free space and the
208 percentage of free space in each space map.
209 .It Fl MMM
210 Display every spacemap record.
|
1 .\"
2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
5 .\" 1.0 of the CDDL.
6 .\"
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
10 .\"
11 .\"
12 .\" Copyright 2012, Richard Lowe.
13 .\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
14 .\" Copyright 2017 Nexenta Systems, Inc.
15 .\"
16 .Dd April 14, 2017
17 .Dt ZDB 1M
18 .Os
19 .Sh NAME
20 .Nm zdb
21 .Nd display zpool debugging and consistency information
22 .Sh SYNOPSIS
23 .Nm
24 .Op Fl AbcdDFGhikLMPsvX
25 .Op Fl e Oo Fl V Oc Op Fl p Ar path ...
26 .Op Fl I Ar inflight I/Os
27 .Oo Fl o Ar var Ns = Ns Ar value Oc Ns ...
28 .Op Fl t Ar txg
29 .Op Fl U Ar cache
30 .Op Fl x Ar dumpdir
31 .Op Ar poolname Op Ar object ...
32 .Nm
33 .Op Fl AdiPv
170 .Pq ZIL
171 entries relating to each dataset.
172 If specified multiple times, display counts of each intent log transaction type.
173 .It Fl k
174 Examine the checkpointed state of the pool.
175 Note, the on disk format of the pool is not reverted to the checkpointed state.
176 .It Fl l Ar device
177 Read the vdev labels from the specified device.
178 .Nm Fl l
179 will return 0 if valid label was found, 1 if error occurred, and 2 if no valid
180 labels were found.
181 .Pp
182 If the
183 .Fl q
184 option is also specified, don't print the labels.
185 .Pp
186 If the
187 .Fl u
188 option is also specified, also display the uberblocks on this device.
189 .It Fl L
190 Disable leak detection and the loading of space maps.
191 By default,
192 .Nm
193 verifies that all non-free blocks are referenced, which can be very expensive.
194 .It Fl m
195 Display the offset, spacemap, and free space of each metaslab.
196 .It Fl mm
197 Also display information about the on-disk free space histogram associated with
198 each metaslab.
199 .It Fl mmm
200 Display the maximum contiguous free space, the in-core free space histogram, and
201 the percentage of free space in each space map.
202 .It Fl mmmm
203 Display every spacemap record.
204 .It Fl M
205 Display the offset, spacemap, and free space of each metaslab.
206 .It Fl MM
207 Also display information about the maximum contiguous free space and the
208 percentage of free space in each space map.
209 .It Fl MMM
210 Display every spacemap record.
|