[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Xen : Time issues


  • To: smainklh@xxxxxxx, Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Jeff Lane <dreadpiratejeff@xxxxxxxxx>
  • Date: Tue, 7 Jul 2009 17:37:39 -0400
  • Cc:
  • Delivery-date: Tue, 07 Jul 2009 14:38:20 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=WF4KdqivZNzFkFY3ILL0o+SL7YmPP5+ikYEaFgsZ5Y2ptbQqPMrHO4YtAiC/b9bxRj p8UST2c8mqBI4gpk4ui+x1y8mo/efMvCTQ3oxA7zF0f035oTc+vlVpJ4a7yk7o0A064f e3mbZzFN6WJ2VIuMMYnUuxA4hG9/8G5cuZi0A=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Tue, Jul 7, 2009 at 11:43, <smainklh@xxxxxxx> wrote:
> Recently we noticed that the DomU's clocks are not synced with the Dom0 and 
> the
> clocks are wrong.
> So we tried to sync DomU's via openntpd but it generates errors in nagios. 
> Logs
> indicate "Time goes back".
>
> So we want to sync DomU with Dom0 and sync Dom0 with openntpd.
> What do you think about this solution ?
> Is there a way to sync DomU with Dom0 ?

> What is the best way to sync DomU's ?

First of all, here's a Google search that yields a lot of hits
regarding Xen and time...
http://www.google.com/search?q=xen+time+went+backwards&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-GB:unofficial&client=firefox-a

This is a fairly common problem with Xen (and pretty much any
virtualization package).  I believe that in addition to differences
between hardware clocksources, the problem stems from the fact that
domUs do not run in real time.  Instead, they are constantly paused in
memory as other domUs take up CPU cycles.

I've personally seen several instances where domUs either suffer from
time loss, or time gain (I've even seen some in beta versions of Red
Hat and SuSE that actually gain about an hour of time for every 1.5
minutes of actual system time used...)

So there are some tricks you can do to change the clocksource and such...

Also, it became our practice to enable ntp on all domUs and sync them
to something other than dom0, in addition to the problems with
clocksource.  So we'd have a central time server set up, and all dom0
machines and domU virtual machines would sync against that.

Not necessarily elegant, as the ntp clients were set to hit the ntp
server every 5 - 10 minutes or so, but it worked.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.