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

DST/ntp problems



I just realized last night I've been an hour behind since Sunday.

I have two debian machines, one running woody & a laptop running sid,
they each have both the ntp and ntp-simple packages installed. The
ntp.confs each include both sundial.columbia.edu & time.nist.gov 

On the laptop, I tried to manually adjust the time with
# date -s 'Thu Apr 10 13:00:00 EST 2003'
to get it close enough that ntp would accept it, and ran ntpq according 
to instructions in /usr/share/doc/ntp-doc/html/debug.htm:

# ntpq
ntpq> pe
remote           refid      st t when poll reach   delay   offset     jitter
==============================================================================
filbert.cc.colu gnomon.cc.colum  2 u    7   64    1   25.379   -362155   0.004
time.nist.gov   .ACTS.           1 u    1   64    3   60.017   -362156   1.088

As you can see, ntp still thinks I'm an hour off

Each time I restart /etc/init.d/ntp-simple, it just dies with this 
message in syslog the first time it polls the server:

Apr 10 11:35:33 localhost ntpd[1917]: time correction of -3622 seconds
exceeds sanity limit (1000); set clock manually to the correct UTC time.

Because I know there's at least two clocks somewhere in this computer, I
figured it's using a different one than 'date' shows me, and I tried
first '# hwclock --systohc', then '# hwclock --hctosys' with no effect

I seem to remember at one point giving linux control of the hardware 
clock(?), &, if I boot the laptop into Windows the problem persists there

For the record, I'm assuming I'm now *not* an hour off because 'date' 
agrees with my cellphone, the cable box, NY1, and the announcers on the 
radio

The woody box is even more confusing because ntp doesn't seem to
complain at all, yet 'date' is wrong.. the opposite problem as on the
laptop

ntpq> pe
remote           refid      st t when poll reach   delay   offset     jitter
==============================================================================
+filbert.cc.colu gnomon.cc.colum  2 u   43   64  377   15.926    2.317   3.963
*time.nist.gov   .ACTS.           1 u   57   64  377   66.874   -1.757   4.852

That box starts ntpd with /etc/init.d/ntp (as opposed to ntp-simple).
I haven't manually adjusted the date on that one.

versions are 4.1.0-8 on woody and 4.1.1b-3 on sid

Any idea what I'm doing wrong??

Thanks, 
Kenneth



Reply to: