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 ?
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.
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 ..
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:-
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)
Use ntpdate to step your server into line with any of them - pick a quiet time to do this.
Start your NTP client (ntpd or xntpd usually) to keep in sync with them.
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)
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)
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)
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)
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)