Link to home
Start Free TrialLog in
Avatar of ie0
ie0Flag for United States of America

asked on

Hyper-V low disk space

I have Win 2008 SP-2 Hyper-V
My only virtual machine has 3 partitions C: D: E:
They are all on the same VHD and are dymamicly sized.
I am running low on disk space on my Host data drive D: (where my VHD is)

Each of the 3 partitions has a lot of free space, and when I add up the data being used it is only about 60% of the total size of my Host D: drive. (but the VHD is taking up 95%).

I would like to shrink the partitions on the Virtual machine using GParted, but how can I tell which partition is taking up the most space in the .VHD?
I assume it is not as simple as the partition with the greatest size becuase they are all dynamically expanding and they all have free space.

Avatar of proadmin
proadmin
Flag of United States of America image

Simple, remote desktop into your remote machine and determine which disk is taking up what. If you do this from the host machine you won't get an accurate read as you said. Honestly though, I don't think you should do what you are attempting.... VHDs can get corrupted quite easily and I would suggest getting more space long before using a third party utility.

My 2 cents says - upgrade... Hope that helps.
Check that you don't have shadow copies configured on your host D: drive as this could be eating your space up.
Avatar of ie0

ASKER

Jake,
I think is used to have Shadow Copies enabled but I do not now.
However I do have a very large AVHD file (which I thought is only created when shadowcopy is enabled??)
Would merging the AVHD into the VHD lessen my disk space?
If so, do I just shutdown the Virtual server and then a merge will happend automatically?
if you are satisfied with your virtual server state at the moment and you don't have the need to revert back to an earlier configuration / data set you can simply "Delete the Snapshots" to re-claim your space.

Deleting Snapshots
http://blogs.msdn.com/virtual_pc_guy/archive/2009/04/15/what-happens-when-i-delete-a-snapshot-hyper-v.aspx

Managing Snapshots
http://blogs.msdn.com/virtual_pc_guy/archive/2008/01/16/managing-snapshots-with-hyper-v.aspx

http://itbloggen.se/cs/blogs/micke/archive/2008/09/20/like-snapshots-in-hyper-v-please-read-this.aspx

Normally, I would switch off the virtual server (create a downtime if you can) and then copy the required VHDs to a external storage (USB or SAN) and that way even if something goes wrong onto the virtual server HOST itself, I can always bring up the server on another Box.

Hope this helps
Avatar of ie0

ASKER

Mutahir,
Hyper-V manager tells me there are no snapshots for that VM.
But I have a 500GB AVHD file with tody's date.

If I merge the AVHD file to the VHD file, will I save any disk space?
ASKER CERTIFIED SOLUTION
Avatar of Syed Mutahir Ali
Syed Mutahir Ali
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial