From owner-freebsd-stable@FreeBSD.ORG Wed May 2 21:45:47 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 504C116A407; Wed, 2 May 2007 21:45:47 +0000 (UTC) (envelope-from SRS0=5471fe43b59d11a02633384c5ae3281cf1c79984=323=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id 300CF13C480; Wed, 2 May 2007 21:45:47 +0000 (UTC) (envelope-from SRS0=5471fe43b59d11a02633384c5ae3281cf1c79984=323=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 HAG69538; Wed, 02 May 2007 14:30:38 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 7509E45042; Wed, 2 May 2007 14:30:38 -0700 (PDT) To: Henrik Brix Andersen In-Reply-To: Your message of "Wed, 02 May 2007 20:02:54 +0200." <20070502180254.GD13603@tirith.brixandersen.dk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1178141438_18150P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 02 May 2007 14:30:38 -0700 From: "Kevin Oberman" Message-Id: <20070502213038.7509E45042@ptavv.es.net> Cc: Doug Barton , freebsd-stable@freebsd.org, Martin Dieringer Subject: Re: clock too slow - big time offset with ntpdate 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: Wed, 02 May 2007 21:45:47 -0000 --==_Exmh_1178141438_18150P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Wed, 2 May 2007 20:02:54 +0200 > From: Henrik Brix Andersen > Sender: owner-freebsd-stable@freebsd.org > > On Wed, May 02, 2007 at 10:23:09AM -0700, Doug Barton wrote: > [snip /etc/ntp.conf configuration file instructions] > > Then make sure you have the following in /etc/rc.conf: > > > > ntpdate_enable="yes" > > ntpdate_flags="-sb 1.2.3.4" > > ntpd_enable="yes" > > Just a side note - according to the ntpdate(8) man page, ntpdate is > deprecated and will eventually be removed from the distribution since > the same functionality is available in ntpd(8). > > Thus, all you need to put in /etc/rc.conf is this: > > ntpd_enable="YES" > ntpd_sync_on_start="YES" > > You still need a properly configured /etc/ntp.conf file. A few more comments: If ntpd is started with the '-g' flag, it will initially step the time so you get your clock set as you would have with ntpdate. This is set in /etc/rc.conf as 'ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift -g". You also should add 'iburst' to each server line in ntp.conf. This will cause several queries to be made to each server at startup so that there will not be a long delay before the clock is synchronized. Without the 'iburst', your time won't be set for about 4or 5 minutes. -- 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_1178141438_18150P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFGOQL+kn3rs5h7N1ERAj2uAJ98gRkEfo2DP3gNa/4oX6+eZaieLgCglXXJ F/OHUkZR2Ffz70LxrnRhtak= =UZzc -----END PGP SIGNATURE----- --==_Exmh_1178141438_18150P--