VMware vSphere

 View Only
Expand all | Collapse all

.vmdk file keeps expanding to full size

  • 1.  .vmdk file keeps expanding to full size

    Posted May 06, 2019 07:16 AM

    As i said in the Titel our vmdk File is expanding daily but the windows Server still has the same amount off data. At the moment the vmdk file is 554 GB and the Server uses 192 GB off space effectively. And on the second server the vmdk uses 160 GB and the windows Server only has 55GB in use. The Virtual harddisks are set to thin-provisioned. The vmdk already went up to 1TB off space one day then we reclaimed our space with sdelete but that cant be the solution because it keeps comming back.



  • 2.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 07:30 AM

    Is there any snapshot ?

    If yes, open the snapshot manager (right click the VM in the inventory) and delete the snapshot if not required. This will merge the data in the snapshot file into the flat.vmdk file.

    Make sure you have enough free space and don't run out of disk space while deleting the snapshot.

    Thanks

    Vysakh Nair

    Blog:- https://www.vxpert.in



  • 3.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 08:08 AM

    There are no snapshots on both of those servers.



  • 4.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 08:23 AM

    can you please share the scrennshot of VM folder content with size by browsing datastore

    Thanks

    Vysakh Nair

    Blog:- https://www.vxpert.in



  • 5.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 08:31 AM

    Hope that is the screenshot you want.



  • 6.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 09:06 AM

    Hi CyrillK,

    As you have pointed out the VMDK is Thin Provisioned so allocation can and will grow to the fully provisioned size of the disk.

    If you could guarantee that unique blocks weren’t changing within the VMDK then growth wouldn’t happen. For example if we consider a VMDK with only four blocks: A,B,C and D. If you kept writing to block A then the VMDK size would be the size of block A however if writes moved across the blocks then it can grow. Sorry if this is obvious.

    To try and reduce VMDK allocation growth, make sure that things like Defrag are not being run as this can move data to other blocks within the VMDK increasing the allocation while not increasing the data consumed within the Windows volume. I understand encryption can do a similar thing.

    Kind regards.



  • 7.  RE: .vmdk file keeps expanding to full size

    Posted May 06, 2019 09:36 AM

    Hello ThompsG

    I don't quite understand that. What do you mean by that? What exactly should we test now?



  • 8.  RE: .vmdk file keeps expanding to full size

    Posted May 07, 2019 04:24 AM

    Hi CyrillK,

    Sorry about that. What I meant is that the amount of space used by the VMDK might not be equal to the size that is reported as used by the OS.

    For a start I would make sure that you don't have any automated tasks running things like defrags on the disks.

    Kind regards.



  • 9.  RE: .vmdk file keeps expanding to full size

    Posted May 07, 2019 05:31 AM

    Hi ThompsG

    Those automated tasks should they be in windows or on Vmware?



  • 10.  RE: .vmdk file keeps expanding to full size

    Posted May 07, 2019 08:28 AM

    Will be in Windows if there - for example:



  • 11.  RE: .vmdk file keeps expanding to full size

    Posted May 07, 2019 08:32 AM

    ThompsG

    Thank you for the answer. I will deactivate that one and test it for a week, i will report back to you.



  • 12.  RE: .vmdk file keeps expanding to full size

    Posted May 09, 2019 08:55 AM

    You could run storage optimization inside the VM. It should help.

    https://www.howto-connect.com/trim-ssd-windows-10-powershell/



  • 13.  RE: .vmdk file keeps expanding to full size

    Posted May 09, 2019 08:58 AM

    Also, simple restart of VM could help as well.