Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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)

share|improve this question

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

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

2 Answers 2

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

share|improve this answer

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

share|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

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.