Address issues where NFS datastores remain in the vSphere inventory as "Inaccessible" or report "Unmount Filesystem Busy" errors. These states often persist if the NFS server share is disconnected, modified, or removed before the datastore is properly unmounted from the ESXi host.
An NFS datastore becomes inaccessible or produces a "Busy" error during removal when:
Before proceeding, ensure that no virtual machines or templates are registered on the NFS share. Verify that the virtual machine swap file location is not configured to reside on the target datastore.
Remove NFS 3 Datastores:
esxcli storage nfs listesxcli storage nfs remove -v <Datastore_Name>esxcfg-nas -d <Datastore_Name>Remove NFS 4.1 Datastores:
esxcli storage nfs41 listesxcli storage nfs41 remove -v <Datastore_Name>esxcfg-nas -d <Datastore_Name>Add/Remount NFS Datastores:
esxcli storage nfs add -H <Server_IP> -s <Share_Path> -v <Datastore_Name>esxcli storage nfs41 add -H <Server_IP> -s <Share_Path> -v <Datastore_Name>