I have 3 servers and each one of them is showing different time. How do I correctly set the SAME time across all severs? I noticed that ntpd server is stopped. So I started it.

service ntpd start

Is it the correct way to sync time? (Indian Standard Time)

link|improve this question

1  
serverfault.com is probably a more appropriate venue for this question – janneb Jan 5 '10 at 15:04
feedback

migrated from stackoverflow.com Jan 5 '10 at 15:09

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

You are on the right track: edit your ntp.conf file to use the following servers (probably best for you):

   server 0.asia.pool.ntp.org
   server 1.asia.pool.ntp.org
   server 2.asia.pool.ntp.org
   server 3.asia.pool.ntp.org

Put the same servers in /etc/ntp/step-tickers and restart ntpd on all servers. That is all you need.

Use the same configuration files on all servers, of course

link|improve this answer
feedback

Perhaps make sure NTP clients are running periodically on all three servers and they are pointing to the same NTP server to sync time.

link|improve this answer
4  
Might also want to stop ntpd once and run ntpdate against your chosen time server to make an initial correction, then start ntpd to have it do it's thing. – Bart Silverstrim Jan 5 '10 at 15:11
feedback

Your Answer

 
or
required, but never shown

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