NFS datastore remount fails with Error : "Unable to connect to NFS server: VSI node (5001:)" due to an Incorrect IP Address Entry in the "/etc/hosts" File
search cancel

NFS datastore remount fails with Error : "Unable to connect to NFS server: VSI node (5001:)" due to an Incorrect IP Address Entry in the "/etc/hosts" File

book

Article ID: 439667

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:

  • 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".

  • As seen in the command output below, the 'Mount' and 'Accessible' states for the datastores are both showing as 'false':

    $esxcli storage nfs list

    Output :

    Accessible     Mounted
    ----------    ------------
    false               false
    false               false
    false               false
    false               false
    false               false
    false               false
     true                true

Environment

VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x

Cause

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.

 

Resolution

Update correct IP and FQDN of the NFS storage to the ESXi /etc/hosts file

Perform below steps to address the issue,

  1. Login to ESXi host or vCenter via SSH as a root user.

  2. Take a backup of the /etc/hosts file using the command below:

    cp /etc/hosts /etc/hosts.backup

  3. Use vi editor to edit the /etc/hosts file

    vi /etc/hosts

  4. 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.

  5. Save the file and exit (press ESC, type :wq!, press Enter).

  6. Remount NFS datastore.