$ cd /vmfs/volumes/datastore/test-VM
$ cat test_vm_3.vmdk
80 GB *1024*1024*1024 / 512
);40 GB*1024*1024*1024 / 512
) in the Extent description section. Set a new size of your virtual disk using a text editor (vi or nano);$ vi test_vm_3.vmdk
i
(to edit it). Specify the new size of the virtual disk. :wq
-> Enter to save the; changes;$ vmkfstools -i test_vm_3.vmdk test_vm_3_newsize.vmdk
$ rm test_vm_3.vmdk
$ rm test_vm_3-flat.vmdk
$ vmkfstools -i test_vm_3_newsize.vmdk test_vm_3.vmdk
Ref:
http://woshub.com/shrinking-vmdk-virtual-disk-vmware-esxi/
Article ID: 98
Created On: Thu, Jan 6, 2022 at 9:30 PM
Last Updated On: Thu, Jan 6, 2022 at 9:45 PM
Authored by: Saeed Nobakht [[email protected]]
Online URL: https://www.navel.ir/article/shrinking-vmdk-virtual-disk-size-on-vmware-esxi-98.html