[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What do people do about large clock scews



On Sun, Feb 22, 2009 at 12:30:37AM -0600, Harry Putnam wrote:
> To get it up to speed, looks like I'd have to shut ntpd down, run
> ntpdate then restart ntp.

Check the ntpd man page.

-g (set in /etc/defaults/ntpd) overrides the 1000s sanity limit

and note the entry under -q:

-q	Exit the ntpd just after the first time the clock is set.  This
	behaviour mimics that of the ntpdate program, which is to be
	retired.  The -g and the -x options can be used with this
	option.


Your problem is likely that, since at some point your clock ended up
more than 1000s off, ntpd refused to reset it, and continues to do so.

You don't need ntpdate, just use the -g option.

Doug.


Reply to: