To resolve this issue, remove and re-add the datastore via the command line.
Caution: Before performing any steps in this resolution, ensure that there are no objects registered on the NFS you are trying to unmount. For more information, see:
ESXi 6.x and later
To remove a datastore:
- To list the mounted datastores on the host:
esxcli storage nfs list
- Make a note of the NFS datastore from step 1. Run this command to delete the NFS mount:
esxcli storage nfs remove -v NFS_Datastore_Name
Note: This operation does not delete the information on the share, it unmounts the share from the host. If the NFS datastore is being used by either a virtual machine or a third party script, you may see this error:
Error performing operation: NFS Error: Unable to Unmount filesystem: Busy.
If you see this error, refer to the
Caution section above
To add the datastore:
Run this command to mount the NFS datastore:
esxcli storage nfs add -H NFS_IP|NFS_HOSTNAME -s Share_mount_point_on_the_NFS -v DatastoreName