LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-14-2010, 07:06 AM   #1
leblinux
Member
 
Registered: Dec 2008
Posts: 49

Rep: Reputation: 0
RHEL ntpdate not syncing


Dears,

I have RHEL 5 joined to windows Domain and lately has been delaying in time like 20 - 30 mins off the domain controller. Any ideas why? It suddenly started this delays. I have to login and restart ntpd in order to sync and so users can login.

Here is the output of ntpq -p:

ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 58 64 77 0.000 0.000 0.001
<remoteserver to syncfrom dns1>. <2nd remote server dns2> 5 u 54 64 77 0.001 100.034 361.081
================================

I wonder is the * means that its syncing with itself? if yes how to make it to sync with my remote server dc1 (2nd line?)
 
Old 11-14-2010, 08:23 AM   #2
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
posting the config you are using will help a lot. We can not see if it is configured wrong without this information
 
Old 11-14-2010, 08:32 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Yes at the moment the computer is using its internal clock as a time source. If the delay becomes to high i.e. 1000 sec ntpd will quit assuming something is wrong. Stop ntpd and update the clock once either by the following:
ntpd -q
or
nptdate servername

If the computer is turned off the hardware clock might be drifting excessively and the battery might be need to be replaced.
 
Old 11-14-2010, 03:22 PM   #4
leblinux
Member
 
Registered: Dec 2008
Posts: 49

Original Poster
Rep: Reputation: 0
Hello thanks for your help, the server is online 24/7 however it lately started to delay. Here is the output of the ntp.conf file.

By the way Now I had to create an @houry cron job just to restart ntpd every hour.. Until I find a solution.


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

# 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

# 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).

#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 127.127.1.0
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 <myDomainController>
restrict <myDomainController> mask 255.255.255.255 nomodify notrap noquery
Regards,
 
  


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
regarding ntpdate niaz_ph Linux - Newbie 1 01-12-2010 10:03 PM
ntpdate works sometimes linuxbird Linux - Server 10 12-01-2008 11:17 AM
ntpdate - ntpd czezz Solaris / OpenSolaris 6 09-02-2008 02:05 PM
ntpdate - ntpd czezz Solaris / OpenSolaris 1 08-27-2008 08:06 AM
ntpdate configuration? introuble Debian 5 03-26-2006 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:17 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