Ubuntu/Rackspace – Time issues
— a system’s clock is likely to drift considerably between reboots if the time between reboots is long. In that case it makes sense to correct the time occasionally.
— On rackspace, not all Ubuntu servers are created with UTC as the default time zone. Some get created with CDT.
To sync with UTC.
Thu Aug 18 00:48:03 CDT 2011
#sudo cp /usr/share/zoneinfo/UTC /etc/localtime
#sudo ntpdate ntp.ubuntu.com
18 Aug 05:51:34 ntpdate: the NTP socket is in use, exiting
Thu Aug 18 05:51:43 UTC 2011
If you want to sync with EST, change UTC to EST below.
One of our servers drifted off ~3 minutes in 3 months causing an issue.
To automatically synchronize the time.
#sudo apt-get install ntp
This command both installs and starts the ntp daemon.
A bunch of alternatives are mentioned here.