LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-11-2009, 10:03 AM   #1
Uday123
Member
 
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
NTP sync problem


Hi,

I have 4 machines and all are NTP configured with same ntp.conf file. But 3 machines are in sync with Time server and 4th machine is not contacting & sync with the NTP server. Please see the below details.

Code:
[root@LINUXSER01 ~]# service ntpd stop
Stopping ntpd:                                             [  OK  ]
[root@LINUXSER01 ~]# ntpdate -u NTPSERVER01
11 Nov 15:38:07 ntpdate[3010]: adjust time server 172.25.XX.XX offset -0.030428 sec
[root@LINUXSER01 ~]# service ntpd start
Starting ntpd:                                             [  OK  ]
[root@LINUXSER01 ~]# ntptime
ntp_gettime() returns code 5 (ERROR)
  time cea558ef.cbb0d000  Wed, Nov 11 2009 15:38:23.795, (.795667),
  maximum error 2064 us, estimated error 16 us
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency 0.000 ppm, interval 1 s,
  maximum error 2064 us, estimated error 16 us,
  status 0x40 (UNSYNC),
  time constant 0, precision 1.000 us, tolerance 512 ppm,
[root@LINUXSER01 ~]#
Output of ntpq -p command:

Code:
[root@LINUXSER01 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 NTPSERVER01 192.168.xxx.xxx  3 u   57   64    1    1.155  -151.64   0.002
 NTPSERVER02 192.168.xxx.xxx  3 u   56   64    1    1.245  -151.70   0.002
[root@LINUXSER01 ~]#
NTP configuration file : cat /etc/ntp.conf
Code:
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
server NTPSERVER01
server NTPSERVER02
fudge   127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
#log files
logconfig all
logfile /var/log/ntpd.log
ntpd log messages:
Code:
11 Nov 15:38:20 ntpd[3046]: system event 'event_restart' (0x01) status 'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010)
11 Nov 15:38:20 ntpd[3046]: peer 172.25.xx.xx event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014)
11 Nov 15:38:21 ntpd[3046]: peer 192.168.xx.xx event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014)
Please let me know if you need any other details to analyse the issue.
Please help me in resolving this issue.
 
Old 11-12-2009, 08:03 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Post the output of the command:
ntpq -c peer -c as -c rl

Until ntp "locks" onto a server the output of ntpq and ntptime will not show much info. Look at the output of ntpq -p does the reach value increment? It is an octal number and maxes out at 377.
 
Old 11-13-2009, 04:44 AM   #3
Uday123
Member
 
Registered: Nov 2005
Posts: 80

Original Poster
Rep: Reputation: 15
Out of the command:

[root@LINUXSER01 ~]# ntpq -c peer -c as -c rl
remote refid st t when poll reach delay offset jitter
==============================================================================
NTPSERVER01 192.168.xx.xx 3 u 49 64 17 1.208 -999.90 863.435
NTPSERVER02 192.168.xx.xx 3 u 20 64 17 0.977 -1716.6 679.998
NTPSERVER03 192.168.xx.xx 3 u 13 64 37 1.050 -60.861 1609.52
NTPSERVER04 192.168.xx.xx 3 u 43 64 17 1.041 -2181.2 1198.64

ind assID status conf reach auth condition last_event cnt
===========================================================
1 17236 9024 yes yes none reject reachable 2
2 17237 9024 yes yes none reject reachable 2
3 17238 9024 yes yes none reject reachable 2
4 17239 9024 yes yes none reject reachable 2
assID=0 status=c035 sync_alarm, sync_unspec, 3 events, event_clock_reset,
version="ntpd 4.2.2p1@1.1570-o Wed Sep 3 14:28:29 UTC 2008 (1)",
processor="x86_64", system="Linux/2.6.18-128.el5", leap=11, stratum=16,
precision=-19, rootdelay=0.000, rootdispersion=4.140, peer=0,
refid=STEP, reftime=00000000.00000000 Thu, Feb 7 2036 6:28:16.000,
poll=4, clock=cea7b685.c8f5f3e1 Fri, Nov 13 2009 10:42:13.785, state=4,
offset=0.000, frequency=0.000, jitter=17.737, noise=0.002,
stability=0.000, tai=0
[root@LINUXSER01 ~]#


Please check and help me to fix this issue.
 
Old 11-13-2009, 07:57 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Here is some good reading material.
http://www.eecis.udel.edu/~mills/ntp/html/debug.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP server not sync sebash00 Linux - General 6 04-04-2008 01:40 AM
NTP sync noir911 Linux - Server 1 03-29-2008 06:50 PM
NTP sync problem guillermo Linux - Hardware 1 11-19-2007 03:00 PM
NTP sync problem. makkays Linux - Networking 4 05-02-2007 04:20 PM
NTP Sync? carlosinfl Linux - Networking 12 04-13-2006 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration