Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2007 18:28:02 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Stefan Lambrev <stefan.lambrev@sun-fish.com>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: ntpd just sits there and does nothing 
Message-ID:  <20070722012802.B0CD045070@ptavv.es.net>
In-Reply-To: Your message of "Fri, 20 Jul 2007 10:37:14 %2B0300." <46A0662A.7060401@sun-fish.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_1185067682_48334P
Content-Type: text/plain; charset=us-ascii

> Hi,
> 
> [LoN]Kamikaze wrote:
> > Doug Hardie wrote:
> >   
> >> On Jul 19, 2007, at 10:08, [LoN]Kamikaze wrote:
> >>
> >>     
> >>> As the subject says, on my 6-stable systems ntpd just sits there and does
> >>> nothing. The logs only mention when the daemon gets started or shut
> >>> down. It
> >>> complains when servers are not reachable, but does nothing when they
> >>> are available.
> >>>
> >>> The drift file always contains 0.00.
> >>>
> >>> ntpdate and openntpd both successfully manage to set the time, so I
> >>> suppose
> >>> it's a problem with ntpd.
> >>>       
> >> Are you on a static IP address?  If not, ntpd obtains its IP address
> >> when it starts up and uses it forever.  If your IP address changes then
> >> it will not be able to communicate with the upstream ntp servers.  It
> >> has to be restarted everytime your IP address changes.
> >>     
> >
> > I have a static address. The trouble is it seems to operate fine, only it
> > forgets to change the time when it differs from the time servers too much.
> > Sometimes my clock goes wrong more than 1 second within a day.
> >   
> ntpd will not change time if the difference is too big - I think it 
> should be less then 1000s.
> ntpdate will :)

ntpdate is deprecated and is not recommended these days. The proper answer is 
to start ntpd with the -g option and to add the 'iburst' option to one or more 
of the servers in /etc/ntp.conf. The 'iburst' will speed up th initial sync to 
close to that of ntpdate, but have much greater accuracy.

You can get the '-g' by adding 'ntpd_sync_on_start="YES"' to rc.conf.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751



--==_Exmh_1185067682_48334P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002

iD8DBQFGorKikn3rs5h7N1ERAlsxAJ0fZcytdgUVenkVGq+ThlqezURmhQCfYG8Z
/UG8RspsU9sNAJhgS5tvJ1o=
=iAs4
-----END PGP SIGNATURE-----

--==_Exmh_1185067682_48334P--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070722012802.B0CD045070>