Re: [chrony-users] Question about chrony use in a system without RTC battery |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Question about chrony use in a system without RTC battery
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 9 Mar 2022 15:59:49 +0100
- Authentication-results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mlichvar@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646837995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L5QIHACPLNQMCE4VrRzlq80qhqQNXIyh7CE/yezlwTA=; b=FTq56GYrxShTttfGgsaGFkjok1/n0BalJB787AWSdL9w+2ZO5fGJ4PPnWoVXQZn7h/6How Cz46Cw6Aj5IO1VxI85OXr0lM/fD8Eu2I6t0uZzOmoEj8jJWokdkpey4xr+WUoAoargc3ug IkfVzTeul+p0/XAQ/S5A8lA5fCCt+uk=
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.