Space reclamation for NFS datastores
search cancel

Space reclamation for NFS datastores

book

Article ID: 439184

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Monitoring tools such as NetApp Active IQ Unified Manager may report high-utilization alerts or "Volume Space Nearly Full" for NFS datastores even after files are deleted from the Guest OS or VMs are migrated. This occurs because standard space reclamation processes used for VMFS volumes do not apply to the NFS protocol. Use this article to understand the limitations of space reclamation on NFS and the steps required to reclaim capacity on the storage array.

Symptoms:

  • vCenter Server reports high-utilization alerts (>90%) for specific NFS datastores.
  • External storage management tools (e.g., Active IQ Unified Manager) report "Volume Space Nearly Full" alerts.
  • Datastore capacity does not decrease after deleting or migrating Virtual Machines (VMs), ISOs, or virtual disks.
  • Deleting files within the Guest OS (using rm or similar commands) does not shrink the size of the VMDK on the NFS datastore.
  • Space reclamation commands, such as SCSI UNMAP, fail to trigger or have no impact.

Environment

  • VMware vSphere ESXi 8.x
  • VMware vSphere ESXi 9.x
  • VMware vCenter Server 8.x
  • VMware vCenter Server 9.x

Cause

NFS datastores do not support the standard SCSI UNMAP command. ESXi removes the file pointer when a file is deleted in vSphere, but the storage hardware remains unaware that those blocks are available for reuse. Reclamation requires VAAI (vStorage APIs for Array Integration) NAS primitives or the array's own internal background cleanup processes.

Resolution

  1. Verify if the storage array supports VAAI for NFS. If supported, ensure the vendor-specific VAAI NAS plugin is installed on the ESXi hosts. See Download Broadcom Products to check for available software.
  2. Contact the storage hardware vendor for assistance with thin-provisioning reclamation on the array side.
  3. Perform space reclamation or volume resizing directly through the storage array management interface.