LinuxQuestions.org
Register a domain and help support LQ
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 06-29-2010, 01:44 PM   #1
dawgie2009
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
ntpdate getting out of sync quickly


Hi,

I'm trying to sync the clock of an ubuntu desktop with the network with ntpdate -u <ntp-server> and in a matter or minutes it's growing an offset of a few hundred milliseconds and even more than one second. Is there anyway to guarantee that the time keeps synchronizing with the network more frequently? does it make sense that the offset grows so fast? Am I doing something wrong?

Thanks.
 
Old 06-29-2010, 02:04 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You should be able to just use the ntpd daemon - but a skew of
a second / min sounds a bit excessive; what's the hardware, what's
the load?


Cheers,
Tink
 
Old 06-29-2010, 02:09 PM   #3
dawgie2009
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
You should be able to just use the ntpd daemon - but a skew of
a second / min sounds a bit excessive; what's the hardware, what's
the load?
Thanks TInk.

It happens on 3 desktops I'm using all p4 with at least 3GHz processor. They work but not too hard in all aspects I can see. What is the standard most simple way of getting network time and keeping it in sync?

* The reason I need it to be absolutely in sync is cos I'm using it to measure latency which is in hundreds of millisecond so when clocks are out of sync I get weird results like negative latencies, even when the offset it not huge.
 
Old 06-29-2010, 02:32 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,312

Rep: Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877Reputation: 3877
Quote:
Originally Posted by dawgie2009 View Post
Thanks TInk.

It happens on 3 desktops I'm using all p4 with at least 3GHz processor. They work but not too hard in all aspects I can see. What is the standard most simple way of getting network time and keeping it in sync?

* The reason I need it to be absolutely in sync is cos I'm using it to measure latency which is in hundreds of millisecond so when clocks are out of sync I get weird results like negative latencies, even when the offset it not huge.
The 'standard' way of doing it would be to fire up one of your boxes as an NTP server. NTPD isn't hard to set up, and I know on openSUSE, you can even go in through the GUI (yast), to do it. Ubuntu probably has something similar. Point it to an Internet time source, and it'll serve as the reference clock. Tell the rest of your internal clients to reference it, and you're set.

For what it's worth (if you've got a box near a window), you can get a cheap GPS receiver, and have NTPD use the GPS receiver as a NMEA compatible time source. Your box will then be a stratum 1 clock.
 
  


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
regarding ntpdate niaz_ph Linux - Newbie 1 01-12-2010 11:03 PM
nptd / ntpdate sync question sir-lancealot Linux - Server 2 04-20-2009 06:04 PM
ntpdate works sometimes linuxbird Linux - Server 10 12-01-2008 12:17 PM
ntpdate - ntpd czezz Solaris / OpenSolaris 1 08-27-2008 09:06 AM
NTPDATE -vs- NTPd? carlosinfl Linux - Networking 3 02-25-2007 03:05 PM


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