Asktime and ntp problem on 5.0.7

From: Steve M. Fabac, Jr. (smfabac_at_att.net)
Date: 01/21/05


Date: Fri, 21 Jan 2005 19:05:39 GMT

I've noticed that ntp and asktime have problems on 5.0.7.

I set up /etc/ntp.conf as follows:

> #
> server time-a.nist.gov
> #server tick.usno.navy.mil
> #server time-b.nist.gov
> #server time.nist.gov
> #server time-a.timefreq.bldrdoc.gov
>
> # ^ The IP address of the stratum 0 server machine that you would
> # be asking for the time.
>
> # Declare local clock as stratum 10 server in case we loose contact with
> # Strata 1 servers and so that our machine will serve time to the network.
>
> server 127.127.1.0
> fudge 127.127.1.0 stratum 10
>
> driftfile /etc/driftfile
>
> # ^ A scratch file used by xntpd for time adjustment

Then I modify /etc/tcp as follows to run ntpdate upon boot up.
This is the same modifications I have been using on 5.0.2 - 5.0.6
without problems.

> #
> # ntpd - Don't run this at the same time as timed.
> if [ -f /etc/ntp.conf ]; then
> # Nb. tickadj is NOT necessary or recommended.
> primary=`grep server /etc/ntp.conf | head -1 | awk ' { print $2 } ' `
> ntpdate $primary
> /etc/ntpd -g
> echo "ntpd \c"
> fi
>
> #

This requires that the default route be set up prior to ntpdate running
above as it won't work if it can't get off the machine. Prior to 5.0.7,
I add a route add default directive in /etc/tcp after the
 /etc/route add 224.0.0.0 192.168.10.1 0 > /dev/null 2>&1
command. 5.0.7 sets the default route prior to executing the ntp section.

> ntpdc> peers
> remote local st poll reach delay offset disp
> =======================================================================
> =LOCAL(0) 0.0.0.0 10 64 377 0.00000 0.000000 0.00095
> *time-a.nist.gov 192.168.10.1 1 1024 377 0.08694 0.008310 0.02217
> ntpdc>

The problem: On the two new 5.0.7 system I set up, the ntpdate command
will indicate that the internal clock is off by 20000+ seconds and make
the adjustment ( set -x in /etc/tcp and watch the boot up hardware
enumeration screen). Ntp takes care of the problem and executing date
returns the correct time and date. If you enter the correct time at the
boot up prompt, the hardware clock is set to the wrong time and after
several quick boot up cycles can be days off. Setting the BIOS hardware clock
to the correct date and not touching the keyboard when the system boots
so that you don't respond to asktime, usually allows the system to boot
without the 20000+ second offset being announced.

This is a rambling description of the problem, as I have delivered the
servers and am not trying to solve the problem, just get this out to the
community to see if anyone can test this on their systems and verify or
report that everything works as expected. (In which case, I have to assume
that the SuperMicro X5DL8-GG system board is the problem.)

--
                                      Steve Fabac
                                       S.M. Fabac & Associates
                                        816/765-1670


Relevant Pages

  • Re: Asktime and ntp problem on 5.0.7
    ... >> server 127.127.1.0 ... sets the default route prior to executing the ntp section. ... On the two new 5.0.7 system I set up, the ntpdate command ... > several quick boot up cycles can be days off. ...
    (comp.unix.sco.misc)
  • Re: Blank screen at startup
    ... the screensaver needs to blank the ... You can also boot into runlevel 3 ... Tell it to pick a server from ntp. ...
    (alt.os.linux.suse)
  • Re: Blank screen at startup
    ... the screensaver needs to blank the ... You can also boot into runlevel 3 ... Tell it to pick a server from ntp. ...
    (alt.os.linux.suse)
  • Re: Backup fails suspect VSS problem
    ... Will reboot and run a backup tonight and see what happens. ... The problem I have now is that the server appears to the customer to ... I don't even try to boot after swapping a motherboard. ... Could not access portions of directory System State\COM+ ...
    (microsoft.public.windows.server.sbs)
  • Re: RIS, same GUID, duplicates, Dell GX60s
    ... My first thought is the boot agent on the nic needs to be updated. ... these nics part of the motherboard or pci devices? ... It has to be run from a server and a floppy is created ... the nic drivers are not entirely correct, update the drivers in your RIS ...
    (microsoft.public.windowsxp.setup_deployment)

Quantcast