Thin Provisioning
Cheat sheet · https://pcornel.dk/topic.php?topic=3851
Answer
Thin provisioning separates advertised logical size from physical allocation. It improves utilization but introduces an operational dependency on monitoring backing-pool capacity, metadata and reclamation behavior.
Remember
- Logical free space inside a guest/filesystem does not equal free backing capacity in the thin pool.
- Thin provisioning is not compression or deduplication.
- Overcommitment is possible because multiple thin objects may promise more capacity than physically exists.
- Deleting data in a filesystem does not always return blocks to the thin pool unless discard/TRIM/UNMAP is supported and effective.
First checks
lvs -o name,data_percent,metadata_percent— thin pool usageqemu-img info <disk>— virtual vs allocatedzfs get refreservation,volsize <zvol>— sparse zvol
Verify in this order
write → allocate from pool → pool usage grows
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Fundamentals → Thin Provisioning reference map
| Boundary | What it means | Evidence limit |
|---|---|---|
| Consumer view | What the workload/OS believes is available | Does not prove lower-layer allocation, path or media health |
| Logical storage | Volume/LUN/share/pool/datastore or object namespace presented to the consumer | Object existence does not prove backing capacity or correct ownership |
| Transport/backing | Protocol, path, controller, storage service and protection that carry/persist I/O | Path/control-plane health does not prove application data |
| Acceptance | Original data can be written, committed and read back correctly by the intended workload | Required for end-to-end closure |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3851