Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

NTPDate v. NTPD

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Fiber Optic  
Author Message
Tony Fischer

External


Since: Jun 08, 2006
Posts: 1



(Msg. 1) Posted: Thu Jun 08, 2006 8:15 pm
Post subject: NTPDate v. NTPD
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

In reading the FreeBSD handbook about time synchronization I'm not sure what
to put in my rc.conf file. If I understand correctly, NTPDate will only
synchronize when a machine is rebooted while NTPD will periodically check
the computer's time as long as it's on. So to cover all of my bases I'm
considering setting up an rc.conf file with the following entries...

ntpdate_enable="YES"
ntpdate_flags="time.server.goes.here"
ntpd_enable="YES"
ntpd_flags="time.server.goes.here"

I'm operating off of the assumption that the "ntpdate" entries will take
care of synching when I reboot the machine and "ntpd" will take over to
check periodically when the machines up. Is this overkill or even correct?
Any input would be welcome.

--
Tony

 >> Stay informed about: NTPDate v. NTPD 
Back to top
Login to vote
Kris Kennaway

External


Since: Mar 22, 2004
Posts: 43



(Msg. 2) Posted: Fri Jun 09, 2006 5:49 am
Post subject: Re: NTPDate v. NTPD [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2006-06-09, Tony Fischer wrote:
> In reading the FreeBSD handbook about time synchronization I'm not sure what
> to put in my rc.conf file. If I understand correctly, NTPDate will only
> synchronize when a machine is rebooted while NTPD will periodically check
> the computer's time as long as it's on. So to cover all of my bases I'm
> considering setting up an rc.conf file with the following entries...
>
> ntpdate_enable="YES"
> ntpdate_flags="time.server.goes.here"
> ntpd_enable="YES"
> ntpd_flags="time.server.goes.here"
>
> I'm operating off of the assumption that the "ntpdate" entries will take
> care of synching when I reboot the machine and "ntpd" will take over to
> check periodically when the machines up. Is this overkill or even correct?
> Any input would be welcome.

Yes, enabling both ntpdate and ntpd is the way to go; e.g. ntpd will
refuse to alter the clock if it is too far out of sync.

Kris

 >> Stay informed about: NTPDate v. NTPD 
Back to top
Login to vote
David Van Cleef

External


Since: Aug 18, 2005
Posts: 2



(Msg. 3) Posted: Fri Jun 09, 2006 1:25 pm
Post subject: Re: NTPDate v. NTPD [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony Fischer wrote:
> In reading the FreeBSD handbook about time synchronization I'm not sure what
> to put in my rc.conf file. If I understand correctly, NTPDate will only
> synchronize when a machine is rebooted while NTPD will periodically check
> the computer's time as long as it's on. So to cover all of my bases I'm
> considering setting up an rc.conf file with the following entries...
>
> ntpdate_enable="YES"
> ntpdate_flags="time.server.goes.here"
> ntpd_enable="YES"
> ntpd_flags="time.server.goes.here"
>
> I'm operating off of the assumption that the "ntpdate" entries will take
> care of synching when I reboot the machine and "ntpd" will take over to
> check periodically when the machines up. Is this overkill or even correct?

No, that's common practice. If you have a system clock that got WAY out
of sync, running ntpdate at boot time will significantly reduce the
amount of time for ntpdate to reach steady-state.
 >> Stay informed about: NTPDate v. NTPD 
Back to top
Login to vote
Per Hedeland

External


Since: Jul 13, 2003
Posts: 30



(Msg. 4) Posted: Sat Jun 10, 2006 12:49 am
Post subject: Re: NTPDate v. NTPD [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article David Van Cleef writes:
>Tony Fischer wrote:
>> In reading the FreeBSD handbook about time synchronization I'm not sure what
>> to put in my rc.conf file. If I understand correctly, NTPDate will only
>> synchronize when a machine is rebooted while NTPD will periodically check
>> the computer's time as long as it's on. So to cover all of my bases I'm
>> considering setting up an rc.conf file with the following entries...
>>
>> ntpdate_enable="YES"
>> ntpdate_flags="time.server.goes.here"
>> ntpd_enable="YES"
>> ntpd_flags="time.server.goes.here"
>>
>> I'm operating off of the assumption that the "ntpdate" entries will take
>> care of synching when I reboot the machine and "ntpd" will take over to
>> check periodically when the machines up. Is this overkill or even correct?

As already explained, the combination is a good idea - note though that
ntpd doesn't take time server names on the commandline (ntpd_flags), you
need to have a config file to specify those. The default ntpd_flags in
/etc/defaults/rc.conf has some parameters that *can* be used on the
commandline, then again those can also be set in the config file, and if
you need one anyway...

You really should set those parameters though, and set them to the
values in /etc/defaults/rc.conf (which are not the "builtin" defaults),
unless you have some very good reason to do otherwise - i.e. if you
overrride ntpd_flags in /etc/rc.conf, make sure they are either still
included in the setting or specified in the config file.

If you're really paranoid you could have '-g' on the ntpd commandline -
this doesn't have a config file equivalent AFAIK. It tells ntpd that
it's OK to do a huge correction once after startup, and would get your
system time back to sanity in the case where it both was *really* way
off initially, and the ntpdate run failed (e.g. because none of the time
servers could be reached). In that pathological case, ntpd will just
exit (after syslogging the problem) if -g isn't used.

>No, that's common practice. If you have a system clock that got WAY out
>of sync, running ntpdate at boot time will significantly reduce the
>amount of time for ntpdate to reach steady-state.

Yes - and perhaps even more importantly, it will avoid the stepping of
the system clock that will otherwise happen some time after boot if the
system clock is more than 128 ms off initially (and I guess most
non-NTP-geeks wouldn't consider 128 ms "WAY out of sync"Smile. Some things
will be very unhappy if the clock is stepped backwards.

It should perhaps also be noted that the developers of the "NTP
reference implementation" have been trying to get rid of ntpdate for
quite a while (it's "officially deprecated"), in favor of having ntpd do
also this initial "quick sync/step", or possibly using a simpler SNTP
client instead of ntpdate. Personally I can't say that I find either
alternative satisfactory - and in any case, even if the removal of
ntpdate from the reference implementation ever comes about, it doesn't
necessarily mean that it has to be removed from the FreeBSD base system.

--Per Hedeland
per.RemoveThis@hedeland.org
 >> Stay informed about: NTPDate v. NTPD 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]