Hyper V Windows 2008 R2

Hi,

How can i reduce the size of a Windows 2008 R VHD Hyper V server?  I have read it has to be compacted but I wanted to check the steps before i went any further?

Cheers
minniejpAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Philip ElderTechnical Architect - HA/Compute/StorageCommented:
How much free space does the guest's partition in that VHD have?

If there is enough, you can shrink the size of that partition, then while the VM is offline run the Disk Wizard in Hyper-V Management to shrink the size of the VHD.
minniejpAuthor Commented:
I did that thank you.  But it seems for some reason the disk space available on the host machine where this vm resides is slowly decreasing....I have switched off shadow copies on the vm but it is still decreasing...any ideas?
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Either someone set up Dynamic VHDX files for the VMs, a snapshot/checkpoint was created, or both.

Hyper-V Management will show you the latter while the size of the "partition" in the guest relative to the actual size of the VHDX file will show you the former (VHDX is smaller than the guest's partition).

The catch with either or both is the risk of overprovisioning storage when Dynamic VHDX files are used or the growth of the AVHDX files (differencing disk) for snapshot/checkpoint.

You can delete the Snapshot/Checkpoint to remove the AVHDX but the catch is there must be enough free space to create the final parent VHDX. If there are multiple snapshots/checkpoints delete the smallest ones first (smallest AVHDX). Then tackle the final one.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.