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



Relevant Pages

  • Re: Local clock question with dialup connection
    ... This looks like ntpd is not running at the time you did this. ... It may be that the server is just dropping your queries. ... Internet, I run ntpq> pe, it shows local as a system peer, and ... they are being tried once while there is no initial Internet connection ...
    (comp.protocols.time.ntp)
  • Re: NTP fails synchronization with server at startup
    ... synchronize with the server at booting. ... not make the connection. ... isn't up when NTP starts. ... Just for info I post a bit of output from ntpq> pe from FC2, ...
    (Fedora)
  • syncing two machines, microsecond precision?
    ... Hi, I'm trying to sync two machines, one as the server the other as the ... client, both sitting on a private switched network. ... filegen clockstats file clockstats type day enable ... ntpq> rv ...
    (comp.protocols.time.ntp)
  • Re: notrust alternative?
    ... Any entries shown in ntpq other than those you configured are spurious and the result of tampering in the sources that leave here. ... My concern is that my server might be using systems other than the five I have listed in my ntp.conf as a synchronization source. ... restrict default kod nomodify notrap nopeer noquery ...
    (comp.protocols.time.ntp)
  • Re: Suitable ntp.conf for public NTP server?
    ... This is really the only reason I'm considering submitting the server, as I really don't want to create any issues for the pool by having an IP address that would change frequently. ... And doesn't 'noquery' in the default restrictions prevent remote access of ntpq and ntpdc? ... Where I live the power company doesn't believe in preventative maintenance so every time we have a wind storm, the power lines contact branches, the fuse blows and we have no power for the two to three hours it takes them to come out and replace the fuse. ...
    (comp.protocols.time.ntp)