dgxa
July 1, 2025, 10:03pm
1
Hello for a specific requirement I need to sync my local clock with chrony, but I make the configuration and not work.
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? 127.127.1.0 0 7 0 - +0ns[ +0ns] +/- 0ns
I add this configurations to my /etc/chrony.conf
server 127.127.1.0 iburst
local stratum 10
allow 192.X.X.X
NAME="Rocky Linux"
VERSION="8.10 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.10 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.10"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
Someone can help me with this.
I am confused by this line, you are saying that you want to use a time SERVER at 127.127.1.0 but I think you might be trying to cite the (RFC 1122) “localhost” at 127.0.0.1?
Seems to me if you ONLY want to use “local stratum 10” then you do not need the “server” line?
Tony
dgxa
July 2, 2025, 4:16pm
3
I read the documentation in https://chrony-project.org and says that can use refclock driver parameter in my case i belive can use RTC driver
I added the directive and not work
refclock RTC /dev/rtc0 refid LOCAL poll 4
ls /dev/rtc*
/dev/rtc /dev/rtc0
I added the configuration in /etc/chrony.conf and I have this error:
journalctl -u chronyd -f
-- Logs begin at Tue 2025-07-01 17:21:40 -05. --
jul 02 10:56:16 server.fqdn.net systemd[1]: chronyd.service: Control process exited, code=exited status=1
jul 02 10:56:16 server.fqdn.net systemd[1]: chronyd.service: Failed with result 'exit-code'.
jul 02 10:56:16 server.fqdn.net systemd[1]: Failed to start NTP client/server.
jul 02 10:58:23 server.fqdn.net systemd[1]: Starting NTP client/server...
jul 02 10:58:23 server.fqdn.net chronyd[57150]: chronyd version 4.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)
jul 02 10:58:23 server.fqdn.net chronyd[57150]: Fatal error : unknown refclock driver RTC
jul 02 10:58:23 server.fqdn.net chronyd[57148]: unknown refclock driver RTC
jul 02 10:58:23 server.fqdn.net systemd[1]: chronyd.service: Control process exited, code=exited status=1
jul 02 10:58:23 server.fqdn.net systemd[1]: chronyd.service: Failed with result 'exit-code'.
jul 02 10:58:23 server.fqdn.net systemd[1]: Failed to start NTP client/server.
Fatal error : unknown refclock driver RTC
The line server 127.127.1.0 iburst
. is NTP Reference Clock