Re: [chrony-users] Question about chrony use in a system without RTC battery

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Hi Miroslav,

Thank you very much for the swift response.

I see. I was tempted to test something like this, but it felt kind of nasty to tinker with the driffile from outside of Chrony itself. I will start testing with this!

Met vriendelijke groeten / Kind regards, 
Kris van Rens


ViNotionIr. Kris van Rens
Software architect / software developer
 
E kris.van.rens@xxxxxxxxxxx
T +31 (0)40 2366761
W www.vinotion.nl
LinkedInYouTube
 Daalakkersweg 2-58 | Postbus 2346 | 5600 CH Eindhoven

The information contained in this message is confidential and may be legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. ViNotion respects your privacy. In regard to the GDPR rules and legislation; we strive for continuous improvement of our (work) processes to ensure data protection / data anonymization to protect your privacy. Please view our Privacy Policy.
.




On Wed, Mar 9, 2022 at 4:00 PM Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
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@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/