Pcornel
Virtualization · Virtual Storage

Thin Provisioning

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

Back to the Topic

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 size
  • lvs -o lv_name,data_percent,metadata_percent — LVM-thin pool usage
  • Get-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

BoundaryMeaningEvidence limit
Logical capacitypresented to guestCan exceed allocation
Allocated blockscurrently consumedChanges with writes
Pool freeshared physical headroomCritical exhaustion boundary
Reclaimdiscard/TRIM/unmapRequires 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

Confirmation

Confirm action

Continue?