现象:
Ceph集群健康状态提示“clock skew detected on mon.hydrogen2”
[root@hydrogen1 ~]# ceph -s cluster: id: fe840364-7bc6-11ef-98cd-e43d1a0a3210 health: HEALTH_WARN clock skew detected on mon.hydrogen2 services: mon: 3 daemons, quorum hydrogen1,hydrogen2,hydrogen3 (age 2m) mgr: hydrogen1.knyqls(active, since 2m), standbys: hydrogen2.desouk osd: 12 osds: 12 up (since 119s), 12 in (since 3d) data: pools: 2 pools, 65 pgs objects: 387.75k objects, 1.5 TiB usage: 4.3 TiB used, 170 TiB / 175 TiB avail pgs: 64 active+clean 1 active+clean+scrubbing+deep
原因:
集群节点之间的时钟存在偏移不一致导致
解决:
根据提示存在偏移的节点上重启时间效验服务同步时间后解决
[root@hydrogen2 ~]# systemctl restart chronyd.service [root@hydrogen2 ~]# ceph -s cluster: id: fe840364-7bc6-11ef-98cd-e43d1a0a3210 health: HEALTH_OK services: mon: 3 daemons, quorum hydrogen1,hydrogen2,hydrogen3 (age 7m) mgr: hydrogen1.knyqls(active, since 7m), standbys: hydrogen2.desouk osd: 12 osds: 12 up (since 7m), 12 in (since 3d) data: pools: 2 pools, 65 pgs objects: 387.67k objects, 1.5 TiB usage: 4.3 TiB used, 170 TiB / 175 TiB avail pgs: 65 active+clean