Re: [SLUG] NTP

From: SpamFree (SpamFree@tampabay.rr.com)
Date: Tue May 27 2003 - 13:12:30 EDT


On Tuesday May 27 2003 11:37 am, you wrote:
> I've noticed that the time on my mail server drifts a lot... So, I'm
> configuring NTP to keep it accurate. Here is the output of ntpq -p:
>
> remote refid st t when poll reach delay offset
> ======================================================================
> *LOCAL(0) LOCAL(0) 10 l 241m 64 377 0.000 0.000
> sushi.compsci.l 0.0.0.0 16 u - 1024 0 0.000 0.000
> ns1.usg.edu 0.0.0.0 16 u - 1024 0 0.000 0.000
>
> I cut off the "jitter" column to make it more readable... But, from
> looking at the "when" column, I'm not receiving responses from the NTP
> servers I've selected.
>
> If I kill the ntpd service, and run ntpdate, here's what I get:
>
> # ntpdate ns1.usg.edu
> 27 May 11:17:01 ntpdate[1693]: step time server 198.72.72.10 offset
> -2.997164 sec
>
> I get a similar repsonse from the sushi.compsci.lyon.edu server, so I
> know I can connect to the NTP servers... Here are all the uncommented
> lines my ntp.conf file:
> ############################################
>
> restrict default ignore
>
> restrict 127.0.0.1
>
> server sushi.compsci.lyon.edu
> server rolex.usg.edu
>
> server 127.127.1.0 # local clock
> fudge 127.127.1.0 stratum 10
>
> driftfile /etc/ntp/drift
> broadcastdelay 0.008
>
> keys /etc/ntp/keys
> #############################################
>
> ( ns1.usg.edu and rolex.usg.edu both resolve to the same IP address )
>
> the command "ps aux | grep ntp" shows that ntpd is started like this:
> ntpd -U ntp -g
>
> What am I missing? I've got UDP port 123 open on the firewall. I've
> looked at a few sample ntp.conf files floating around, and can't find
> where I've gone wrong. I'm running RH9, and ntp-4.1.2-0.rc1.2.
>
> Thannks!
>
> Doug

Basically, you have configured it to look at the local host for the time as
well as the other servers. It is successfully getting and setting the time
from the local clock.

I would recommend that you remove all of the 127 entries. I would also remove
the drift file entry until you are confident that you are getting the right
time from the right place. Basically, your ntp.conf should have only:

server sushi.compsci.lyon.edu
server rolex.usg.edu

Alternatively, you could use Red Hat's graphical config tool. I think it is
dateconfig. Just check the box to enable NTP and select the ntp servers from
the list.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:20:22 EDT