Pcornel
Storage · Logical Volume Management

Thin Volume

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

Back to the Topic

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 usage
  • lvcreate -V 100G -T <vg>/pool -n vol — create thin volume
  • fstrim -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 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 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?