zdb
ZFS pool debugging and diagnostics tool
TLDR
Display pool configuration
SYNOPSIS
zdb [-AbcdDFGhiLMPsvXY] [-e [-V] [-p path]...] [-I inflight] [-x dumpdir] [-t txg] [-U cache] [-K key] [poolname|dataset|objset...]
DESCRIPTION
zdb is the ZFS debugger, used to display detailed internal information about ZFS pools, datasets, and vdevs. It's primarily a diagnostic and debugging tool for ZFS administrators and developers.
The tool can examine pool structure, display block allocation maps, verify data checksums, and dump raw ZFS metadata. It operates read-only and doesn't modify pool data.
Common uses include diagnosing pool corruption, examining vdev labels after disk failures, and understanding ZFS internals.
PARAMETERS
-b
Display block allocation statistics-c
Verify pool integrity (checksum all data)-C
Display pool configuration from cachefile-d
Dump metadata from specified dataset-D
Display deduplication statistics-e
Operate on exported pool (specify devices with -p)-l
Read and display vdev label contents-L
Disable leak tracking-m
Display metaslab information-p path
Path to vdev (use with -e)-R
Read and display raw data-s
Display space map histograms-v
Verbose output
CAVEATS
zdb requires root privileges to access raw disk devices and ZFS internal structures.
This is a debugging tool meant for experts. Misinterpreting output can lead to incorrect conclusions about pool health.
Output format may change between ZFS versions as internal structures evolve.
For routine pool diagnostics, use zpool status instead.
SEE ALSO
zfs(8), zpool(8), zpool-status(8)
