OS Manuals

/usr/bin/thin_check

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_check --help (exit 0). permalink

Validates thin provisioning metadata on a device or file.

Usage: thin_check [OPTIONS] <INPUT>

Arguments:
  <INPUT>  Specify the input device to check

Options:
      --auto-repair                      Auto repair trivial issues.
      --clear-needs-check-flag           Clears the 'needs_check' flag in the superblock
  -h, --help                             Print help
      --ignore-non-fatal-errors          Only return a non-zero exit code if a fatal error is found.
  -m, --metadata-snap                    Check the metadata snapshot on a live pool
      --override-details-root <BLOCKNR>  Specify a details root to use
      --override-mapping-root <BLOCKNR>  Specify a mapping root to use
  -q, --quiet                            Suppress output messages, return only exit code.
      --skip-mappings                    Don't check the mapping tree
      --super-block-only                 Only check the superblock.
  -V, --version                          Print version
Options (11)
OptionDescriptionSource
--auto-repairAutomatically repair any trivial issues found with the metadata.help + man
--clear-needs-check-flagClears the 'needs_check' flag in the superblock.help + man
-h, --helpPrint help and exit.help + man
--ignore-non-fatal-errorsWill only return a non-zero exit code if it finds a fatal error.help + man
-m, --metadata-snap, --metadata-snapshotCheck the metadata snapshot on a live poolhelp + man
--override-details-root BLOCKNRSpecify a details root to usehelp
--override-mapping-root BLOCKNRSpecify a mapping root to use.help + man
-q, --quietSuppress output messages, return only exit code.help + man
--skip-mappingsSkip checking of the block mappings which make up the bulk of the metadata.help + man
--super-block-onlyOnly check the superblock.help + man
-V, --versionOutput version information and exit.help + man
Examples (1) 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.