Thin Provisioning
Cheat sheet · https://pcornel.dk/topic.php?topic=3502
Answer
Thin Provisioning presents a virtual disk with a logical capacity larger than the storage blocks currently allocated, growing physical consumption as data is written or allocated.
Remember
- Logical free space inside a guest is not the same as free physical capacity in the thin pool or datastore.
- Deleting guest files does not automatically reclaim backend blocks unless discard/TRIM/unmap is supported and propagated.
- A thin disk can be healthy until the shared pool becomes exhausted.
- Thin provisioning saves capacity; it does not create capacity.
First checks
qemu-img info <disk>— disk size vs virtual sizelvs -o lv_name,data_percent,metadata_percent— LVM-thin pool usageGet-VHD <vhdx> | fl FileSize,Size— dynamic VHDX growth
Verify in this order
write → block allocated → pool fills
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
Virtual Storage → Thin Provisioning reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Logical capacity | presented to guest | Can exceed allocation |
| Allocated blocks | currently consumed | Changes with writes |
| Pool free | shared physical headroom | Critical exhaustion boundary |
| Reclaim | discard/TRIM/unmap | Requires end-to-end support |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3502