NTPSTAT shows clinet is Unsynchronised

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat NTPSTAT shows clinet is Unsynchronised
# 1  
Old 04-21-2017
NTPSTAT shows clinet is Unsynchronised

I am facing an issue of large offset coming from my GPS clock.
I am syncing RHEL 6.3 server by GPS clock through ntpd service. I have too servers of same type and both are syncing independently to the GPS Clock.

>ntpstat of server 1 gives,
Code:
Synchronised to unspecified at stratum 15
time correct to within 145 ms.

>ntpstat of server 2 gives,
Code:
Unsynchronised
polling server every 16 s

>ntpq -p of server 1 gives
Code:
Reach                Delay             offset                 Jitter
377                    2.644             14654.6            2060.24

>ntpq -p of server 2 gives,
Code:
Reach                Delay             offset                 Jitter
377                    2.424             9732.48            3131.24

Ping -c 25 server1 gives,
Code:
25 packets transmitted, 25 received, 0% loss, time 24026 ms
rtt min/avg/max/mdev = 1.356/1.860/2.530/0.325 ms

Ping -c 25 server2 gives,
Code:
25 packets transmitted, 25 received, 0% loss, time 24002 ms
rtt min/avg/max/mdev = 1.428/1.969/2.525/0.325 ms

Checked and found that ntp.conf file for identical for both the server.

Drift for server 1 is,
Code:
428.51

Drift for server 2 is,
Code:
456.592

After 15 mins when i check the same parameter, I found the following.
>ntpq -p of server 1 gives
Code:
Reach                Delay             offset                 Jitter
377                    2.917            30381.8              3489.88

>ntpq -p of server 2 gives,
Code:
Reach                Delay             offset                 Jitter
377                    2.729             28423.7            1746.90

>ntpstat of server 1 gives,
Code:
Synchronised to unspecified at stratum 15
time correct to within 165 ms.

>ntpstat of server 2 gives,
Code:
Unsynchronised
polling server every 16 s

I also found that there is a difference of 50 seconds between Linux system clock and GPS time in server 1 and 2.
I have run ntpdate -d (GPS Clock IP) and stop the NTPD service.
Run,
>hwclock -S in RHEL system and restarted NTPD service hoping that it will decrease the time between source and synch and NTPD will be able to adjust the time now.But unfortunately offset and jitter in increasing and RHEL servers' time lag increases w.r.t time.

I am finding difficult to understand the above happenings.Can somebody suggest how to troubleshoot the issue?
Moderator's Comments:
Mod Comment As you have been told at least five times before, CODE tags are required by forum rules when displaying sample input, sample output, and code segments. Using CODE tags is not hard and makes it possible for readers of your posts to distinguish between <tab>s and <space>s and is needed to keep multiple adjacent whitespace characters to be coalesced into a single <space>. Your refusal to properly format your posts has resulted in your account being set to read only mode for a day. Continued refusal to properly format your posts may result in your account being banned permanently.

Use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the CODE tag in the editing menu. (You can also type code tags [code] and [/code] by hand.)



Avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Last edited by Don Cragun; 04-21-2017 at 06:48 PM.. Reason: Add CODE and ICODE tags.
# 2  
Old 04-21-2017
You should always try to use at least three sources for NTP. The NTP daemon running on your system will throw away the time that has the highest drift and then average the remaining times to set the local system time. This will eliminate any one source that has drifted and reduce the risk of a slow network response.

In short, try using three sources and see if that fixes your problem.
# 3  
Old 04-21-2017
OK.But what is the primary reason for this?Can it be identified from the input that I have provided.
# 4  
Old 04-21-2017
It looks like there is something wrong with the time that is being served by server2 and it's configuration. This would be solved by having 3 credible sources.
# 5  
Old 04-21-2017
If ntpq -p shows high and growing offsets, then usually it means that the clock control in the kernel does not work.
So it looks that both server1 and server2 are suffering.
But I wonder why ntpstat on server1 looks okay.?
Are server1 and server2 virtual? I have seen this on VMware ESX guests: the clock steppers are ignored, and the clock needs to be set on the VMware ESX host.
# 6  
Old 04-24-2017
No.It is not VM. The machines are physical machine where RHEL 5.9 is installed.

Last edited by Anjan Ganguly; 04-24-2017 at 07:57 AM..
# 7  
Old 05-08-2017
After a lot of brainstorming and consulting with some NTP expert I found the following.
Code:
 2 May 17:00:28 ntpd[2178]: synchronized to 172.31.64.10, stratum 1
 2 May 17:36:39 ntpd[2178]: time reset -0.313640 s
 2 May 17:37:13 ntpd[2178]: synchronized to 172.31.64.10, stratum 1
 2 May 17:52:12 ntpd[2178]: time reset +0.491725 s
 2 May 17:52:31 ntpd[2178]: synchronized to 172.31.64.10, stratum 1
 2 May 18:08:34 ntpd[2178]: time reset +0.283749 s
 2 May 18:09:49 ntpd[2178]: synchronized to 172.31.64.10, stratum 1
 2 May 18:50:31 ntpd[2178]: time reset -0.312960 s
 2 May 18:51:34 ntpd[2178]: synchronized to 172.31.64.10, stratum 1
 2 May 19:06:30 ntpd[2178]: time reset +0.481487 s

