From owner-freebsd-questions@FreeBSD.ORG Thu Sep 23 12:37:13 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A8C116A4CE for ; Thu, 23 Sep 2004 12:37:13 +0000 (GMT) Received: from trumpet.nightmaestro.com (186.10.233.220.exetel.com.au [220.233.10.186]) by mx1.FreeBSD.org (Postfix) with SMTP id C641B43D41 for ; Thu, 23 Sep 2004 12:37:10 +0000 (GMT) (envelope-from freebsd-ml@nightmaestro.com) Received: from violin (greyeye-xp [10.1.1.4])i8NCJG5g017655 for ; Thu, 23 Sep 2004 22:19:18 +1000 Message-Id: <200409231219.i8NCJG5g017655@trumpet.nightmaestro.com> From: "James Hong" To: Date: Thu, 23 Sep 2004 22:18:59 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 thread-index: AcShJxHwVfbMqVJJQhm/nkluiqwBOQAP0eCw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <41525304.3000700@yahoo.com> X-nightmaestro.com-MailScanner: Found to be clean X-nightmaestro.com-MailScanner-SpamCheck: not spam, SpamAssassin (score=-104.9, required 10, autolearn=not spam, BAYES_00 -4.90, USER_IN_WHITELIST -100.00) X-MailScanner-From: freebsd-ml@nightmaestro.com Subject: RE: Ntpd assistance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 12:37:13 -0000 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"