Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: System Clock Sliding
PostPosted: Wed Dec 08, 2010 8:13 am 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
My server is losing about a minute every week. Rebooting corrects it, but I don't want to have to reboot the server every week. It's almost like the server has delinked from the host clock, but I don't see how that could be.
Code:
[root@atom1 ~]# uname -a
Linux atom1.barkerjr.net 2.6.18.8-linode22 #1 SMP Tue Nov 10 16:12:12 UTC 2009 i686 i686 i386 GNU/Linux
[root@atom1 ~]# cat /proc/sys/xen/independent_wallclock
0
[root@atom1 ~]# grep xen /etc/sysctl.conf
[root@atom1 ~]#


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 8:55 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Paravirtualized kernels tend to do that. Install ntp.


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 9:07 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
He isn't running a paravirt kernel -- /proc/sys/xen/independent_wallclock only exists on non-paravirt kernels.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 11:18 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
The solution is the same :P

apt-get install ntp-simple


Top
   
 Post subject:
PostPosted: Wed Dec 08, 2010 12:15 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
I think the point of the original post was that a non-paravirt kernel with /proc/sys/xen/independent_wallclock = 0 should be locked to the host clock. Since the op's Linode clock is clearly not locked to the host clock, something is wrong.

One of my Linodes runs 2.6.18.8-linode22 and keeps perfect time without needing to run ntp.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Dec 10, 2010 5:23 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
It's possible the host's ntpd is simply malfunctioning. Try an "ntpq -p $yourhost.linode.com". Some of them allow such queries; some do not.

File a ticket, too.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Fri Dec 10, 2010 7:01 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
mnordhoff wrote:
It's possible the host's ntpd is simply malfunctioning. Try an "ntpq -p $yourhost.linode.com". Some of them allow such queries; some do not.

If that were true, I wouldn't expect things to be corrected on a reboot, since it would still be getting the incorrect host clock. (Unless there's something in reboot processing that is doing a one-time sync like an ntpdate call from a network location).

Definitely sounds odd though, so once it gets resolved I'd be curious as to what it turns out to have been.

-- David


Top
   
 Post subject:
PostPosted: Fri Dec 10, 2010 7:44 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
Erk, you're right, db3l! I'm operating on way less sleep than usual right now. :P

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Sat Dec 11, 2010 9:41 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
I opened a ticket and it seems ok now. They didn't say what the fix was, but that's ok with me. Time will tell if the fix takes.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 2:55 pm 
Offline
Senior Member

Joined: Wed Jul 21, 2010 8:04 pm
Posts: 119
BarkerJr wrote:
Time will tell if the fix takes.


Ha


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group