Fedora Linux Support Community & Resources Center
  #1  
Old 5th May 2008, 06:38 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
What is role of ntpdate in F9?

Particularly for Virtual Machines I have tended to use ntpdate in a cron job rather than ntp in order to have easier control over the update interval.

I notice that F9 has added ntpdate as a service.

Presumably the intention is that it will be configured in the file /etc/sysconfig/ntpdate, however the ntpdate man file seems out-of-date, so not clear what settings to use, for example, to set the update interval.

Any info on this as yet?
  #2  
Old 5th May 2008, 07:43 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
The purpose of ntpdate is to set the time once at boot, before starting the ntp service. That's what the ntpdate pseudo-service in F9 does. The functionality that used to be in /etc/rc.d/init.d/ntp has been split into a separate init script.
Running ntpdate from cron is a bad idea . Use ntp instead.
  #3  
Old 5th May 2008, 10:04 AM
techmum Offline
Registered User
 
Join Date: Dec 2005
Location: Western Australia
Posts: 267
Quote:
Originally Posted by markkuk
Running ntpdate from cron is a bad idea . Use ntp instead.
Ta to you and stevea for explanation.

However, for Virtual Machines, ntpd can be pretty useless. In my experience ntpd just cannot handle the massive drifts that happen in VMs (VMware Server).

Wherever possible I have been using ntpd on the host, and then use a cron job to run ntpdate against the VM host. I can also appreciate it would be unreasonable to blast the main ntp servers with a gazillion ntpdate requests, so getting the local host right and using the local host is critical.

Perhaps there is something else I am missing?
  #4  
Old 5th May 2008, 07:56 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,905
ntpdate man page is correct and doesn't document the service.

The so-called service started in /etc/init.d/ntpdate just runs the startscript once at startup, creates a lockfile, then at shutdown deletes the lockfile. Not really a service. The startup script *seems* simple.. It scans /etc/ntp/setp-tickers, looking for server names and uses these as args to ntpdate.

It seems to be a boot-time option to set the hwclock. Nothing more. This used to be done in ntpd script I believe. I suppose yo ucould restart the ntpdate service to re-sync clocks.

Last edited by stevea; 5th May 2008 at 07:58 AM.
  #5  
Old 5th May 2008, 08:03 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,905
Markkuk - what is wrong with running ntpdate from a cron job. I don't see the problem.
Also there is nothing called "ntp" to run so I don't understand your comment.

ntpdate is a simple binary tool that comes w/ the ntp package I think the alternatives are to run ntpd or ntpdate, and for a virtualization (most will use the host clock) I'd just use ntpdate one time unless time was very critical.
  #6  
Old 5th May 2008, 08:24 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
Quote:
Originally Posted by stevea
Markkuk - what is wrong with running ntpdate from a cron job. I don't see the problem.
Follow the link in my previous post or see the NTP FAQ
Quote:
Originally Posted by stevea
Also there is nothing called "ntp" to run so I don't understand your comment.
Sorry, i meant "ntpd".
Quote:
Originally Posted by stevea
I think the alternatives are to run ntpd or ntpdate,
They aren't alternatives, both have specific purposes: ntpdate sets the clock to a good enough initial value at boot time so that ntpd can synchronize quickly, ntpd keeps the clock accurately synchronized while the system is operating.
 

Tags
ntpdate, role

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is /etc/init.d/ntpdate tatacalu Using Fedora 3 10th September 2009 02:20 AM
firewall role talkstock888 Security and Privacy 1 4th January 2007 12:41 AM
What is the role of GDM Psquared Installation, Upgrades and Live Media 4 23rd September 2004 01:41 PM


Current GMT-time: 07:04 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Buea Instagram Photos - Zhangjiakou - Alfortville