VMware vSphere ESXi (All version)
You cannot unmount an NFS datastore because:
From the logs, we typically observe a similar event when a reference object is still present on the datastore.
T05:29:58.564Z Wa(180) vmkwarning: cpu82:2103276 opID=a7b3bbf0) WARNING: NFS: 3113: nfs####-####-####-####-###-####-301 has open files, cannot be unmounted. refCount: 3 T05:29:58.568Z Wa(164) Hostd[2103276] : [Originator@6876 sub=Hostsvc. DatastoreSystem opID=####-2057626-auto-####-h5: 70230782-c4-b0-b617 sid=525d87f8 user=vpxuser : VSPHERE. LOCAL\Administrator] RemoveDatastore: Failed to remove backend for datastore nfs####-####-####-####-###-####-301 .T05:30:00.074Z Wa(164) Hostd[2103276]: [Originator@6876 sub=Hostsvc. DatastoreSystem opID=####-2057626-auto-####-h5: 70230782-c4-b0-b617 sid=525d87f8 user=vpxuser : VSPHERE. LOCAL\Administrator] File descriptors in use:/vmfs/volumes/#### ctk.vmdkT05:30:00.074Z Wa(164) Hostd[2103249] : -- > Alternative report (all opened file handles, full path is not available)Follow the steps in the following KB article to list and remove the inaccessible NFS datastores via an SSH session to an ESXi host that had the datastore mounted on.
Remounting a disconnected NFS datastore from the ESXi command line