[chrony-users] Disable GPS sync on skew |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-users] Disable GPS sync on skew
- From: Shawn Beard <shawntbeard@xxxxxxxxx>
- Date: Tue, 19 Nov 2024 08:37:30 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732023461; x=1732628261; darn=chrony.tuxfamily.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=uMEgL15CRRjaN+RQGczIINufmmJjNBbHZWUjGgIrLR4=; b=Z2/gpRjKcsD14HmK9UMK+8cEYefc51cc3NNS7v6pmlhjfjwe/nxJufpwK9XymJ4GTZ Pi+loppw1WuPPI3Fjp8DeqGqnEEMmZc0kSBedePQ6bLpNiM8O5gnX5Y1TfncciO1m9Xg RL25qV83aEyIDWT/IF0nMztIKoypA/AMynGKq+jSKlBbiKN5PUfxikunwWGcpVz9Yw0f OH9JcAvm2wa1olEX5H44J5Z6ItekqnjjH5deLaixmhxbJNZ9xFSPCbl1fudrqL4dr8KY qRe8obMRQXUFgD32pjFON1Yn3P2VnCrVGZg72QguUkUa7tlzUBx5TOy/UU+HMy3xESXL BrdQ==
I have 2 Chrony instances that I use as internal time sources in my organization. They usually work the way they should and serve time to clients. I have numerous stratum 1 servers listed in the Chrony configs but PSM0, my GPS hardware, is the preferred and trusted source. My thought was that if time skewed from GPS for some reason, squirrel chews the antenna wire, card fries, that Chrony would look to the NTP entries, just like if you list 10 servers and it picks the best and ignores any that are way off. I had written a config change with the ubxtool to change active GNSS constellations. Everything seemed fine as I could get sat info back with cgps and gpsmon. Apparently it wasn't good and over the weekend the clock had skewed by 5 seconds. Not a huge deal as I monitor time on all of my servers with PRTG and was alerted but it got me thinking about how to take GPS out of play if the time isn't close to the stratum 1 network servers. I had to pull the battery and power cycle the GPS card to get it back to factory and start working again. Everything is fine now but I want to make sure this doesn't happen in the future. Any thoughts on how I could do something like compare GPS to my server list and exclude GPS if the time is off by let's say a second ? Which is huge when my accuracy is usually measured in nanoseconds