February 17, 2009

Setup NTP on CentOS 5.2

I am working on building a DRBD cluster and as with all cluster tools , you must have a synced time between nodes.

  1. install ntp
yum -y install ntp
2. enable ntp on boot
chkconfig ntpd on
3.run a manual time sync before starting the service
ntpdate 0.pool.ntp.org
4. start the service
service ntpd start