Il 01/08/21 13:30, Andrei Borzenkov ha scritto:
On 01.08.2021 17:47, Andrei Borzenkov wrote:
On 01.08.2021 16:40, Marco Calistri wrote:
I already asked but didn't get feedback so far.
Why chronyc looses the syncing with external NTP during system st/by and it is necessary to manually re-sync?
^? time.cloudflare.com 0 6 0 - +0ns[ +0ns] +/- 0ns
^? par.cyberbits.eu 0 6 0 - +0ns[ +0ns] +/- 0ns
^? static.102.162.46.78.cli> 0 6 0 - +0ns[ +0ns] +/- 0ns
^? pob01.mulx.net 0 6 0 - +0ns[ +0ns] +/- 0ns
^? ntp.rol.net.mv 0 6 0 - +0ns[ +0ns] +/- 0ns
^? mail.masters-of-cloud.de 0 6 0 - +0ns[ +0ns] +/- 0ns
How long did you wait after resume before getting this output?
Let's say 12 or 24 hours, cannot be totally sure. BTW IMHO the daemon chronyd must do a sort of autosync to external sources. After suspend/resume chronyd most likely sees time jump and resets all sources state. Which is why
Otherwise logs may give some more hints.
You should have checked and provided chronyd logs. Most likely you see something like "Forward time jump detected!".
That would explain output you get. The
chronyc activity marco@localhost:~> chronyc activity 200 OK 0 sources online 6 sources offline 0 sources doing burst (return to online) 0 sources doing burst (return to offline) 0 sources with unknown address
would show overview of current sources status (online/offline). Further steps depend on whether sources are online or offline from chronyd point of view.
sudo chronyc burst 4/4; sudo chronyc makestep
[sudo] password di root:
200 OK
200 OK
*^* time.cloudflare.com* 3 6 0 20m -85us[+1906us] +/- 71ms
^- par.cyberbits.eu 2 6 0 20m -4421us[-2430us] +/- 150ms
^- static.102.162.46.78.cli> 2 6 0 20m -15ms[ -15ms] +/- 162ms
^- pob01.mulx.net 2 6 0 20m +261us[ +261us] +/- 130ms
^- ntp.rol.net.mv 3 6 0 20m +1112ns[+1992us] +/- 426ms
^- mail.masters-of-cloud.de 2 6 0 20m +2603us[+2603us] +/- 108ms
Well, it looks like sources remained offline actually. burst tells chronyd to (try to) contact sources but does not change their status (so if sources are offline no periodic polling starts).
And BTW what "chronyc sources" says *before* suspend? Before suspend the client is synced (see the asterisk on the NTP source).
marco@localhost:~> chronyc sources MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* time.cloudflare.com 3 6 0 302m -85us[+1906us] +/- 71ms ^- par.cyberbits.eu 2 6 0 302m -4421us[-2430us] +/- 150ms ^- static.102.162.46.78.cli> 2 6 0 302m -15ms[ -15ms] +/- 162ms ^- pob01.mulx.net 2 6 0 302m +261us[ +261us] +/- 130ms ^- ntp.rol.net.mv 3 6 0 302m +1112ns[+1992us] +/- 426ms ^- mail.masters-of-cloud.de 2 6 0 302m +2603us[+2603us] +/- 108ms -- Marco Calistri Build: openSUSE Tumbleweed 20210730 Kernel:5.13.4-1-default Desktop: XFCE (4.16.0)