IPTABLES is disabled on my server. I have commented the below 2 entry for
#server 127.127.1.0
#fudge 127.127.1.0 stratum 10
ran ntpdate -u 0.pool.ntp.org
service ntpd restart
observing if it works fine now
Main Topics
Browse All TopicsHi
I am trying to setup NTP to keep my servers time uptodate in sync with some global time server but ntp fails to keep the server time upto date.
I have also read question thread http://www.experts-exchang
I do
ntpdate -u 0.pool.ntp.org
to update the servers current time and than starts ntp daemon
service ntpd start
now if i check after an hour finds that servers time is 1/2 hour behind the time server.
if do
ntpq -p
it returns :
remote refid st t when poll reach delay offset jitter
==========================
ntp2.Housing.Be 128.32.206.54 2 u 23 64 377 37.694 168797. 92035.7
mail.honeycomb. 204.246.77.77 3 u 20 64 377 32.837 199407. 118785.
host66.205.237. 132.246.168.148 3 u 22 64 377 37.205 198493. 117393.
beatnik.spiffie 67.128.71.65 3 u 25 64 377 35.524 104670. 59462.4
splenda.rustyte 173.14.47.149 2 u 18 64 377 49.730 107459. 60938.8
lime8.adamantsy 72.18.205.156 3 u 24 64 377 18.503 168752. 91608.7
mighty.poclabs. 192.43.244.18 2 u 22 64 377 11.150 137867. 69636.6
*LOCAL(0) .LOCL. 10 l 13 64 377 0.000 0.000 0.001
I am working on CentOS 5 (Final)
NTP package: ntp-4.2.2p1-9.el5.centos.2
Please suggest possible solution.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Test after 5 mins of restart ntpd:
Problem is still same:
tail /var/log/messages
Oct 8 16:28:12 server1 ntpd[547]: ntpd exiting on signal 15
Oct 8 16:28:12 server1 ntpd[4476]: ntpd 4.2.2p1@1.1570-o Tue May 19 13:58:05 UTC 2009 (1)
Oct 8 16:28:12 server1 ntpd[4477]: precision = 1.000 usec
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface wildcard, ::#123 Disabled
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface lo, ::1#123 Enabled
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface eth1, fe80::20c:29ff:fe28:dabf#1
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface lo, 127.0.0.1#123 Enabled
Oct 8 16:28:12 server1 ntpd[4477]: Listening on interface eth1, 10.13.0.241#123 Enabled
Oct 8 16:28:12 server1 ntpd[4477]: kernel time sync status 0040
Oct 8 16:28:13 server1 ntpd[4477]: frequency initialized 0.000 PPM from /var/lib/ntp/drift
[root@se
remote refid st t when poll reach delay offset jitter
====================
69.36.241.112 198.153.152.52 2 u 62 64 77 53.050 135065. 84103.4
alpha.sureproxy 209.51.161.238 2 u 2 64 177 31.767 64308.5 78879.0
phoenix.netserv 64.113.44.54 2 u 1 64 177 35.817 2777.28 124366.
framboise.hoopy 189.141.160.61 2 u 63 64 77 23.834 97091.3 62736.8
[root@server1 ~]# date
Thu Oct 8 16:34:43 EDT 2009
[root@server1 ~]# ntpdate -q 0.pool.ntp.org
server 69.56.251.238, stratum 2, offset 215.382147, delay 0.05571
server 64.22.86.210, stratum 2, offset 215.423780, delay 0.04845
server 67.222.149.177, stratum 3, offset 215.535682, delay 0.04462
server 149.20.54.21, stratum 2, offset 215.663269, delay 0.07198
server 169.229.70.183, stratum 3, offset 215.840622, delay 0.06856
8 Oct 16:35:23 ntpdate[5070]: step time server 64.22.86.210 offset 215.423780 sec
0.poo.ntp.org does not seems to be down as if I run
ntpdate 0.pool.ntp.org
I successfully udpates the system time.
I have just restart ntpd and it has not update time after restart, below are the log after or ntpd restart:
tail -f /var/log/messages
Oct 8 16:46:23 server1 ntpd[5897]: ntpd 4.2.2p1@1.1570-o Tue May 19 13:58:05 UTC 2009 (1)
Oct 8 16:46:23 server1 ntpd[5898]: precision = 1.000 usec
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface wildcard, ::#123 Disabled
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface lo, ::1#123 Enabled
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface eth1, fe80::20c:29ff:fe28:dabf#1
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface lo, 127.0.0.1#123 Enabled
Oct 8 16:46:23 server1 ntpd[5898]: Listening on interface eth1, 10.13.0.241#123 Enabled
Oct 8 16:46:23 server1 ntpd[5898]: kernel time sync status 0040
Oct 8 16:46:24 server1 ntpd[5898]: frequency initialized 0.000 PPM from /var/lib/ntp/drift
ntpq -p
remote refid st t when poll reach delay offset jitter
====================
ns1.your-site.c 206.246.118.250 2 u 58 64 3 25.999 526821. 33701.3
twik.stonekitty 198.153.152.52 2 u 58 64 3 56.791 494012. 32814.1
mighty.poclabs. 192.43.244.18 2 u 56 64 3 25.976 527637. 33190.2
kulish.com 128.138.188.172 2 u 56 64 3 64.763 494873. 32756.9
here below is /etc/ntp.conf :
cat /etc/ntp.conf
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/j
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org
#server 169.229.70.64
#server 199.199.208.25
#server 205.237.100.66
#server 65.18.173.237
#server 75.144.70.35
#server 0.centos.pool.ntp.org
#serv
#serv
#broa
#broadcastclient # broadcast client
#broadcast 224.0.1.1 key 42 # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 key 42 # manycast client
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42
# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
sorry did not see your ntp.conf before
thats looks allright to me..
sent the output for this comments:
after executing this command
ntpdate 0.pool.ntp.org
whats the output of
ntpq -p
also
instaed of Domain, will you be able to try syncronized by Ip address
so the ip address of 0.pool.ntp.org would be
89.250.138.90
ntp.conf has been pasted above,
[root@server1 ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root@server1 ~]# ntpdate 0.pool.ntp.org
8 Oct 17:11:24 ntpdate[6790]: step time server 72.18.205.156 offset 814.871815 sec
[root@server1 ~]# ntpq -p
ntpq: read: Connection refused
[root@server1 ~]# service ntpd start
Starting ntpd: [ OK ]
[root@server1 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
====================
broadbandjam.ne .RMOT. 16 u - 64 0 0.000 0.000 0.000
mighty.poclabs. .INIT. 16 u - 64 0 0.000 0.000 0.031
dev1-c.nym009.i .INIT. 16 u - 64 0 0.000 0.000 0.031
Please ignore ntpq -p result in my last reply, that was the result when i used different time servers (of north america - 0.north-america.pool.ntp.o
ntpq results with above given ntp.conf (0.pool.ntp.org) file is as below:
ntpq -p
remote refid st t when poll reach delay offset jitter
====================
outcry.puttynut 18.7.21.144 3 u 1 64 1 31.512 54959.5 0.001
ip-72-167-54-20 .INIT. 16 u - 64 0 0.000 0.000 0.001
mighty.poclabs. .INIT. 16 u - 64 0 0.000 0.000 0.001
67.222.149.177 .INIT. 16 u - 64 0 0.000 0.000 0.001
omm this out put does not look good aswell
ntpq -p
remote refid st t when poll reach delay offset jitter
==========================
outcry.puttynut 18.7.21.144 3 u 1 64 1 31.512 54959.5 0.001
ip-72-167-54-20 .INIT. 16 u - 64 0 0.000 0.000 0.001
mighty.poclabs. .INIT. 16 u - 64 0 0.000 0.000 0.001
67.222.149.177 .INIT. 16 u - 64 0 0.000 0.000 0.001
there should be * for showing the active connection....
i am stuck now... you sure you dont have any other firewall on the network which is not allowing ntp request....
have you tryed to update ntp packages ??
OK
I have set IPCOP as time server:
First I stopped NTPD daemon.
than ran
ntpdate <IPCOP IP>
This update the server time.
Now removed all ntp servers from ntp.conf and added below line:
server <IPCOP IP>
service ntpd start
below is the result of ntpq -p after few minutes of restarting ntpd:
ntpq -p
remote refid st t when poll reach delay offset jitter
====================
10.13.0.1 LOCAL(0) 11 u 8 64 3 0.576 24317.4 22111.9
so you saying, IPcop is not syncronized as well ?
i will have to check tomorrow, as i am not in office , here is 11.30 Pm
you can always create another question .. see you might get solution from other Experts but mention them that you have ipcop firewall , other wise they go through all over this again without knowing the fact.
i will keep you update tomorrow when i will be in office, i cant remember those setting on top of my head
sorry for this
You know what was the issue. I missed to tell you that this Linux was running over a VM created on VM Ware server. For time to work well it needs el5vm kernel to be running. Here is the exact solution.
http://www.dereks
Business Accounts
Answer for Membership
by: fosiul01Posted on 2009-10-08 at 13:21:18ID: 25529661
what about your iptables ?? does it open for 123 udp port
"NTP servers communicate with one another using UDP with a destination port of 123. Unlike most UDP protocols, the source port isn't a high port (above 1023), but 123 also. You'll have to allow UDP traffic on source/destination port 123 between your server and the Stratum 1/2 server with which you are synchronizing."
do you see any error related to ntpd damon ??
i your ntp.conf file , comment out this line(disable like bellow)
#server 127.127.1.0 # local clock
its looks like your pc is trying to get time form the pc itself
always restart ntpd damon after any change