Greets! Ok. I'm looking at a client that needs to keep their server time close as reasonably possible (within a minute) of the actual time of day. I've installed the RPM for NTP and I'm looking for tips on what the simplest setup should be, ie: What server(s) should I be using for sync? Should I just run it from a cron every 20 minutes or so? thx. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070331/c3516f8c/attachment-0004.html>
The default settings should be pretty good. I believe it uses pool.ntp.orgby default, which is a big list of ntp servers of stratum 2 (and possibly 3?) servers. Running the ntpd service is probably the best way to do it. 'service ntpd start' should be all that is need. If you clock is more than a minute or two out to begin with, you may need to issue a 'ntpd -q -g'. On 3/31/07, Mike <centos at silverservers.com> wrote:> > Greets! > > Ok. I'm looking at a client that needs to keep their server time close as > reasonably possible (within a minute) of the actual time of day. I've > installed the RPM for NTP and I'm looking for tips on what the simplest > setup should be, ie: > What server(s) should I be using for sync? > Should I just run it from a cron every 20 minutes or so? > > thx. > Mike > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070331/00346fdb/attachment-0004.html>
Gary Richardson wrote:> The default settings should be pretty good. I believe it uses > pool.ntp.orgby default, which is a big list of ntp servers of stratum > 2 (and possibly > 3?) servers. Running the ntpd service is probably the best way to do it. > 'service ntpd start' should be all that is need. If you clock is more > than a > minute or two out to begin with, you may need to issue a 'ntpd -q -g'.And, speaking from experience, check your firewall. Running /etc/init.d/ntpdate on bootup is good. -- Cheers John -- spambait 1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu Please do not reply off-list
Mike wrote:> Greets! > > Ok. I'm looking at a client that needs to keep their server time close > as reasonably possible (within a minute) of the actual time of day. > I've installed the RPM for NTP and I'm looking for tips on what the > simplest setup should be, ie: > What server(s) should I be using for sync? > Should I just run it from a cron every 20 minutes or so?CentOS 4.4 standard NTP install /etc/ntp.conf is set to use the following NTP servers: server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org These are sorta special in that they are backed by many different servers and DNS queries expand them for you (do a "dig 0.pool.ntp.org a" to see what I mean). Each time you do a DNS query to one of those addresses you will get a different set of servers returned. So to simplify what I'm saying you just need to: # yum install ntp (if not already installed) # chkconfig ntpd on # service ntpd start