Configuring NFS Servers to Be Trusty to Each Other

Scenarios

If you use SFS Turbo to provide shared file storage, skip this section.

Two NFS servers use HAE for active/standby deployment. HAE requires that the two NFS servers be trusty to each other.

The two NFS servers have been configured to be trusty in section Configuring SSH Switching Permissions. In this section, you only need to configure the mapping between the hostnames of the ECSs where the NFS servers are deployed and the cloud management or backup plane IP addresses.

Procedure

  1. Log in to the jump host. Ensure that user root and the key file are used for authentication. Then, use SSH to switch to another NFS server.
  2. Modify the /etc/hosts file on the NFS server. Specifically, write the mapping between the server or backup plane IP addresses (for example, 10.0.5.x) of the two NFS servers and the names of the HANA ECSs where the two NFS servers are deployed into this file.
  3. Upload the local hosts file to the other NFS server.

    The command is in the following format:

    scp /etc/hosts Peer IP address:/etc/hosts

    The following is a command example:

    scp /etc/hosts 10.0.5.102:/etc/hosts

  4. Verify the trusty relationship.

    For example, if the local NFS server is nfs01, and the name of the other NFS server is nfs02, run the following commands:

    ssh nfs02

    ssh nfs01

    When an SSH connection is set up between two ECSs (where the two NFS servers are deployed) for the first time, the system displays the message "Are you sure you want to continue connecting (yes/no)?" on the CLI. In such a case, you only need to select yes and press Enter.