Re: Asktime and ntp problem on 5.0.7

From: Bob Bailin (72027.3605_at_compuserve.com)
Date: 01/24/05


Date: Mon, 24 Jan 2005 17:02:42 GMT


"Steve M. Fabac, Jr." <smfabac@att.net> wrote in message news:41F15282.164BE940@att.net...
> 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.)

How about adding a couple of date commands before & after the ntpdate
command to see exactly what's going on here? Also echo the value of $primary.

Bob



Relevant Pages

  • Problems bringing up domains in a E10000 - Panic Boot
    ... bringing up the domains in the E10000 server doesn't work... ... Rebooting with command: boot disk0 -r ... Unit 0 Disk SEAGATE ST39103LCSUN9.0G034A9944632001 ...
    (SunManagers)
  • Asktime and ntp problem on 5.0.7
    ... I've noticed that ntp and asktime have problems on 5.0.7. ... > server time-a.nist.gov ... Then I modify /etc/tcp as follows to run ntpdate upon boot up. ...
    (comp.unix.sco.misc)
  • Re: Cant log into FC4, display keeps going "out of range"
    ... > Worked fine until the regular X server start during boot up. ... > In Grub I've tried seeing if I can access the xorg.conf file so I can ... I can think of 2 things to try to get to a command line: ...
    (comp.os.linux.misc)
  • Re: Documentation of services
    ... what the initscript does versus what the command ... Take for example ntp. ... what server should I set my time to (regardless what my local clock ... One could argue that the config file needs help, ...
    (Fedora)
  • RE: Domain Time Syncing
    ... the Windows Time service is started on the PDC Emulator. ... I have tried those commands with a few different 2nd level public NTP ... open on our ISA server; the server commands below do not error out. ... the results are "The command completed successfully". ...
    (microsoft.public.windows.server.active_directory)