Problem with dynamic vhd size
- Hello everybody, i have virtual machine with Exchange edge role installed. The dynamic vhd was used, now the used space is about 20 GB, but real size on host file system is 95 GB. This is really inconceivable.
Has anyone same experience ?
Its possible to solve the problem somehow? There is no snapshot
Thanks
All Replies
- Read this first and see if it helps: http://social.technet.microsoft.com/forums/en-US/winserverhyperv/thread/209c3c45-f7fe-4ca3-8e32-607683f5f4e8/
If you want to script the compaction process: http://blogs.msdn.com/virtual_pc_guy/archive/2008/06/11/hyper-v-script-compact-vhd.aspx - Dynamic VHDs only grow as they need to, they do not shrink ( sucah as a page file does).
I am guessing that at some point int time the VHD needed to grow and no longer needs that extra space.
Also, dynamic VHD grows in block sized chunks, so it will always be larger than what is actually used.
Brian Ehlert (hopefully you have found this useful) Hi,
I agree with John and BrianEh. You only mentioned that now the used space is about 20GB, you never told us whether you have ever used the disk space for more than 20GB(such as 50GB,80GB), the disk will not compact the free space after you delete the useless files.
Vincent Hu
- Hi, I think that used space was never bigger than actual used size equals 20 GB
Hi,
Have you convert the disk type to dynamic disk(the one opposite to basic disk, not the one in this post subject)?
The following post discussed the similar issue to yours, you can refer to:
dynamically expanding disk increases
Vincent Hu
- Hi, that post is'nt help in my case, disk is basic from begining not converted
- The only thing that I can think of is that at some point either the memory page file of the VM grew and then shrank, or a mail DB grew and then shrank - mail purge possibly.
If the volume in question only houses the OS of the Exchange server, all that should be there that will dynamically change are the in and out boxes and paging.
And depending on email rules, if a large email is sent outward to many recipients, then this could cause extra growth. But it is one of those one time event types of things. In fact, when it comes to an issue this this, it is generally a moment in time that causes it, but the result we have to live with for a considerably longer time.
the only other thing I can think of is a service pack install or an upgrade - something that uses a great deal of space and then cleans up after itself.
Speakaing of that (this thought just came to my while typing) - what about backups? And possibly backup agent or VSS snapshot cache?
The volume would need to be grown to handle this, it would be a periodic need to more disk that should clean itself up, and you would most likely not see the additional space demand during the business day (after hours event)...
Just thinking outloud...
Brian Ehlert (hopefully you have found this useful) - Shadow copies could do this.
I saw a Vista machine using 30 GB consume 90 GB because of shadow copies.

