Thin Volume
Cheat sheet · https://pcornel.dk/topic.php?topic=3971
Answer
Thin volumes decouple presented capacity from actual pool consumption. New writes allocate blocks in the thin pool; snapshots and block sharing can keep old blocks referenced. The thin volume’s apparent free space must therefore be interpreted together with thin-pool data and metadata headroom.
Remember
- Thin volume virtual size ≠ physical allocation.
- Filesystem free space inside thin LV ≠ thin-pool free space.
- Thin LV growth ≠ pool growth.
- Discard support/configuration ≠ guaranteed immediate space reclamation.
First checks
lvs -o lv_name,pool_lv,data_percent— thin LV usagelvcreate -V 100G -T <vg>/pool -n vol— create thin volumefstrim -v <mount>— return space
Verify in this order
writes → pool blocks
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 Volume 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 LV showing large virtual capacity proves that capacity is presented to the consumer; it does not prove the pool has enough physical or metadata space to satisfy future writes. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: virtual size and actual allocation are understood, pool data/metadata headroom is sufficient, snapshot dependencies are known and representative writes complete successfully. | 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=3971