This article explains how to expand a VHD or VHDx Virtual Hard Drive on hosts under the control of Windows Cluster Services while the VM is down or offline.
Use the Cluster Manager to expand the VHD file.
- Log into one of the cluster nodes
- Start the Cluster Failover Manager console
- Shutdown the VM
Expand the VHD file
- Right-Click the VM attached to the VHD to expand
- Note: A VHD may be connected to more than one VM
- Select Settings
- Under the Hardware section select “Hard Drive”
- Select the Edit button
This will start the Edit Virtual Hard Disk Wizard
Click NEXT then select the Expand Option to expand the VHD
Enter the new size for the VHD
Select Finish and the VHD is expanded
Expand VHD disk partition
- Start the VM
- Log into the VM with a console
- Start the “Create and format hard disk partitions” where you can adjust the partition size. We use the Find function. Disk Manager is also located inside of “Computer Management”
Find the disk which the VHD you have expanded. It will have Unallocated space at the end.
Extend the VHD Volume partition
- Right Click the active partition and click “Extend Volume” to extend the partition to utilize the additional hard disk size.
- Then we enter the Extend Volume Wizard, where we can increase the size of the partition. If you select the defaults, the partition will be extended to the full size of the VHD.
Now resize the volume
And the Volume is expanded and concatenated.