Shrinking and expanding VHDX files is a common requirement, especially for data centers.
We discuss here how it’s done.
A lot of times IT admins use dynamically expanding disks to avoid having to grow and shrink VHD / VHDX files. In addition, prior to Windows Server 2012 R2, live expansion and resize of VHDX wasn’t possible; hence, virtual machines had to be shut down for maintenance. But doing all that is / was also a lot work, too.
Windows Server 2012 R2 comes partially to the rescue and permits live resizing of VHDX files without interruptions in service while the VMs are running, but there are limitations:
Only VHDX files can be shrunk and extended
The VHDX file has to be mounted to a virtual SCSI adapter. Since Hyper-V can’t boot from vSCSI it follows you can’t resize a VM’s system disk.
Shared VHDX size cannot be changed, only stand-alone VHDX is supported.
Another thing to consider if you plan to shrink a VM disk is that there has to be free space at the end of the disk in terms of free partition space (unallocated disk space, not currently used by a partition). You can use Windows Disk Management to shrink a partition first if need be.
For Powershell fans out there, the command is resize-vhd and can be used to do the operation via a Powershell script.
By the way, do you have a solid plan for your Hyper-V backups yet? You may want to check out our all-in-one backup software for Windows Server and its feature set; BackupChain offers the best overall value in the market!
BackupChain OverviewDownload BackupChain
How to Backup Hyper-V VMs
How to Backup to the Cloud
How to Backup VMware Workstation
How to Backup over FTP
How to Backup VirtualBox VMs
How to Backup Large Files and Folders
- Step-by-Step Windows 10 Hyper-V Backups
- 11 Things to Know About Hyper-V Snapshots / Checkpoints
- Hyper-V Links, Guides, Tutorials & Comparisons
- How to Back up Hyper-V
- Veeam Alternatives for Hyper-V
- How to Back up Cluster Shared Volumes
- DriveMaker: Map FTP Site as a Drive Letter (Freeware)
- Free Hyper-V Server
- Remote Desktop Services Blog
- SCDPM Blog
- SCOM Blog
- SCVMM Blog
- Virtualization Blog DE
- KB Cloud Articles
- Microsoft Hyper-V Forum
- Archive 2021
- Archive 2020
- Archive 2018
- Archive 2017
- Archive 2016
- Archive 2015
- Archive 2014
- Archive 2013
- Hyper-V Scripts in PowerShell
- BackupChain (Greek)
- BackupChain (Deutsch)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
Backup Software Solution List
Symantec Backup Exec
Windows Server Backup