在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中做得更好。 谢谢。
我不能在我们的服务器上有正确的时间。 我们总是得到三个相同的延迟(他们是同一台服务器上的虚拟机)。 我们使用ntp让我们的date始终同步 虚拟化的主要服务器有OS Linux Proxmox。 我在主服务器上有什么探针: 重新configurationtzdata (实时12:14 pm CEST) : root@ns226161:~# dpkg-reconfigure tzdata Current default time zone: 'Europe/Madrid' Local time is now: Wed May 13 11:55:01 CEST 2015. Universal Time is now: Wed May 13 09:55:01 UTC 2015. 尝试访问硬件时钟(这里的时间是好的!!) : root@ns226161:~# hwclock -r Wed 13 May 2015 14:01:57 CEST -0.327412 seconds 重新启动NTP: root@ns226161:~# […]
在我们的3个linux中的centos 7.1中,我们在日志中看到下面的消息,然后ntpd服务停止,因为偏移量超过了1000s。 systemd:时间已经改变 ntpd[2626]: 0.0.0.0 0617 07 panic_stop -26789 s; set clock manually within 1000 s. 所有这3个Linux机器都在ESX机器下。 还要注意,除了这些linux盒子外,其他许多linux盒子都在同一个ESX机器下。 我们在这些盒子中configuration了外部NTP服务器,这些ntp服务器没有问题。 鉴于上述情况,除了手动干预之外,系统时钟发生变化的可能性是什么,因为这个问题导致NTP服务自动停止。
我在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 […]
我正在尝试重新启动OpenStack服务,并在我的/etc/systemd/system/multi-user.target.wants/我运行一个systemctl start ntpdate.service并得到以下错误: 5月31日12时05分39秒localhost.localdomain systemd [1]:开始设置时间通过NTP … 5月31日12时06分09秒localhost.localdomain systemd [1]:ntpdate.service:主进程退出,代码=退出,状态= 1 /失败 5月31日12:06:09 localhost.localdomain systemd [1]:无法启动通过NTP设置时间。 5月31日12:06:09 localhost.localdomain systemd [1]:单元ntpdate.service进入失败状态。 5月31日12:06:09 localhost.localdomain systemd [1]:ntpdate.service失败。 我也似乎无法find/var/log/目录中的ntp.log 。 我相信这也是rabbitmq-server.service了我的rabbitmq-server.service ,但当时是一个问题。 有什么build议么?
我需要帮助弄清楚为什么某些电脑上的时间源不断变化。 现在他们在本地CMOS时钟。 如果我做w32tm / config / syncfromflags:domhier /更新networking停止w32timenetworking启动w32time然后做一个w32tm /查询/状态,他们说,他们正在从域控制器获得他们的时间。 但是,如果我重新启动电脑,它将恢复到本地CMOS时钟。 我没有看到任何设置时间源的组策略。 事实上,有这个问题的个人电脑是在同一个OU与一些不是所以我不认为这是组策略。 不过,它们位于不同的子网上。 路由器可以更改PC上的时间源吗? 在registry中有什么我可以改变,重新启动后不会改变? 提前致谢。
为了匹配来自两个不相关的服务器(在不同的公司)的日志,我需要考虑它们之间可能的时间差异。 我们可以假设他们都运行ntp指向pool.ntp.org (所以,有效地,不同的来源)。 在这两个服务器上比较时间的技术上合理的方法是什么? 理想情况下,我会寻找一种方法来查询一个ntp服务器,以便它询问其他ntp服务器的时间,并考虑到延迟,抖动等。 如果这是不可能的(或者当服务器没有看到对方的时候是可以的),那么他们是否可以同时使用ntp和pool.ntp.org同步就可以假设它们是同一时间呢? 澄清,我明白,有边界的影响(一个服务器刚刚开始,只是慢慢同步,事实上,当日志被采用的情况下可能会有所不同,…) – 我正在寻找一个典型的/正常的场景。
所以,我们有一个使用这个时间服务器列表的ntp服务器(ntp-4.2.8-r1): server pool.ntp.org server 24.56.178.140 server 2001:470:0:2c8::2 server ntp.markyate.net server ntpv6.dianacht.de server 127.127.1.0 但是,当我使用ntpq列出同行: mns0c log # ntpq -pn 127.0.0.1 remote refid st t when poll reach delay offset jitter ============================================================================== 24.56.178.140 .INIT. 16 u – 512 0 0.000 0.000 0.000 *2001:470:0:2c8: .CDMA. 1 u 44 64 377 80.066 6.970 0.534 127.127.1.0 .LOCL. 10 l […]
我正在尝试configurationntp来同步我的服务器的时间。 当我运行ntpdate -dq 1.rhel.pool.ntp.org我得到以下错误。 找不到适合于同步的服务器 我在专业的环境,所以我想有一个防火墙阻止ntp服务器的连接,但我不知道如何certificate和解决它。 我试图按照这个post: NTP无法同步或find合适的服务器,但我无法ping 1.rhel.pool.ntp.org , ping命令没有响应。 我正在使用Red Hat 4.1.2。 你能帮我调查一下,找出根本原因吗? 编辑 根据评论,你可以输出一些命令 [root@MY ~]# iptables -L -n -v Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out […]
你好目前我有一个本地ntp服务器(慢性)和ntp客户端(慢性),都工作,但是当我试图改变ntp服务器时间说从当前时间减6年。 ntp客户端无法同步它,它只会在syslog上说: 1月9日17:29:11本地主机chronyd [9192]:系统时钟错误6780812.328260秒,开始调整 ntp客户端(chrony)/etc/chrony.conf是默认的configuration,除了服务器指向我的本地NTP服务器(慢性)。 这是我的configuration # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server local.ntp.server iburst # Ignore stratum in source selection. stratumweight 0 # Record the rate at which the system clock gains/losses time. […]