OS Manuals

/usr/bin/cache_metadata_size

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

Estimate the size of the metadata device needed for a given configuration.

Usage: cache_metadata_size [OPTIONS] <--device-size <SIZE> --block-size <SIZE> | --nr-blocks <NUM>>

Options:
      --block-size <SIZE[bskmg]>     Specify the size of each cache block
      --device-size <SIZE[bskmgtp]>  Specify total size of the fast device used in the cache
  -h, --help                         Print help
      --max-hint-width <BYTES>       Specity the per-block hint width [default: 4]
  -n, --numeric-only[=<OPT>]         Output numeric value only
      --nr-blocks <NUM>              Specify the number of cache blocks
  -u, --unit <UNIT>                  Specify the output unit in {bskKmMgG} [default: sector]
  -V, --version                      Print version
Options (8)
OptionDescriptionSource
--block-size SIZE[bskmgSpecify the size of each cache block in 512 byte sectors.help + man
--device-size SIZE[bskmgtpSpecify total size of the fast device used in the cache.help + man
-h, --helpPrint helphelp
--max-hint-width BYTESSpecity the per-block hint width [default: 4]help + man
-n, --numeric-only OPTOutput numeric value onlyhelp
--nr-blocks NUMSpecify the number of cache blocks.help + man
-u, --unit UNITSpecify the output unit in {bskKmMgG} [default: sector]help
-V, --versionPrint versionhelp
Examples (2) 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.