My computer runs 24/7 and does an automatic reboot at night after each kernel/systemd/glibc upgrade. On Fedora this happens every few days.
The system clock is synchronized with NTP protocol using the
chrony. The HW clock is synchronized:
# Enable kernel synchronization of the real-time clock (RTC). rtcsync
and normally I see no difference between system time and HW clock.
But after a reboot:
28.02.2021 00:34:08.657 chronyd: System clock wrong by -4.021024 seconds
or this night:
mar 02 01:48:18 chronyd: chronyd exiting mar 02 01:48:18 systemd: Stopped NTP client/server. -- Reboot -- mar 02 01:49:37 systemd: Starting NTP client/server... mar 02 01:49:37 chronyd: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG) mar 02 01:49:37 chronyd: Frequency -13.026 +/- 0.008 ppm read from /var/lib/chrony/drift mar 02 01:49:37 chronyd: Using right/UTC timezone to obtain leap second data mar 02 01:49:37 systemd: Started NTP client/server. mar 02 01:49:51 chronyd: Selected source 22.214.171.124 (hu.pool.ntp.org) mar 02 01:49:51 chronyd: Time smoothing activated (leap seconds only) mar 02 01:49:51 chronyd: System clock wrong by -9.232765 seconds mar 02 01:49:42 chronyd: System clock was stepped by -9.232765 seconds
If I manually stop the
chrony, wait 2 minutes and restart it, nothing bad happens (as expected).
I searched the net a lot and read many posts, but still cannot understand what I'm doing wrong.
UPDATE, output of
Local time: St 2021-03-03 14:11:27 CET Universal time: St 2021-03-03 13:11:27 UTC RTC time: St 2021-03-03 13:11:27 Time zone: Europe/Bratislava (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no
hwclock from util-linux 2.36.1 System Time: 1614784382.362288 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Assuming hardware clock is kept in UTC time. Waiting for clock tick... ...got clock tick Time read from Hardware Clock: 2021/03/03 15:13:03 Hw clock time : 2021/03/03 15:13:03 = 1614784383 seconds since 1969 Time since last adjustment is 1614784383 seconds Calculated Hardware Clock drift is 0.000000 seconds 2021-03-03 16:13:02.344795+01:00
systemd-timesyncd is disabled and inactive.