You can change the default space reclamation priority, granularity, and other parameters.

Procedure

  1. On the ESXi host, use the following command to set space reclamation parameters.
    esxcli storage vmfs reclaim config set

    The command takes these options:

    Option Description
    -b|--reclaim-bandwidth Space reclamation fixed bandwidth in MB per second.
    -g|--reclaim-granularity Minimum granularity of automatic space reclamation in bytes.
    -m|--reclaim-method Method of automatic space reclamation. Supported options:
    • priority
    • fixed
    -p|--reclaim-priority Priority of automatic space reclamation. Supported options:
    • none
    • low
    • medium
    • high
    -l|--volume-label The label of the target VMFS volume.
    -u|--volume-uuid The uuid of the target VMFS volume.
    You can use the following examples.
    • Set the reclamation method to fixed and the rate to 100 MB per second.
      esxcli storage vmfs reclaim config set --volume-label datastore_name --reclaim-method fixed -b 100
    • Deactivate the VMFS automatic space reclamation.
      esxcli storage vmfs reclaim config set --volume-label datastore_name --reclaim-priority none
  2. Unmount the VMFS6 datastore from all other ESXi hosts where the datastore is mounted, and then remount it again.
    1. Unmount Datastores.
    2. Mount Datastores.
    This step ensures that all ESXi hosts where the VMFS6 datastore was mounted update the reclamation settings for the datastore.