Alternatively, add the datastore again using the vSphere client:
Open firewall ports on the network for RPC protocol and check the physical switch for any RPC protocol filtering.
Note: For security reasons, RPC protocol filtering is enabled, and the connection is refused.
On ESX hosts only (Does not apply to ESXi hosts):
Check the ports open on the ESX firewall with this command:
# esxcfg-firewall -q
Note: Check the output for NFSClient. If it is not listed, proceed to step 9.
Open the NFS client firewall ports 111 and 2049 on UDP and TCP protocol either on vCenter Server or on ESX with the command:
# esxcfg-firewall --enableService nfsClient
Alternatively, modify the security policy in vSphere Client. Click Configuration > Security Profile > Properties, select NFS Client and click OK.
Note: Ensure that the ports 111 and 2049 are also open on the NFS server.
This issue can also occur if:
There is a misconfiguration on the Switch port. In this case, try using a different vmnic (or move NICs to Unused/Standby in the NIC teaming tab of the vSwitch or Portgroup properties).
The name of the NAS server is not resolved from the host side or vice versa. In this case, ensure that the DNS server and host-side entries are set properly.