Menu Close

How to Start NTP Service With Slewing Enabled

What is slewing?
The NTP daemon will periodically update the system clock with the time from a reference clock. If the time on the reference clock is behind the time on the system clock, the system clock will be set backwards in one large decrement. Such swift changes in time can lead to Oracle shutting down the node due to inconsistent timers. To avoid this problem, NTP can be configured to slew the clock. When slewing the clock the time on system is incremented slower until the system clock is in sync with the time on the reference system.

1. Stop ntp service

# service ntpd stop 

2. Edit /etc/sysconfig/ntpd file

# vi /etc/sysconfig/ntpd

The file looks like in the example below

# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no

3. Change the line

OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"

to

OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
Posted in RAC, Troubleshooting

Related Posts