Posted On December 17, 2020

Network Time Protocol for CentOS 8

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Network Time Protocol for CentOS 8

Check hardware clock

[root@sftp testadmin]# hwclock --verbose
hwclock from util-linux 2.32.1
System Time: 1608158426.341727
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 0 seconds after 1969
Last calibration done at 0 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2018/12/16 22:40:26
Hw clock time : 2018/12/16 22:40:26 = 1608158426 seconds since 1969
Time since last adjustment is 1608158426 seconds
Calculated Hardware Clock drift is 0.000000 seconds
2018-12-16 14:40:24.944162-08:00

Configure NTP Client:

sudo vim /etc/chrony.conf
systemctl restart chronyd

Check NTP for synchronization status:

[root@sftp testadmin]# timedatectl
Local time: Wed 2018-12-16 14:39:43 PST
Universal time: Wed 2018-12-16 22:39:43 UTC
RTC time: Wed 2018-12-16 22:39:43
Time zone: America/Los_Angeles (PST, -0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Install ISPConfig on CentOS 5.2

cd /var/www/html wget  tar xvfz ISPConfig-2.2.24.tar.gz cd install_ispconfig ./setup

Disable Screensaver on CentOS 8

Here are a couple of tricks that worked in the past. I don't think they…

Step by Step Kubernetes Application Hosting: Persistent Storage, Pod Creation, Deployment Plan, Service Clustering, and Ingress Routing

Overview Update: we have a new article which goes directly into a production-style setup of…