I have task to synchronyze linux device with ntp server. Documentation said that by default ntpd check the difference between system time and server time, and if offset is within panic threshold(1000s be default) ntpd begin slowly correction of system time. Ok, that's good for me, I need that behaviour.
I set system time manually and then start ntpd. Using command ntpq -c peers I can look for synchronization process. It show that device linking to server and get packets. But after minute or two system time changed with one big step to server time. And this is bad in my situation, I need slowly correction. I have no working ideas why is it so!!!
I tried this with different servers and linux mashines, everything the same.
Device based on raspberry pi 2, linux image build with buildroot.
# ntpd --version
ntpd 4.2.8p2@1.3265-o Fri Jul 29 11:57:46 UTC 2016 (1)
#
# uname -a
Linux buildroot 3.18.12-v7 #3 SMP PREEMPT Thu May 12 17:53:44 MSK 2016 armv7l GNU/Linux
#
# cat /etc/ntp.conf
server 10.0.0.111 #my local server
driftfile /etc/ntp.drift
logfile /var/log/ntp/ntp.log
restrict 10.0.0.111 nomodify noquery #ban any packets from server, which send to modify local time
I can't find any explanation about this. All quiestions is about how quickly synchronyze time on daemon start, but I need opposite.
So, have no idea.....