OS Manuals

/usr/bin/thin_dump

Tools for checking, repairing and dumping dm-thin, dm-cache and dm-era metadata

From thin-provisioning-tools 1.3.4-r5 (enterprise-packages), captured 2026-11-08 by running thin_dump --help (exit 0). permalink

Dump thin-provisioning metadata to stdout in XML format

Usage: thin_dump [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Specify the input device to dump

Options:
      --data-block-size <SECTORS>  Provide the data block size for repairing
      --dev-id <THIN_ID>           Dump the specified device
  -f, --format <TYPE>              Choose the output format
  -h, --help                       Print help
  -m, --metadata-snap[=<BLOCKNR>]  Access the metadata snapshot on a live pool
      --nr-data-blocks <NUM>       Override the number of data blocks if needed
  -o, --output <FILE>              Specify the output file rather than stdout
  -q, --quiet                      Suppress output messages, return only exit code.
  -r, --repair                     Repair the metadata whilst dumping it
      --skip-mappings              Do not dump the mappings
      --transaction-id <NUM>       Override the transaction id if needed
  -V, --version                    Print version
Options (12)
OptionDescriptionSource
--data-block-size SECTORSOverride the data block size given in the input xml.help + man
--dev-id THIN_IDDump the specified device.help + man
-f, --format TYPEChoose the output formathelp + man
-h, --helpPrint help and exit.help + man
-m, --metadata-snap BLOCKNRAccess the metadata snapshot on a live poolhelp
--nr-data-blocks NUMOverride the nr data blocks given in the input xml.help + man
-o, --output FILESpecify a file for the output rather than writing to stdout.help + man
-q, --quietSuppress output messages, return only exit code.help
-r, --repairRepair the metadata whilst dumping it.help + man
--skip-mappingsDo not dump the mappings.help + man
--transaction-id NUMOverride the transaction id given in the input xml.help + man
-V, --versionPrint version information and exit.help + man
Examples (3) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.