chrony的时钟配置

 

#在 chrony server 检查时间源同步状态

(ansible) [root@xxbgvura01 ansible]# chronyc sourcestats -v
210 Number of sources = 2
                             .- Number of sample points in measurement set.
                            /    .- Number of residual runs with same sign.
                           |    /    .- Length of measurement set (time).
                           |   |    /      .- Est. clock freq error (ppm).
                           |   |   |      /           .- Est. error in freq.
                           |   |   |     |           /         .- Est. offset.
                           |   |   |     |          |          |   On the -.
                           |   |   |     |          |          |   samples. \
                           |   |   |     |          |          |             |
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
9.0.79.177                15  10  1102     -0.603      0.165  -1341us    47us
9.0.79.187                25  12   75m     +0.062      0.018  +1484us    28us

 在 chrony server 检查时间源信息,默认配置为内部时钟源主机的地址

(ansible) [root@xxbgvura01 ansible]# chronyc sources -v
210 Number of sources = 2

  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current synced, '+' = combined , '-' = not combined,
| /   '?' = unreachable, 'x' = time may be in error, '~' = time too variable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) --.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* 9.0.79.177                   3   7   377    58  -1294us[-1334us] +/-  133ms
^+ 9.0.79.187                   3   9   377   498  +1412us[+1326us] +/-  172ms

  

 

(ansible) [root@xxbgvura01 ansible]# chronyc sourcestats
210 Number of sources = 2
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
9.0.79.177                18  11   27m     -0.473      0.109  -1450us    49us
9.0.79.187                14   9   58m     +0.123      0.029  +1653us    27us
(ansible) [root@xxbgvura01 ansible]# chronyc sources
210 Number of sources = xx2
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^* 9.0.79.177                   3   7   377    64  -1357us[-1381us] +/-  141ms
^+ 9.0.79.187                   3   9   377   506  +1576us[+1463us] +/-  154ms

 

# timedatectl set-ntp true
# timedatectl Local time: Thu 2020-05-07 18:21:58 CST Universal time: Thu 2020-05-07 10:21:58 UTC RTC time: Thu 2020-05-07 10:22:22 Time zone: Asia/Shanghai (CST, +0800) NTP enabled: yes NTP synchronized: no RTC in local TZ: no DST active: n/a

  



posted @ 2020-04-27 18:09  越滚越大雪球  阅读(635)  评论(0)    收藏  举报