Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for procedure which I can execute in cron to synch the system time in clustered servers. Can any of the experienced SME's please help?

share|improve this question
3  
What's wrong with NTP? – Michael Hampton Aug 17 '12 at 20:04
possible duplicate of periodically overridding NTP for simulation purposes – HopelessN00b Aug 18 '12 at 1:24

1 Answer

NTP is the answer.
NTP is always the answer to "How do I synchronize the clocks on some machines?"

A full tutorial on setting up NTP is far beyond the scope of this site, however you will find tutorials all over the internet. The gist of it is:

  1. Install the NTP software if your OS doesn't already come with it.
    (If you're really in a bind and need to build it yourself source is available at ntp.org)
  2. Run the NTP daemon on one of your machines as a "server"
    (point this machine at some servers from pool.ntp.org to get its time)
  3. Run the NTP daemon on the rest of your machines, pointing them to your local NTP server configured in (2).

This will produce a far better synchronization than any cron job could manage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.