我很抱歉,如果这个答案以前,但search什么都没有给我。 我试图让ntpd开始在一个chroot目录。 ntpd的作品,但我坚持authentication。 我得到以下错误: ntpd[22401]: Command line: /usr/sbin/ntpd -p /var/chroot/ntp/var/run/ntpd.pid -i /var/chroot/ntp -4 -u ntp:ntp systemd[1]: Started LSB: Start NTP daemon. ntp[22392]: Starting NTP server: ntpd. ntpd[22403]: proto: precision = 0.303 usec (-22) ntpd[22403]: line 52 column 17 syntax error, unexpected T_Key, expecting T_EOC ntpd[22403]: syntax error in /etc/ntp.conf line 52, column 17 这涉及到ntp.conf: 48: […]
Linux myhost 4.1.12-103.7.1.el7uek.x86_64 #(host edited) Red Hat Enterprise Linux Server release 7.4 (Maipo) ntpd – NTP daemon program – Ver. 4.2.6p5 ntp-4.2.6p5-25.0.1.el7_3.2.x86_64 /etc/ntp.conf中: driftfile /var/lib/ntp/drift restrict default nomodify notrap nopeer noquery restrict 127.0.0.1 restrict ::1 server someserver iburst #edited server someserver iburst #edited includefile /etc/ntp/crypto/pw keys /etc/ntp/keys disable monitor ntp就像这样运行,所以没有弃用-I接口选项..: ntp 25451 0.0 0.0 25676 […]
我发现几周前在Centos5机器上设置的ntpd服务不能正确地同步服务器时间。 我检测到超过5分钟的偏移量(通过停止ntpd并执行ntpdate)。 设置服务后,我通过ntpstat检查了设置: [xxxx@xxx ~]$ ntpstat -q synchronised to local net at stratum 11 time correct to within 10 ms polling server every 1024 s 我每天重复这个检查,并且总是显示这个输出。 这个输出没有告诉我服务器时间是否理智? 编辑:这是ntpq -p的输出 remote refid st t when poll reach delay offset jitter ============================================================================== some.name .LOCL. 1 u 685 1024 377 4.978 26263.4 93.465 10.0.1.18 10.1.3.1 2 u 827 […]
我有一个非常困难的时间试图让我的红帽服务器同步它的时间到我们的2K3域控制器。 我已经经历了许多ntp.conf修订版,并且总是以为域控制器甚至不被列为ntpq输出中的竞争者。 即使我的ntp.conf文件处于最简单的状态: 服务器my.server.ip 它仍然无法同步。 它从来没有收到一个星号来表示它的同步。 如果我包括本地时钟furtged到地层10 ntpd甚至会select通过我们的域控制器。 有什么是错的,但我似乎无法弄清楚什么。 该命令按预期工作: ntpdate my.server.ip 它适当地设置系统时钟,所以我相信通信工作得很好。 请帮忙。 谢谢,多诺万
我有一个ntpd在虚拟服务器上工作的Xen Centos 5.5服务器。 NTP时间同步似乎不起作用。 我禁用了任何防火墙。 我的grep -i ntpd /var/log/messages输出: Apr 1 16:15:47 posadadelpuerto ntpd[17635]: ntpd [email protected] Sat Dec 19 00:56:13 UTC 2009 (1) Apr 1 16:15:47 posadadelpuerto ntpd[17636]: precision = 1.000 usec Apr 1 16:15:47 posadadelpuerto ntpd[17636]: Listening on interface wildcard, 0.0.0.0#123 Disabled Apr 1 16:15:47 posadadelpuerto ntpd[17636]: Listening on interface wildcard, ::#123 Disabled Apr […]
Debian Squeeze中的NTP标准configuration如下(删除了注释): driftfile /var/lib/ntp/ntp.drift statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstats type day enable server 0.debian.pool.ntp.org iburst server 1.debian.pool.ntp.org iburst server 2.debian.pool.ntp.org iburst server 3.debian.pool.ntp.org iburst restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify […]
所有的机器是Ubuntu我需要同步所有机器的时钟一次,以便做一个延迟testing。 我读过这篇文章说 – ntpdate是一个钝器 – 它只能每天调整一次 我感到困惑。 我以为我可以在任何时候运行ntpdate。 如果我只想一次同步这些电脑。 你推荐我使用ntpd或ntpdate? (简单和准确)我应该设置ntp服务器,或者因为他们都同时连接到相同的ntp全局服务器,而不是合理的,他们会得到相同的偏移量(我不在乎他们是否会抵消,只是希望他们会有相同的偏移量)? 哪个服务器是最简单的configuration?
我面临着一个问题。 NTP服务器不会自动同步时间。 如果我改变系统的时间,那么NTP服务器不能纠正它。 重新启动NTP服务后,它会同步时间,否则不会。 检查日志也没有发现任何东西。 日志有这样的条目。 12月23日16:37:49 ntpd [5413]:ntpd退出信号15 ntpq -p的输出如下。 ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== *ns.creativecont 130.102.128.23 3 u 8 64 1 303.276 3.860 20.429 cachens2.onqnet 6.169.99.206 4 u 5 64 1 317.901 19.407 31.257 a.pool.ntp.uq.e 216.218.192.202 2 u 6 64 1 266.111 18.447 29.693 hosting.wireles […]
在redhat 6.5上使用ntpd 4.2.6p5 如何configuration/etc/ntp.conf生成debugging消息到日志文件? 在/etc/ntp.conf中我有 日志文件/var/log/ntpd.log 但那只是非常基本的条目。 使用'-d'将debugging消息输出到控制台,但不输出到日志文件。 我想我可以使用'2&> 1 | 发球台“,但那是笨拙的; 我认为在ntp.conf中做得更好。 谢谢。
我在Ceph节点上configuration了ntp,时间是同步的! 但是ceph状态总是显示时钟歪斜。 ceph health detail shows: mon.node2 aadr 192.168.56.102:6789/0 clock skew 7192.45s > max 0.05s (latency 0.0129368s) mon.node3 aadr 192.168.56.103:6789/0 clock skew 7192.46s > max 0.05s (latency 0.00915873s) 如何强制Ceph更新状态? 在节点上的所有时间是相等的! 如果我在所有节点上执行date命令,那么它显示正确和相同的时间。 但是Ceph认为时间在7192.45s上是偏斜的! 这是我在/etc/ntp.conf节点上的configuration: driftfile /vat/lib/ntp/drift restrict 0.0.0.0 mask 0.0.0.0 server 0.ua.pool.ntp.org iburst server 1.ua.pool.ntp.org iburst server 2.ua.pool.ntp.org iburst server 3.ua.pool.ntp.org iburst includefile /etc/ntp/crypto/pw keys /etc/ntp/keys […]