chronydの設定変更
# vi /etc/chrony.conf
デフォルトのリストをコメントアウトし、参照したいサーバを追記する。
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 10.1.1.1 iburst
server 10.1.1.2 iburst
chronydの再起動
# systemctl restart chronyd.service
時刻同期の確認
# chronyc sources
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 10.1.1.1 2 6 17 45 -6150ns[ -76us] +/- 4346us
^- 10.1.1.2 2 6 17 45 -12us[ -12us] +/- 9217us
chronydの起動設定、サービスの稼働状況の確認
# systemctl status chronyd.service
chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled)
Active: active (running) since Tue 2016-01-05 16:42:16 JST; 2min 15s ago
Process: 25697 ExecStartPost=/usr/libexec/chrony-helper add-dhclient-servers (code=exited, status=0/SUCCESS)
Process: 25694 ExecStart=/usr/sbin/chronyd -u chrony $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 25696 (chronyd)
CGroup: /system.slice/chronyd.service
`-25696 /usr/sbin/chronyd -u chrony
Jan 05 16:42:16 centos7 chronyd[25696]: chronyd version 1.29.1 starting
Jan 05 16:42:16 centos7 chronyd[25696]: Linux kernel major=3 minor=10 patch=0
Jan 05 16:42:16 centos7 chronyd[25696]: hz=100 shift_hz=7 freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=8..._pll=2
Jan 05 16:42:16 centos7 systemd[1]: Started NTP client/server.
Jan 05 16:42:21 centos7 chronyd[25696]: Selected source 10.32.64.36
Jan 05 16:42:21 centos7 chronyd[25696]: System clock wrong by -24.864519 seconds, adjustment started
Jan 05 16:41:56 centos7 chronyd[25696]: System clock was stepped by -24.865 seconds
Hint: Some lines were ellipsized, use -l to show in full.