当 ntp 为 运行 时,Ceph 状态不响应
Ceph status do not respond when ntp is running
如果我们在 /etc/ntp.conf
中放置任何服务器,命令 ceph status 不会响应
我在 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变成response。但是有了这个答案:
health HEALTH_WARN
clock skew detected on mon.node2, mon.node3
Monitor clock skew detected
...
systemctl status ntpd.service 显示服务处于活动状态并且 运行.
我真的不明白为什么如果我们把服务器放在 ntp.conf.
中,为什么 ceph 会变得不负责任
请帮我。
我不知道为什么,但由于 ntpd -gq
中的命令,它已经发生了。此命令从您在 ntp.conf 中写入的服务器更新您的数据时间,然后停止。
我不明白为什么 ceph 在执行此命令后失败,但是当我将其更改为:
ntpdate 0.ua.pool.ntp.org
Ceph 成为工作。
如果我们在 /etc/ntp.conf
中放置任何服务器,命令 ceph status 不会响应
我在 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变成response。但是有了这个答案:
health HEALTH_WARN
clock skew detected on mon.node2, mon.node3
Monitor clock skew detected
...
systemctl status ntpd.service 显示服务处于活动状态并且 运行.
我真的不明白为什么如果我们把服务器放在 ntp.conf.
中,为什么 ceph 会变得不负责任
请帮我。
我不知道为什么,但由于 ntpd -gq
中的命令,它已经发生了。此命令从您在 ntp.conf 中写入的服务器更新您的数据时间,然后停止。
我不明白为什么 ceph 在执行此命令后失败,但是当我将其更改为:
ntpdate 0.ua.pool.ntp.org
Ceph 成为工作。