LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2013, 02:36 AM   #1
1300
Member
 
Registered: Nov 2011
Posts: 45

Rep: Reputation: Disabled
ntp service


Mornin all,,

my ntpd service is acting weird. below output will explain


Code:
[root@~]# ntpq -p 10.10.25.104
10.10.25.104: timed out, nothing received
***Request timed out

[root@~]# cat /var/lib/ntp/drift
500.000

[root@~]# ntpq -p 10.10.25.102
10.10.25.102: timed out, nothing received
***Request timed out

[root@~]# ntpstat
unsynchronised
   polling server every 64 s

[root@~]# chkconfig --list | grep ntpd
ntpd            0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@~]# service ntpd status
ntpd (pid  2604) is running...

[root@~]# 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/join.html).
#server 0.rhel.pool.ntp.org
#server 1.rhel.pool.ntp.org
#server 2.rhel.pool.ntp.org
server  10.10.25.102
server  10.10.25.104

#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 w2k3dc1  #BSF- ntp server
#server w2k3dc2  #BSF- ntp server
#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
Code:
[root@~]# cat /var/log/messages | grep ntpd | tail -30
Mar 29 15:24:51 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 29 15:28:07 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 29 15:35:09 ntpd[2604]: time reset +0.495900 s
Mar 29 15:39:49 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 29 15:43:04 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 29 15:58:35 ntpd[2604]: time reset +0.528322 s
Mar 29 16:02:59 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 29 16:06:11 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 29 16:18:01 ntpd[2604]: time reset +0.540947 s
Mar 29 16:22:39 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 29 16:25:50 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 29 16:37:10 ntpd[2604]: time reset +0.574264 s
Mar 29 16:41:43 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 29 18:50:21 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 29 18:54:36 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 29 18:56:45 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 29 19:10:38 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 29 19:12:47 ntpd[2604]: no servers reachable
Mar 30 08:41:15 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 30 08:41:20 ntpd[2604]: time reset +0.424387 s
Mar 30 08:41:20 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 30 08:46:16 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 30 08:49:31 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 30 08:57:20 ntpd[2604]: time reset +0.429590 s
Mar 30 08:57:20 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 30 09:02:25 ntpd[2604]: synchronized to 10.10.25.102, stratum 4
Mar 30 09:16:22 ntpd[2604]: time reset +0.462894 s
Mar 30 09:16:22 ntpd[2604]: frequency error 512 PPM exceeds tolerance 500 PPM
Mar 30 09:20:54 ntpd[2604]: synchronized to 10.10.25.104, stratum 5
Mar 30 09:24:12 ntpd[2604]: synchronized to 10.10.25.102, stratum 4

Last edited by 1300; 03-30-2013 at 04:37 AM.
 
Old 03-30-2013, 04:37 AM   #2
1300
Member
 
Registered: Nov 2011
Posts: 45

Original Poster
Rep: Reputation: Disabled
please delete this thread as i figured out the problem

thanks all
 
Old 03-30-2013, 05:02 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
There is no need to delete the thread. Simply mark it as solved. Consider updating your thread with information on what solved the problem.
 
Old 03-30-2013, 05:06 AM   #4
1300
Member
 
Registered: Nov 2011
Posts: 45

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
There is no need to delete the thread. Simply mark it as solved. Consider updating your thread with information on what solved the problem.
thanks for your reply,, and I will mark the thread as solved now.

the problem caused from the host (hyper-v) as the machine is virtual
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 08:35 PM
NTP Service. nishith Linux - Server 1 11-10-2008 01:36 PM
ntp service causing huge time errors zoubidoo Linux - General 2 11-23-2004 11:29 AM
Problems with Kobishi router / NTP service R@LF Linux - Hardware 3 07-25-2004 07:02 PM
ntp / xntpd service saavik Linux - Networking 0 08-05-2003 03:57 AM


All times are GMT -5. The time now is 03:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration