From owner-freebsd-stable@FreeBSD.ORG Sun Jul 22 01:28:04 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 818BD16A41A for ; Sun, 22 Jul 2007 01:28:04 +0000 (UTC) (envelope-from SRS0=fad4d22ee8c56499d02f24f868b79e214db262ed=403=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [IPv6:2001:400:14:3::6]) by mx1.freebsd.org (Postfix) with ESMTP id C74A413C442 for ; Sun, 22 Jul 2007 01:28:03 +0000 (UTC) (envelope-from SRS0=fad4d22ee8c56499d02f24f868b79e214db262ed=403=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id BIY01003; Sat, 21 Jul 2007 18:28:03 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id B0CD045070; Sat, 21 Jul 2007 18:28:02 -0700 (PDT) X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Stefan Lambrev In-Reply-To: Your message of "Fri, 20 Jul 2007 10:37:14 +0300." <46A0662A.7060401@sun-fish.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1185067682_48334P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Sat, 21 Jul 2007 18:28:02 -0700 From: "Kevin Oberman" Message-Id: <20070722012802.B0CD045070@ptavv.es.net> Cc: "\[LoN\]Kamikaze" , FreeBSD Stable Subject: Re: ntpd just sits there and does nothing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 01:28:04 -0000 --==_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--