NTP high offset | no servers can be used, exiting


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers NTP high offset | no servers can be used, exiting
# 1  
Old 07-29-2013
NTP high offset | no servers can be used, exiting

sudo /usr/sbin/ntpdate -q nxdbsr01.paramount.com
Code:
server 192.168.148.165, stratum 2, offset 45.247135, delay 0.09427
29 Jul 17:49:48 ntpdate[11404]: step time server 192.168.148.165 offset 45.247135 sec

sudo /usr/sbin/ntpdate -d nxdbsr01.paramount.com

Code:
29 Jul 17:49:54 ntpdate[11405]: ntpdate 4.2.0a@1.1190-r Thu May 13 04:29:07 EDT 2010 (1)
Looking for host nxdbsr01.paramount.com and service ntp
host found : nxdbsr01.paramount.com
transmit(192.168.148.165)
receive(192.168.148.165)
transmit(192.168.148.165)
receive(192.168.148.165)
transmit(192.168.148.165)
receive(192.168.148.165)
transmit(192.168.148.165)
receive(192.168.148.165)
transmit(192.168.148.165)
server 192.168.148.165, port 123
stratum 2, precision -20, leap 00, trust 000
refid [192.168.148.165], delay 0.09438, dispersion 0.00768
transmitted 4, in filter 4
reference time:    d5a18991.35bf5946  Mon, Jul 29 2013 17:38:41.209
originate timestamp: d5a18c60.e4c42635  Mon, Jul 29 2013 17:50:40.893
transmit timestamp:  d5a18c32.e169c23b  Mon, Jul 29 2013 17:49:54.880
filter delay:  0.09541  0.09489  0.09438  0.09535
         0.00000  0.00000  0.00000  0.00000
filter offset: 45.95513 45.96297 45.97070 45.97821
         0.000000 0.000000 0.000000 0.000000
delay 0.09438, dispersion 0.00768
offset 45.970707

29 Jul 17:49:54 ntpdate[11405]: step time server 192.168.148.165 offset 45.970707 sec

sudo /usr/sbin/ntpdate -U nxdbsr01.paramount.com

Code:
29 Jul 17:50:01 ntpdate[11409]: no servers can be used, exiting

sudo /usr/sbin/ntpq -pn
Code:
   remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.148.165 128.138.141.172  2 u   31   64  377   69.683  33347.4 19119.3
 10.40.143.51    69.25.96.13      2 u   26   64  377    0.350  46917.9 29341.6
 10.40.143.52    69.25.96.13      2 u   28   64  377    0.342  14097.4 19138.5
 192.168.148.40  129.6.15.29      2 u   21   64  377   69.682  7680.91 23931.3
*127.127.1.0     LOCAL(0)        10 l   26   64  377    0.000    0.000   0.001

cat /etc/ntp.conf:

Code:
# restricted by default
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# permit access from loopback interface
restrict 127.0.0.1
restrict -6 ::1

# time servers
server nxdbsr01.paramount.com
server nxinfp02.paramount.com
server nxinfp03.paramount.com
server nxinfr04.paramount.com

# local clock
server 127.127.1.0
fudge 127.127.1.0 stratum 10

# drift file
driftfile /var/lib/ntp/drift

sudo /usr/bin/ntpstat && echo $?
Code:
sudo /usr/bin/ntpstat && echo $?
synchronised to local net at stratum 11
   time correct to within 75 ms
   polling server every 64 s
0

I am facing this frequently on many of my production servers in my enviroment ..

what could be the prob. ? how could I get this resolved ?

Last edited by stunn3r; 07-29-2013 at 10:10 PM..
# 2  
Old 07-30-2013
Sometimes an answer is turning off the local clock (127.127.1.0). You might also want to look at the "tinker panic" option.
# 3  
Old 07-30-2013
Quote:
Originally Posted by cjcox
Sometimes an answer is turning off the local clock (127.127.1.0). You might also want to look at the "tinker panic" option.
Honestly speaking, I never turned off local clock .. how to do that ? and what would be the impact of doing this ??

I am reading about tinker panic ..
# 4  
Old 07-30-2013
The 4 peer servers have too different times. Please get them fixed!
I think the offset columns in ntpq command differ too much for stratum 2 peers, so it falls back to the stratum 10 local clock.
Deleting the local clock 127.127.0.1 in ntp.conf would be a bad work-around.
# 5  
Old 07-31-2013
Quote:
Originally Posted by MadeInGermany
The 4 peer servers have too different times. Please get them fixed!
I think the offset columns in ntpq command differ too much for stratum 2 peers, so it falls back to the stratum 10 local clock.
Deleting the local clock 127.127.0.1 in ntp.conf would be a bad work-around.
I'll look into it today when I reach office .. and I am not much aware what stratum is, will read about it too ..

any suggestions to resolve this ? OR any links to read? Please dont point me to that article by RHN, that is not helping me ..
# 6  
Old 08-01-2013
Stratum is the "distance" (number of hops) from the reference clock.
The lower the stratum, the closer it is to the reference clock.
# 7  
Old 08-01-2013
I think that you would be far better getting the time sources that you will be relying on into step first, else you will never know where you are.

Imagine that you get your time from NTPserver1 and that has no connection to NTPserver2 and they drift apart. Now you will need to consider which is the correct one and which clients refer to which. Worse still, if your NTPserver1 drops and you automatically detect and use the time from NTPserver2, you could see a dramatic and unplanned time step, perhaps even moving the clock backwards by several minutes and that could be devastating to any applications of schedulers that rely on accurate time.

Basically, you need to:-
  1. Get your time servers agreeing on what your company standard time is first and keeping in sync with each other (and perhaps an internet or radio source)
  2. Use ntpdate to step your server into line with any of them - pick a quiet time to do this.
  3. Start your NTP client (ntpd or xntpd usually) to keep in sync with them.


I hope that this helps.


Robin
Liverpool/Blackburn
UK
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

High availability of a process between two Linux servers

Hello, I would like to create a script that will maintain HA/failover of a process between two servers. I wanted to send a continuous heartbeat message through a script to another server when everything is working fine, if a process has gone down then the same message should be sent another... (4 Replies)
Discussion started by: Mahesh_RPM
4 Replies

2. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

3. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies

4. Solaris

Client does not sync date with ntp servers

We had a network problem a couple of days before that caused 1 interface to down and up. But today I have noticed that our date is wrong, our system have 4 servers and the other 3 are OK. I used <date> command, the result is: Fri Jan 2 17:57:55 ICT 1970 I have tried set date to be the same as... (3 Replies)
Discussion started by: salvation3103
3 Replies

5. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

6. Solaris

NTP client offset

How to add offset to NTP client so that, for eg., clock is -20 seconds? (2 Replies)
Discussion started by: orange47
2 Replies

7. AIX

Configure one host against two ntp servers for redundancy

Dears all is it possible to have two NTP servers in one host ? how i can configure them . please advice (5 Replies)
Discussion started by: thecobra151
5 Replies

8. UNIX for Dummies Questions & Answers

How to setup NTP on unix and linux servers?

I have a hostname/ip of our network time server. What are the steps to take to set each server up to synchronize the clocks? Thanks (4 Replies)
Discussion started by: ChadKam
4 Replies

9. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies
Login or Register to Ask a Question