Sponsored Content
Top Forums UNIX for Beginners Questions & Answers NTP synchronised problem in our Centos 7.6 node Post 303039136 by gull04 on Tuesday 24th of September 2019 02:40:29 AM
Old 09-24-2019
Hi Folks,

I've been round the houses on this, the decision has been to change from NTP to Chrony. - due mainly to security concerns.

So here's a quick breakdown.

Code:
[root@fbakirpomd4 bin]# systemctl stop ntpd
[root@fbakirpomd4 bin]# chkconfig ntpd off
Note: Forwarding request to 'systemctl disable ntpd.service'.
[root@fbakirpomd4 bin]# systemctl enable chronyd
[root@fbakirpomd4 bin]# systemctl start chronyd
[root@fbakirpomd4 bin]# ps -ef | grep cronyd
root     23225 26147  0 10:11 pts/1    00:00:00 grep --color=auto cronyd
[root@fbakirpomd4 bin]# ps -ef | grep chronyd
chrony   23208     1  0 10:11 ?        00:00:00 /usr/sbin/chronyd
root     23253 26147  0 10:11 pts/1    00:00:00 grep --color=auto chronyd
[root@fbakirpomd4 bin]# cat /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
# server 0.rhel.pool.ntp.org iburst
# server 1.rhel.pool.ntp.org iburst
# server 2.rhel.pool.ntp.org iburst
# server 3.rhel.pool.ntp.org iburst
##############################################################
#
# Added local hosts for xxxxxxxx xxxxx chrony servers
#
##############################################################
server 10.1.100.134 iburst
server 10.235.100.19 iburst
##############################################################

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1.0 3

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
#allow 192.168.0.0/16

# Serve time even if not synchronized to a time source.
#local stratum 10

# Specify file containing keys for NTP authentication.
#keyfile /etc/chrony.keys

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking
[root@fbakirpomd4 bin]# systemctl enable chronyd
[root@fbakirpomd4 bin]# systemctl start chronyd
[root@fbakirpomd4 bin]# ps -ef | grep cronyd
root     23225 26147  0 10:11 pts/1    00:00:00 grep --color=auto cronyd
[root@fbakirpomd4 bin]# ps -ef | grep chronyd
chrony   23208     1  0 10:11 ?        00:00:00 /usr/sbin/chronyd
root     23253 26147  0 10:11 pts/1    00:00:00 grep --color=auto chronyd
[root@fbakirpomd4 bin]# chronyc tracking
Reference ID    : 0AEB6413 (ntp2.xxxxxxxxxxxxx.co.uk)
Stratum         : 2
Ref time (UTC)  : Mon Sep 23 09:11:35 2019
System time     : 0.000000041 seconds slow of NTP time
Last offset     : +0.000060960 seconds
RMS offset      : 0.000060960 seconds
Frequency       : 6.443 ppm fast
Residual freq   : -0.865 ppm
Skew            : 0.017 ppm
Root delay      : 0.000187665 seconds
Root dispersion : 0.000315763 seconds
Update interval : 1.8 seconds
Leap status     : Normal
[root@fbakirpomd4 bin]# man chkconfig
[root@fbakirpomd4 bin]# chkconfig chronyd on
Note: Forwarding request to 'systemctl enable chronyd.service'.
[root@fbakirpomd4 bin]#

Checked the servers this morning and all seems well.

Regards

Gull04
This User Gave Thanks to gull04 For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

i-node problem

First , thank you for reading the post. I Use Digital Unix 4.0F . I get an i-node number of a text file using stat() function . I want to read the file context following the i-node information . But I do not know how to read disk information accroding to i-node information . (1 Reply)
Discussion started by: chenhao_no1
1 Replies

2. HP-UX

NTP problem

Hi, I have a problem using NTP. We have a setup as following : client --> HP Server(NTP) --> DMZ server --> DMZ server --> Internet Only some clients and our HP server is using NTP, the others are using different software. Now I get an error every day : Oct 1 13:17:15 nlunx1n1 xntpd:... (4 Replies)
Discussion started by: davidg
4 Replies

3. Solaris

NTP Authen Problem

Dear All I'm solaris user . I need to setup NTP authentication for my office server but I have some question for ntp setting up. I need to know if i set authen NTP the client that doesn't set for authen key can sync time from authen ntp server or not ?? when i setup the authen at ntp server ... (1 Reply)
Discussion started by: goasutlor
1 Replies

4. UNIX for Dummies Questions & Answers

NTP problem

All - i tried to sysn the clock from our server to get the timing and the server IP has been added in the ntp.conf file and i have some problems here. if some1 help me to solve this problem. 1. i can ping server 2. i was unable to ntpq -p (time out, no response from remote server, it looks... (2 Replies)
Discussion started by: March_2007
2 Replies

5. AIX

NTP Client problem

Hello everybody! When I run command "ntpdate" the following error occures "ksh: ntpdate: 0403-006 Execute permission denied. " # oslevel -s 5300-08-06-0918 oslevel -r 5300-08 eny suggestion friends? :-) (3 Replies)
Discussion started by: wwwzviadi
3 Replies

6. Red Hat

NTP sync problem

Hi, I have 4 machines and all are NTP configured with same ntp.conf file. But 3 machines are in sync with Time server and 4th machine is not contacting & sync with the NTP server. Please see the below details. # service ntpd stop Stopping ntpd: ... (0 Replies)
Discussion started by: uday123
0 Replies

7. Solaris

NTP problem.

Hi, I have edited the /etc/inet/ntp.conf file to point to a new time server. When I restart ntp on Solaris 10 using 'svcadm disable/enable ntp' it still points to the old ntp server when I run a 'ntpq -p'. Any ideas? Thanks. Sparcman (4 Replies)
Discussion started by: sparcman
4 Replies

8. UNIX for Advanced & Expert Users

NTP Problem

Hello every one i want to setup a ntp on sco unix 5.0.6 and i don't have any time server how can i do this with local time (1 Reply)
Discussion started by: kaydream
1 Replies

9. AIX

NTP time problem

I got an ntp time problem on AIX server. os version is AIX7.1 OS LEVEL 7.1.0.0 i got below output,when i run the below command bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX 4 Dec 12:50:49 ntpdate: 3.4y transmit(xxxxxxxxx) receive(xxxxxxxxx) transmit(xxxxxxxx) receive(xxxxxxxxx)... (9 Replies)
Discussion started by: murali969
9 Replies

10. AIX

GPS Clock Not Synchronised

Hi guys, I got some error on my application server mentioning that gps clock not sync to my db server. what is the command to check is my server is sync with the gps clock? appreciate if you guys can let me know how to troubleshoot this problem. Thanks (1 Reply)
Discussion started by: leecopper
1 Replies
All times are GMT -4. The time now is 03:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy