| Re: [chrony-users] [Question] chronyc tracking shows large offset |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] [Question] chronyc tracking shows large offset
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Wed, 5 Nov 2025 10:18:50 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762334321; 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=igdVL38Lp6iLbKMgmmFTaB0CQ9Q9IfX23qZWVPyAX/8=; b=bCOaC4bYXEkPYqwsrkC4rRxM4FJZFyd59jsZHFp+vw0dF3f0akX88kpIWDwYG08bUHOd6T FTaUdbFkVx84uVQKvXryYVwCwebY0v8Y0HTLYTQwXpt4VhAIoIhEjm/akGIeRRN8q2aQSo LRtvVjvn9onHTT0YOwQypI412Q9UMZg=
On Wed, Nov 05, 2025 at 04:41:06PM +0800, zc z wrote:
> I ran a script to record chronyc -n tracking output every 5 seconds. When I
> unplugged the network cable and waited for 20 hours, I observed that the
> Leap Status remained Normal. At that time, the rootdelay was 1.00000238
> ms and root dispersion was 1.338544011 s. The accumulated estimated error
> exceeded 1.6 seconds (maxdistance), yet the Leap Status did not change
> to Not synchronized.
maxdistance is for source selection. It doesn't change anything about
the local clock. (A root distance of 1ms/2 + 1.3s is not larger than
1.6 seconds.)
> Could you please clarify why the Leap Status remains Normal under these
> conditions? How long does it take for the Leap Status to change, or how can
> I configure it to detect anomalies, such as a network disconnection, and
> switch to Not synchronized?
It will not change. Once the clock is synchronized, it stays
synchronized. That's how NTPv4 clients are supposed to work. It's up
to you to decide what root distance is acceptable for you. If you need
to detect network problems, you should check reachability reported by
chronyc sources.
--
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.