From owner-freebsd-questions@FreeBSD.ORG Mon Jul 27 22:51:15 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77D27106564A for ; Mon, 27 Jul 2009 22:51:15 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id 653738FC17 for ; Mon, 27 Jul 2009 22:51:15 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KNG006FFQ51NZ40@asmtp017.mac.com> for freebsd-questions@freebsd.org; Mon, 27 Jul 2009 15:51:02 -0700 (PDT) Message-id: <9991CE39-1B24-479E-9EDF-AFA153EE3EDE@mac.com> From: Chuck Swiger To: Zbigniew Szalbot In-reply-to: <4A6E2DE2.4080606@lcwords.com> Date: Mon, 27 Jul 2009 15:51:01 -0700 References: <4A6E2DE2.4080606@lcwords.com> X-Mailer: Apple Mail (2.935.3) Cc: freebsd-questions@freebsd.org Subject: Re: ntpd / time synchronization X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 22:51:15 -0000 On Jul 27, 2009, at 3:44 PM, Zbigniew Szalbot wrote: > and here's the details of /etc/ntp.conf file: > > server 0.pl.pool.ntp.org > server 1.pl.pool.ntp.org > server 2.pl.pool.ntp.org > server 3.pl.pool.ntp.org > driftfile /var/db/ntp.drift > restrict default nopeer nomodify > > I used to have server 0.europe.pool.ntp.org in the ntp.conf file but > today changed all entries to *.pl.pool.* > > At the moment my clock is about 3 minutes behind time. It has been > running for a year and I do not have ntpdate enabled so I guess > subsequent reboots did not correct the drifting problem. > > Is there anything obvious I am missing here? Any advice would be > greatly appreciated! You can't readily combine a restrict statement with using random timeservers from the NTP pool; you would need to list specific servers and add blank restrict statements for each server you trust. What you've configured is likely querying the 4 servers listed for time, but not trusting their responses so your clock never find a server which it is willing to sync to. Running "ntpq -p -c rv" would be informative.... Regards, -- -Chuck