Re: [chrony-users] Best way to force clock step at shutdown |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Best way to force clock step at shutdown
- From: Hector Oron <hector.oron@xxxxxxxxx>
- Date: Tue, 12 Jan 2016 18:31:13 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ilyr+JIc5zjxP9iknvFqyZEuxJXS8KuWgFNE4rYvgmo=; b=jBn51zjhPFr2fKZtfTntwCTIU9e8SNIPA5RoePLqnnrLCxzibmP6zlSMyLfjc9qUfi dzNPB1rrV037IXko1UD/CJxFCKQimWxIjQIBs0gMYLoyjad1gYOx1j9JX43xX+lICoFo t9z9L8fI3qkn2IWMxWzLh4pPX4t42dNIkaYOU50B05o6FC7NXv1cw8cfzsj/K/Loetbe f3P0P9ddN2x5CTjYur+1OyMyXhC7O6t9JeaxzeVQdeRylExKh+JJBZi6KTgXPPDMUChL JixaF29sZkmvH+d/KfSOIa1MQ2IlLOLvWd4HskNQ1BDFFqncKSAl9S4Y6B1nNeZYlcmN RKRg==
Hello,
2016-01-12 14:33 GMT+01:00 Miroslav Lichvar <mlichvar@xxxxxxxxxx>:
> How long ago was the clock set to this date? If chronyd hadn't had a
> chance to make new measurements in that interval, the makestep command
> would not fix the offset as chronyd would still think the date is
> correct. It would be useful to see the output from chronyc tracking
> and chronyc sources before the makestep command.
In a recently rebooted system (with an old date):
$ sudo chronyc -a
[sudo] password for desktop:
chrony version 1.30
Copyright (C) 1997-2003, 2007, 2009-2014 Richard P. Curnow and others
chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and
you are welcome to redistribute it under certain conditions. See the
GNU General Public License version 2 for details.
200 OK
chronyc> activity
200 OK
4 sources online
0 sources offline
0 sources doing burst (return to online)
0 sources doing burst (return to offline)
0 sources with unknown address
chronyc> tracking
Reference ID : 127.127.1.1 ()
Stratum : 10
Ref time (UTC) : Mon Nov 23 08:35:50 2015
System time : 0.000000000 seconds slow of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 0.930 ppm slow
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 0.000000 seconds
Root dispersion : 0.000001 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
chronyc> sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? der.beste.tiger.ist.sidne 2 8 1 69 -72527m[-72527m] +/- 41ms
^? ns3.customer-resolver.net 2 8 1 74 -72527m[-72527m] +/- 42ms
^? net2.uni-paderborn.de 1 8 1 74 -72527m[-72527m] +/- 29ms
^? trabant.uid0.hu 4 8 1 74 -72527m[-72527m] +/- 19ms
chronyc> makestep
200 OK
chronyc> tracking
Reference ID : 127.127.1.1 ()
Stratum : 10
Ref time (UTC) : Mon Nov 23 08:39:06 2015
System time : 0.000000000 seconds slow of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 0.930 ppm slow
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 0.000000 seconds
Root dispersion : 0.000001 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
If I wait >17 minutes for chronyd to collect measurements results and
do a makestep, it does not seem to bring time to actual either.
activity command reports sources are online.
At the moment the only reliable way I found so far is to stop chronyd
and run it manually to emulate ntpdate behaviour as recommended in
chronyd -q 'server pool.ntp.org iburst'
Regards,
--
Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . ..-.
--
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.