Server down but time staying in sync



We have observed that the NTP client never appear to be out of sync
even though the NTP server is down! It's important for us to know that
the server is down/not available!
we use ntpq to know about its association! Ideally we should use more
NTP servers but we use only one at this time!

Steps to reproduce:
--The client node (10.1.1.203) is configured and made sure that it is
in sync with the server:
$ cat /etc/ntp.conf
restrict default ignore
restrict 127.0.0.1
server 172.16.1.49 iburst
restrict 172.16.1.49
$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 703 1024 377 0.514
-3.268 1.617
$

--Later I shutdown the NTP server on 172.16.1.49

Now the "when" field keep increasing as there is no response from the
server.
here is the ntpq output at different times!

$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 740 1024 377 0.514
-3.268 1.617
$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 53m 1024 370 0.514
-3.268 1.617
$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 63m 1024 370 0.514
-3.268 1.617
$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 9h 1024 0 0.514
-3.268 0.000
$ ntpq -np
remote refid st t when poll reach delay
offset jitter
==============================================================================
*172.16.1.49 209.123.234.24 3 u 10h 1024 0 0.514
-3.268 0.000
$ cat ntp.drift
89.969
$ ntpd --version
ntpd - NTP daemon program - Ver. 4.2.4p3

This node runs on the Linux 2.6.25.14 #1 SMP kernel!

Observe that the "reach" is zero but the tally code "*" indicates that
it is synchronized!
In my previous attempt I've observed that "when" went up to few days
before reboot while the time staying in sync!
I could restart ntpd that will recover from this state but this is not
what I am looking for!

How do I estimate the time before the tally code becomes " " (space)!
.



Relevant Pages

  • Re: ntp survey
    ... ntpq -c rl, ntpq -p), ... try to get the IPs of its clients. ... It will assume that each new IP is a potential NTP server and will ...
    (comp.protocols.time.ntp)
  • Re: ntpq command output and unreachable state?
    ... But even the peers are not reachable my ntpd answers to queries ... ntpd server. ... I am trying to understand output of ntpq -c peers. ... am trying to understand that when a ntp server is announced as ...
    (freebsd-questions)
  • Re: NTP on Solaris 10
    ... server <ip-address of NTP server> ... Type `ntpq -p' on that machine to see how ...
    (comp.unix.solaris)
  • ***SPAM*** Re: howto setup server and client server
    ... I tried to configure my ntp server (actually on IPv6--- dual ... Also use ntpq -p to see the list of servers rather ... These look like they are a mixture of IPv4 and IPv6 addresses ...
    (comp.protocols.time.ntp)
  • Re: Local clock question with dialup connection
    ... This looks like ntpd is not running at the time you did this. ... It may be that the server is just dropping your queries. ... Internet, I run ntpq> pe, it shows local as a system peer, and ... they are being tried once while there is no initial Internet connection ...
    (comp.protocols.time.ntp)