Project

General

Profile

Feature #2012

ZDB improvements for error-location (with greater verbosity)

Added by Jim Klimov about 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2012-01-21
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

When traversing an object's block tree with "zdb -ddddddd... pool dataset objnum" it might be useful to receive information on:

level-6 verbosity
1) Each L0 entry's offset in its L1 set of block pointers (i.e. when I extract the L1 block, I should research blkptr_t entry number 17 to get this' particular block's metadata); perhaps likewise for all higher-level indirect block pointers (offset of this L1 in its parent L2 and so on)
2) Output info about this block's compression, dedup
3) Output info about this block's checksum algorithm and value (from parent BP) and this block's on-disk data checksum for all copies/mirrors or raidz permutations (if none match the BP checksum);
3*) mark the mismatches with some greppable marker :)

level-7 verbosity
4) Output physical/leaf VDEV offset:size addresses for sectors which contain this block's data (mirror/copies or raidz strips with role - parity-1, data-3, etc.)

Also available in: Atom PDF