From owner-freebsd-questions Thu Nov 9 9: 9:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 00FEE37B479 for ; Thu, 9 Nov 2000 09:09:14 -0800 (PST) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G3R00K01OYKZE@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Thu, 9 Nov 2000 09:08:46 -0800 (PST) Received: from tagalong ([165.107.42.185]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G3R00KECOYCJ7@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Thu, 09 Nov 2000 09:08:36 -0800 (PST) Date: Thu, 09 Nov 2000 09:08:54 -0800 From: Drew Tomlinson Subject: RE: ntpd "Synchronization Lost" Errors In-reply-to: <20001109103846.A18298@dan.emsphone.com> To: 'Dan Nelson' Cc: "'FreeBSD Questions (E-mail)'" Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Dan Nelson [mailto:dnelson@emsphone.com] > Sent: Thursday, November 09, 2000 8:39 AM > To: Drew Tomlinson > Cc: 'FreeBSD Questions (E-mail)' > Subject: Re: ntpd "Synchronization Lost" Errors > > > In the last episode (Nov 09), Drew Tomlinson said: > > From: Dan Nelson [mailto:dnelson@emsphone.com] > > > What's more worrying is the fact that ntp is having to > jump time by > > > over .1 seconds every few hours. Depending on exactly > how recently > > > you installed FreeBSD, ntp might still be trying to calculate your > > > clock's drift. What does "ntpdc -c kerninfo" print? > > > > I'm a newbie and just found out about ntp in Greg's book. So I > > attempted to set it up and it's been running for only a few days. > > > > I'm betting this is a problem, huh? > > > > 101 Blacksheep# ntpdc -c kerninfo > > ntpdc: read: Connection refused > > That means that ntp isn't running.. > > > So I assume this means that the NTP server I am pointing isn't > > accepting my connection? Here is my ntp.conf: > > > > 106 Blacksheep# cat ntp.conf > > server 165.227.1.1 prefer #ns.scruz.net > (Santa Cruz, CA) > > server 63.192.96.2 #ntp1.mainecoon.com > (Quincy, CA) > > server 63.192.96.3 #ntp2.mainecoon.com > (Quincy, CA) > > server 132.239.254.49 #ntp.ucsd.edu (San > Diego, CA) > > > > driftfile /etc/ntp.drift > > > > broadcast 192.168.0.255 > > > > So then I try an update manually using ntpdate and it seems to work: > > > > 108 Blacksheep# ntpdate ns.scruz.net > > 9 Nov 08:11:09 ntpdate[1438]: step time server 165.227.1.1 > offset -32.772205 sec > > Yow. an offset of 32 seconds is a whole lot. What is the contents of > /etc/ntp.drift? If it's over 500 or less than -500, ntpd will have a > hard time keeping your clock in synch because it drifts too fast. 145 Blacksheep# cat ntp.drift -500.000 > I'd set up a cron job that fires every hour and runs > "cat /etc/ntp.drift >> /var/log/ntp.drift", and check that log after a > day or so so see what the trend is. So is the ntp.drift file recalculated after every update? I haven't gotten to cron jobs yet but I guess there's no time like the present. :) I edited my ntp.conf file to point to a different server and restarted ntpd. I received the following messages in my log file: Nov 9 08:59:32 blacksheep ntpd[1546]: ntpd 4.0.99b Mon Nov 6 00:47:01 PST 2000 (1) Nov 9 08:59:32 blacksheep ntpd[1546]: using kernel phase-lock loop 2040 Nov 9 08:59:32 blacksheep ntpd[1546]: frequency initialized -500.000 from /etc/ ntp.drift Nov 9 08:59:32 blacksheep ntpd[1546]: using kernel phase-lock loop 2041 I don't know exactly what they mean but I didn't get them before. Now I get the following with ntpdc: 152 Blacksheep# ntpdc -c kerninfo pll offset: -0.00973327 s pll frequency: -500.000 ppm maximum error: 0.536427 s estimated error: 0.006899 s status: 2001 pll nano pll time constant: 6 precision: 1e-09 s frequency tolerance: 496 ppm So I assume the new server is accepting my requests? Should I clear out the drift file and restart everything? If so, what are the steps? Thanks again for your help. I really appreciate it!!! Drew > > -- > Dan Nelson > dnelson@emsphone.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message