大网数据广告活动
服务器运维问答

"system clock synchronized: no", flip it to yes

· 52CE 我爱测

# timedatectl outputs Local time: Tue 2020-10-06 13:35:31 PDT Universal time: Tue 2020-10-06 20:35:31 UTC RTC time: Tue 2020-10-06 20:35:30 Time zone: America/Los_Angeles (PDT, -0700) System clock synchronized: no NTP service: ac…

问题原文

原帖链接 · Katerl3s · CC BY-SA 4.0

# timedatectl outputs

               Local time: Tue 2020-10-06 13:35:31 PDT
           Universal time: Tue 2020-10-06 20:35:31 UTC
                 RTC time: Tue 2020-10-06 20:35:30
                Time zone: America/Los_Angeles (PDT, -0700)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no

/etc/chrony.conf is the default in RHEL 8 (with a preconfigured pool).

# chronyc sources outputs

210 Number of sources = 8
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^? excalibur.prolixium.com       0   9     0     -     +0ns[   +0ns] +/-    0ns
^? paladin.latt.net              0   9     0     -     +0ns[   +0ns] +/-    0ns
^? ronin.ruselabs.com            0   9     0     -     +0ns[   +0ns] +/-    0ns
^? 2a00:7600::41                 0   9     0     -     +0ns[   +0ns] +/-    0ns
^? 50-205-244-112-static.hf>     0   9     0     -     +0ns[   +0ns] +/-    0ns
^? time.cloudflare.com           0   9     0     -     +0ns[   +0ns] +/-    0ns
^? 69.10.161.7                   0   9     0     -     +0ns[   +0ns] +/-    0ns
^? ntp3.your.org                 0   9     0     -     +0ns[   +0ns] +/-    0ns

# systemctl status chronyd shows active (running), and no errors in the logs.

The displayed system time is correct.

So, given all these facts, why is it that I see System clock synchronized: no? How do I turn it to yes?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

chronyc sources indicates that it does not have connectivity to any of the available NTP servers. This is what the ? in the S column means, from the man page:

This column indicates the state of the source.

  • ? indicates sources to which connectivity has been lost or whose packets do not pass all tests. It is also shown at start-up, until at least 3 samples have been gathered from it.

Check your Internet connectivity, host firewall, external firewalls, etc.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-10-06)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。