Open eduongAZ opened 2 years ago
We are having trouble syncing iMac time with ToM time server.
First, we tried setting the time server on Tiger through system setting interface as ToM's IP, but the time difference between ToM and Tiger about 120 milliseconds.
Second, we tried running the following command on Tiger
sudo sntp -sS 192.168.0.24
Tiger reported a few time-out, and then printed some numbers, but the time difference between Tiger and ToM is still about 120 milliseconds.
We are investigating a way to sync Tiger time to ToM time server.
@rchamplin and I decided to host the time server on ToM. We do so using the following steps:
Install NTP server on ToM computer
Verify that the NTP server is running
We then sync CAT time to ToM computer with the following steps:
Install
ntpdate
on CATSpecify IP and hostname of ToM by adding the following line to the end of the
/etc/hosts
on CATCheck if CAT's time is synchronized with [[ToM time server]]
the output should ideally show a time offset between the two systems.
Disable the
timesyncd
service on CAT so that CAT sync time with [[ToM time server]]Install NTP on CAT
Configure the
/etc/ntp.conf
file to add [[ToM time server]] as the new time server on CAT by adding the following line to the end of/etc/ntp.conf
file on CATRestart NTP on CAT to make the changes above take effect
We observed that the difference between CAT and ToM is about 2 to 7 milliseconds.