Top tip for those long in the tooth with virtual machines and needing to resize virtual hard disks.
This used to be difficult, and involve messing around shutting down servers and mounting the vmdk virtual hard disks as secondary drives on another server to perform the resize.
Now it is as easy as it could be, without even the need to shutdown the server (yes, even when resizing system partitions!). All you need to do is:
- Use the vSphere Client to edit the settings of the server and change the size of the hard disk(s) to the new size;
- On the server itself (RDP/console) run the Computer Management snap-in from the Administrative Tools menu;
- Expand Storage and select Disk Management. The drive you have increased in size will probably still be showing as the original size. This is because the virtual disk manager caches this information. On the right hand side, click More Actions and select Rescan;
- You should now see your new unallocated space. Right click on the *allocated* partition and select Expand.
Et voila! You have an expanded hard disk, in situ, without so much as a reboot required.
I hope this saves you as much time as it has me!
Posted in: VMware, Windows Server 2008 R2
Cesar Contreras
October 27, 2011
thanks so much, this saved me tons of time and effort.
Robert
April 23, 2012
one thing to keep in mind is that you need to remove all over your snapshots before resizing the drive.
Liam
November 4, 2013
Thank you Robert! That is the bit I was missing 🙂
http://yahoo.com
February 10, 2013
I personally found this specific posting , “Resizing Windows Server 2008 R2 virtual hard disk in VMWare ESXi
Calvis”, incredibly engaging plus the blog post ended up
being a wonderful read. Thanks for your time-Jamison
Nathan Hammer
May 31, 2013
Awesome!
perthes disease
August 28, 2013
Hello there! I could have sworn I’ve been to this blog before but after
browsing through a few of the posts I realized it’s new
to me. Nonetheless, I’m definitely delighted I found it and I’ll be book-marking it and checking back often!
Vinay
September 19, 2013
Thanks It saved me a ton of time.