Hi Team,
We are trying to configure NTP server and NTP client for time sync up in our Testing Envrinoment.
Below is our setup:
NTP Server - Linux Host PC (Ubuntu 14.04 LTS 64 bit)
NTP Client - Custom hardware based on imx6ul platform
Both Linux PC and board are connected to Ethernet hub and we are testing using static IP.
The configuration file ntp.conf file on server is modified to take local time of PC as NTP server time. The ntp.conf file at client is configured to sync up with PC server local time.
Here by I attached the ntp.conf files of both NTP server and client.
Current time in NTP Server is 12.00PM, we changed the time to 12.30PM in NTP Server side and we expect NTP Client to sync up, but it was not syncing even after 45mins.
We checked whether NTP Daemon(ntpd) is running using below command
# ps -ef | grep ntpd
user 4595 2469 0 10:33 pts/23 00:00:00 grep --color=auto ntpd
We found NTP daemon process got killed by itself without throwing any error or warning. We restared the NTP daemon(ntpd) in NTP Client using below command, then it got synced up successfully within 1 minute
Npw we changed the time from 12.30PM to 12.45PM in NTP Server, in that case, NTP Client got sync up properly[it took 15-20mins to sync up]. We checked ntpd process and it was running.
# ps -ef | grep ntpd
ntp 3583 1564 0 11:07 ? 00:00:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 117:126
user 4595 2469 0 11:43 pts/23 00:00:00 grep --color=auto ntpd
We found that if we give time offset difference within 17 minutes then NTP client syncing with NTP Server. But 17mins or more is given then ntpd is getting killed.
We gave less min poll(2) and max poll(2) values to more max poll(17) in NTP client configuration but behaviour is same.
What is causing this, what is the root cause for this error. Please let us know.
Requirement:
Our requirement is, NTP Client should sync up NTP Server for every 12 hours, we can’t do manual update using “ntpdate” as we need ntpd to do this automatically.
How we can achieve this ?