Use it to improve storage utilization while explicitly managing oversubscription, reclamation and out-of-space risk.
Thin Provisioning
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.
1. Thin disks grow on write.
2. Overcommit can fill the pool and pause VMs.
3. Monitor pool usage and alert early (e.g. 80 %).
4. Enable discard/TRIM to reclaim.
5. Thin pool metadata can fill too.
write → block allocated → pool fills
Verify monitoring thresholds, discard propagation and worst-case concurrent growth across all thin consumers.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show future capacity will remain available or that every guest deletion will reclaim physical blocks.
Next check: Verify monitoring thresholds, discard propagation and worst-case concurrent growth across all thin consumers.
Operational reference
Fast context before you go deeper.
Get-VHD disk.vhdx | Select Size,FileSizeVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
guest allocation → virtual disk block allocation → thin metadata → backend extent → pool headroom → guest write result
Step 2 Checks Verify boundary
qemu-img info disk.qcow2 # virtual vs disk size
Get-VHD disk.vhdx | Select Size,FileSize
du -h --apparent-size disk.raw ; du -h disk.raw
Track provisioned vs physical capacity per datastore and alert before the pool fills.
Step 3 Common mistakes Narrow the fault
- Thin disks on thin LUNs without monitoring at either layer.
- No UNMAP/TRIM, so space is never returned.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
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
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A thin virtual disk grows as the guest writes. It saves datastore space and makes snapshots/clones cheaper, at the price of overcommit risk.
Keep thin disks thin: enable discard/UNMAP on the virtual disk, use a paravirtual controller, and let the guest trim (fstrim.timer, Windows Optimize Drives). Without that, deleted guest data stays allocated forever and the disk only grows.
qm set 120 --scsi0 local-zfs:vm-120-disk-0,discard=on,ssd=1
fstrim -av # in Linux guest
Optimize-Volume -DriveLetter D -ReTrim -Verbose # in Windows guest
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Storage → Thin Provisioning. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/storage.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtual Storage → Thin Provisioning reference map
Fast virtual-storage boundaries for Virtual Storage → Thin Provisioning.
| 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 |