Problem with dynamic vhd sizeHello 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.<br/> <br/> Has anyone same experience ?<br/> <br/> Its possible to solve the problem somehow? There is no snapshot<br/> <br/> Thanks© 2009 Microsoft Corporation. All rights reserved.Wed, 01 Jul 2009 23:59:30 Z48c988f1-8d0b-445e-a65b-e30361dcb0bahttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#48c988f1-8d0b-445e-a65b-e30361dcb0bahttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#48c988f1-8d0b-445e-a65b-e30361dcb0baOOSOOhttp://social.technet.microsoft.com/Profile/en-US/?user=OOSOOProblem with dynamic vhd sizeHello 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.<br/> <br/> Has anyone same experience ?<br/> <br/> Its possible to solve the problem somehow? There is no snapshot<br/> <br/> ThanksSat, 27 Jun 2009 13:32:29 Z2009-06-27T13:32:47Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#2e07257f-1855-4dc7-87f5-8a613f8707edhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#2e07257f-1855-4dc7-87f5-8a613f8707edJohn Paul Cookhttp://social.technet.microsoft.com/Profile/en-US/?user=John%20Paul%20CookProblem with dynamic vhd sizeRead this first and see if it helps: <a href="http://social.technet.microsoft.com/forums/en-US/winserverhyperv/thread/209c3c45-f7fe-4ca3-8e32-607683f5f4e8/">http://social.technet.microsoft.com/forums/en-US/winserverhyperv/thread/209c3c45-f7fe-4ca3-8e32-607683f5f4e8/</a><br/><br/>If you want to script the compaction process: <a href="http://blogs.msdn.com/virtual_pc_guy/archive/2008/06/11/hyper-v-script-compact-vhd.aspx">http://blogs.msdn.com/virtual_pc_guy/archive/2008/06/11/hyper-v-script-compact-vhd.aspx</a><br/><br/>Sat, 27 Jun 2009 13:47:35 Z2009-06-27T13:47:35Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#e4afcf22-44fc-4735-b560-86979cfd79f7http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#e4afcf22-44fc-4735-b560-86979cfd79f7BrianEhhttp://social.technet.microsoft.com/Profile/en-US/?user=BrianEhProblem with dynamic vhd sizeDynamic VHDs only grow as they need to, they do not shrink ( sucah as a page file does).<br/><br/>I am guessing that at some point int time the VHD needed to grow and no longer needs that extra space.<br/><br/>Also, dynamic VHD grows in block sized chunks, so it will always be larger than what is actually used.<hr class="sig">Brian Ehlert (hopefully you have found this useful)Sat, 27 Jun 2009 15:23:13 Z2009-06-27T15:23:13Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#efe26b65-7ccc-4c37-8cf2-94f708cdca73http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#efe26b65-7ccc-4c37-8cf2-94f708cdca73Vincent Huhttp://social.technet.microsoft.com/Profile/en-US/?user=Vincent%20HuProblem with dynamic vhd size<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Hi,</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>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.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="text-align:left;margin:0cm 0cm 0pt" align=left><a name="_MailAutoSig"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Best regards,</span></a></p> <p class=MsoNormal style="text-align:left;margin:0cm 0cm 0pt" align=left><span style=""><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Vincent Hu</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US><span style="font-family:Calibri;font-size:small"> </span></span></p>Mon, 29 Jun 2009 07:21:47 Z2009-06-29T07:21:47Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#7fd39872-a96d-41b7-b149-164921c868b3http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#7fd39872-a96d-41b7-b149-164921c868b3OOSOOhttp://social.technet.microsoft.com/Profile/en-US/?user=OOSOOProblem with dynamic vhd sizeHi, I think that used space was never bigger than actual used size equals 20 GBWed, 01 Jul 2009 09:32:39 Z2009-07-01T09:32:39Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#c1d5f6aa-60d4-4bd7-a53c-756da5ab8a20http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#c1d5f6aa-60d4-4bd7-a53c-756da5ab8a20Vincent Huhttp://social.technet.microsoft.com/Profile/en-US/?user=Vincent%20HuProblem with dynamic vhd size<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Hi,</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Have you convert the disk type to dynamic disk(the one opposite to basic disk, not the one in this post subject)?</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>The following post discussed the similar issue to yours, you can refer to:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>dynamically expanding disk increases</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US><a href="http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/bc6366e7-378b-4ded-9240-036f749e5a87">http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/bc6366e7-378b-4ded-9240-036f749e5a87</a></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US> </span></p> <p class=MsoNormal style="text-align:left;margin:0cm 0cm 0pt" align=left><a name="_MailAutoSig"><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Best regards,</span></a></p> <p class=MsoNormal style="text-align:left;margin:0cm 0cm 0pt" align=left><span style=""><span style="font-family:'Verdana','sans-serif';color:black;font-size:10pt" lang=EN-US>Vincent Hu</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US><span style="font-family:Calibri;font-size:small"> </span></span></p>Wed, 01 Jul 2009 09:42:04 Z2009-07-01T09:42:04Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#2b2b3766-d0c8-4dba-a81f-23f2d384d708http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#2b2b3766-d0c8-4dba-a81f-23f2d384d708OOSOOhttp://social.technet.microsoft.com/Profile/en-US/?user=OOSOOProblem with dynamic vhd sizeHi, that post is'nt help in my case, disk is basic from begining not convertedWed, 01 Jul 2009 10:35:32 Z2009-07-01T10:35:32Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#9443909f-0d54-49e7-9e86-22a476d819dahttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#9443909f-0d54-49e7-9e86-22a476d819daBrianEhhttp://social.technet.microsoft.com/Profile/en-US/?user=BrianEhProblem with dynamic vhd sizeThe 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.<br/><br/>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.<br/><br/>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.<br/><br/>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.<br/><br/>Speakaing of that (this thought just came to my while typing) - what about backups?  And possibly backup agent or VSS snapshot cache?<br/>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)...<br/><br/>Just thinking outloud...<br/><hr class="sig">Brian Ehlert (hopefully you have found this useful)Wed, 01 Jul 2009 15:10:12 Z2009-07-01T15:10:12Zhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#b6dbf25d-d07a-4726-9261-e46b0de00dadhttp://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/48c988f1-8d0b-445e-a65b-e30361dcb0ba#b6dbf25d-d07a-4726-9261-e46b0de00dadJohn Paul Cookhttp://social.technet.microsoft.com/Profile/en-US/?user=John%20Paul%20CookProblem with dynamic vhd sizeShadow copies could do this.<br/><br/>I saw a Vista machine using 30 GB consume 90 GB because of shadow copies.Wed, 01 Jul 2009 23:59:30 Z2009-07-01T23:59:30Z