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

The Geek Diary

CONCEPTS | BASICS | HOWTO

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

CentOS / RHEL 6 : How to force a NTP sync with the NTP server(s)

By admin

This post briefly outlines how one can force a ntp (Network Time Protocol) sync with the ntp servers defined in the /etc/ntp.conf configuration file. This will not work if there are no ntp servers defined in the /etc/ntp.conf, this can be verified using :

# grep ^server /etc/ntp.conf

This document is useful when the date gets reset e.g. by a hardware maintenance such as a motherboard replacement.

Steps to force NTP sync

1. Stop the ntpd service :

# service ntpd stop

2. Force an update :

# ntpd -gq

-g – requests an update irrespective of the time offset
-q – requests the daemon to quit after updating the date from the ntp server.

3. restart the ntpd service :

# service ntpd start

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to backup Linux OS using “dd” Command
  2. Beginners Guide to Managing Package Module Streams in CentOS/RHEL 8
  3. Failed to Download Metadata for Repo ‘repo_name’
  4. How to configure EPEL repository in OEL 7
  5. vncserver fails with “Starting VNC server: no displays configured”
  6. Swapon Fails To Mount Swap – Gives Invalid Argument Error
  7. Why Does a Lun World Wide ID Starts with the Number 3 in Linux dm-multipath
  8. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on non-LVM device (hard disk partition)
  9. Unable to Start RDMA Services on CentOS/RHEL 7
  10. CentOS / RHEL : Converting an Existing Root Filesystem to LVM Partition

You May Also Like

Primary Sidebar

Recent Posts

  • How to Configure Automatic Package Updates on the Server in CentOS/RHEL 8
  • FATAL: Error inserting rds_rdma
  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary