Bonjour.

I have one of those little box peecees - no battery = no clock.
Regardless, I wish to use OpenNTPD to organize time.
My ISP kindly provides an ntp server.

# uname -rsv
OpenBSD 4.6 GENERIC#58

During boot I see this:
starting network
add net default: gateway 0.0.0.1
starting system logger
starting initial daemons: ntpd.

This sits there for maybe ten seconds and continues booting.
Finally I see this (example):
Mon Jul 13 10:23:29 CST 2009
OpenBSD/i386 (myname.my.domain) (tty00)
login:

The clock is using the time from the previous shutdown/reboot (and
originally from the "timestamp" on the 4.6 install files).
The only change appears to be from elapsed "uptime".

This is my rc.conf.local:
# cat rc.conf.local
ntpd_flags="-s"         # enabled during install

This is my ntpd.conf (minus some comments):
# cat ntpd.conf
# $OpenBSD: ntpd.conf,v 1.11 2009/05/18 16:13:48 stevesk Exp $
# Addresses to listen on (ntpd does not listen by default)
listen on 150.101.x.x
# sync to a single server
server ntp.internode.on.net

This is using pppoe(4) and the "listen" interface is the pppoe address.
My internet works fine and I have removed all filter rules from
pf.conf to be sure.
Regardless, with filtering happening the results look the same as per
the log (below).

In all cases the servers appear to be valid and the time difference
found appears to be on the money:
Jul 13 + ~108days b      Oct 30.
>From /var/log/daemon:
Jul 13 09:38:56 myname ntpd[20688]: adjusting local clock by 9377958.788013s
Jul 13 09:39:27 myname ntpd[20688]: adjusting local clock by 9377958.680999s
Jul 13 09:43:45 myname ntpd[20688]: adjusting local clock by 9377957.395701s
Jul 13 09:44:19 myname ntpd[20688]: adjusting local clock by 9377957.230468s
Jul 13 09:44:51 myname ntpd[20688]: adjusting local clock by 9377957.115971s
Jul 13 09:48:39 myname ntpd[20688]: adjusting local clock by 9377956.019010s
Jul 13 09:52:58 myname ntpd[20688]: adjusting local clock by 9377954.771459s
Etcetera.

I had this exact issue (anecdotally) with 4.5 and tried rdate
(rc.conf.local):
rdate_flags="ntp.internode.on.net"
>From memory this worked fine and the clock was set at boot.
Certainly rdate worked.

Things I have done:
# ntpd -n
configuration OK
# rdate -p ntp.internode.on.net
Fri Oct 30 01:09:33 CST 2009

Things I noted:
I have no drift file (/var/db/ntpd.drift).

Any advice appreciated.

Best wishes.

Reply via email to