Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-14-2010, 07:06 AM
|
#1
|
Member
Registered: Dec 2008
Posts: 49
Rep:
|
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?)
|
|
|
11-14-2010, 08:23 AM
|
#2
|
Member
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430
Rep:
|
posting the config you are using will help a lot. We can not see if it is configured wrong without this information
|
|
|
11-14-2010, 08:32 AM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,755
|
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.
|
|
|
11-14-2010, 03:22 PM
|
#4
|
Member
Registered: Dec 2008
Posts: 49
Original Poster
Rep:
|
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,
|
|
|
All times are GMT -5. The time now is 02:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|