Time Synchronization for CentOS7

Steps to set a server's time source to the NTP server:

  1. Use and set the coordinated universal time, UTC.

    timedatectl set-timezone UTC
  2. In chronyd.conf, add or modify the following IP address setting.

    1. When using SCS, use the Swarm-internal IP address.
      server {SCS Swarm-internal IP address} iburst

    2. To use a different NTP server:
      server {NTP server IP} iburst

Important

This must not be a Windows Directory SNTP server.

  1. Restart chrony:

> systemctl enable chronyd > systemctl restart chronyd
  1. Verify the time sources are correct.

chronyc sources -v

Verify there is an asterisk (*) next to one of the lines, indicating the time has been synchronized.

Example:

  1. Display tracking stats for the chrony deamon.

The tracking command displays parameters about the system’s clock performance.

An example of the output shown below.

  1. Once the time is synchronized, sync the BIOS clock.

 

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.