VMware vSphere

 View Only
  • 1.  Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 09:31 AM

    Hi all,

    I'm trying to Recover space on a vmdk after deleting windows files without success.

    I tried datavmotion, vmkfstools et son on..

    My configuration is vCenter 6.5 with cluster (2 ESXs 5.5), vmdk are "thin", windows server 2012 R2.

    I deleted few windows files on a data disk and impossbile to recover the space used on vmdk.

    .

    Any helps or ideas ?



  • 2.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 09:45 AM

    As I understand you delete the files from windows machine after still you not see the release space. I thing you need to run unmap command to claim the space. Follow below KB will help you.

    VMware Knowledge Base



  • 3.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 11:24 AM

    That's exactly my issue

    Thanks for the idea

    I tried the both followinbg article without success

    VMware Knowledge Base

    VMware Knowledge Base

    .

    More idea ? :-)



  • 4.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 12:33 PM

    You can do storage vMotion to claim the space.



  • 5.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 01:34 PM

    I have some storage reclaim scripts in my GitHub repo. Goto the VMware folder and look for the reclaim*** scripts.
    GitHub - vNinjaDFW/Scripts



  • 6.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 02:22 PM

    Hey Valot,

    Try to use the UNMAP function as this KB says: VMware Knowledge Base

    Another option could be to Storage vMotion the virtual machine between datastores as mentioned on the comments above.



  • 7.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 20, 2020 05:02 PM

    The OP speaks about Windows files which i think referrers to In Guest. So, to get scsi unmap working from inside the GuestOS trough the ESXi certain requirement are needed and the OP failed there because of ESXi 5.5. (6.0 is the minimum). Even than a couple of other settings are needed.

    Take a look to Space Reclamation Requests from Guest Operating Systems

    Regards,
    Joerg



  • 8.  RE: Recover space on a vmdk after deleting windows files

    Posted Mar 31, 2020 07:12 AM

    Hi all

    Thanks for all your answers, to resume

    Storage VMotion = already tried = no success

    UNMAP = 6.0 is the minimum required

    For information, at this time, only the converter claim the unsued space, but for me it's not a reral solution, but it worked.

    Tks for all