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

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

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

Confirm the host, shell and access role. Replace sample names, paths, domains and interfaces with approved targets. These are diagnostic commands; assess policy and workload impact before making changes.

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

Read the result

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

Resolve and verify

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