Hi
After my servers were upgraded to version 7.0…0 (CE version) and the server was restarted, I have started receiving mails like this:
The time on node 'ns_1@db2.xxxx.dk' is not synchronized. Please ensure that NTP is set up correctly on all nodes and that clocks are synchronized.
The server is CentOS 7 running in a VM under VMware ESX. I’m not sure why this has suddenly started. The servers have been running Ok for 3-4 years. It is a small cluster with 2 servers - and I receive the messages from one of them. If I force re-sync. of time then after a short time it gets out of sync. again - and then I may receive the messages from the other server.
Is the reporting of this issue new with version 7? In other words - is my problem new - or has it been there all the time without my knowledge?
Just for reference if others search for this:
I used ntpd
for keeping time - but after having read a lot over the weekend I found that Chrony
seems to be the better choice with CentOS 7. I have reconfigured the servers - but still seem to have the problem.
When I use the command timedatectl
I see the “no” in NTP synchronized
:
Local time: Mon 2021-08-02 08:37:20 CEST
Universal time: Mon 2021-08-02 06:37:20 UTC
RTC time: Mon 2021-08-02 06:39:50
Time zone: Europe/Copenhagen (CEST, +0200)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2021-03-28 01:59:59 CET
Sun 2021-03-28 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2021-10-31 02:59:59 CEST
Sun 2021-10-31 02:00:00 CET
If I restart Chrony using systemctl restart chronyd
the timedatectl
will give me (after a couple of seconds):
Local time: Mon 2021-08-02 08:46:09 CEST
Universal time: Mon 2021-08-02 06:46:09 UTC
RTC time: Mon 2021-08-02 06:46:24
Time zone: Europe/Copenhagen (CEST, +0200)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2021-03-28 01:59:59 CET
Sun 2021-03-28 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2021-10-31 02:59:59 CEST
Sun 2021-10-31 02:00:00 CET
But then after a couple of minutes the NTP synchronized
will have changed to “no” again - and the mails start again…