ceph mon_clock_drift_allowed invalid

huky

Renowned Member
Jul 1, 2016
70
3
73
44
Chongqing, China
I have set this in /etc/pve/ceph.conf
mon_clock_drift_allowed = 3 mon_clock_drift_warn_backoff = 30

and it is valid in config
ceph --admin-daemon /run/ceph/ceph-mon.node009.asok config show | grep clock "mon_clock_drift_allowed": "3.000000", "mon_clock_drift_warn_backoff": "30.000000", ......

but ceph still told me with "MAX 0.05s"
2021-04-28 09:02:39.131151 mon.node003 (mon.0) 2621051 : cluster [WRN] 1 clock skew 0.0871183s > max 0.05s 2021-04-28 09:06:39.131930 mon.node003 (mon.0) 2621134 : cluster [WRN] 1 clock skew 0.0906123s > max 0.05s 2021-04-28 09:11:09.132641 mon.node003 (mon.0) 2621227 : cluster [WRN] 1 clock skew 0.0631894s > max 0.05s 2021-04-28 09:11:35.047408 mon.node003 (mon.0) 2621241 : cluster [WRN] 1 clock skew 0.059099s > max 0.05s 2021-04-28 09:11:35.055041 mon.node003 (mon.0) 2621246 : cluster [WRN] overall HEALTH_WARN clock skew detected on mon.node009 2021-04-28 09:11:56.217482 mon.node003 (mon.0) 7 : cluster [INF] Health check cleared: MON_CLOCK_SKEW (was: clock skew detected on mon.node009)

How could I adjust the MAX to 3s?
 
What do you use for NTP?

In general it'd be better to fix the reasons for clock skew. If you use systemd-timesync it could be better to switch to chrony or openntpd. For example, apt install chrony.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!