thin_dump(8)
π thin_dump(8) π
okay bestie, this is the System Manager's Manual page for thin_dump(8) π
β¨ NAME β¨
okay so thin_dump is the tool that dumps binary thin provisioning metadata from a device or file and spits it out to standard output π§. It's for analysis or postprocessing, and you can get it as XML or human readable format π
. The XML version can be fed into thin_restore (see thin_restore(8)) to put the metadata back onto a metadata device (for the device-mapper target to process) or onto a file π₯.
β¨ SYNOPSIS β¨
thin_dump [options] {device|file}
β¨ DESCRIPTION β¨
so thin_dump pulls out the binary thin provisioning metadata made by the device-mapper thin provisioning target on a device or file πΈ. You can also grab it from an alternate block if you want, using --metadata-snap (more on that below) π«Ά. It writes everything to standard output, in either XML or human readable format π.
β οΈ bestie, you can't run this on live metadata unless you use the --metadata-snap option π
β¨ OPTIONS β¨
-h,--helpβ shows you the help and then exits π·-V,--versionβ shows the version info and then exits π¦-f,--format {xml|human_readable}β picks your output format, so XML or human readable π-r,--repairβ repairs the metadata while it's being dumped π οΈβ¨-m,--metadata-snap[=<block nr>]β dumps the metadata snapshot πΈ- if you don't give a block, it uses the default metadata snapshot the thin provisioning device-mapper target made for you π
- if you do give a block, it tries the snapshot at block nr instead π§
- check the thin provisioning target docs to learn how to create or release a metadata snapshot and how to get the block number from the kernel π
--dev-id {natural}β dumps the specified device π- you can use this more than once to pick out more than one thin device π
--transaction-id {natural}β overrides the transaction id that's in the input XML π¦--data-block-size {sectors}β overrides the data block size that's in the input XML π--nr-data-blocks {natural}β overrides the nr data blocks that's in the input XML π--skip-mappingsβ doesn't dump the mappings, so skip those π-o {xml file}β writes the output to a file instead of stdout π
β¨ EXAMPLES β¨
okay these are my fave examples, bestie π₯Ή
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata to standard output in human readable format:
$ thin_dump -f human_readable /dev/vg/metadata
Dumps the thin provisioning metadata on logical volume /dev/vg/metadata to standard output in XML format:
$ thin_dump /dev/vg/metadata
Dumps the thin provisioning metadata snapshot on logical volume /dev/vg/metadata to standard output in human readable format (not processable by thin_restore(8), so don't try it π
ββοΈ):
$ thin_dump --format human_readable --metadata-snap /dev/vg/metadata
β¨ DIAGNOSTICS β¨
so thin_dump returns an exit code of 0 if it succeeds, or 1 if there's an error π¦
β¨ SEE ALSO β¨
your besties to look up next π«Ά: thin_check(8), thin_repair(8), thin_restore(8), thin_rmap(8), thin_metadata_size(8) π§
β¨ AUTHOR β¨
written by Joe Thornber <ejt@redhat.com> and Heinz Mauelshagen <HeinzM@RedHat.com> π
that's a wrap, bestie!! ππ β¨ this was the System Manager's Manual page for thin_dump(8), from the Device Mapper Tools collection π ily, go be a main character ππ¦
π¦ where this page comes from
- alpine 3.24: thin-provisioning-tools-doc 1.3.2-r0 Β· GPL-3.0-only
- arch rolling: thin-provisioning-tools 1.3.4-1 Β· GPL-3.0-only
- centos-stream 10: device-mapper-persistent-data 1.3.4-1.el10 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- centos-stream 9: device-mapper-persistent-data 1.1.0-1.el9 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- debian trixie: thin-provisioning-tools 1.1.0-4+b1 Β· GPL-3.0-or-later
- fedora 43: device-mapper-persistent-data 1.1.0-4.fc43 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 43: device-mapper-persistent-data 1.3.3-1.fc43
- fedora 43: device-mapper-persistent-data 1.3.4-1.fc43 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 44: device-mapper-persistent-data 1.3.1-3.fc44 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- fedora 44: device-mapper-persistent-data 1.3.3-1.fc44
- fedora 44: device-mapper-persistent-data 1.3.4-1.fc44 Β· GPL-3.0-only AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT)
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: thin-provisioning-tools 1.1.0-160000.2.2 Β· GPL-3.0-only
- ubuntu questing: thin-provisioning-tools 1.1.0-4ubuntu1 Β· GPL-3.0-or-later
- ubuntu resolute: thin-provisioning-tools 1.1.0-4ubuntu2 Β· GPL-3.0-or-later
- ubuntu stonking: thin-provisioning-tools 1.1.0-5.1ubuntu1 Β· GPL-3.0-or-later
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms