Linux server time getting out of sync frequently.

Northrup, Wilson wilson_northrup at merck.com
Wed May 28 07:41:36 UTC 2008



Hello Josh, 

If you don't mind, could you specify your configuration for those 70
guests?
Are you using VMware ESX server, or another VMware product?  What
version of VMware product and RHEL?
Are any running 64bit?

Thanks in advance
wilson
 

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]On Behalf Of Josh Miller
Sent: Tuesday, May 27, 2008 2:51 PM
To: General Red Hat Linux discussion list
Subject: Re: Linux server time getting out of sync frequently.


John Horne wrote:
>> as i recall, there are a few parameters you can set within the vmware
app
>> for the guest os, in order to sync the timing, and to stop the skew
from
>> occuring...
>>
>> i think you might also have to modify the kernel startup attributes.
>>
> The only solution I have found to work is to stop NTP on the guest and
> simply run ntpdate (getting the time from other reliable server) every
> hour or so via cron. The only 'solution' I have not tried is
rebuilding
> the kernel. Suggestions like use the PIT time source on the kernel
> startup line may well improve the timekeeping, but it still loses
time.

Hi, coming into this late, but I have been very successful with the
following solution:

1. make sure all ESX hosts are syncing time via NTP with a reliable
source
2. disable NTPD in all guests
3. set each guest to sync time via VMware tools by setting
tools.SyncTime=TRUE
4. in each guest, on the kernel line in grub.conf, set clock=pit and
reboot

That has been a bulletproof method for me with over 70 linux guests.

re:  http://www.vmware.com/pdf/vmware_timekeeping.pdf

HTH,
Josh Miller - RHCE, VCP

Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.





More information about the redhat-list mailing list