Microsoft Enterprise Platforms Support: Windows Server Core Team
EPS Team Blogs
Product Team Blogs
If you Inspect the disk in Hyper-V Manager that you just altered it will show the correct new maximum size however.
Even though the disk is a Dynamically Expanding type disk, we still need to tell the Operating System about the container size change. If you look in Storage Manager, you'll see the new unallocated space:
To take advantage of the newly allocated space, simply right click on the container and choose Extend Volume:
Make any size adjustments to the total space to extend, then choose Next
Verify the total size is what you want, and click Finish
Enjoy the extra new space on the VHD!
Windows Server 2003 Scenario:
The same behavior can be seen in Windows Server 2003, however the method to extend the volume is different than in 2008.
So when looking in Disk Management, we see the unallocated space available to expand into:
We have no Extend Volume option in 2003 though! Now what?
What we need to do is boot to WinPE and run Diskpart. What we need to do is boot to WinPE and run Diskpart or the Microsoft Diagnostic and Recovery Toolkit. The key point is that in order to extend a System managed partition, we need to be OUTSIDE of the OS. Understanding that there are third party and freeware tools that can accomplish the same task as WinPE or MS-DART 5.0, those options are beyond the scope of this posting.
If you are not able to obtain a copy of WinPE, MS-DART may be a great option. The link below brings you to a 30-day Evaluation download page.
For information about obtaining WinPE visit http://www.microsoft.com/licensing/sa/default.mspx
For information about obtaining the MS-DART 5.0 product, visit http://www.microsoft.com/downloads/details.aspx?familyid=5D600369-0554-4595-8AB4-C34B2860E087&displaylang=en
Once booted into WinPE or MS-DART 5.0, open a command prompt and run Diskpart.
You’ll notice that Diskpart isn’t fooled, it sees the disk size as we intend it to be, 130gb.
Now we select Disk 0 and then bring up the disk detail. (The Disk number may change obviously based on the disk you’re wanting to extend.)
We see here that the actual volume size is smaller, only 127gb. Now we have to select the Volume we want. Volume 1 in this example.
Now we extend the volume to encompass the newly added free space
Just to make sure – we look…
And we’re good to go! Simply reboot to the OS and enjoy the newly added disk space.
Sean Dwyer Senior Support Engineer Microsoft Enterprise Platforms Support
...or mount the system vhd locally/on the vm host and use the disk management mmc snap-in.