[CentOS] Gradually adjust NTP sync over time?

Brian Mathis brian.mathis+centos at betteradmin.com
Tue Sep 4 13:17:33 EDT 2012


On Tue, Sep 4, 2012 at 12:17 PM, Sean Carolan <scarolan at gmail.com> wrote:
> Suppose you have server A and server B.  Server B is running 60
> seconds too fast, while server A is accurate.  Is there a way to
> gradually move server B's time back into sync with server A, without
> making a drastic, immediate change to the clock?  In other words, we
> would like to 'smear' the difference across several hours or days to
> ensure there are no drastic changes in timestamps, etc.


This is already how ntpd works.  When you first start the service
(usually upon reboot), it will use 'ntpdate' to do a hard set of the
clock, then ntpd picks up and adjusts the clock back and forth to keep
it correct.


❧ Brian Mathis


More information about the CentOS mailing list