No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Huawei SAP HANA Appliance Two Node Installation Guide (RH5885H and RH8100 V3+Redhat) 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the NTP Client

Configuring the NTP Client

To implement NTP server time synchronization, the NTP client must be configured for the two HANA servers in the HA cluster.

  1. Log in to a server node as the root user and run the following command to configure the NTP service to start with the startup of Redhat Linux:


    This step uses Redhat7.2 as an example. Run the chkconfig ntpd on command for Redhat6.7.

    systemctl enable ntpd.service

  2. Run systemctl enable ntpdate.service to start ntpdate service:


    This step uses Redhat7.2 as an example. Run the chkconfig ntpdate on command for Redhat6.7.

    systemctl enable ntpdate.service

  3. Run the vi /etc/ntp.conf command to open the NTP configuration file ntp.conf.

    #vi /etc/ntp.conf

  4. Press i to switch to the insertion mode.
  5. Insert server <NTP server IP address>. This procedure uses as an example, and you need to change the IP address to the actual NTP server IP address.


  6. Press ESC to switch to the CLI mode.
  7. Press the colon (:) to switch to the bottom line mode, type wq, and press Enter to save the modification and exit the vi editor.

    The following is an example of the configured ntp.conf file:

    HW00001:/hana/shared # vi /etc/ntp.conf
    # Clients from this (example!) subnet have unlimited access, but only if
    # cryptographically authenticated.
    #restrict mask notrust
    ## Miscellaneous stuff
    driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
    logfile /var/log/ntp          # alternate log file
    # logconfig =syncstatus + sysevents
    # logconfig =all
    # statsdir /tmp/                # directory for statistics files
    # filegen peerstats  file peerstats  type day enable
    # filegen loopstats  file loopstats  type day enable
    # filegen clockstats file clockstats type day enable
    # Authentication stuff
    keys /etc/ntp.keys              # path for keys file
    trustedkey 1                    # define trusted keys
    requestkey 1                    # key (7) for accessing server variables
    # controlkey 15                 # key (6) for accessing server variables
    restrict -6 ::1

  8. Run the systemctl restart ntpd.service command to restart the NTP service.


    This step uses Redhat7.2 as an example. Run the service ntpd restart command for Redhat6.7.

    systemctl restart  ntpd.service

  9. Run the ntpq -p command to check the NTP running status.

    #ntpq -p


    HW00001: # ntpq -p
    remote           refid      st t when poll  reach delay offset  jitter
    *       LOCAL(0)    11 u 53 64    7    0.141  0.968 0.296

    Main parameters in the command output are described as follows:

    • remote: indicates the name of the NTP server that responds to the request.
    • when: indicates the number of seconds since the last successful request.
    • poll: indicates the interval (in seconds) for the local host to synchronize time with the remote server.
    • offset: indicates the time offset (in milliseconds) between the local host and the time source.

  10. Log in to the other HANA node and repeat the preceding steps to configure the NTP server.

Updated: 2019-08-27

Document ID: EDOC1100019155

Views: 35149

Downloads: 132

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next