From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chris Los Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Troubleshooting NTP time synchronization Date: Fri, 02 May 2003 14:49:28 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1051901383 13663 80.91.224.249 (2 May 2003 18:49:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 18:49:43 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri May 02 20:49:41 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19Bfag-0003VA-00 for ; Fri, 02 May 2003 20:49:03 +0200 Original-Received: (qmail 10543 invoked by uid 5); 2 May 2003 18:50:05 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 10534 invoked by uid 49493); 2 May 2003 18:50:04 -0000 Original-Received: from clos@trentu.ca by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.1/5.0):. Processed in 0.891556 secs); 02 May 2003 18:50:04 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 2 May 2003 18:50:03 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE900CJ0WBAR8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 02 May 2003 14:50:02 -0400 (EDT) Original-Received: from mx3.trentu.ca (mx3.trentu.ca [192.75.12.4]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HE90062BWAZOZ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 02 May 2003 14:49:47 -0400 (EDT) Original-Received: (qmail 21419 invoked by uid 504); Fri, 02 May 2003 18:49:46 +0000 Original-Received: from clos@trentu.ca by mx3.trentu.ca by uid 501 with qmail-scanner-1.14 (fsecure: 4.15/4370/2003-04-29/2003-04-29. 2003-04-29/ Clear:. Processed in 0.283024 secs); Fri, 02 May 2003 18:49:46 +0000 Original-Received: from gwmail.trentu.ca (192.75.12.64) by mx3.trentu.ca with SMTP; Fri, 02 May 2003 18:49:46 +0000 Original-Received: from TRENTDOM-MTA by gwmail.trentu.ca with Novell_GroupWise; Fri, 02 May 2003 14:49:46 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Novell GroupWise Internet Agent 6.0.3 Content-Disposition: inline X-Qmail-Scanner-Mail-From: clos@trentu.ca via mx3.trentu.ca X-Qmail-Scanner: 1.14 (Clear:. Processed in 0.283024 secs) Xref: main.gmane.org gmane.os.tru64.managers:4117 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4117 Thanks to all who replied: Here are my replies: From: "Medaglia, Chris" To: 'Chris Los' Date: 4/30/03 1:47PM Subject: RE: Troubleshooting NTP time synchronization Do you use ntpq to check to see if they are actually synching to the time servers? From: Mike Iglesias To: Chris Los Date: 4/30/03 2:02PM Subject: Re: Troubleshooting NTP time synchronization=20 We've never seen problems with ntp on our 4.0x systems, but there are problems with RH 7.2/7.3 with the newer kernels. RH changed the MHZ kernel parameter from 100 to 512, and the newer kernels cannot keep time worth a damn. A bug report was filed with RH, although I cannot remember the bug number right now. As far as I know they never did anything about it. I ended up rebuilding the RH 7.2 kernel with MHZ set to 100 and that fixed my problems. Mike From: "Deiss, Mark" To: 'Chris Los' Date: 5/1/03 5:14AM Subject: RE: Troubleshooting NTP time synchronization 4.0F... ack... no longer an actively supported version. Point patches are hit-an miss and no more cluster patches from Compaq. Hope you are running = at at least kit 7. You will also want to keep an eye on patches in the 5.1 = tree as to what they are fixing. Security corrections in the supported versions are not always made available for the older Tru64 versions - so you may = have to come up with your own corrections.=20 I am going to guess that you may have some servers that are treating the 4 minute discrepancy as being too long to sync up against their stratum resource (even though Tru64's default is suppose to be 16 minutes before xntp coughs). The ntp client daemon will not permit time syncronization if the time differential is too large. In cases like this, you may need to force the ntp sync by temporarily turning off your ntp/xntp daemon and manually running something like: /usr/bin/ntp -s -f reference_clock_hostname Once you have the errant system forced to correct time, turn your ntp/xntp daemon back on. Then you can run a job every N minutes off your cron scheduler that reports to some log file, how badly things are drifting = away from your time standard 00 * * * * /usr/bin/ntp -v reference_clock_hostname >> /some_log_file Cannot stress enough the importance of installing the Compaq point = patches. We had recent situation with a bunch of 5.1A servers running at kit 3 with some point patches. One box was consistently running it's scheduler jobs = off by one hour. Lot of blank staring at the scheduler and a lot of "what the ....". Installed kit 4 along with point patches, and problem has gone = away. As far as overall monitoring, you may want to check http://ftp.deadcat.net for ntp related checks. These widgets are designed to work with the Big Brother package (www.bb4.com) which you may also want to consider. Even if you do not want to pursue the Big Brother package, these widgets tend to support multiple vendor platforms and would provide a template for you to create your own variants. The widgets are predominately shell scripts and sometimes Perl procedures. Probably the best part of the Big Brother = package is the support list community that is geared specifically to system monitoring issues.=20 Here's my original question: We're seeing time discrepencys of up to 4 minutes in a few of our Unix =3D boxes and are trying to troubleshoot the cause. All our unix servers get = =3D their time from the same 2 local primary NTP servers. I'm wondering about = =3D the best way to go about troubleshooting the discrepency and also if there = =3D are any free tools out there that might assist in this exercise and =3D ongoing monitoring of time for all our servers from a single point of =3D management. We are currently running a mix of Tru64 v4.0F and RH Linux = 7.x. =3D TIA, clos@trentu.ca=20