Thin Pool
Cheat sheet · https://pcornel.dk/topic.php?topic=3970
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 usagelvcreate --type thin-pool -L 500G -n pool <vg>— createlvextend --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 boundary | What to verify | Proof limit |
|---|---|---|
| Identity / mapping | PV, VG, LV/thin-pool identity, size, membership and activation/mapping | Object presence alone does not prove upper filesystem or lower path health |
| Allocation / capacity | VG extents, LV size, thin data + metadata usage and upper-consumer capacity | Free capacity at one layer does not prove allocation succeeds end to end |
| Failure boundary | A 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 |
| Acceptance | Healthy 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