Re: [chrony-users] nts in Chrony 4.0 |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx, Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Subject: Re: [chrony-users] nts in Chrony 4.0
- From: Andrew <andrewsan9@xxxxxxxxxx>
- Date: Fri, 6 Nov 2020 11:26:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1604658402; bh=/ZBhLV1EiFxvlXh9ybU24opNC7WxntH9ncsQAT9V7q0=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type; b=Y1FDoFgQvoneDhSl8rwwP7P2KoTJRkV936JGRgj4gBiEnHQtLO5IiaN0LhXFIlMOl xY+UNCpIirREiZ2GsIUcb4x0vdQ4AdkDAKXO8GUYyFqAmvEEpQnO+8qN+h/E8l2mh0 DhvzgjztBXikWSRggd22pxJtvEwV7NP2kEUgdAo+rBojqOvQt0BO0tJuMrQF4cjLLC t60CQLCOUDDPhu1Jfnd4xm9zYiNSnaJGsc/uaIKaDEzuv5ls+8P/T2lB65YlcY0CEn XTUOjWv1jLBO3qQQQooTha1pCujxZbXpY3EQgDezjKrOT0yf/zy64exo5FdLVn+uFJ Bmb6hbwjXAYLg==
On 06/11/2020 09:38, Miroslav Lichvar wrote:
On Thu, Nov 05, 2020 at 08:58:56PM +0100, Andrew wrote:
Hi,
Im using Fedora 33 with Chrony 4.0 and I can see that NetNods servers are
preconfigured/commented out in /etc/chronyd.conf, but when I enable them and
restart the service chronyc source and chronyc tracking are empty.
Can you post your chrony.conf? "chronyd -p 2>/dev/null" will print it
without comments and empty space.
Does "chronyc activity" show a non-zero number of "unknown sources"?
That would indicate a DNS issue.
Does "ping time.cloudflare.com" work?
Hi,
chrony.conf:
server nts.ntp.se:4460 nts iburst
server nts.sth1.ntp.se:4460 nts iburst
server nts.sth2.ntp.se:4460 nts iburst
driftfile /var/lib/chrony/drift
makestep 1.0 3
rtcsync
keyfile /etc/chrony.keys
ntsdumpdir /var/lib/chrony
leapsectz right/UTC
logdir /var/log/chrony
[root@blackbox ~]# chronyc activity
200 OK
0 sources online
0 sources offline
0 sources doing burst (return to online)
0 sources doing burst (return to offline)
3 sources with unknown address
root@blackbox ~]# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
[root@blackbox ~]# chronyc -N authdata
Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen
=========================================================================
[root@blackbox ~]#
[root@blackbox ~]# ping time.cloudflare.com
PING time.cloudflare.com (162.159.200.1) 56(84) bytes of data.
64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=1 ttl=60
time=2.34 ms
64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=2 ttl=60
time=2.03 ms
64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=3 ttl=60
time=1.93 ms
64 bytes from time.cloudflare.com (162.159.200.1): icmp_seq=4 ttl=60
time=2.00 ms
[root@blackbox ~]# ping nts.ntp.se
PING nts.ntp.se (194.58.202.201) 56(84) bytes of data.
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=1 ttl=60 time=9.45 ms
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=2 ttl=60 time=9.45 ms
64 bytes from nts.ntp.se (194.58.202.201): icmp_seq=3 ttl=60 time=9.37 ms
/etc/resolv.conf:
nameserver 127.0.0.53
options edns0 trust-ad
When I change chrony.conf to:
pool 2.fedora.pool.ntp.org iburst
#server nts.ntp.se:4460 nts iburst
#server nts.sth1.ntp.se:4460 nts iburst
#server nts.sth2.ntp.se:4460 nts iburst
# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp
Then I get this:
[root@blackbox ~]# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? ntp-b.0x5e.se 2 6 3 0 +1487ms[+1487ms]
+/- 30ms
^? ntp1.vmar.se 2 6 3 0 +1487ms[+1487ms]
+/- 12ms
^? Time100.Stupi.SE 1 6 3 1 +1487ms[+1487ms] +/-
4973us
^? ntp4.flashdance.cx 2 6 3 1 +1487ms[+1487ms]
+/- 24ms
[root@blackbox ~]# chronyc -N authdata
Name/IP address Mode KeyID Type KLen Last Atmp NAK Cook CLen
=========================================================================
2.fedora.pool.ntp.org - 0 0 0 - 0 0 0 0
2.fedora.pool.ntp.org - 0 0 0 - 0 0 0 0
2.fedora.pool.ntp.org - 0 0 0 - 0 0 0 0
2.fedora.pool.ntp.org - 0 0 0 - 0 0 0 0
[root@blackbox ~]#
Thanks,
Andrew
--
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.