Pcornel
Storage · Logical Volume Management

Thin Pool

Cheat sheet · https://pcornel.dk/topic.php?topic=3970

Back to the Topic

Answer

A thin pool separates logical virtual sizes from physical allocation. Pool data stores allocated blocks while pool metadata tracks mappings and sharing. Both data and metadata capacity are critical; exhaustion of either can disrupt writes and dependent thin volumes.

Remember

  • Thin pool free data ≠ free metadata.
  • Sum of thin virtual sizes ≠ physical pool allocation.
  • Thin provisioning ≠ guaranteed future capacity.
  • Pool online ≠ every thin volume/application healthy.

First checks

  • lvs -o lv_name,data_percent,metadata_percent — pool usage
  • lvcreate --type thin-pool -L 500G -n pool <vg> — create
  • lvextend --poolmetadatasize +1G <vg>/pool — grow metadata

Verify in this order

thin LVs → pool data + metadata → VG

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

Logical Volume Management → Thin Pool LVM map

LVM boundaryWhat to verifyProof limit
Identity / mappingPV, VG, LV/thin-pool identity, size, membership and activation/mappingObject presence alone does not prove upper filesystem or lower path health
Allocation / capacityVG extents, LV size, thin data + metadata usage and upper-consumer capacityFree capacity at one layer does not prove allocation succeeds end to end
Failure boundaryA thin pool with available data blocks proves some physical allocation remains; it does not prove metadata headroom, future overcommit capacity or workload-level correctness.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: pool data and metadata usage remain within policy, mappings are consistent, VG has planned extension headroom and dependent thin volumes complete representative I/O.Close only after the original workload and independent read-back/consistency check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3970

Confirmation

Confirm action

Continue?