Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Windows Server / Hyper-V & Failover Clustering

Separate virtual-disk size from host free space and guest partitions

A dynamically expanding VHDX can fail writes when host storage fills even if the guest sees free logical capacity.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Windows Server 2022 / 2025 baseline · Windows PowerShell with the specified role or RSAT modules; native utilities are identified in the text. Use delegated administration and elevation only where required.

Start with this check

Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.

Get-VHD -Path 'D:\VMs\APP01\disk.vhdx' | Select-Object Path, VhdType, Size, FileSize, MinimumSize

What the results mean

Size is virtual capacity while FileSize describes the host file allocation. Neither reports all free space in the backing storage or the guest filesystem.

Fix the cause and check again

Check host volume headroom, checkpoints and the guest partition layout. Plan supported growth or cleanup at the correct layer and validate writes.

Before changing production

Do not compact, shrink or resize an active disk without following the supported workflow and protecting the data.

Source & further reading

Microsoft Learn — get-vhd

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles