Total Pageviews

My YouTube Channel

Friday, 2 January 2015

Increasing the Thick Eagerzeroed Disk Size

As i increased the disk size of thick eager zeroed and as soon as it is increased it gets converted automatically in to thick lazy zeroed. Now this is known behavior of If you increased the size of eager zeroed disk using the UI, this is the normal behavior... to increase the size of a eager zeroed disk and maintain this format for the new added space, you will need to use the CLI.

For this Use ESXi Shell or SSH and then Open the VM Directory and execute the command in this format.

# vmkfstools -X 6G -d eagerzeroedthick vm.vmdk

Text given in Red color : You can use values here as per your configuration requirement. 

To refresh the provisioned disk space value there are two methods:
First Method:- Remove the VM from Inventory > Then Add to Inventory
  1. Open and login to vSphere client.
  2. Power off the virtual machine.
  3. Right-click and select Remove from Inventory.
  4. Click Configuration > Storage > Browse the datastore
  5. Locate the .vmx file, Right-click and select Add to Inventory.
  6. After the Virtual machine is successfully added to the Inventory, the correct value will be displayed.
Second Method:- Reload the .vmx File
You can keep your VM in Power On State to Reload the .vmx file
Obtain the Inventory ID (Vmid) for the virtual machine using this command:

# vim-cmd vmsvc/getallvms
Reload the .vmx file using this command: 
# vim-cmd vmsvc/reload Vmid
 Reference KB's:-