<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ntpd not working, ntpdate -u works fine in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630628#M40790</link>
    <description>If your system is synchronizing to another that shows stratum 11, then that other system is using it's local clock instead of some better authoritative source.&lt;BR /&gt;&lt;BR /&gt;It is likely that your systems are simply too far away from the accurate time on the stratum 1 server.  ntpd will not make a correction if it exceeds about two minutes.  Use ntpdate to step your system to match time on the stratum 1 server, then start up ntpd to maintain that accurate time.  NTP will prefer to use the lower strata over the higher ones if they are within range.  The local clock is fudged to 10 or higher so that it is the least preferred.&lt;BR /&gt;&lt;BR /&gt;I would not remove the local clock definition from the configuration since it allows systems to at least agree with each other if a failure occurs that puts your cluster out of touch with more authoritative clocks.</description>
    <pubDate>Mon, 10 May 2010 20:26:13 GMT</pubDate>
    <dc:creator>Randy Jones_3</dc:creator>
    <dc:date>2010-05-10T20:26:13Z</dc:date>
    <item>
      <title>ntpd not working, ntpdate -u works fine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630625#M40787</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a strange situation with ntp.&lt;BR /&gt;I have set up a standard ntp.conf configuration (listed below) on an rhel5 server, yet ntpd is unable to synchronize time with my time source. it synchronizes with the local clock instead.&lt;BR /&gt;When I run ntpdate -u ntp_server, it's able to synchronize the clock.&lt;BR /&gt;&lt;BR /&gt;I have tried synchronizing with other time sources and linux servers in my organization but with the same result.&lt;BR /&gt;&lt;BR /&gt;I have also tried adding to grub.conf the following with no success:&lt;BR /&gt;clock=pit nosmp noapic nolapic&lt;BR /&gt;&lt;BR /&gt;This is my /etc/ntp.conf coniguration on the ntp client:&lt;BR /&gt;****Start of /etc/ntp.conf******&lt;BR /&gt;restrict default nomodify notrap nopeer noquery&lt;BR /&gt;restrict 127.0.0.1&lt;BR /&gt;restrict -6 ::1&lt;BR /&gt;server 127.127.1.0&lt;BR /&gt;fudge   127.127.1.0 stratum 10&lt;BR /&gt;driftfile /var/lib/ntp/drift&lt;BR /&gt;keys /etc/ntp/keys&lt;BR /&gt;server server1&lt;BR /&gt;restrict server1 mask 255.255.255.255 nomodify notrap noquery&lt;BR /&gt;server server2&lt;BR /&gt;restrict server2 mask 255.255.255.255 nomodify notrap noquery&lt;BR /&gt;****End of /etc/ntp.conf*****&lt;BR /&gt;&lt;BR /&gt;this is my /etc/ntp.conf coniguration on server1:&lt;BR /&gt;****Start of /etc/ntp.conf******&lt;BR /&gt;restrict default nomodify notrap nopeer noquery&lt;BR /&gt;restrict 127.0.0.1&lt;BR /&gt;restrict -6 ::1&lt;BR /&gt;server 127.127.1.0&lt;BR /&gt;fudge   127.127.1.0 stratum 10&lt;BR /&gt;driftfile /var/lib/ntp/drift&lt;BR /&gt;keys /etc/ntp/keys&lt;BR /&gt;server 0.rhel.pool.ntp.org&lt;BR /&gt;server 1.rhel.pool.ntp.org&lt;BR /&gt;server 2.rhel.pool.ntp.org&lt;BR /&gt;restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap&lt;BR /&gt;****End of /etc/ntp.conf*****&lt;BR /&gt;where 12.168.100.0 is the subnet of th servers&lt;BR /&gt;&lt;BR /&gt;This what I get in ntpq -p on the ntp clients:&lt;BR /&gt;[root@ntpclient ~]# ntpq -p&lt;BR /&gt;     remote           refid      st t when poll reach   delay   offset  jitter&lt;BR /&gt;==============================================================================&lt;BR /&gt;*LOCAL(0)        .LOCL.          10 l   52   64  377    0.000    0.000   0.001&lt;BR /&gt; server1 .LOCL.           1 u  913 1024  377    0.289  -61.588  15.260&lt;BR /&gt; server2 .INIT.          16 u    - 1024    0    0.000    0.000   0.000&lt;BR /&gt;[root@ntpclient ~]#&lt;BR /&gt; &lt;BR /&gt;This is the output of ntpdate -u:&lt;BR /&gt;[root@ntpclient ~]# ntpdate -u server1&lt;BR /&gt; 9 May 18:20:14 ntpdate[27625]: adjust time server 192.168.100.20 offset -0.088901 sec&lt;BR /&gt;[root@ntpclient ~]#&lt;BR /&gt;&lt;BR /&gt;Does anyone have any idea?</description>
      <pubDate>Sun, 09 May 2010 14:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630625#M40787</guid>
      <dc:creator>YairZaretski</dc:creator>
      <dc:date>2010-05-09T14:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: ntpd not working, ntpdate -u works fine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630626#M40788</link>
      <description>This tells me the client has not been able to reach server2 at all:&lt;BR /&gt;&lt;BR /&gt;*LOCAL(0) .LOCL. 10 l 52 64 377 0.000 0.000 0.001&lt;BR /&gt;server1 .LOCL. 1 u 913 1024 377 0.289 -61.588 15.260&lt;BR /&gt;server2 .INIT. 16 u - 1024 0 0.000 0.000 0.000 &lt;BR /&gt;&lt;BR /&gt;So the client has two possible sources of time information. One agrees 100% with the client's local clock (because it *is* the local clock), has no measurable communication delay and insignificant delay jitter. The other is slow by about 61.6 ms, has some delay and quite a bit of jitter. So, by the numbers, the first one looks very reliable indeed.&lt;BR /&gt;&lt;BR /&gt;If there were two timesources that would be in a reasonable agreement with each other and disagree with the local clock, ntpd would pick one of them instead of the local clock. But there are only two active timesources, so this sanity check is not possible. The result is that ntpd dumbly picks the local clock as its reference of choice.&lt;BR /&gt;&lt;BR /&gt;My recommendation is simple: comment out the local clock lines ("server 127.127.1.0" and "fudge 127.127.1.0 stratum 10") from your NTP client configuration. &lt;BR /&gt;&lt;BR /&gt;You don't really need it to fall back to the local clock if the contact to all the configured NTP servers is lost: your OS will do that automatically whenever ntpd is not running or cannot provide time synchronization.&lt;BR /&gt;&lt;BR /&gt;The local clock configuration has any value in your NTP server hosts only. When a NTP server is not synchronized with any timesource, it will not provide time information to its clients: its answer will be the NTP protocol equivalent of "I'm not sure." &lt;BR /&gt;&lt;BR /&gt;If this happens to your server1 and server2, then all your clients will fall back to their own internal clocks, and each system will drift on its own. &lt;BR /&gt;&lt;BR /&gt;But if one of the servers has a local clock configured, that server will use it as a last-resort timesource, and can keep serving the clients. In this situation, your group of clients may drift out of sync with the rest of the world - but they all will at least stay in sync with the server, and thus with each other, which is usually the main goal of time synchronization.&lt;BR /&gt;&lt;BR /&gt;My second recommendation would be: your NTP client obviously has some sort of problem in communicating with server2. Find out why, and fix it.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sun, 09 May 2010 17:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630626#M40788</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-05-09T17:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: ntpd not working, ntpdate -u works fine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630627#M40789</link>
      <description>Thanks!&lt;BR /&gt;I actually combined both recommendations and it solved part of the problem.&lt;BR /&gt;I removed the local clock and added another NTP server instead of the non-functional one.&lt;BR /&gt;Now, it synchronizes with the new NTP server I listed, which is stratum 11, and not with the first NTP server, which is stratum 1.&lt;BR /&gt;I'm not sure why it can't work with the stratum 1 NTP server, though.&lt;BR /&gt;Do you have any idea whelse can I check?&lt;BR /&gt;&lt;BR /&gt;At least now, I'm able to synchronize with something in the network</description>
      <pubDate>Mon, 10 May 2010 09:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630627#M40789</guid>
      <dc:creator>YairZaretski</dc:creator>
      <dc:date>2010-05-10T09:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: ntpd not working, ntpdate -u works fine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630628#M40790</link>
      <description>If your system is synchronizing to another that shows stratum 11, then that other system is using it's local clock instead of some better authoritative source.&lt;BR /&gt;&lt;BR /&gt;It is likely that your systems are simply too far away from the accurate time on the stratum 1 server.  ntpd will not make a correction if it exceeds about two minutes.  Use ntpdate to step your system to match time on the stratum 1 server, then start up ntpd to maintain that accurate time.  NTP will prefer to use the lower strata over the higher ones if they are within range.  The local clock is fudged to 10 or higher so that it is the least preferred.&lt;BR /&gt;&lt;BR /&gt;I would not remove the local clock definition from the configuration since it allows systems to at least agree with each other if a failure occurs that puts your cluster out of touch with more authoritative clocks.</description>
      <pubDate>Mon, 10 May 2010 20:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ntpd-not-working-ntpdate-u-works-fine/m-p/4630628#M40790</guid>
      <dc:creator>Randy Jones_3</dc:creator>
      <dc:date>2010-05-10T20:26:13Z</dc:date>
    </item>
  </channel>
</rss>

