IT 专业人士的资源 > 论坛主页 > Hyper-V > Problem with dynamic vhd size
提出问题提出问题
 

问题Problem with dynamic vhd size

  • 2009年6月27日 13:32OOSOO 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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

全部回复

  • 2009年6月27日 13:47John Paul CookMVP, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
  • 2009年6月27日 15:23BrianEhMVP, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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)
  • 2009年6月29日 7:21Vincent HuMSFT, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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.

     

     

    Best regards,

    Vincent Hu

     

  • 2009年7月1日 9:32OOSOO 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi, I think that used space was never bigger than actual used size equals 20 GB
  • 2009年7月1日 9:42Vincent HuMSFT, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/bc6366e7-378b-4ded-9240-036f749e5a87

     

     

    Best regards,

    Vincent Hu

     

  • 2009年7月1日 10:35OOSOO 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Hi, that post is'nt help in my case, disk is basic from begining not converted
  • 2009年7月1日 15:10BrianEhMVP, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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)
  • 2009年7月1日 23:59John Paul CookMVP, 版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Shadow copies could do this.

    I saw a Vista machine using 30 GB consume 90 GB because of shadow copies.