From owner-freebsd-questions@FreeBSD.ORG Thu May 31 23:02:49 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4243216A41F for ; Thu, 31 May 2007 23:02:49 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.237]) by mx1.freebsd.org (Postfix) with ESMTP id 01B3413C45E for ; Thu, 31 May 2007 23:02:48 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so290170nzn for ; Thu, 31 May 2007 16:02:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=C/JHKiEactm2TqtW1BfrCXroOCw8OciObQaZH/2LOv/nf7tBaQJEUJMEqgqasJMAv48v2iUN12uAMXL54IFbdplVbhNLYYfan3GE7yXlTXaEAZbmHf3PLUK9XUZCzqRRtGis89PVT6L/t/a3K81d9A3Yb4zcZfSBIacRLRdN5Ps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ldTbEQg6his7WfE1Ez7jiQqK7tUxN+w/3FOuqqN/aBUBSUzA9CCoNiY6Kq4TEwlh6GAA7hbaOPv11szn6Q2XYFDX0yRkIi2VKw068tbwyga3IJ1rCuCiac65cx5P/zaCrmCxHF0lZoAw+1dmMAsk2feECtggHe+vu8VIvnLfxJ0= Received: by 10.115.49.16 with SMTP id b16mr1077121wak.1180652567742; Thu, 31 May 2007 16:02:47 -0700 (PDT) Received: by 10.114.37.10 with HTTP; Thu, 31 May 2007 16:02:47 -0700 (PDT) Message-ID: <8d23ec860705311602t6e04362fw2a8926c263cdb1c9@mail.gmail.com> Date: Thu, 31 May 2007 19:02:47 -0400 From: Schiz0 To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: NTPd not syncing time correctly - No errors either 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, 31 May 2007 23:02:49 -0000 Hey, I'm running a dev server in VMWare (On a WindowsXP host) just to screw around with some things. Running FreeBSD 6.2-STABLE. VMWare causes the clock in FreeBSD to be a inaccurate; it loses about 2 hours every 24 hours. I read the handbook entry on the NTP daemon which automatically syncs the clock. Previously I was using cron to run ntpdate every 2 hours. I set NTPd to update using NTP.org's pool servers. Yet it isn't syncing. I setup NTPd last night. I checked about 20 minutes ago and the time was off by 2 hours. I shutdown ntpd and ran ntpdate manually, and it updated just fine. My logs have only this: /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: ntpd 4.2.0-a Mon May 28 23:49:40 EDT 2007 (1) /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: no IPv6 interfaces found /var/log/messages:May 31 16:41:50 Jupiter ntpd[489]: ntpd exiting on signal 15 The first two came up as soon as I started NTPd. The third one was when I stopped it. I rebuild world without IPv6 support. I tried adding the -4 flag to ntpd_flags in /etc/rc.conf as it says in the man page, but NTPd reports that -4 doesn't exist. While NTPd is running, I ran "ntpq -np" to display the peers. It did output the four servers from pool.ntp.org, so it's connecting fine. My /etc/rc.conf contains: ntpd_enable="YES" ntpd_sync_on_start="YES" ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift -g" Anyone know how I can fix this? Or should I just go back to running ntpdate with cron?