VMware vCenter Server and ESXi hosts are unable to mount an NFS datastore via the vSphere WebUI.
Attempting to mount the datastore in vCenter or the ESXi web client fails with the following error: "Failed to mount NFS datastore <datastre-name> - operation failed, diagnostics report: Cannot open volume: <volume-name>.
Creating the datastore via the host command line (esxcli storage nfs add) completes without errors, but the datastore remains inaccessible. Running esxcli storage nfs list or df -h returns the following error: Error getting data for filesystem on <volume-name>
VMware vSphere ESXi (All Versions)
The NFS server export policy has root squashing enabled, which downgrades the ESXi host root account connection to an unprivileged user, preventing filesystem access.
Contact the storage administrator or vendor to review the NFS export configuration for the affected volume.
Modify the NFS export policy to grant root access (commonly referred to as no_root_squash or Superuser access) specifically for the IP addresses of the ESXi hosts.
Once the storage array configuration is updated, retry the datastore mount operation via the vCenter WebUI.