Storage · Hypervisor Storage › Hyper-V Storage
Dynamic VHDX
Cheat sheet · https://pcornel.dk/topic.php?topic=4187
Answer
A dynamic VHDX starts small and grows as the guest writes data, up to its maximum size. It saves space and performs close to fixed disks on VHDX, but the host volume must have room for growth.
Remember
- They grow as data is written.
- Host volume must have space for growth.
- Performance is close to fixed on VHDX.
First checks
New-VHD -Path <p> -SizeBytes 100GB -Dynamic— create dynamicGet-VHD <p> | fl FileSize,Size— actual vs maxOptimize-VHD <p> -Mode Full— compact (offline)
Verify in this order
write → VHDX grows → volume fills
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4187