hhding / pyzdb

Home made tools to play with the ondisk data of zfs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyzdb

Home made tools to play with the ondisk data of zfs.

zdb is a great tool. As Linux does not have a tool like mdb, so I write these small scripts to help play with zfs data.

How to use the scripts

./zdb_label.py --dev ~/workspace/zfs_test/blk* --dump nvlist > nvlist.json
./zdb_label.py --dev ~/workspace/zfs_test/blk* --dump uberblock | tail -n 6
./zdb_vdev.py --ptr 0:1d24000:1000/1000 | ./zdb_obj.py
./zdb_vdev.py --ptr 0:1d24000:1000/1000 | ./zdb_obj.py --obj_id 1

About

Home made tools to play with the ondisk data of zfs

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%