thin-pool-metadata · shipping · also LVM thin-pool metadata

Thin-pool metadata

The dm-thin mapping and allocation information stored in a separate logical metadata device to track how thin volumes use a pool's data blocks.

The active LVM component has a _tmeta suffix. It is distinct from volume-group configuration metadata. A _pmspare is used as repair output, not active free metadata capacity or a current backup. [1] Linux v6.12 distinguishes metadata-space mode from failed metadata operations; inspect needs_check and logs, not just Meta% or ro. [2]

vgcfgbackup omits these mappings. A reserve_metadata_snap inspection view is not a thin-volume data snapshot, and exporting mappings does not copy payload blocks. thin_dump 0.9.0 requires metadata-snapshot mode when reading live metadata. [1] [4] [5]

Data blocks are 128 to 2097152 sectors of 512 bytes, equivalent to 64 KiB to 1 GiB, in multiples of 64 KiB. The guide estimates metadata bytes as 48 times data-device bytes divided by data-block bytes; sharing and snapshot changes affect the requirement. This is sizing guidance, not a guaranteed reservation. The Linux v6.12 guide documents metadata commits on FLUSH/FUA and every second otherwise; this cadence is not an application persistence deadline. [4]

In Linux v6.12, the metadata allocation-map cap is 17,045,913,600 bytes (about 15.875 GiB). It is smaller than the separate 16 GiB warning threshold; a larger metadata device does not make its excess space usable. These are versioned implementation limits, not an observed pool size. [2] [6] [7]

Relations

related
Thin pool, Thin provisioning, LVM, Storage snapshot, Snapshot exception store

Advantages

  • Metadata can sit on a mirrored or faster device, so its resilience and performance can be chosen independently of the data device. [4]

Limitations

  • A repaired mapping structure does not by itself verify filesystem or application consistency. [1]
  • In Linux v6.12, metadata-space mode alone does not establish that repair is required. A failed metadata operation attempts rollback and sets needs_check; failure of those recovery steps forces fail mode. [2]

Citations

  1. LVM2 lvmthin(7): pool components, usage counters and metadata repair (accessed 2026-10-23)
  2. Linux v6.12: dm-thin.c, pool modes, timeout, failed metadata operations and resize (accessed 2026-10-31)
  3. Linux v6.12 dm-thin guide: sizing, commits, create_snap and reserve_metadata_snap (accessed 2026-10-31)
  4. thin-provisioning-tools 0.9.0: thin_dump(8), live-metadata restrictions and output formats (accessed 2026-10-17)
  5. Linux v6.12 dm-thin-metadata.h: metadata-map cap alias and separate 16 GiB warning threshold (accessed 2026-10-31)
  6. Linux v6.12 dm-space-map-metadata.h: 255 index entries, bitmap geometry and 4096-byte metadata blocks (accessed 2026-10-31)

Further reading

  1. Hesela: Sparse files, preallocation and thin-pool capacity (accessed 2026-10-17)
Sources & caveats
  • The Linux v6.12 guide supplies sector counts, the sizing heuristic and commit behavior. Sector counts are converted here to explicit binary units; its rounded size headline is not treated as an exact implementation cap. [4]
  • lvmthin is the lvmthin(7) manual, re-read for _tmeta, _pmspare, the vgcfgbackup note and the 2 MiB to about 16 GiB metadata LV range.
  • The copy-on-write entry links here because thin snapshots share data blocks and this metadata records the sharing, so snapshot-heavy pools need more of it.
  • Source-derived arithmetic: 255 * (16384 - 64) * 4096 = 17,045,913,600 bytes; the separate warning threshold is 16 * 1024^3 = 17,179,869,184 bytes. get_metadata_dev_size() clamps to the former. No live pool was created or resized. [7] [6] [2]
  • The v6.12 guide groups exhaustion and failed operations; the code separates check_for_metadata_space() from metadata_operation_failed(). Growth can restore write mode when needs_check is absent. This is not every distribution's recovery procedure. [4] [2]

JSON: /data/terms/thin-pool-metadata.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Thin-pool metadata. Hesela. 2026-10-31. https://hesela.dev/terms/thin-pool-metadata/