Linux の 時刻同期

NTP Client (Chrony)

  • 時刻同期の強制実行
[root@cent-1 ~]# chronyc -d makestep
Resolved 127.0.0.1 to 127.0.0.1
Resolved ::1 to ::1
Could not remove /run/chrony/chronyc.2451.sock : No such file or directory
Opened Unix socket fd=3 remote=/run/chrony/chronyd.sock local=/run/chrony/chronyc.2451.sock
Sent data fd=3 len=28
Timeout 1.000000 seconds
Received data fd=3 len=28
Reply cmd=43 reply=1 stat=0
200 OK
  • 同期状態の確認
[root@cent-1 ~]# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^+ 194.0.5.123                   2  10   377   774    -20ms[  -21ms] +/-   74ms
^- 129.250.35.250                2   9   377   972  -6758us[-5159us] +/-  110ms
^- 45.76.211.39                  2  10   377   638    -44ms[  -45ms] +/-   85ms
^* 202.181.103.212               2  10   377   448    -17ms[  -18ms] +/-   54ms