Date: Thu, 23 Sep 2004 22:18:59 +1000 From: "James Hong" <freebsd-ml@nightmaestro.com> To: <freebsd-questions@freebsd.org> Subject: RE: Ntpd assistance Message-ID: <200409231219.i8NCJG5g017655@trumpet.nightmaestro.com> In-Reply-To: <41525304.3000700@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
i had a machine where internal clock runs 1.5 times faster than normal clock. as a result time will be about 5min faster every 30min or so. if internal clock is busted like mine, ntpd will not be able to sync time. It takes as long as few days to sync few min on your unix clock. Also if i remember correctly unix keeps internal clock and system clock separatly. read http://www.eecis.udel.edu/~mills/ntp/html/ntpd.html PS. use closer tier 2 or tier 3 and multiple sources (as long as they are public) -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Rob Sent: Thursday, September 23, 2004 2:37 PM To: freebsd-questions@freebsd.org Subject: Re: Ntpd assistance alden.pierre wrote: > /etc/rc.conf contains the following: > > ntpdate_enable="YES" > ntpdate_flags="timex.cs.columbia.edu" > xntpd_enable="YES" # Run ntpd Network Time Protocol > > /etc/ntpd.conf contains the following: > > driftfile /etc/ntp/drift > server 65.211.109.1 > server 65.211.109.11 > server 209.51.161.238 > server 128.59.59.177 Use /etc/ntp.conf (NOT ntpd.conf). I would configure this system as follows: /etc/rc.conf: ntpdate_enable="YES" ntpdate_flags="-b 65.211.109.1 65.211.109.11 209.51.161.238 128.59.59.177" xntpd_enable="YES" /etc/ntp.conf: #-------------------------- # prohibit general access to this service #-------------------------- restrict default ignore #-------------------------- # localhost has full access to the server #-------------------------- restrict 127.0.0.1 #-------------------------- # servers to query #-------------------------- server 65.211.109.1 restrict 65.211.109.1 server 65.211.109.11 restrict 65.211.109.11 server 209.51.161.238 restrict 209.51.161.238 server 128.59.59.177 restrict 128.59.59.177 #-------------------------- # files to use #-------------------------- driftfile /var/db/ntp.drift ------------------------------------------------- The idea is, that, at boot up, you force instant time synchronization with ntpdate, using the list of servers in ntpdate_flags="-b ....". (check the man page of ntpdate and the -b flag). Then you allow ntpd to start (xntpd_enable = "YES"), that will keep the time in sync with the servers in /etc/ntp.conf. As a regular user, verify nptd's sync behaviour with: ntpq -np I hope that helps. Rob. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409231219.i8NCJG5g017655>