![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
How Do I Shrink Hyper-V Virtual Hard Disks In Server 2008this thread has 3 replies and has been viewed 6079 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||
|
||||||||
|
In Windows Server 2008 R2 the default size for a Hyper-V virtual disk seems to be 127GB. I implemented a virtual machine that is being used as a domain controller, and missed the default size setting. It has been in production for quite some time. I now really need the excess disk space and would like to reduce the virtual hard drive size to about 50% of what it currently is.
Is there a safe way to do this? I see lots on how to expand drives, but little on reducinig their size. And the few posts I have seen on that seem risky. Since this is a domain controller I really do not want to take any big risks. Thanks for any help you may be able to offer. BTW, I know that it is theoretically possible to back up the entire VM, then create a new, empty drive and restore the backup into it. However, I have been cautioned that this can be quite risky with domain controllers. Thanks again, Jeff Bell |
|
#2
|
|||||||||
|
|||||||||
|
I would be tempted to build another VM alongside, make it a DC and then transfer roles to it.
The default VHD is a Dynamic disk. Double check what space is being taken up by the VM. Ensure you take a system state backup of the VM when logged in including the VM files itself. If it is a fixed disk, you could consider converting the VHD to a Dynamic. However, I tend to defragment the drive prior to doing so and as you already mention, can carry risks. |
|
#3
|
||||||||||
|
||||||||||
|
Haven't tried shrinking a VHD of the system drive on a DC so I don't know if VHDResizer will work on it or not. Still a useful tool to have if it doesn't.
__________________
"There I stood at the bar, wearing a Mae West, no jacket, and beginning to leak blood from my torn boot. None of the golfers took any notice of me - after all, I wasn't a member!" Kenneth Lee - after being shot down during the Battle of Britain on the 18th August 1940. ************************************************** ********************** ** Remember to give credit where credit is due and leave reputation points where appropriate ** ************************************************** ********************** |
|
#4
|
|||||||||
|
|||||||||
|
Come to think of it and as already mentioned, I would personally just create another DC and transfer roles to it, you can defragment the current Windows system within the VHD and using the Edit Disk tool to then Compact the VHD to free up the space taken up by white space. If it is a fixed disk, you can then consider converting it to a Dynamically Expanding VHD.
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ESXi 4 Question about Hard Disks and Virtual Host Requirements | martinmilroy | VMware Virtualization | 2 | 7th July 2010 16:23 |
| How to shrink a Linux guest disk in Hyper-V? | jimwillsher | Microsoft Hyper-V Technology | 3 | 8th September 2009 17:34 |
| Confused - 2008 Hyper-v Virtual Host NIC settings | ryaeva | Microsoft Hyper-V Technology | 1 | 6th May 2009 01:04 |
| Any way to shrink a virtual disk? | dedmiston | Virtual Server & Virtual PC | 3 | 27th November 2008 19:20 |
| installing big hard disks in pentium 2 | bendi | Misc | 2 | 25th October 2005 02:31 |