如果我们将任何服务器放在/etc/ntp.conf中,则ceph命令不会响应。
在centos 7上有3个ceph节点,其中有/etc/ntp.conf:
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
disable monitor
使用这个/etc/rc.local:
touch /var/lock/subsys/local
/sbin/iptables-restore < /etc/sysconfig/iptables
/sbin/ntpd -gq
/sbin/hwclock --systohc
systemctl enable ntpd.service
systemctl start ntpd.service
如果我在/etc/ntp.conf中评论服务器:
#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
然后Ceph就变成了反应。但有了这个答案:
health HEALTH_WARN
clock skew detected on mon.node2, mon.node3
Monitor clock skew detected
...
systemctl状态ntpd.service显示服务处于活动状态并正在运行。
如果我们把服务器放在ntp.conf中,我真的不明白为什么Ceph会变得没有响应。
求你帮帮我。
发布于 2016-02-04 07:30:11
我不知道为什么,但这是因为在ntpd -gq
的命令。此命令从您用ntp.conf编写的服务器中更新数据,然后停止。
我不知道为什么C年会在这个命令之后失败,但是当我将它更改为:
ntpdate 0.ua.pool.ntp.org
变成了工作。
https://stackoverflow.com/questions/35177485
复制相似问题