From owner-freebsd-questions@FreeBSD.ORG Thu Jul 13 20:26:05 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 9783816A4DD for ; Thu, 13 Jul 2006 20:26:05 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id E70A243D45 for ; Thu, 13 Jul 2006 20:26:04 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: by nf-out-0910.google.com with SMTP id y25so355716nfb for ; Thu, 13 Jul 2006 13:26:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Hk1smZHp2e4rLfWJ6c4qgUDynbotsYkIe8Pn3UH2AdiFbSni0FJlKyA3sRoitWRITOBQCjF/RHlu+8rqKYfMgggnc05edfz1caQk3/wpafkMOgnisqfqceCVnP9CTntckrkSQ33lrt6YIKZdgkLqpz6gA3Jqq34M+bhbSgSPzPE= Received: by 10.48.142.14 with SMTP id p14mr1290414nfd; Thu, 13 Jul 2006 13:26:02 -0700 (PDT) Received: by 10.48.210.5 with HTTP; Thu, 13 Jul 2006 13:26:02 -0700 (PDT) Message-ID: <54db43990607131326p28841f4ej76384a2d56535cb3@mail.gmail.com> Date: Thu, 13 Jul 2006 16:26:02 -0400 From: "Bob Johnson" To: "Jean-Paul Natola" In-Reply-To: <3A85D7EF44E1C744BF6434691F5659E997546E@www.fcimail.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3A85D7EF44E1C744BF6434691F5659E997546E@www.fcimail.org> Cc: freebsd-questions@freebsd.org Subject: Re: TIME loss 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: Thu, 13 Jul 2006 20:26:05 -0000 On 7/13/06, Jean-Paul Natola wrote: > Hi everyone, > > I have been trying to figure this one out for a couple of days, but no can > do. > > My clock on my bsd box currently 19 minutes ahead of the real world. > > I have it set to query my w2k box as the time server. > > I do have the ntpd running, > > So I am not sure how to adjust I tried this > > milter# ntpdate -q 192.168.1.3 > Looking for host 192.168.1.3 and service ntp > host found : fci2003.fci > server 192.168.1.3, stratum 2, offset -1120.152027, delay 0.03365 > 13 Jul 14:30:19 ntpdate[79951]: step time server 192.168.1.3 offset > -1120.152027 sec > > But the longer the machine stays up (142 days ) the more time the clock > loses, > > Aside from rebooting , is there any way to fix this? > > It doesn't really make sense to run ntpdate if ntpd is already running. ntpdate runs once, sets the clock, and then exists. ntpd runs continuously and keeps the clock synchronized to the server, but you must have the config file set up correctly. Do you have a line like server 192.168.1.3 in /etc/ntp.conf? You might also want to make sure rc.conf includes: ntpd_enable="YES" ntpd_flags="-g -p /var/run/ntpd.pid" The -g option lets it do a single large correction when it first starts, similar to ntpdate. If ntpd is running, then ntpq -p will tell you what peers it thinks it is trying to synchronize to, and what the status is. If it shows an asterisk (*) next to one of the peers, it is synchronized to that one. In your case, it will be a list of one. It takes a few minutes to synch after first starting up.