Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.