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 ------------------------------ [image: ViNotion] <http://www.vinotion.nl/> Ir. Kris van Rens Software architect / software developer E [email protected] T +31 (0)40 2366761 <+310402366761> W www.vinotion.nl [image: LinkedIn] <https://www.linkedin.com/in/kris-van-rens-b519a21a/>[image: YouTube] <https://www.youtube.com/user/vinotionNL> 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 <https://vinotion.nl/en/privacy-policy-2/>. . ------------------------------ On Wed, Mar 9, 2022 at 4:00 PM Miroslav Lichvar <[email protected]> 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 [email protected] > with "unsubscribe" in the subject. > For help email [email protected] > with "help" in the subject. > Trouble? Email [email protected]. > >
