Configuring NTP for public time servers

(Hyper-V only) This procedure uses the default configuration of NTP to synchronize system clocks with public time servers. If all hosts in the Control Center cluster can access the internet, repeat this procedure on each host in the cluster, starting with the Control Center master host.

  1. Gain access to the Control Center host, through the console interface of your hypervisor, or through a remote shell utility such as PuTTY.
  2. Start a command-line session as root as follows:
    1. In the Appliance Administration menu, select Root Shell.
    2. Select Run, and then press Enter.
    The menu is replaced by a command prompt similar to the following example:
    [root@hostname ~]#
  3. Stop Control Center.
    systemctl stop serviced
  4. Synchronize the system clock and enable the NTP daemon.
    1. Set the system time.
      ntpd -gq
    2. Enable the ntpd daemon.
      systemctl enable ntpd
    3. Configure ntpd to start when the system starts.
      Currently, an unresolved issue associated with NTP prevents ntpd from restarting correctly after a reboot, and the following commands provide a workaround to ensure that it does.
      echo "systemctl start ntpd" >> /etc/rc.d/rc.local
      chmod +x /etc/rc.d/rc.local
    4. Start ntpd.
      systemctl start ntpd
  5. Start Control Center.
    systemctl start serviced