LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2010, 12:39 AM   #16
NdAd
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by michaelk View Post
It appears that the client is communicating with ntp1. The poll time is 1024 seconds so it will take awhile to get anywhere.
I believe that the ntp1 time difference is greater then ntp2. Do you really need two time servers. If so you might want to try setting them up as peers or syncing ntp2 to ntp1.
the time difference between them it maybe a matter of seconds. it can be that bad ,isn't it ? maybe I should try to sync ntp2 to ntp1 but I tried to do that by ntpdate -b command but getting the same output (also when I tried in both of them) :
Code:
ntpdate[9770]: no server suitable for synchronization found
thats the way you meant for syncing each other right ? do I need to change again something in conf file of the servers for that ?
 
Old 07-14-2010, 08:48 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Are you able to ping from the client to ntp1?
 
Old 07-14-2010, 09:44 AM   #18
NdAd
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Are you able to ping from the client to ntp1?
of course man... all servers are reachable from all clients.
I though its nw issue as well.. but dont think so
 
Old 07-14-2010, 11:51 AM   #19
NdAd
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
It appears that the client is communicating with ntp1. The poll time is 1024 seconds so it will take awhile to get anywhere.
I believe that the ntp1 time difference is greater then ntp2. Do you really need two time servers. If so you might want to try setting them up as peers or syncing ntp2 to ntp1.
hey Michael,
something very strange you know...
look what I've found so far.
when I try ntpdate -d command on one of the clients, look what I get:
Code:
[root@host1 ~]# ntpdate -d ntp2
14 Jul 10:36:51 ntpdate[19722]: ntpdate 4.2.2p1@1.1570-o Mon Jun  4 15:13:03 UTC 2007 (1)
Looking for host ntp2 and service ntp
host found : ntp2
transmit(172.17.201.5)
receive(172.17.201.5)
transmit(172.17.201.5)
receive(172.17.201.5)
transmit(172.17.201.5)
receive(172.17.201.5)
transmit(172.17.201.5)
receive(172.17.201.5)
transmit(172.17.201.5)
server 172.17.201.5, port 123
stratum 3, precision -20, leap 00, trust 000
refid [172.17.201.5], delay 0.02568, dispersion 0.00000
transmitted 4, in filter 4
reference time:    cfe86619.d4b77a20  Wed, Jul 14 2010 10:36:41.830
originate timestamp: cfe86623.f631cfc3  Wed, Jul 14 2010 10:36:51.961
transmit timestamp:  cfe86623.f631832f  Wed, Jul 14 2010 10:36:51.961
filter delay:  0.02577  0.02568  0.02574  0.02570 
         0.00000  0.00000  0.00000  0.00000 
filter offset: -0.00000 -0.00003 -0.00004 -0.00004
         0.000000 0.000000 0.000000 0.000000
delay 0.02568, dispersion 0.00000
offset -0.000039

14 Jul 10:36:51 ntpdate[19722]: adjust time server 172.17.201.5 offset -0.000039 sec
but when I try to do the same but now with ntp1 server, I can see the host trying to reach the server but none packets recieved from it, ntp1 server dropping the incoming packets:
Code:
[root@host1 ~]# ntpdate -d ntp1
14 Jul 10:40:00 ntpdate[19955]: ntpdate 4.2.2p1@1.1570-o Mon Jun  4 15:13:03 UTC 2007 (1)
Looking for host ntp1 and service ntp
host found : ntp1
transmit(172.17.201.6)
transmit(172.17.201.6)
transmit(172.17.201.6)
transmit(172.17.201.6)
transmit(172.17.201.6)
172.17.201.6: Server dropped: no data
server 172.17.201.6, port 123
stratum 0, precision 0, leap 00, trust 000
refid [172.17.201.6], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  0:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  0:28:16.000
transmit timestamp:  cfe866e3.99c70435  Wed, Jul 14 2010 10:40:03.600
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000

