• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Start NTP Service With Slewing Enabled in Linux

by admin

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 backward 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 the system is incremented slower until the system clock is in sync with the time on the reference system.

This post discusses steps to set NTP slewing option on NTP clients so that the service starts with slewing enabled.

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

Change the line “OPTIONS” line from:

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

to

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

4. Start ntp service for the changes to take effect:

# service ntpd start

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. Basic Commands to Troubleshoot Performance Issues in Linux
  2. rtcwake Command Examples in Linux
  3. Unable to ssh to server after integration into Active Directory (AD) Domain [CentOS/RHEL 7]
  4. Adding static entry into system ARP cache (CentOS/RHEL)
  5. Replacing a Failed Mirror Disk in a Software RAID Array (mdadm)
  6. wg: command not found
  7. How to add a Custom Script to systemd in CentOS/RHEL 7
  8. csplit: command not found
  9. e2fsck Command Examples in Linux
  10. iftop: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright