Re: [opensuse] chrony and hwclock



On Mon, 2011-07-18 at 12:05 +0200, Per Jessen wrote:

To stick to the legal metaphors, I think the judge will dismiss your
claim as hear-say :-) At least until you present evidence that the
server is configured but not used ("ntpq -p" will show the peers).


I finally got a chance to run this (after boot, logged in and network
up, time still wrong):

# ntpq -p
ntpq: read: Connection refused


After boot (real time was 21.48), I see this is /var/log/messages:

Jul 18 23:48:59 barracuda ntpd[3033]: ntpd 4.2.6p3@xxxxxxxx Tue Jun 7 03:10:56 UTC 2011 (1)
Jul 18 23:48:59 barracuda ntpd[3034]: proto: precision = 0.243 usec
Jul 18 23:48:59 barracuda ntpd[3034]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Jul 18 23:48:59 barracuda ntpd[3034]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Jul 18 23:48:59 barracuda ntpd[3034]: Listen and drop on 1 v6wildcard :: UDP 123
Jul 18 23:48:59 barracuda ntpd[3034]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jul 18 23:48:59 barracuda ntpd[3034]: Listen normally on 3 lo ::1 UDP 123
Jul 18 23:48:59 barracuda ntpd[3034]: peers refreshed

/var/log/ntp has (wireless up at 23:54:00):

18 Jul 23:48:59 ntpd[3034]: Deferring DNS for ntp1.sth.netnod.se 1
18 Jul 23:49:02 ntpd[3069]: host name not found: ntp1.sth.netnod.se
18 Jul 23:50:04 ntpd[3069]: host name not found: ntp1.sth.netnod.se
18 Jul 23:52:06 ntpd[3069]: host name not found: ntp1.sth.netnod.se
18 Jul 23:54:00 ntpd[3034]: Listen normally on 4 wlan0 192.168.1.17 UDP 123
18 Jul 23:54:01 ntpd[3034]: Listen normally on 5 wlan0 fe80::227:10ff:fe71:6724 UDP 123
18 Jul 23:54:01 ntpd[3034]: peers refreshed
18 Jul 23:54:01 ntpd[3034]: new interface(s) found: waking up resolver
18 Jul 23:54:03 ntpd[3069]: DNS ntp1.sth.netnod.se -> 192.36.144.22

My /etc/sysconfig has:

NTPD_OPTIONS="-g -u ntp:ntp"

My /etc/ntp.conf file is:

server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift/ntp.drift
logfile /var/log/ntp
keys /etc/ntp.keys
trustedkey 1
requestkey 1
server ntp1.sth.netnod.se iburst



So, it seems that the time source is retried, but nothing happens. And,
the -p option is failing.

--
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696

SHAW'S PRINCIPAL
Build a system that even a fool can use,
and only a fool will want to use it.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx