I've been having a problem with the time of a computer that
keeps
going faster than it should be. I tried everything I could
think of to
get it back to normal, even a hackish hourly script that
did:
$> cat /etc/cron.hourly/fixdateandtime
#!/bin/sh
# 2006-06-07 11:50 EDT
#
/etc/init.d/ntp-server stop > /dev/null
ntpdate ntp-1.local > /dev/null 2>&1 || \
ntpdate pool.ntp.org > /dev/null 2>&1
hwclock --systohc > /dev/null
hwclock --adjust > /dev/null
/etc/init.d/ntp-server start > /dev/null
My ntp-1.local server works fine. There are many computers
connected
to that server and they are all working fine (even Ubuntu
systems
running Dapper/Edgy on other computers). The problem seems
to be with
the hardware of this computer in question.
After an hour or so, the time starts to get skewed up
(faster) and
this is what I see from ntpq:
$> ntpq
ntpq> lpeers
remote refid st t when poll reach
delay offset jitter
============================================================
==================
10.10.201.31 .INIT. 16 u - 1024 0
0.000 0.000 4000.00
64.15.175.5 .INIT. 16 u - 1024 0
0.000 0.000 4000.00
fiordland.ubunt 192.36.133.17 2 u 135 1024 377
183.562 -642867 110100.
*LOCAL(0) LOCAL(0) 13 l 7 64 377
0.000 0.000 0.001
What can I try to fix this? I was thinking this is related
to a bad
rtc driver, but that doesn't seem to be it.
These are a few lines from the log:
Aug 30 09:32:41 cypher ntpd[7453]: ntpd 4.2.0a 1:4.2.0a+stable-8-r Fri
Jun 30 17:31:18 UTC 2006 (1)
Aug 30 09:32:41 cypher ntpd[7453]: precision = 1.000 usec
Aug 30 09:32:41 cypher ntpd[7453]: Listening on interface
wildcard, 0.0.0.0#123
Aug 30 09:32:41 cypher ntpd[7453]: Listening on interface
wildcard, ::#123
Aug 30 09:32:41 cypher ntpd[7453]: Listening on interface
lo, 127.0.0.1#123
Aug 30 09:32:41 cypher ntpd[7453]: Listening on interface
eth0, 10.21.11.57#123
Aug 30 09:32:41 cypher ntpd[7453]: kernel time sync status
0040
Aug 30 09:32:41 cypher ntpd[7453]: frequency initialized
-5.995 PPM
from /var/lib/ntp/ntp.drift
Aug 30 09:35:58 cypher ntpd[7453]: synchronized to LOCAL(0),
stratum 13
Aug 30 09:35:58 cypher ntpd[7453]: kernel time sync disabled
0041
Aug 30 09:37:01 cypher ntpd[7453]: kernel time sync enabled
0001
Aug 30 09:38:05 cypher ntpd[7453]: synchronized to
82.211.81.145, stratum 2
Aug 30 14:18:05 cypher ntpd[7453]: synchronized to LOCAL(0),
stratum 13
Aug 30 15:43:29 cypher ntpd[7453]: synchronized to
82.211.81.145, stratum 2
Aug 30 16:00:33 cypher ntpd[7453]: synchronized to LOCAL(0),
stratum 13
I also see these errors:
$> cat /var/log/syslog| grep set_rtc
Aug 30 16:01:02 cypher kernel: [17203441.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:03 cypher kernel: [17203442.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:05 cypher kernel: [17203444.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:06 cypher kernel: [17203445.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:07 cypher kernel: [17203446.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:08 cypher kernel: [17203447.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:09 cypher kernel: [17203448.224000]
set_rtc_mmss: can't
update from 59 to 1
Aug 30 16:01:10 cypher kernel: [17203449.224000]
set_rtc_mmss: can't
update from 59 to 1
--
----)(-----
Luis Mondesi
*NIX Guru
Kiskeyix.org
"We think basically you watch television to turn your
brain off, and
you work on your computer when you want to turn your brain
on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb
No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.ht
ml
--
ubuntu-users mailing list
ubuntu-users lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|