LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ntpdate: no server suitable for synchronization found (https://www.linuxquestions.org/questions/linux-server-73/ntpdate-no-server-suitable-for-synchronization-found-931430/)

Satyaveer Arya 02-26-2012 04:54 PM

ntpdate: no server suitable for synchronization found
 
Hi,

While doing synchronization activity on clients, I got this error:

Code:

# ntpdate -u 172.42.12.35
27 Feb 04:15:28 ntpdate[11643]: no server suitable for synchronization found.

On server the ntp.conf configuration is as follows:

Quote:

# 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 172.16.0.0 mask 255.255.0.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 172.42.12.35
#server 1.asia.pool.ntp.org

server 0.asia.pool.ntp.org
server 0.in.pool.ntp.org
#server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 key 42 # broadcast server
#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 172.42.12.35 # 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
#server web.icfre.org
#restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap noquery
#restrict default ignore
On client when I execute this command:

Code:

# ntpdate -d 172.42.12.35
I got this message:

Quote:

27 Feb 04:15:34 ntpdate[11655]: ntpdate 4.2.2p1@1.1570-o Wed Sep 3 14:28:30 UTC 2008 (1)
Looking for host 172.42.12.35 and service ntp
host found : web.icfre.org
transmit(172.42.12.35)
receive(172.42.12.35)
transmit(172.42.12.35)
receive(172.42.12.35)
transmit(172.42.12.35)
receive(172.42.12.35)
transmit(172.42.12.35)
receive(172.42.12.35)
transmit(172.42.12.35)
172.42.12.35: Server dropped: strata too high
server 172.42.12.35, port 123
stratum 16, precision -20, leap 11, trust 000
refid [172.42.12.35], delay 0.02579, dispersion 0.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 11:58:16.000
originate timestamp: d2f5348f.1b488f03 Mon, Feb 27 2012 4:15:35.106
transmit timestamp: d2f5348e.ff8183f9 Mon, Feb 27 2012 4:15:34.998
filter delay: 0.02579 0.02580 0.02585 0.02585
0.00000 0.00000 0.00000 0.00000
filter offset: 0.108391 0.108373 0.108382 0.108381
0.000000 0.000000 0.000000 0.000000
delay 0.02579, dispersion 0.00000
offset 0.108391

27 Feb 04:15:34 ntpdate[11655]: no server suitable for synchronization found
What could be the problem guys?

rodrifra 02-27-2012 01:35 AM

As you can see in the ntpdate output, the stratum of the server is too high to sync with it (stratum 16).

Use ntpq -p to check stratum and sync of the servers your server sync with and choose servers with lower stratum. For instance if you point to ntp.ubuntu.com you will be pointing to a stratum 2 server (so your own server will be stratum 3) and everything will work just fine.

Satyaveer Arya 02-27-2012 02:34 AM

Hi rodrifra,

Quote:

For instance if you point to ntp.ubuntu.com you will be pointing to a stratum 2 server
Sorry, I didn't get, can you please explain it in more detailed way?

when I issue the ntpq -p command I get:

Quote:

[root@web ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ns.cc.sinica.ed .INIT. 16 u - 64 0 0.000 0.000 0.000
ABTS-KK-static- .INIT. 16 u - 64 0 0.000 0.000 0.000
Now how will I choose from them and select for synchronization? They also shows stratum 16.

Satyaveer Arya 02-27-2012 05:29 AM

deleted

Satyaveer Arya 02-27-2012 05:32 AM

Hi,

The issue has been resolved now. Actually when I troubleshooted the problem I figured out that the pools which were difined in my ntp.conf configuration were down. I changed the pools and it worked for me.

Earlier the pools in my ntp.conf file were:
server 0.asia.pool.ntp.org
server 0.in.pool.ntp.org


I changed them to:
server 1.asia.pool.ntp.org
server 3.in.pool.ntp.org


Now, the issue has been solved, now I'm marking the thread as SOLVED. :)


All times are GMT -5. The time now is 06:36 AM.