Hi! I''m trying to keep correct time on both machines, on dom0 and domU.. I have installed OpenNTPd and made it to synchronize with local ntp server. But, it works on dom0, but does not on domU.. After some googling, I found that domU have no own time, so it should be always in sync with dom0 time (unless you change it through /proc/sys/xen/independent_wallclock). So I just shut down ntp server in domU and let ntp server in dom0 do it''s work. At the moment, clock in dom0 is about 8 minutes ahead of real time, and I see in logs that ntp server is slowly correcting it (something about half a minute per day).. But I don''t see a clock in domU changing.. There is a difference between what date says on these machines.. It seems that clock in domU is not updated.. By the way, independent_wallclock is set to 0, and I cannot set time through "date -s" in domU.. Any suggestions? P.S. I''m running xen-2.0.7-testing on 2.6.12 kernel. -- Timur Irmatov, JID: thor@jabber.org.au _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Nov 22, 2005 at 09:53:24AM +0500, Timur Irmatov wrote:> At the moment, clock in dom0 is about 8 minutes ahead of real time, > and I see in logs that ntp server is slowly correcting it (something > about half a minute per day).. But I don''t see a clock in domU > changing.. There is a difference between what date says on these > machines.. > > It seems that clock in domU is not updated.. By the way, > independent_wallclock is set to 0, and I cannot set time through "date > -s" in domU.. > > Any suggestions?Use the ntp.org <http://www.ntp.org/> NTP server instead. OpenNTPD keeps the clock in sync for dom0, but fails to update for any domU''s. You won''t need to deal with independent_wallclock in domU after switching. -- Alex Tomkins <tomkins@blazingfast.net> blazingfast networks - Xen powered virtual servers from 10/month http://www.blazingfast.net/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 11/22/05, Alex Tomkins <tomkins@blazingfast.net> wrote:> On Tue, Nov 22, 2005 at 09:53:24AM +0500, Timur Irmatov wrote: > > At the moment, clock in dom0 is about 8 minutes ahead of real time, > > and I see in logs that ntp server is slowly correcting it (something > > about half a minute per day).. But I don''t see a clock in domU > > changing.. There is a difference between what date says on these > > machines.. > > > > It seems that clock in domU is not updated.. By the way, > > independent_wallclock is set to 0, and I cannot set time through "date > > -s" in domU.. > > > > Any suggestions? > > Use the ntp.org <http://www.ntp.org/> NTP server instead. OpenNTPD > keeps the clock in sync for dom0, but fails to update for any domU''s. > > You won''t need to deal with independent_wallclock in domU after > switching.May be I failed to clearly describe what I see.. In dom0, openntpd *works* fine.. What bothers me is the difference between clocks (what "date" shows) in dom0 and domU.. At the moment difference is about 30 seconds. The docs says that domU takes it clock from dom0, but it doesn''t. -- Timur Irmatov, JID: thor@jabber.org.au _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Nov 22, 2005 at 03:53:08PM +0500, Timur Irmatov wrote:> May be I failed to clearly describe what I see.. > > In dom0, openntpd *works* fine.. What bothers me is the difference > between clocks (what "date" shows) in dom0 and domU.. At the moment > difference is about 30 seconds. > > The docs says that domU takes it clock from dom0, but it doesn''t.It''s an issue that some people (including myself) have encountered before with OpenNTPD (look here: <http://lists.xensource.com/archives/html/xen-users/2005-05/msg00160.html>). Both OpenNTPD and NTPD keep the dom0 clock accurate, but only NTPD updates it so that domU clocks are accurate. Try NTPD and you''ll notice any domU''s instantly sync back with the dom0 clock. -- Alex Tomkins <tomkins@blazingfast.net> blazingfast networks - Xen powered virtual servers from 10/month http://www.blazingfast.net/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 11/22/05, Alex Tomkins <tomkins@blazingfast.net> wrote:> On Tue, Nov 22, 2005 at 03:53:08PM +0500, Timur Irmatov wrote: > > May be I failed to clearly describe what I see.. > > > > In dom0, openntpd *works* fine.. What bothers me is the difference > > between clocks (what "date" shows) in dom0 and domU.. At the moment > > difference is about 30 seconds. > > > > The docs says that domU takes it clock from dom0, but it doesn''t. > > It''s an issue that some people (including myself) have encountered > before with OpenNTPD (look here: > <http://lists.xensource.com/archives/html/xen-users/2005-05/msg00160.html>). > > Both OpenNTPD and NTPD keep the dom0 clock accurate, but only NTPD > updates it so that domU clocks are accurate. Try NTPD and you''ll notice > any domU''s instantly sync back with the dom0 clock.hm.. that''s strange.. thank you, I''ll try NTPD and will report back, if it works.. I just hoped to use openntpd because it seems to be more simple and lightweight.. to my shame, I didn''t find your post when tried to search for "xen ntpd" in google.. next time I will try harder. thanks again. -- Timur Irmatov, JID: thor@jabber.org.au _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tuesday 22 November 2005 11:14, Alex Tomkins wrote:> Both OpenNTPD and NTPD keep the dom0 clock accurate, but only NTPD > updates it so that domU clocks are accurate. Try NTPD and you''ll notice > any domU''s instantly sync back with the dom0 clock.Can anyone make a guess as to why this is? I''m not doubting you, but it seems odd that these packages would behave differnetly. -- Ian P. Christian ~ http://pookey.co.uk _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users