14 Jul 10:40:04 ntpdate[19955]: no server suitable for synchronization found
when I tring to reach the host from ntp1 server, for some reason it succeed , look :
Code:
[root@ntp1 ~]# ntpdate -d host1   
14 Jul 10:42:22 ntpdate[11450]: ntpdate 4.2.2p1@1.1570-o Wed Nov 29 15:19:26 UTC 2006 (1)
Looking for host host1 and service ntp
host found : host1
transmit(172.17.200.8)
receive(172.17.200.8)
transmit(172.17.200.8)
receive(172.17.200.8)
transmit(172.17.200.8)
receive(172.17.200.8)
transmit(172.17.200.8)
receive(172.17.200.8)
transmit(172.17.200.8)
server 172.17.200.8, port 123
stratum 4, precision -20, leap 00, trust 000
refid [172.17.200.8], delay 0.02571, dispersion 0.00002
transmitted 4, in filter 4
reference time:    cfe86625.36c9ed34  Wed, Jul 14 2010 10:36:53.214
originate timestamp: cfe8676e.c2292ba8  Wed, Jul 14 2010 10:42:22.758
transmit timestamp:  cfe8676e.c5ceaf25  Wed, Jul 14 2010 10:42:22.772
filter delay:  0.02583  0.02579  0.02571  0.02571 
         0.00000  0.00000  0.00000  0.00000 
filter offset: -0.01435 -0.01431 -0.01427 -0.01430
         0.000000 0.000000 0.000000 0.000000
delay 0.02571, dispersion 0.00002
offset -0.014277

14 Jul 10:42:22 ntpdate[11450]: adjust time server 172.17.200.8 offset -0.014277 sec
for some reason the client can not reach only to ntp1 server but ntp1 can reach properly to the host.
 
Old 07-14-2010, 12:04 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Could be a network routing problem with the client. Can you ping ntp1 from the client?

Last edited by michaelk; 07-14-2010 at 12:06 PM.
 
Old 07-14-2010, 12:23 PM   #21
NdAd
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Could be a network routing problem with the client. Can you ping ntp1 from the client?
yeah successfully.
Code:
root@host1 ~]# ping ntp1      
PING ntp1 (172.17.201.6) 56(84) bytes of data.
64 bytes from ntp1 (172.17.201.6): icmp_seq=1 ttl=63 time=0.149 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=2 ttl=63 time=0.126 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=3 ttl=63 time=0.143 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=4 ttl=63 time=0.210 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=5 ttl=63 time=0.128 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=6 ttl=63 time=0.144 ms
64 bytes from ntp1 (172.17.201.6): icmp_seq=7 ttl=63 time=0.161 ms

--- ntp1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5998ms
rtt min/avg/max/mdev = 0.126/0.151/0.210/0.029 ms

[root@host1 ~]# traceroute ntp1
traceroute to ntp1 (172.17.201.6), 30 hops max, 40 byte packets
 1   (172.17.200.2)  2.273 ms  2.552 ms  2.742 ms
 2  ntp1 (172.17.201.6)  0.187 ms  0.185 ms  0.178 ms
[root@host1 ~]#
 
Old 07-14-2010, 06:44 PM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Did you restart ntp on ntp1 when you made the last changes to ntp.conf?
 
Old 07-14-2010, 11:13 PM   #23
NdAd
LQ Newbie
 
Registered: Jul 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Did you restart ntp on ntp1 when you made the last changes to ntp.conf?
yeah man , sure i did, i even reboot it.
I think I give up, I probably will use ntp2 and that's all.
if you will think of something else let me know.

i realy appreciate all your effort. 10x !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware server - ntp time sync stops after a day tennis_slacker Slackware 81 08-04-2010 09:05 AM
[SOLVED] NTP config - how to prevent clients using my server? ShadyCraig Linux - Server 1 05-24-2010 07:55 AM
NTP server not sync sebash00 Linux - General 6 04-04-2008 01:40 AM
NTP sync noir911 Linux - Server 1 03-29-2008 06:50 PM
NTP Sync? carlosinfl Linux - Networking 12 04-13-2006 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration