ceph monitor时间偏差
ceph集群重启后,提示warningHEALTH_WARN clock skew detected on mon.osd0, mon.osd1,monitor和主节点有时间偏差,但是我执行date命令查看时间,monitor节点与主节点时间一样,没有偏差,这个怎么解决?首先确保是正确的,是否安装ntp。
如果上面都是正确的,建议设置下时间差
/etc/ceph/ceph.conf中设置monitor间的允许时钟偏移最大值
mon data =/data/$name
mon clock drift allowed = 2
mon clock drift warn backoff = 30
restart ceph集群
我修改了配置文件,也安装了ntp,重启服务还是一样
systemctl restart ceph
# ceph status
cluster 0ea3747c-4d8f-4621-b4f0-02d55785ab16
health HEALTH_WARN
clock skew detected on mon.node2
Monitor clock skew detected
monmap e2: 2 mons at {node1=172.16.1.199:6789/0,node2=172.16.1.200:6789/0}
election epoch 6, quorum 0,1 node1,node2
mdsmap e5: 1/1/1 up {0=node1=up:active}
osdmap e38: 3 osds: 3 up, 3 in
pgmap v1734: 1128 pgs, 12 pools, 136 MB data, 109 objects
19397 MB used, 34236 MB / 53634 MB avail
1128 active+clean
过了挺长时间重启服务后才好的 /etc/init.d/ceph restart mon
页:
[1]