thin_metadata_size(8)
๐ thin_metadata_size(8) ๐
okay so this is the manual page for thin_metadata_size from the System Manager's Manual ๐
bestie, it's the one you need when you're setting up thin provisioning ๐ฆ
๐ธ NAME
thin_metadata_size - thin provisioning metadata device/file size calculator. โจ
๐ง SYNOPSIS
thin_metadata_size [options]
๐ DESCRIPTION
okay so thin_metadata_size does the math for you ๐งฎ it works out how big the thin provisioning metadata needs to be, using the block size of your thin provisioned devices, the size of your thin provisioning pool, and the maximum number of all thin provisioned devices and snapshots added together. ngl this is lowkey important because thin pools hold wildly different stuff, so this tool gives you a sensible starting default size ๐ซถ
๐ OPTIONS
-h,--helpโ pop up the help text and exit ๐-V,--versionโ show the version info and exit โจ-b,--block-size {BLOCKSIZE[bskKmMgGtTpPeEzZyY]}โ set the block size ๐
this is the block size of your thin provisioned devices. a plain number means sectors, unless you add a unit. you can use the bytes, sectors, kibibytes, kilobytes, and so on units, either as a one-character suffix or the long form. so -b1m or -b1mebibytes are both giving the same vibe ๐
-s,--pool-size {POOLSIZE[bskKmMgGtTpPeEzZyY]}โ set the pool size ๐
this is the size of your thin provisioning pool. same deal: plain numbers are sectors unless you tack on a unit like bytes, sectors, kibibytes, kilobytes, and friends.
-m,--max-thins {count[bskKmMgGtTpPeEzZyY]}โ set max thins ๐ฆ
this is the maximum total of all thin provisioned devices and snapshots combined. you can use unit identifiers so you don't have to type a million zeros, like 1000000 can be 1M. a plain number is the exact count.
-u,--unit {bskKmMgGtTpPeEzZyY}โ pick the output unit ๐
this decides what units the answer comes out in: bytes, sectors, kibibytes, kilobytes, and so on. plain output with no unit specifier is in sectors.
-n,--numeric-only {short|long}โ only show the size number ๐ฅ
this strips the output down to just the number, so you can use it in scripts. short appends the one-character unit specifier, and long appends the unit specifier string.
๐ EXAMPLES
okay here are the vibes, bestie ๐ง
Calculates the thin provisioning metadata device size for block size 64 kibibytes, pool size 1 tebibyte, and a maximum of 1000 thin provisioned devices and snapshots, in sectors with long output:
$ thin_metadata_size -b64k -s1t -m1000
Or, using the long options instead, for block size 1 gibibyte, pool size 1 petabyte, and a maximum of 1 million thin provisioned devices and snapshots, with numeric-only output in gigabytes:
$ thin_metadata_size --block-size=1g --pool-size=1P --max-thins=1M --unit=G --numeric-only
Same as before (1g, 1P, 1M, numeric-only) but with the unit specifier character appended:
$ thin_metadata_size --block-size=1gibi --pool-size=1petabytes --max-thins=1mega --unit=G --numeric-only=short
Or with the unit specifier string appended:
$ thin_metadata_size --block-size=1gibi --pool-size=1petabytes --max-thins=1mega --unit=G -nlong
๐ DIAGNOSTICS
โ ๏ธ bestie, pay attention here: thin_metadata_size returns an exit code of 0 for success, or 1 for error ๐
๐ซถ SEE ALSO
thin_dump(8), thin_check(8), thin_repair(8), thin_restore(8), thin_rmap(8) ๐
โจ AUTHOR
Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com> ๐
bestie, that's the whole thing ๐ฆ this page came from Device Mapper Tools, and you're officially a thin provisioning pro now ๐ ๐ธ
๐ฆ 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