Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 May 2007 14:30:38 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Henrik Brix Andersen <henrik@brixandersen.dk>
Cc:        Doug Barton <dougb@FreeBSD.org>, freebsd-stable@freebsd.org, Martin Dieringer <martin.dieringer@gmx.de>
Subject:   Re: clock too slow - big time offset with ntpdate 
Message-ID:  <20070502213038.7509E45042@ptavv.es.net>
In-Reply-To: Your message of "Wed, 02 May 2007 20:02:54 %2B0200." <20070502180254.GD13603@tirith.brixandersen.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_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 <henrik@brixandersen.dk>
> 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--



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