Attempting to remount the NFS datastore displays the following error:
Error - "An error occurred during host configuration: Operation failed, diagnostics report: Mount failed: unable to complete Sysinfo operation. please see the VMkernel log file for more details.: Unable to connect to NFS server: VSI node (5001:)"
A warning message appears on the one ESXi host in cluster.
Warning : "The Number of vSphere HA heartbeat datastores for this host is 0, which is less than requires: 2".
$esxcli storage nfs listAccessible Mounted---------- ------------false falsefalse falsefalse falsefalse falsefalse falsefalse false true true
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The ESXi host contains incorrect NFS server information in its /etc/hosts file, due to which it lost access to the NFS datastore. Since the host uses /etc/hosts file for hostname resolution, a faulty IP mapping directly prevents the network connection required to reach the storage.
Example,
If the NFS server IP is, "##.##.##.##" and Hostname is "NFS_Server_Hostname.example.com" but the ESXi host file /etc/hosts is updated with incorrect details,
$less /etc/hosts
Do not modify this file directly, please use esxcli.##.##.##.## NFS_Server_Incorrect_Hostname.example.com
Then the NFS server will not resolve hostname/IP and fail to connect.
Update correct IP and FQDN of the NFS storage to the ESXi /etc/hosts file
Perform below steps to address the issue,
Login to ESXi host or vCenter via SSH as a root user.
Take a backup of the /etc/hosts file using the command below:
cp /etc/hosts /etc/hosts.backup
Use vi editor to edit the /etc/hosts file
vi /etc/hosts
Edit/Change the host entry in the /etc/hosts file using - Edit a host entry in the /etc/hosts file on a vCenter server or ESXi host:
Add correct NFS server details.
Save the file and exit (press ESC, type :wq!, press Enter).
Remount NFS datastore.