Hello guys, I'm new to the forum.
I have a cluster with 2 proxmox 7.2-3 nodes.
I'm trying to achieve time synchronisation between the 2 nodes using chrony. It doesn't need to be the exact "real" time, but time between the 2 must be the same.
Node 1: Acting as the "NTP Server" 192.168.0.5.
In chrony.conf I added "allow 192.168.0.0/24"
Running chronyc clients, I can see the client connected, which is my node #2 that I want it to sync with this node #1.
Output:
Node 2: Acting as the "NTP Client" 192.168.0.2.
In chrony.conf I added "allow 192.168.0.0/24"
I added the server source using
Running systemctl status chrony.service, the output is:
Using chronyc tracking, I get:
Running chronyc sources, I get:
Running chronyc activity, I get:
Seems they are connected, but doesn't sync over chrony. I think I'm missing something, but don't know what.
Note that in both case I've ran the command
Thanks for your help !
I have a cluster with 2 proxmox 7.2-3 nodes.
I'm trying to achieve time synchronisation between the 2 nodes using chrony. It doesn't need to be the exact "real" time, but time between the 2 must be the same.
Node 1: Acting as the "NTP Server" 192.168.0.5.
In chrony.conf I added "allow 192.168.0.0/24"
Running chronyc clients, I can see the client connected, which is my node #2 that I want it to sync with this node #1.
Output:
Code:
Hostname NTP Drop Int IntL Last Cmd Drop Int Last
===============================================================================
192.168.0.2 35 0 7 - 34 0 0 - -
Node 2: Acting as the "NTP Client" 192.168.0.2.
In chrony.conf I added "allow 192.168.0.0/24"
I added the server source using
echo 'server 192.168.0.5 iburst' > /etc/chrony/sources.d/local-ntp-server.sources
Running systemctl status chrony.service, the output is:
Code:
● chrony.service - chrony, an NTP client/server
Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2023-09-20 08:18:42 EDT; 8min ago
Docs: man:chronyd(8)
man:chronyc(1)
man:chrony.conf(5)
Process: 451170 ExecStart=/usr/sbin/chronyd $DAEMON_OPTS (code=exited, status=0/SUCCESS)
Main PID: 451172 (chronyd)
Tasks: 2 (limit: 38294)
Memory: 1.2M
CPU: 30ms
CGroup: /system.slice/chrony.service
├─451172 /usr/sbin/chronyd -F 1
└─451173 /usr/sbin/chronyd -F 1
Sep 20 08:18:42 hypervisor systemd[1]: Starting chrony, an NTP client/server...
Sep 20 08:18:42 hypervisor chronyd[451172]: chronyd version 4.0 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Sep 20 08:18:42 hypervisor chronyd[451172]: Frequency 0.000 +/- 1000000.000 ppm read from /var/lib/chrony/chrony.drift
Sep 20 08:18:42 hypervisor chronyd[451172]: Using right/UTC timezone to obtain leap second data
Sep 20 08:18:42 hypervisor chronyd[451172]: Loaded seccomp filter
Sep 20 08:18:42 hypervisor systemd[1]: Started chrony, an NTP client/server.
Using chronyc tracking, I get:
Code:
Reference ID : 00000000 ()
Stratum : 0
Ref time (UTC) : Thu Jan 01 00:00:00 1970
System time : 0.000000000 seconds fast of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 0.000 ppm slow
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 1.000000000 seconds
Root dispersion : 1.000000000 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
Running chronyc sources, I get:
Code:
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? 192.168.0.5 0 7 0 - +0ns[ +0ns] +/- 0ns
Running chronyc activity, I get:
Code:
200 OK
1 sources online
0 sources offline
0 sources doing burst (return to online)
0 sources doing burst (return to offline)
8 sources with unknown address
Seems they are connected, but doesn't sync over chrony. I think I'm missing something, but don't know what.
Note that in both case I've ran the command
systemctl restart chronyd
and on the "client" node, also the command chronyc reload sources
.Thanks for your help !