NTP expert comment:
Code:
This means whenever the system time is synchronized, a few minutes late
the time offset is again so large (> 128 ms) that ntpd is unable to
correct it smoothly. So it steps the system time ("time reset") and
restarts from scratch.

So this looks like the timekeeping in your Linux system is broken, i.e.
the system time increases not continuously at the same rate.

NTP is unable to fix some broken timekeeping. Only if the timekeeping is
stable, NTP can determine the current offset, the time drift, and adjust
the system time smoothly so that the time offset is continuously as
small as possible.

I don't thing there's a problem with the package exchange. It's just the
Linux system time which has too much jitter, i.e. changes quickly from
increasing too faster to increasing too slow. You need to fix that
first, otherwise you are out of luck.

Now the question is How to fix the "BROKEN TIMEKEEPING OF LINUX System"?
Can some body help me out?

Last edited by Corona688; 05-08-2017 at 12:38 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SuSE

Suse 10 shows only 1 cpu

Hi im using vmware esxi 5.1 and my guest is suse 10SP3 64bit at start it was configured with only 1 cpu. i added 1 more cpu. when i run this command: lscpu, it shows only 1 cpu installed how can i fix that? thanks! (4 Replies)
Discussion started by: guy3145
4 Replies

2. UNIX for Dummies Questions & Answers

Ls command shows : NOT A DIRECTORY

I am working on ksh shell. In some folders if i write ls *MYFILE* > NEWFILE then it shows error on few files as <filename>/:NOT A DIRECTORY i have around 9 thousand files in this folder and out of them around 61 are showing error. However, when i created softlink of that directory and... (3 Replies)
Discussion started by: JYOTIHA
3 Replies

3. UNIX for Dummies Questions & Answers

File shows in ls but cannot be accessed

I can do an ls -l CD* and see the following CDTEST userA RW RW R and I an logged on as userA. But if I do an ls -l the file does not appear. If I do a vi CDTEST it tries to create a new file named CDTEST. If I do a mv or rm I get the message no file of name CDTEST found. Any idea what is going on.... (3 Replies)
Discussion started by: LeeT
3 Replies

4. UNIX for Dummies Questions & Answers

Diff shows only the same content

Hi All, Sorry this might be real dummy question. I have been searching from internet and diff manual, but not found any answer . By using diff command, how do we display the same content only (from both 2 files in 2 coloumns). Here is the diff -y output http://i39.tinypic.com/fa8snr.jpg ... (2 Replies)
Discussion started by: wilsonSurya
2 Replies

5. Shell Programming and Scripting

Add column that shows how old a file is

I'd like to create a report that is sent to me via email. It's basically just an ls -l of a directory. However, I'd like to add a column to the end of each file listing that is a numeral - telling me at a glance how old the file is. For example, instead of this: $ ls -l total 9830796... (10 Replies)
Discussion started by: cdunavent
10 Replies

6. UNIX for Dummies Questions & Answers

ls -l shows a @ after permissions, why?

As in >ls -l *.name -rw-r--r-- 1 c2s ... file0.name -rw-r--r-- 1 c2s ... file1.name -rw-r--r--@ 1 c2s ... file2.name -rw-r--r--@ 1 c2s ... file3.name As the example shows, it only happens for some files. What does the @ mean? The @ is not described in the man page for ls (3 Replies)
Discussion started by: c2s
3 Replies

7. UNIX for Advanced & Expert Users

du -k shows different size in two nodes

After rcp -rp from remote host, using du -k to verify the file size but total file size have different size. Check on individual file, file size is correct. How can I confirm on the file size after ftp? Pls advise. Thank you. (15 Replies)
Discussion started by: KhawHL
15 Replies

8. AIX

w shows phantom user

Hi When i use "w" command, It list some users with "-" command. That means these use already logout,but still in the system somewhere, no process but list under the "w" and "who" command.How can i get rid of these user. Can anybody help me out.thanks a lot xiko (2 Replies)
Discussion started by: xiko
2 Replies

9. Solaris

Monitor shows out of frequency

:confused: :( I had a Intel P4 2.6 HT pc with 256DDRAM. I installed solaris 10 with most of the default configuration by the system...now when i boot the system with solaris 10, after the boot screen is past and desktop login screen is about to appears the monitor goes down and displays "OUT OF... (0 Replies)
Discussion started by: sunilpatwal
0 Replies

10. UNIX for Dummies Questions & Answers

ls shows directories only? how

1) how to show directories in ls command? i went to man ls, and saw this -d flag but doesnt help.. 2) say we put this alias ls='ls -F' in .profile.. how do we let inform .profile that there is a new entry besides restarting the system. thanks. my shell is KSH. (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question