我们正在尝试使用芝加哥时间configurationNTP,但它显示的是st 16u。 也不能看到任何参考(*)amy远程服务器。
>>ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== nist1-chi.ustim .INIT. 16 u - 1024 0 0.000 0.000 0.000 zeus.yocum.org .INIT. 16 u - 1024 0 0.000 0.000 0.000 conquest.kjsl.c .INIT. 16 u - 1024 0 0.000 0.000 0.000 stratum-2-core- .INIT. 16 u - 1024 0 0.000 0.000 0.000 vimo.dorui.net .INIT. 16 u - 1024 0 0.000 0.000 0.000
configuration消耗如下:[cat /etc/ntp.conf]
# Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer noquery # Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. restrict 127.0.0.1 # Hosts on local network are less restricted. #restrict 192.168.16.0 mask 255.255.255.0 nomodify notrap # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org server nist1-chi.ustiming.org server 0.north-america.pool.ntp.org server 1.north-america.pool.ntp.org server 2.north-america.pool.ntp.org server 3.north-america.pool.ntp.org #broadcast 192.168.1.255 key 42 # broadcast server #broadcastclient # broadcast client #broadcast 224.0.1.1 key 42 # multicast server #multicastclient 224.0.1.1 # multicast client #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 key 42 # manycast client # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. #server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 # Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file # by creating a temporary in the same directory and then rename()'ing # it to the file. driftfile /var/lib/ntp/drift # Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys # Specify the key identifiers which are trusted. #trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility. #requestkey 8 # Specify the key identifier to use with the ntpq utility. #controlkey 8
看起来你无法访问任何NTP服务器:
“到达”字段实际上是一个寄存器(以八进制数字格式显示),每次轮询之前都会向左移一位。 如果轮询成功,则寄存器与001(八进制)进行OR运算。
一个“健康的”ntp应该具有377的“达到”能力,如下所示:
ntpq> pee remote refid st t when poll reach delay offset jitter ============================================================================== LOCAL(0) .LOCL. 10 l 52 64 377 0.000 0.000 0.001 *myLocalNTP .PPS. 1 u 169 256 377 0.484 89.023 32.295
可能这是一个防火墙/ SELinux问题。 请检查您是否可以访问远程ntpserver(ntpdate服务器名称应该做的伎俩)。 如果失败了,traceroute -U -p 123 servername可能帮助你发现哪个节点正在丢弃你的ntp数据包。
请注意,本身没有“芝加哥时间”。 一切与UTC协调,并在本地设置时区(例如,CDT = UTC-5)。
当你停止ntpd守护进程,并运行“ntpdate 0.pool.ntp.org”会发生什么? 你有一个很大的抵消? 我想知道你是否试图在芝加哥时间ntpd,但你的时间差太大,它协调(即你的电脑认为芝加哥时间实际上是UTC,所以偏移量是18000秒)。
看看这个post和整个线程。 有人和你有类似的问题。 同样在线程中显示的命令将帮助您debugging问题。