cache_dump(8)

πŸ“¦
version 1.3.4 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨ (cache_dump(8) πŸŽ€)

okay so cache_dump is the tool here, and bestie it's giving "dump cache metadata from a device or file to standard output" πŸ’– that's the whole job, no cap.

🧚 SYNOPSIS 🧚

cache_dump [options] {device|file}

πŸ’… DESCRIPTION πŸ’…

okay so cache_dump takes the binary cache metadata that the device-mapper cache target made on a device or file and dumps it to standard output in XML format 🫢 it's for analysis or postprocessing, and lowkey iconic for that.

the XML can then be fed into cache_restore to put it back onto a metadata device (so the device-mapper target can process it), or onto a file πŸ¦‹

🚫 bestie, this tool cannot be run on live metadata. do NOT try it on live metadata πŸ’€

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” print help and exit 🌸
  • -V, --version β€” print version information and exit ✨
  • -r, --repair β€” repair the metadata whilst dumping it πŸ”₯
  • -o {xml file} β€” write the xml to a file you name instead of printing it to stdout πŸ’œ

🌈 EXAMPLES 🌈

okay so dumping the cache metadata on logical volume /dev/vg/metadata to standard output in XML format looks like this:

$ cache_dump /dev/vg/metadata

and if you want it repaired while it dumps (same output, to standard output, in XML format), it's giving:

$ cache_dump --repair /dev/vg/metadata

πŸ“ DIAGNOSTICS πŸ“

cache_dump returns an exit code of 0 for success or 1 for error. ngl that's the cleanest vibe check ever πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

cache_check(8), cache_repair(8), cache_restore(8) 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> β€” the legends who made this, fr fr πŸ™ˆ


bestie, that's the whole page πŸ’– Device Mapper Tools, cache_dump(8) β€” go slay your metadata 🧚✨

πŸ“¦ where this page comes from