In order to make Chrony work properly as stratum one server we have to modify the config-file to something like this:
#nano /etc/chrony/chrony.conf
——-content of file version BEF 4.X————-
# Welcome to the chrony configuration file. See chrony.conf(5) for more # information about usuable directives. refclock PPS /dev/pps0 refid PPS lock GPS precision 1e-9 refclock SHM 0 refid GPS precision 1e-6 noselect delay 0.200 offset 0.134 pool 2.debian.pool.ntp.org iburst server ntp.se minpoll -1 maxpoll 8 iburst # This directive specify the location of the file containing ID/key pairs for # NTP authentication. keyfile /etc/chrony/chrony.keys # This directive specify the file into which chronyd will store the rate # information. driftfile /var/lib/chrony/chrony.drift # Uncomment the following line to turn logging on. log tracking measurements statistics # Log files location. logdir /var/log/chrony # Stop bad estimates upsetting machine clock. maxupdateskew 10.0 # This directive enables kernel synchronisation (every 11 minutes) of the # real-time clock. Note that it cannot be used along with the 'rtcfile' directive. rtcsync # Step the system clock instead of slewing it if the adjustment is larger than # one second, but only in the first three clock updates. makestep 0.5 3 dumpdir /var/lib/chrony dumponexit leapsectz right/UTC allow
————-End of content ———-
With this setup I run two stratum one servers with GPS and PPS input in parallel (server 192.168.77.233 + 192.168.77.244 ) but not as mirror. I hook them up as another traditional stratum one server to each other so in case either of them goes down, I keep the reference on a high level stratum 2 ether locally or from remote Stratum One servers should my own GPS/GNSS be down.
The Indian time server is just for fun = reading values over long distance to see the differences.
The offset time comes (offset 0.134) after 8 hours test and calibrating. More to go another day 🙂
Making Stratum Two Chrony powered NTP time server
If you take out the refclocks in the calculation you got your self a fine little NTP stratum two server based on chrony. You may add some better Stratum One server to suit your needs. Have a looke here: https://support.ntp.org/Servers/WebHome