How to Resize, Shrink, or Expand VHDX in Hyper-V
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.
Limitations
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!
Backup Software Overview
BackupChain Server Backup SoftwareDownload BackupChain
Cloud Backup
Backup VMware Workstation
Backup FTP
Backup VirtualBox
Backup File Server
Hyper-V Backup
Backup Hyper-VPopular
- Hyper-V Links, Guides, Tutorials & Comparisons
- Veeam Alternative
- How to Back up Cluster Shared Volumes
- DriveMaker: Map FTP, SFTP, S3 Site to a Drive Letter (Freeware)
Resources
- Free Hyper-V Server
- Remote Desktop Services Blog
- SCDPM Blog
- SCOM Blog
- V4 Articles
- Knowledge Base
- FAQ
- Sitemap
- Backup Education
- Backup Sichern
- Hyper-V Scripts in PowerShell
- FastNeuron
- BackupChain (Greek)
- BackupChain (Deutsch)
- BackupChain (Spanish)
- BackupChain (French)
- BackupChain (Dutch)
- BackupChain (Italian)
Backup Software List
BackupChain
Veeam
Unitrends
Symantec Backup Exec
BackupAssist
Acronis
Zetta
Altaro
Windows Server Backup
Microsoft DPM
Ahsay
CommVault
IBM
Other Backup How-To Guides
- Hyper-V Stop 0x0000000A BSOD Error Causes and Fixes KB2776366
- Hyper-V Backup and Secure DMZ Servers: A How-to Guide
- How to Fix VSS Timeout Error VSS_E_FLUSH_WRITES_TIMEOUT
- KB 2885541 Packet sniffing tool does not sniff all network traffic through port mirroring on Windows 2012 Server VMs
- 8 Tape Backup Disadvantages and Issues You Need To Know
- How to Mount a VHDX to Windows using a PowerShell Script
- How to Create and Delete Hyper-V Checkpoints / Snapshots
- How to Open ISO in Hyper-V Server: Mount ISO to Drive
- Hyper-V Cluster 2012 R2 Setup Instructions, Simple and Quick
- 0x8004230f VSS_E_UNEXPECTED_PROVIDER_ERROR VSS snapshot creation failed
- 0x800705aa How to Fix ERROR NO SYSTEM RESOURCES
- Veeam Alternative for Hyper-V Backup
- How to Update Windows Offline Without an Internet Connection
- Hyper-V CSV backup: What needs to be considered for VM backups?
- Windows Server 2016 Download Location ISO File
- Hyper-V VHD or VHDX? Advantages, Limitations, and Disadvantages
- How to Convert from Dynamic VHD/VHDX Disk Format to / from Fixed in Hyper-V
- Hyper-V Integration Services Update: Why You Need to Keep Them Up-to-Date at all Times
- Windows Server 2012 Failover Cluster Important Updates
- How to fix ‘Microsoft Hyper-V VSS Writer’ is in failed state, Writer Failure code: 0x800423f3
