Ceph:监视器时钟偏差问题(clock skew detected on)
最近几天接触到了ceph,搭建的过程中也发现很多问题:1、故障现象
# ceph -s
cluster e2ca994a-00c4-477f-9390-ea3f931c5062
health HEALTH_WARN
clock skew detected on mon.hz-01-ops-tc-ceph-04, mon.hz-01-ops-tc-ceph-02
Monitor clock skew detected
monmap e1: 3 mons at {hz-01-ops-tc-ceph-02=172.16.2.231:6789/0,hz-01-ops-tc-ceph-03=172.16.2.172:6789/0,hz-01-ops-tc-ceph-04=172.16.2.181:6789/0}
election epoch 6, quorum 0,1,2 hz-01-ops-tc-ceph-03,hz-01-ops-tc-ceph-04,hz-01-ops-tc-ceph-02
osdmap e19: 4 osds: 4 up, 4 in
flags sortbitwise,require_jewel_osds
pgmap v37: 64 pgs, 1 pools, 0 bytes data, 0 objects
135 MB used, 179 GB / 179 GB avail
64 active+clean 网上查资料有说ntp时间的问题,但我是在内部测试环境中进行的,不存在时间不同步的问题
2、处理过程
# cd /my-cluster
# ls
ceph.bootstrap-mds.keyringceph.bootstrap-osd.keyringceph.client.admin.keyringceph-deploy-ceph.log
ceph.bootstrap-mgr.keyringceph.bootstrap-rgw.keyringceph.conf ceph.mon.keyring
# vim ceph.conf
# 添加如下信息:
mon clock drift allowed = 2
mon clock drift warn backoff = 30
同步配置信息:
# ceph-deploy --overwrite-conf admin hz-01-ops-tc-ceph-01 hz-01-ops-tc-ceph-02 hz-01-ops-tc-ceph-03 hz-01-ops-tc-ceph-04
found configuration file at: /root/.cephdeploy.conf
Invoked (1.5.39): /usr/bin/ceph-deploy --overwrite-conf admin hz-01-ops-tc-ceph-01 hz-01-ops-tc-ceph-02 hz-01-ops-tc-ceph-03 hz-01-ops-tc-ceph-04
ceph-deploy options:
username : None
verbose : False
overwrite_conf : True
quiet : False
cd_conf :
cluster : ceph
client : ['hz-01-ops-tc-ceph-01', 'hz-01-ops-tc-ceph-02', 'hz-01-ops-tc-ceph-03', 'hz-01-ops-tc-ceph-04']
func :
ceph_conf : None
default_release : False
Pushing admin keys and conf to hz-01-ops-tc-ceph-01
connected to host: hz-01-ops-tc-ceph-01
detect platform information from remote host
detect machine type
write cluster configuration to /etc/ceph/{cluster}.conf
Pushing admin keys and conf to hz-01-ops-tc-ceph-02
connected to host: hz-01-ops-tc-ceph-02
detect platform information from remote host
detect machine type
write cluster configuration to /etc/ceph/{cluster}.conf
Pushing admin keys and conf to hz-01-ops-tc-ceph-03
connected to host: hz-01-ops-tc-ceph-03
detect platform information from remote host
detect machine type
write cluster configuration to /etc/ceph/{cluster}.conf
Pushing admin keys and conf to hz-01-ops-tc-ceph-04
connected to host: hz-01-ops-tc-ceph-04
detect platform information from remote host
detect machine type
write cluster configuration to /etc/ceph/{cluster}.conf 到此,问题解决
页:
[1]