LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-08-2010, 01:00 AM   #1
lazybee26
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
Arrow CentOS 5.3 VM, trouble with ntpd, no server suitable for synchronization found


Hello -
I cant get ntpd to synchronize with the ntp servers. I have a CentOS 5.3 32 bit Virtual Machine. I'm in USA on Pacific Standard Time. Here's all configuration and other important information for troubleshooting. Is there anything wrong with my config?

btw, I used wireshark to look at the UDP packets - I dont get any responses from any of the servers back. I only see requests going out from my server, but no response. Is this a firewall Issue? If it is, then do I need to just enable UDP port 123 on the firewall?


************ uname -a ************
Linux CCSLINUXVM 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:19:18 EDT 2009 i686 i686 i386 GNU/Linux

************ cat /etc/redhat-release ************
CentOS release 5.3 (Final)

************ cat /boot/grub/grub.conf ************
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.1.6.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.6.el5 ro root=LABEL=/ clocksource=acpi_pm divider=10
initrd /initrd-2.6.18-128.1.6.el5.img
title CentOS (2.6.18-92.1.22.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/
initrd /initrd-2.6.18-92.1.22.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/
initrd /initrd-2.6.18-92.el5.img

************ cat /etc/ntp/step-tickers ************
#0.vmware.pool.ntp.org
#1.vmware.pool.ntp.org
0.us.pool.ntp.org
1.us.pool.ntp.org
2.us.pool.ntp.org
3.us.pool.ntp.org

************ cat /etc/ntp.conf ************
# The configuration directive tinker panic 0 instructs NTP not to give up if it sees a
# large jump in time. This is important for coping with large time drifts and also resuming virtual machines
# from their suspended state.
tinker panic 0

# 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/join.html).
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst


#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.
# Amit:07/01/2009:Commented these
# It is also important not to use the local clock as a time source, often referred to as the Undisciplined
# Local Clock. NTP has a tendency to fall back to this in preference to the remote servers when there is a
# large amount of time drift.
#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

************ ntpq -pn ************
remote refid st t when poll reach delay offset jitter
==============================================================================
129.174.93.11 .INIT. 16 u - 1024 0 0.000 0.000 0.000
207.171.30.106 .INIT. 16 u - 1024 0 0.000 0.000 0.000
209.123.234.24 .INIT. 16 u - 1024 0 0.000 0.000 0.000
67.43.164.196 .INIT. 16 u - 1024 0 0.000 0.000 0.000


************ cat /etc/ntp/keys ************
#
# PLEASE DO NOT USE THE DEFAULT VALUES HERE.
#
#65535Makey
#1Mpass


************ cat /etc/ntp/ntpservers ************
#This file contains a list of ntp servers to show in the system-config-date user interface.
#It is not recommended that you modify this file by hand.

0.centos.pool.ntp.org
1.centos.pool.ntp.org
2.centos.pool.ntp.org


************ /etc/init.d/ntpd restart ************
Shutting down ntpd: [ OK ]
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]


************ Output of /var/log/messages when I restart ntpd ************
Jan 7 22:33:18 localhost ntpd[19891]: ntpd exiting on signal 15
Jan 7 22:33:28 localhost ntpdate[26379]: no server suitable for synchronization found
Jan 7 22:33:28 localhost ntpd[26381]: ntpd 4.2.2p1@1.1570-o Thu Apr 9 12:54:22 UTC 2009 (1)
Jan 7 22:33:28 localhost ntpd[26382]: precision = 1.000 usec
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface wildcard, ::#123 Disabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface lo, ::1#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface eth0, fe80::20c:29ff:fe71:97e#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface lo, 127.0.0.1#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: Listening on interface eth0, 192.1.32.108#123 Enabled
Jan 7 22:33:28 localhost ntpd[26382]: kernel time sync status 0040
Jan 7 22:33:31 localhost ntpd[26382]: frequency initialized 0.000 PPM from /var/lib/ntp/drift



************ ntpdate -d 0.us.pool.ntp.org ************
7 Jan 23:31:04 ntpdate[27575]: ntpdate 4.2.2p1@1.1570-o Thu Apr 9 12:54:23 UTC 2009 (1)
Looking for host 0.us.pool.ntp.org and service ntp
host found : tssnet1.tss.net
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
transmit(66.7.96.2)
transmit(63.240.161.99)
transmit(72.167.54.201)
66.7.96.2: Server dropped: no data
63.240.161.99: Server dropped: no data
72.167.54.201: Server dropped: no data
server 66.7.96.2, port 123
stratum 0, precision 0, leap 00, trust 000
refid [66.7.96.2], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.648f2170 Thu, Jan 7 2010 23:31:08.392
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

server 63.240.161.99, port 123
stratum 0, precision 0, leap 00, trust 000
refid [63.240.161.99], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.9cf6cefe Thu, Jan 7 2010 23:31:08.613
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

server 72.167.54.201, port 123
stratum 0, precision 0, leap 00, trust 000
refid [72.167.54.201], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
originate timestamp: 00000000.00000000 Wed, Feb 6 2036 22:28:16.000
transmit timestamp: cef15dbc.caf0cfe1 Thu, Jan 7 2010 23:31:08.792
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

7 Jan 23:31:09 ntpdate[27575]: no server suitable for synchronization found

Last edited by lazybee26; 01-08-2010 at 03:52 AM.
 
Old 01-08-2010, 08:37 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Go with that thought, if you're not seeing any return traffic you do have an issue external to the server

cheers
 
  


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
Error:- ntpdate: no server suitable for synchronization found renuaseri Linux - Newbie 3 06-10-2009 12:47 AM
ntp client: no server suitable for synchronization found duyuyang Linux - Software 1 05-12-2009 10:56 PM
secure time synchronization with ntpd [GOD]Anck Slackware 3 04-03-2009 06:05 PM
problem installing CentOS 4.3 server (no valid devices were found) redrum888 Linux - Newbie 4 02-03-2008 11:06 AM
Howto use ntpd time synchronization??? Schmurff Linux - Software 1 03-10-2004 11:20 PM

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

All times are GMT -5. The time now is 10:05 PM.

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