[TriLUG] RHEL ntp problem

Heath Roberts htroberts at gmail.com
Tue Jul 12 12:03:10 EDT 2011


Thanks for the responses. Just in case anyone is curious, the problem turned
out to be a bad entry for localhost in /etc/hosts. It had 12.0.0.1 instead
of 127.0.0.1.

On Tue, Jun 28, 2011 at 12:40 PM, Heath Roberts <htroberts at gmail.com> wrote:

> I have a problem on a redhat server. NTP appears not to be working. ntpq -p
> takes ~15s to timeout and makes it appear that ntpd is only trying to get
> time from localhost and failing:
>
> [root@<hostname> init.d]# ntpq -p
> localhost.localdomain: timed out, nothing received
> ***Request timed out
>
>
> ntpdate also fails, whether run from command line or the ntpd startup
> script:
>
> [root@<hostname> init.d]# /etc/init.d/ntpd reload
> Shutting down ntpd:                                        [  OK  ]
> ntpd
> : Synchronizing with time server:                      [FAILED]
> Starting ntpd:                                             [  OK  ]
> [root@<hostname> init.d]# ntpdate -d            <----------- this is where
> it takes ~15s to timeout
> 28 Jun 12:28:17 ntpdate[23039]: ntpdate 4.2.2p1 at 1.1570-o Thu Nov 26
> 11:34:35 UTC 2009 (1)
> 28 Jun 12:28:17 ntpdate[23039]: no servers can be used, exiting
>
>
> I have another machine on similar (theoretically identical) hardware that
> was built from the same repository at the same time that works. I've copied
> its ntp.conf to the problem machine, with no change.
>
> Any ideas?
>
-- 
Heath Roberts
htroberts at gmail.com



More information about the TriLUG mailing list