Skip to content

Add JSON output to ZDB #17492

Open
Open
@Caian

Description

@Caian

Following #16217, it would be interesting to have some JSON output for ZDB as well.

ZDB is a relatively low-level way of inspecting ZFS pools and devices in case of failure. Because of this, some higher-level analysis and extraction can/must be done with automated tools and scripts.

Operations like zdb -dddd will spit a huge amount of formatted text that must be parsed. A more concise and useful way of outputting this data for further automated processing would be through a intermediate JSON representation.

This would help a lot when creating data recovery scripts for ZFS.

I understand that ZDB is just userland ZFS, but that's precisely what makes it so reassuring to use in case of problems with drives and pools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions