Symptoms:
You cannot unmount an NFS datastore because:
accessible: false
" and "mounted: false
" on a host under esxcli storage nfs list
. VMs are reported inaccessible. Other hosts have access to the NFS share.In the vSphere Client, you see an error:
Unmount Filesystem Busy
To resolve this issue, remove and re-add the datastore via the command line.
NFS 3:
To remove a datastore:If you see this error, refer to the Caution section above
Note: After validation, if no active VM or data and step 2 command not working then please use following command to remove datastore
esxcfg-nas -d <NFS_Datastore_Name>
To add the datastore:
Run this command to mount the NFS datastore:
# esxcli storage nfs add -H <NFS_SERVER_ADDRESS> -s Share_mount_point_on_the_NFS -v DatastoreName
example:
# esxcli storage nfs add -H ###.###.###.### -s /exports/esx_nfs_vol_1 -v NFS_1
NOTE NFS server host names and mount points are case-sensitive. Be sure to consistently use the same case across different hosts that mount the same datastore.
NFS 4.1:
If you see this error, refer to the Caution section above
Note: After validation, if no active VM or data and step 2 command not working then please use following command to remove datastore
esxcfg-nas -d <NFS_Datastore_Name>
To add the datastore:
Run this command to mount the NFS datastore:
# esxcli storage nfs41 add -H <NFS_SERVER_ADDRESS> -s Share_mount_point_on_the_NFS -v DatastoreName
example:
# esxcli storage nfs41 add -H ###.###.###.### -s /exports/esx_nfs_vol_1 -v NFS_1