From owner-freebsd-questions@FreeBSD.ORG Tue Oct 17 22:40:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 7989E16A403 for ; Tue, 17 Oct 2006 22:40:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20D0843D4C for ; Tue, 17 Oct 2006 22:40:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin05-en2 [10.13.10.150]) by smtpout.mac.com (Xserve/8.12.11/smtpout02/MantshX 4.0) with ESMTP id k9HMeDbn021286; Tue, 17 Oct 2006 15:40:13 -0700 (PDT) Received: from [17.214.13.96] (a17-214-13-96.apple.com [17.214.13.96]) (authenticated bits=0) by mac.com (Xserve/smtpin05/MantshX 4.0) with ESMTP id k9HMeB4b008248; Tue, 17 Oct 2006 15:40:12 -0700 (PDT) In-Reply-To: <20061018000853.O49453@192.168.11.51> References: <20061018000853.O49453@192.168.11.51> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Tue, 17 Oct 2006 15:40:11 -0700 To: Zbigniew Szalbot X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: freebsd-questions@freebsd.org Subject: Re: ntpd not adjusting the clock? 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: Tue, 17 Oct 2006 22:40:14 -0000 On Oct 17, 2006, at 3:13 PM, Zbigniew Szalbot wrote: > My ntp.conf file looks like that: > > server 2.pl.pool.ntp.org prefer > server 1.europe.pool.ntp.org > server 0.europe.pool.ntp.org > restrict default ignore > driftfile /var/db/ntp.drift Unless you've got additional restrict lines which permit some hosts to make changes, using only "restrict default ignore" will prevent ntpd from paying attention to the timeservers you've listed and it will even prevent ntpd from changing the local clock or being administered via ntpq from localhost. This misconfiguration will also cause your ntpd to generate excessive numbers of queries, rather than syncing up and reducing the NTP polling interval from minpoll to maxpoll. [1] Remove that line and restart ntpd. > The rc.conf file has these lines: > ntpd_enable="YES" > ntpd_flags="-g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ > ntp.drift" > > What am I doing wrong that instead of having the time synced I see > more and more discrepancy. When I rebooted and started the service > 6 days ago there was about 20 seconds difference. Now it is well > over 30. Run: ntpq -c peers ...and you will be able to see the delay and offset from the NTP clocks you've configured in ntp.conf. -- -Chuck [1]: There are entire Linux distributions which have shipped with ntp.conf configured to prevent ntpd from working properly. These client machines end up querying NTP servers in the pool.ntp.org service repeatedly at minpoll (or even faster, if iburst is specified) because they discard the responses given to them, and therefore constitute an abuse of NTP server resources.