NTP synchronised problem in our Centos 7.6 node


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers NTP synchronised problem in our Centos 7.6 node
# 1  
Old 09-21-2019
NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:-

Code:
Note : for security reason i didn't mention hostnames and ips.
==============================================================================

[root@ ~]# ntpstat
unsynchronised
   polling server every 1024 s
Ntpstat showing unsynchronised.

==============================================================================

[root@~]# systemctl status ntpd
- ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-04-04 15:00:51 UTC; 5 months 17 days ago
 Main PID: 8275 (ntpd)
    Tasks: 1
   Memory: 20.0K
==============================================================================

And all poller ntp servers are reaching through ntp port and no packet loss. 


[root@ ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
   node1               2 u   64 1024    7    1.362   -4.212   3.041
    node2             2 u   65 1024    7    1.752   -4.089   3.023
   node3              2 u   64 1024    7   25.469   -4.160   2.876
    node4            2 u   63 1024    7   25.666   -4.238   2.930
    node5            2 u   66 1024    7   45.907   -5.017   3.054
  node6              2 u   65 1024    7   45.905   -4.499   3.045

==============================================================================
NTptime is giving return code 5;
[root@~]# ntptime
ntp_gettime() returns code 5 (ERROR)
  time e1305f50.e00d7fc8  Sat, Sep 21 2019  8:35:28.875, (.875206994),
  maximum error 16000000 us, estimated error 16000000 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency 43.490 ppm, interval 1 s,
  maximum error 16000000 us, estimated error 16000000 us,
  status 0x2041 (PLL,UNSYNC,NANO),
  time constant 10, precision 0.001 us, tolerance 500 ppm,
[root@~]# date
Sat Sep 21 08:35:33 UTC 2019

==============================================================================

This is the alert we're getting every time but usually, it's getting a fix within 10mins 

OP5 alert is :- 
'Check NTP Status' on host 'hostname' has passed the WARNING threshold.

Service: Check NTP Status
Service Notes: 

Status : WARNING
Notification Comment: 

Additional info:  
Warning - NTPd Health is 50% with 6 peer(s).

Thresholds:  Health (20%


Kindly help on this to fix the issue.

Last edited by Neo; 09-22-2019 at 06:14 AM.. Reason: Code Tags Please See YT Video on this: https://youtu.be/4BuPvWJV__k
# 2  
Old 09-22-2019
Hmm.

When I run ntpstat .... after a refresh install, I get the following:

Code:
ubuntu:~# ntpstat
synchronised to NTP server (198.50.238.156) at stratum 3 
   time correct to within 30 ms
   polling server every 64 s

Perhaps just install ntpd again from scratch with a fresh /etc/ntp.conf file (saving your current one before, of course)?

FYI:

Code:
ubuntu:~#  ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 0.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000
 1.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000
 2.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000
 3.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000
 ntp.ubuntu.com  .POOL.          16 p    -   64    0    0.000    0.000   0.000
+159.203.82.102  104.236.116.147  3 u   15   64  377   24.997    0.908   3.820
+63-225-179-23.t 204.123.2.5      2 u    8   64  377   60.418    0.388   3.881
#ntp.wdc1.us.lea 130.133.1.10     2 u    7   64  377   28.500    2.689   3.502
*november.system 139.78.97.128    2 u   12   64  377   32.184    0.602   3.532
#208.67.72.50    128.227.205.3    2 u    8   64  377   55.752   -3.484   3.526
+195.21.137.209  195.66.241.10    2 u    6   64  377   30.329    1.189   3.308
#ntpool1.603.new 204.9.54.119     2 u    6   64  377   13.701    2.929   3.439
+time.richiemcin 209.51.161.238   2 u    9   64  357   23.790    0.529   2.967
+darwin.kenyonra 127.67.113.92    2 u   14   64  357   41.307   -0.001   3.179
+static-72-87-88 128.59.0.245     2 u    4   64  377   31.062   -1.641   3.249
+y.ns.gin.ntt.ne 249.224.99.213   2 u   66   64  377    6.620    1.957   4.289
#alphyn.canonica 17.253.34.253    2 u   30   64  377   25.755   -1.800   3.689
+i.will.not.be.e 213.251.128.249  2 u    3   64  377   28.559   -2.690   3.311
+208.67.72.43    152.2.133.54     2 u    3   64  377   55.397   -1.380   3.396
+horp-bsd01.horp 152.2.133.54     2 u   14   64  377   28.801   -0.031   3.538
+lithium.constan 198.30.92.2      2 u   14   64  377   25.507   -2.083   3.563
+ns1.backplanedn 173.162.192.156  2 u   13   64  377   29.019    1.230   3.559
+time.nullrouten 216.218.254.202  2 u    8   64  377   49.467    3.116   3.677
+chilipepper.can 17.253.34.125    2 u   26   64  377   93.719    0.661   3.774
#neoknet.com     129.250.35.251   3 u    7   64  377   36.605    4.435  11.929

ubuntu:~# ntptime
ntp_gettime() returns code 0 (OK)
  time e1317a86.a7033a48  Sat, Sep 21 2019 23:43:50.652, (.652393818),
  maximum error 289516 us, estimated error 16 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset 0.000 us, frequency -15.952 ppm, interval 1 s,
  maximum error 289516 us, estimated error 16 us,
  status 0x2001 (PLL,NANO),
  time constant 3, precision 0.001 us, tolerance 500 ppm,

# 3  
Old 09-22-2019
OBTW, was able to reproduce, perhaps a similar error, by downloading the latest version of ntp manually and trying to install in a crude way:

Code:
ubuntu:/etc/init.d# ntptime
ntp_gettime() returns code 5 (ERROR)
  time e13182c8.b37ccc04  Sun, Sep 22 2019  0:19:04.701, (.701123517),
  maximum error 16000000 us, estimated error 16000000 us, TAI offset 37
ntp_adjtime() returns code 5 (ERROR)
  modes 0x0 (),
  offset 0.000 us, frequency 0.000 ppm, interval 1 s,
  maximum error 16000000 us, estimated error 16000000 us,
  status 0x2041 (PLL,UNSYNC,NANO),
  time constant 3, precision 1.000 us, tolerance 500 ppm,

This error happened when I tried to use the original directory, mixing the old install with the new install.

However, when restarted ntpd in a totally clean install directory, it worked fine.

Now running latest version:

Code:
ubuntu:/etc/init.d# ntpd --version
ntpd 4.2.8p13@1.3847 Sun Sep 22 05:03:19 UTC 2019 (1)

Reference: NTP Software Downloads
# 4  
Old 09-22-2019
This version we're using in our side.. Could please someone give solution for this issue
Code:
ntp-4.2.6p5-28.el7.centos.x86_64
ntpdate-4.2.6p5-28.el7.centos.x86_64

--- Post updated at 09:40 AM ---

Really thanks for your reply.. We're running ntp around 50 nodes.. it's difficult to reinstall in all. Can you tell why it's happening.

This version we're using in our side.. Could please someone give solution for this issue
Code:
ntp-4.2.6p5-28.el7.centos.x86_64
ntpdate-4.2.6p5-28.el7.centos.x86_64

# 5  
Old 09-22-2019
Your version of NTP was released in 2011, nearly a decade (8 years) ago:

Code:
[   ]	ntp-4.2.6p5-RC1.tar.gz	2011-10-18 19:33	4.0M	 
[   ]	ntp-4.2.6p5-RC1.tar.gz.md5	2011-10-18 19:33	57	 
[   ]	ntp-4.2.6p5-RC2.tar.gz	2011-11-30 22:19	4.0M	 
[   ]	ntp-4.2.6p5-RC2.tar.gz.md5	2011-11-30 22:19	57	 
[   ]	ntp-4.2.6p5-RC3.tar.gz	2011-12-08 21:22	4.0M	 
[   ]	ntp-4.2.6p5-RC3.tar.gz.md5	2011-12-08 21:22	57	 
[   ]	ntp-4.2.6p5.tar.gz	2011-12-24 18:52	4.0M	 
[   ]	ntp-4.2.6p5.tar.gz.md5	2011-12-24 18:52	53

For security and other reasons, you must upgrade to the latest version.

Your version of ntp is NOT SUPPORTED by anyone.

It is your responsibility to upgrade, not complain how many servers you have running with obsolete code (sorry to tell you directly, but it is true).

Reference: Index of /~ntp/ntp_spool/ntp4/ntp-4.2

You might want to check out this page of ntp vulnerabilities:

NTP : Products and vulnerabilities
# 6  
Old 09-22-2019
Thank you!!. sure. Let me upgrade and let you know. Hope this is the latest version : -ntpd 4.2.8p13@1.3847
# 7  
Old 09-22-2019
Quote:
Originally Posted by shanmugaraj
Thank you!!. sure. Let me upgrade and let you know. Hope this is the latest version : -ntpd 4.2.8p13@1.3847
Yes.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

GPS Clock Not Synchronised

Hi guys, I got some error on my application server mentioning that gps clock not sync to my db server. what is the command to check is my server is sync with the gps clock? appreciate if you guys can let me know how to troubleshoot this problem. Thanks (1 Reply)
Discussion started by: leecopper
1 Replies

2. AIX

NTP time problem

I got an ntp time problem on AIX server. os version is AIX7.1 OS LEVEL 7.1.0.0 i got below output,when i run the below command bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX 4 Dec 12:50:49 ntpdate: 3.4y transmit(xxxxxxxxx) receive(xxxxxxxxx) transmit(xxxxxxxx) receive(xxxxxxxxx)... (9 Replies)
Discussion started by: murali969
9 Replies

3. UNIX for Advanced & Expert Users

NTP Problem

Hello every one i want to setup a ntp on sco unix 5.0.6 and i don't have any time server how can i do this with local time (1 Reply)
Discussion started by: kaydream
1 Replies

4. Solaris

NTP problem.

Hi, I have edited the /etc/inet/ntp.conf file to point to a new time server. When I restart ntp on Solaris 10 using 'svcadm disable/enable ntp' it still points to the old ntp server when I run a 'ntpq -p'. Any ideas? Thanks. Sparcman (4 Replies)
Discussion started by: sparcman
4 Replies

5. Red Hat

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. # service ntpd stop Stopping ntpd: ... (0 Replies)
Discussion started by: uday123
0 Replies

6. AIX

NTP Client problem

Hello everybody! When I run command "ntpdate" the following error occures "ksh: ntpdate: 0403-006 Execute permission denied. " # oslevel -s 5300-08-06-0918 oslevel -r 5300-08 eny suggestion friends? :-) (3 Replies)
Discussion started by: wwwzviadi
3 Replies

7. UNIX for Dummies Questions & Answers

NTP problem

All - i tried to sysn the clock from our server to get the timing and the server IP has been added in the ntp.conf file and i have some problems here. if some1 help me to solve this problem. 1. i can ping server 2. i was unable to ntpq -p (time out, no response from remote server, it looks... (2 Replies)
Discussion started by: March_2007
2 Replies

8. Solaris

NTP Authen Problem

Dear All I'm solaris user . I need to setup NTP authentication for my office server but I have some question for ntp setting up. I need to know if i set authen NTP the client that doesn't set for authen key can sync time from authen ntp server or not ?? when i setup the authen at ntp server ... (1 Reply)
Discussion started by: goasutlor
1 Replies

9. HP-UX

NTP problem

Hi, I have a problem using NTP. We have a setup as following : client --> HP Server(NTP) --> DMZ server --> DMZ server --> Internet Only some clients and our HP server is using NTP, the others are using different software. Now I get an error every day : Oct 1 13:17:15 nlunx1n1 xntpd:... (4 Replies)
Discussion started by: davidg
4 Replies

10. Programming

i-node problem

First , thank you for reading the post. I Use Digital Unix 4.0F . I get an i-node number of a text file using stat() function . I want to read the file context following the i-node information . But I do not know how to read disk information accroding to i-node information . (1 Reply)
Discussion started by: chenhao_no1
1 Replies
Login or Register to Ask a Question