Friday, July 13, 2007
How to Succesfully Expand a vhd
At the time I was deploying a complex MOSS testing environment which consisted of the following:
- A virtualized copy of the live AD,
- Four Windows 2003 member servers (Virtual Machines) with:
- MOSS, SQL Server 2005
- Office 2007, Sharepoint Designer, Visual Studio 2005 Team System
- 12 Web Applications with Application Pools
- Two Shared Service Providers
- and a whole lot of site collections
...when I ran out of disc space on the member servers. I had used the default 16GB disc space when creating the virtual harddiscs (vhd's).
It took me a bit of searching, but I was able to increase the discs from 16 to 40GB. I used the following procedure:
- Download and use VhdResize-1.0.34.zip at http://vmtoolkit.com/files/default.aspx (great tool guys!) to increase the size from the *.vhd file.
- And now for the tricky part. Use a bootdisc to boot your Virtual Machine. Do not boot from your current OS, because you will not be able to expand the boot partition to use the new disc size. I used a CD built with BartPE's excellent Boot disc (http://www.nu2.nu/pebuilder/).
The bootdisc needs to have access to the NTFS File System situated on your *.vhd and it has to contain diskpart.exe (http://support.microsoft.com/kb/325590). This is the tool we will be using to extend the partition. - After booting, use diskpart.exe to select the volume and finish by extending it. For the syntax, see http://support.microsoft.com/kb/325590.
- Now boot into your default OS.
That's it!
Subscribe to Posts [Atom]
