Windows Server 2008 R2 Thread, Shrink Hyper-V VHD file? in Technical; How do I shrink a VHD file with hyper-v?
My sharepoint site has a 220gb disk assigned but only using ...
31st May 2011, 01:05 PM #1
Shrink Hyper-V VHD file?
How do I shrink a VHD file with hyper-v?
My sharepoint site has a 220gb disk assigned but only using 40gb of it. But the VHD is 200gb so I cannot export/back it up easily.
Whats the solution?
31st May 2011, 01:12 PM #2
As usual a little more googling found the answer.
Its quite hard to find these solutions sometimes as Hyper-V has progressed from a couple of years ago when you needed 3rd party tools to do this.
Now it seems its inbuilt into the hyper-v management console.
31st May 2011, 01:13 PM #3
Is it dynamicly allocated or preallocated. There is a tool in the hyper-V manager where you specify the VHD that allows you to scan, shrink or resize VHDs. Its a button or series of buttons just below the VHD path.
Edit: looks like you found it while I was writing my answer.
31st May 2011, 01:16 PM #4
Thanks synack, have you done it before?
I'm a little worried about doing it on my production Sharepoint server
31st May 2011, 01:17 PM #5
Personaly I would shrink the partition size of your VM (while inside the VM its self) and then do a disk to VHD (aka physical to virtual) conversion using System Centre Virtual Machine manager or any other tool.
31st May 2011, 01:18 PM #6
Shutdown the machine and copy the VHD file to somewhere safe so can always reattached the old one is something goes wrong.
Originally Posted by zag
31st May 2011, 02:26 PM #7
Havn't done it before but as was said above you should shrink the partition size in the VM and then do the shrink of the VHD. Taking a copy of it beforehand is also a good plan.
31st May 2011, 03:20 PM #8
Edited the Disk in settings then compacted it. Took about 20mins but go the size down to 38gb.
Exported the disk and restarted the server. All backed up now and feeling much happier
I love virtualization sometimes!
Last Post: 27th May 2011, 08:31 PM
By TechSupp in forum Educational Software
Last Post: 25th May 2011, 12:24 AM
By ajbritton in forum Scripts
Last Post: 20th July 2010, 02:56 PM
By ful56_uk in forum Windows Server 2008
Last Post: 26th May 2010, 07:45 PM
By ful56_uk in forum How do you do....it?
Last Post: 18th May 2010, 04:36 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)