Re: NTP fails synchronization with server at startup



On Thursday 06 December 2007 16:17, Paul Smith wrote:
On Dec 6, 2007 2:36 PM, Craig White <craigwhite@xxxxxxxxxxx> wrote:
OK normal setup would have NetworkManager start at 98 which of
course would be after ntpd (and most every other network service)

Seems a rather bad way to organise the starting order, not having a
network ready before services that need to use a network.

I am working on my first cup of coffee, so I may be way off base,
but isn't NetworkManager designed to manage connections when a user
logs in? My thinking is the late start is because the programmers
figured that it would not have anything to do until the user logs
in, and unlocks the "key vault" so that the wireless encryptions are
available. In this case, might it work better to use the network
service instead of NetworkManager to bring up the network? This may
be why NetworkManager runs in run level 5, and network runs in run
level 3?

Note: I am writing this from a FC6 box, so I can not double check
the service names/startup time in F8. Would someone please double
check this?

----
I did double check it on F8 and NetworkManager is indeed chkconfig 98 2
meaning S98 and K02

I think your assessment is probably correct. I gathered from an earlier
explanation that the 'Live CD' uses NetworkManager by default and
thereby gather that an installation by a 'Live CD' would mimic that.

Obviously that would cause a few issues - such as the one under
discussion where ntpd starts before any network starts and I would think
that a bugzilla entry to NetworkManager should restart any services such
as ntpd upon establishing a network connection would be the end of
discussion.

Indeed, my installation was done with a F8 *live* CD. I have put ntpd
to be launched (at startup) after NetworkManager, but it did not solve
the originally reported problem (ntp does not start at booting).
Meanwhile, I asked for help on the NTP list; for more details, see:

http://groups.google.com/group/comp.protocols.time.ntp/topics

Paul

Hi Paul. Yes, I saw your posts on the NTP list, and there is the same or very
similar problem on Suse 10.3. Link below.
https://bugzilla.novell.com/show_bug.cgi?id=337075

I know it's only a workaround, but how about putting the ntp restart
in /etc/rc.d/rc.local.

Just a single line as below will do.
/sbin/service ntpd restart

As rc.local is run last, hopefully your problem will be resolved.

I have to do a similar sort of thing on my FC2 install, which gets it's time
from the Internet, via a Smoothwall firewall, and dialup modem. Rambling, but
just for info, the situation is that the dialup connection is down when I
boot FC2. The ntp daemon starts, can't find the Internet servers, and
silently dies. Once booted I establish the dialup connection via the
Smoothwalls web interface. The script that is running from rc.local is
sending out pings to a webserver, and when the dialup connection is
established receives a response. Upon receiving a response from the ping,
ntpd restart is run, and now ntpd has no problem contacting the Internet time
servers. I know this is with FC2, but it's still a good distro, though no
longer supported. End of ramble.

All the best Paul.

Nigel.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Automatically starting ntpd after dial-up connect
    ... PC clock accurate by having ntpd automatically start whenever I ... Used to be that ntpd had to be started before the network, ... inaccessible when NTP starts. ... NTP must be started after Internet access is established. ...
    (comp.os.linux.misc)
  • Re: ntpd failed to start
    ... It seems that you have some kind of network problem which prevents ... are reconfigured and new settings allow ntpdate to work, ... start ntpd service manually after login. ... you specify NTP servers by their DNS names and use local DNS server ...
    (RedHat)
  • Re: ntp client over satellite and no CMOS battery
    ... There already is a mechanism to read the NTP status and statistics using the ntp_gettimeand ntp_adjtimesystem routines if your kernel has NTP support. ... make the ntpd starter script wait for a minute after starting ntpd, ... it comes alive from power cycle, the hwclock sets the system clock ... the network is available before the client ...
    (comp.protocols.time.ntp)
  • Re: ntp client over satellite and no CMOS battery
    ... ntpd for dummies ... it comes alive from power cycle, the hwclock sets the system clock ... the network is available before the client ... I don't want to delay the rest of the boot process, ...
    (comp.protocols.time.ntp)
  • Re: API for step time server notification
    ... You could have something read the logs and notify your program. ... Mind you if ntpd is stepping after having been running for a few hours, ... many network measurements are very badly affected by time ... ntp sources for a while (I set up the step threshold to 1s on the ntp ...
    (comp.protocols.time.ntp)