LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-20-2009, 03:44 PM   #1
sir-lancealot
Member
 
Registered: Aug 2007
Posts: 346

Rep: Reputation: 31
nptd / ntpdate sync question


Never had to really play with this one, but we have 5 webservers which really use time to display products. Well there was a major power-outage and things didn't start till an hour or so later.

Anway, we have a primary and secondary time server (time.domain.com). The way it 'was' was all the webservers had ntpd running, the status showed the drift but never corrected. I tried an ntpdate time.domain.com and error due to sock in use. I stopped ntpd and then it worked.

So the question, is that how it is supposed to work? Do you stick the ntpdate in a crontab to keep up to date? It looks like the ntpd is the server which the clients shouldn't run. The other question is how to do this for the hardware clock also.

Thanks.
 
Old 04-20-2009, 05:01 PM   #2
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
The ntp servers run all the time and they do sync up, just not necessarily instantly. Running ntpdate (or manually setting your system time) is a good way to bring things close right away if you know there's a significant discrepancy. Once you've done that, as long as you have your servers configured in your ntp.conf, then just let the server run.

- Arch
 
Old 04-20-2009, 05:04 PM   #3
archangel_617b
Member
 
Registered: Sep 2003
Location: GMT -08:00
Distribution: Ubuntu, RHEL/CentOS, Fedora
Posts: 234

Rep: Reputation: 42
I think this might clarify what you're seeing:

http://www.ntp.org/ntpfaq/NTP-s-algo...ASIC-STEP-SLEW

- Arch
 
  


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
horizontal sync rate question ekamlesh Linux - Hardware 2 01-15-2009 10:10 PM
data backup and sync/mdadm question kpachopoulos Linux - Server 1 12-09-2007 08:11 PM
mdadm question on how to re-sync Micro420 Linux - Server 8 09-24-2007 06:38 PM
Time sync question sunman Slackware 10 03-13-2006 11:36 AM
Mplayer DVD A-V sync question Amerist Linux - Software 1 10-15-2002 11:34 AM

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

All times are GMT -5. The time now is 11: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
Open Source Consulting | Domain Registration