Link to home
Start Free TrialLog in
Avatar of Lotfi BOUCHERIT
Lotfi BOUCHERITFlag for Algeria

asked on

How to reclaim unused disk space in esxi 6.7?

Hello,
I would like to know how i can reclaim unused disk space from a vmdk file of a virtual machine which is hosted in ESXi 6.7.
Thank you in advance,
Avatar of John
John
Flag of Canada image

If the space was all allocated to the machine, you can use VMware Converter to take the existing machine as input and an new smaller machine as output.

Here is a support article to assist you.
https://www.dell.com/support/article/ca/en/cadhs1/sln283425/how-to-shrink-a-vmdk-using-vcenter-converter-5-1?lang=en

(Dell owns VMware)
Avatar of Lotfi BOUCHERIT

ASKER

Thank you for your help,
It's kinda huge vm, and this solution won't help me
In previous versions, it existed the ability to update the disk descriptor to reduce its capacity, but the same procedure, is not helping in this version.
I recap, the procedure said:
  • Connect through ssh to the esxi
  • navigate to the vm path
  • vi vm.vmdk
  • Here, just change the vmdk size, which is written as number of 512k blocks, and that's it

But in version 6.7, the vm.vmdk file, does not have the same syntax and i cannot figure out the line where the disk volume is written.
Thank you
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The maximum size for Version 6 is 2 TB.  Is your machine bigger than that

https://docs.vmware.com/en/vCenter-Converter-Standalone/6.2/rn/conv_sa_62_rel_notes.html