NFS Error: Unable to connect to NFS server
WARNING: NFS: 983: Connect failed for client 0xb613340 sock 184683088: I/O error
WARNING: NFS: 898: RPC error 12 (RPC failed) trying to get port for Mount Program (100005) Version (3) Protocol (TCP) on Server (###.##.##.##)
Network cable is unplugged
vmkping
command:# vmkping -I vmkN -s nnnn ###.##.##.##
vmkN
is vmk0, vmk1, etc, depending on which vmknic is assigned to NFS.nnnn
is the MTU size minus 28 bytes for overhead. For example, for an MTU size of 9000, use 8972.###.##.##.##
is the IP address of the target NFS storage.esxcfg-vmknic -l
vmk_ interface
associated with NFS.netcat (nc)
command to see if you can reach the NFS server nfsd TCP/UDP port (default 2049) on the storage array from the host:# nc -vz array-IP 2049
# nc -vz ###.##.##.## 2049
Connection to ###.##.##.## 2049 port [tcp/nfs] succeeded!
WARNING: NFS: 1797: <NFS UUID> has open files, cannot be unmounted
Note: When migrating from an old NFS server to a new one, with the old server being decommissioned, there are two scenarios to consider:
Scenario 1: The new NFS server is assigned a new IP address. In this case, when the new NFS server's volume is mounted, the VMs will be marked as inaccessible because they will still reference the UUID of the old NFS server. To restore normal operation, you will need to unregister and reregister the VMs on the new volume.
Scenario 2: The new NFS server uses the same IP address as the old one. If the same IP address is used, the volume will be marked as inaccessible, and APD (All Paths Down) errors will appear in the logs. This happens because the ESXi host is unaware of the changes made to the backend storage. A reboot of the host is required to restore access to the NFS server.
If an attempt is made to mount NFS share over UDP, in the /var/log/vmkernel.log file, you see an error similar to:
WARNING: NFS: 918: Server (###.##.##.##) does not support Mount Program (100005) Version (3) Protocol (TCP)
Testing VMkernel network connectivity with the vmkping command
Troubleshooting the failed process of adding a datastore from a Windows Services NFS device
Cannot connect to NFS network share
Collecting diagnostic information for VMware products