LinuxQuestions.org
Visit Jeremy's Blog.
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 06-17-2009, 04:17 AM   #1
smartyshan
LQ Newbie
 
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24

Rep: Reputation: 15
NTP sync time issue...


Dear All,
I configured NTP client by simply changing /etc/ntp.conf file and add my NTP server in it.

I is synchronizing at every second which generates too much extra traffic what i want is it must sync after an hour periodically.


Need help...
 
Old 06-17-2009, 05:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
ntp only synchronizes at most every 16 seconds, so it can't be doing it every second, and a sane and stable instance will only sync every 1024 seconds by default but possibly only every 36.4 hours. show us your ntp.conf and also the output of "ntpq -pn"

Last edited by acid_kewpie; 06-17-2009 at 05:54 AM.
 
Old 06-21-2009, 04:38 AM   #3
smartyshan
LQ Newbie
 
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
ntp only synchronizes at most every 16 seconds, so it can't be doing it every second, and a sane and stable instance will only sync every 1024 seconds by default but possibly only every 36.4 hours. show us your ntp.conf and also the output of "ntpq -pn"

Dear I found it @ evry second may be I am worng
now following is my ntp.conf file

Code:
# 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 172.26.5.2
server 0.rhel.pool.ntp.org
server 1.rhel.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  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
and the output of #ntpq -pn

Code:
[root@productiondbs ~]# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*172.26.5.2      212.81.107.5     5 u  720 1024  377    1.038   13.506   0.314
 202.134.1.10    .STEP.          16 u    - 1024    0    0.000    0.000   0.000
 130.60.75.53    .STEP.          16 u    - 1024    0    0.000    0.000   0.000
 130.236.254.102 .STEP.          16 u    - 1024    0    0.000    0.000   0.000
 127.127.1.0     .LOCL.          10 l   48   64  377    0.000    0.000   0.001
 
Old 06-22-2009, 04:43 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well there you are... syncing every 1024 seconds, to 172.26.5.2. looks fine other than only haveing one accessible server there.

Last edited by acid_kewpie; 06-22-2009 at 06:02 AM.
 
Old 06-23-2009, 03:04 AM   #5
smartyshan
LQ Newbie
 
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
well there you are... syncing every 1024 seconds, to 172.26.5.2. looks fine other than only haveing one accessible server there.
Dear Acid thnx alot,

Can u plz eleborate the output of ntpq -pn command.. what is what...
 
Old 06-23-2009, 03:37 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
* = synced to this server
172.26.5.2 = the server you're synced to
212.81.107.5 = the server that server is synced to
5 = the strata of the server your synced to
u = not sure actually
720 = how long until your next poll
1024 = how often you poll
377 = the "reachability" mask of the server - see manpage
1.038 = the time it's taking to get a response from the server
13.506 = how far off their time you are
0.314 = how confident you are in the time their giving you (roughly)
 
  


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 time sync with windows 2000 AD time csghosh Linux - Enterprise 7 02-24-2012 04:46 PM
NTP time server issue - linux linuxguy08 Linux - Server 1 03-13-2009 01:27 AM
NTP sync up time sidra Linux - Networking 1 09-27-2007 10:07 PM
Sync KDE/System Time w/ NTP carlosinfl Linux - General 6 03-15-2006 04:37 PM
ntp time sync eyewittness Linux - Networking 2 08-11-2004 10:18 AM


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