Re: Question about chrony use in a system without RTC battery

Miroslav Lichvar <[email protected]>
Newsgroups gmane.comp.time.chrony.user
Message-ID <YijA5QTkpKg45oSN@localhost>
On Wed, Mar 09, 2022 at 03:36:34PM +0100, Kris van Rens wrote:
> My observation with power loss simulations is that the system keeps on
> jumping back in time (~a week). What I do is I break the internet
> connection such that the NTP synchronization is lost, then pull the
> power plug, re-insert the power plug (but leave the internet
> connection broken).

chronyd updates the driftfile only when it is stopped and when the
clock is updated from NTP, refclock, or manual input (at most once per
hour).

If there is no connection to the NTP server and the system is not
powered off cleanly, the driftfile will not be updated at all.

You can run "touch /var/lib/chrony/drift" from a cron job to limit the
backward step, but there will always be some if the machine does not
shutdown properly.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.