Networking Forums

Networking Forums > Computer Networking > Linux Networking > ntpdate / ntpd

Reply
Thread Tools Display Modes

ntpdate / ntpd

 
 
noone
Guest
Posts: n/a

 
      11-19-2003, 10:28 PM

In the data centre, I have about 8 SPARCs running Solaris8.
Each of them are running ntpdate via cron every 10 minutes.
The NTP server used is internal to the data centre, which then
synchronises its time with external NTP servers in the internet.

I have 1 linux box, running RH 7.2, using ntp from RH 7.3. The time on
this box is advanced by 1 minute and a few seconds compared to the
SPARCs. The file /etc/ntp.conf has the server line point to the internal
NTP server, like this:

server 10.0.10.37


Restarted ntpd ( /etc/rc.d/init.d/ntp stop; /etc/rc.d/init.d/ntp start
). Now after one day, the time on the linux box is still not in sync
with the rest of my boxes, the SPARCs, and ntpd is still running.

Of course, if I run ntpdate 10.0.10.37, then the time on the linux box
is "corrected" and in sync with the rest.

So question is, why ntpd did not ( or take a long time ) to "correct"
the time ?



 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      11-19-2003, 11:12 PM
"noone" <(E-Mail Removed)> wrote in message
news0Tub.18224$(E-Mail Removed)

> In the data centre, I have about 8 SPARCs running Solaris8.
> Each of them are running ntpdate via cron every 10 minutes.
> The NTP server used is internal to the data centre, which then
> synchronises its time with external NTP servers in the internet.
>
> I have 1 linux box, running RH 7.2, using ntp from RH 7.3. The time on
> this box is advanced by 1 minute and a few seconds compared to the
> SPARCs. The file /etc/ntp.conf has the server line point to the
> internal NTP server, like this:
>
> server 10.0.10.37
>
>
> Restarted ntpd ( /etc/rc.d/init.d/ntp stop; /etc/rc.d/init.d/ntp start
> ). Now after one day, the time on the linux box is still not in sync
> with the rest of my boxes, the SPARCs, and ntpd is still running.
>
> Of course, if I run ntpdate 10.0.10.37, then the time on the linux box
> is "corrected" and in sync with the rest.
>
> So question is, why ntpd did not ( or take a long time ) to "correct"
> the time ?


If the system clock is "off" by some substantial amount of time from the
ntpd server, then it is necessary to run ntpdate initially to close the gap
to an amount that can then be handled by ntpd. It's not clear why you're
using an ntpdate cron job on the Solaris machines, but ntpd on the Linux.

I just use an hourly cron job, and then sync the hardware BIOS clock too:

23 * * * * ( /usr/sbin/ntpdate 10.0.10.37; /usr/sbin/hwclock --systohc ) \
> /dev/null 2>&1



tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      11-21-2003, 02:19 PM

"noone" <(E-Mail Removed)> wrote in message
news0Tub.18224$(E-Mail Removed)...
>
> In the data centre, I have about 8 SPARCs running Solaris8.
> Each of them are running ntpdate via cron every 10 minutes.
> The NTP server used is internal to the data centre, which then
> synchronises its time with external NTP servers in the internet.
>
> I have 1 linux box, running RH 7.2, using ntp from RH 7.3. The time on
> this box is advanced by 1 minute and a few seconds compared to the
> SPARCs. The file /etc/ntp.conf has the server line point to the internal
> NTP server, like this:
>
> server 10.0.10.37
>
>
> Restarted ntpd ( /etc/rc.d/init.d/ntp stop; /etc/rc.d/init.d/ntp start
> ). Now after one day, the time on the linux box is still not in sync
> with the rest of my boxes, the SPARCs, and ntpd is still running.
>
> Of course, if I run ntpdate 10.0.10.37, then the time on the linux box
> is "corrected" and in sync with the rest.
>
> So question is, why ntpd did not ( or take a long time ) to "correct"
> the time ?


IMHO, the proper method is to initially sync at boot with ntpdate and let
ntpd then handle the rest. ntpd is better than a cron job, as it prevent
sudden time jumps and uses slow slewing instead so that no process will ever
see time reversing or jumping. Also, ntpd adjusts the poll rate to a
suitably sparse rate as soon as it is sure for a good sync.

The Solaris thingies should also use NTP. Now, at each cron time they risk a
time jump.

For a local network with limited delay, a solution could also be broadcast
NTP from the local server, e.g. at 20 min intervals. However, with less than
hundreds of clients, even a server behind 10 Mbit/s cable can well handle
standard NTP.

For more information of NTP, go to <http://www.ntp.org/>.

HTH

Tauno Voipio
tauno voipio @ iki fi


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ntpdate - PST/PDT EricThompson Linux Networking 25 03-22-2008 10:22 AM
NTPd questions Ignoramus28151 Linux Networking 7 12-19-2007 01:14 AM
ntpdate Dominique Gibon Linux Networking 3 01-25-2006 12:15 PM
ntpd Charles Linux Networking 3 01-07-2005 09:43 AM
ntpd log question James Knott Linux Networking 2 01-02-2004 07:37 PM



1 2 3 4 5 6 7 8 9 10 11