Use the esxcli command to disable space reclamation on a thin-provisioned LUN.

When you delete virtual machine files from a VMFS datastore, or migrate them through Storage vMotion, the datastore frees blocks of space and informs the storage array, so that the blocks can be reclaimed. If you do not need thin provisioned LUNs to reclaim the freed space, you can disable space reclamation on the host.


As with any advanced settings, before disabling the space reclamation, consult with the VMware support team.

In the procedure, --server=server_name specifies the target server. The specified target server prompts you for a user name and password. Other connection options, such as a configuration file or session file, are supported. For a list of connection options, see Getting Started with vSphere Command-Line Interfaces.

Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started with vSphere Command-Line Interfaces. For troubleshooting , run esxcli commands in the ESXi Shell.

Run the following command: esxcli --server=server_name system settings advanced set --int-value 0 --option /VMFS3/EnableBlockDelete.