I have created a FreeBSD VM on Google cloud engine. The image is installed with ntpd configured and is running:
$service ntpd status ntpd is running as pid 4950.
But date is in the future, the time goes too fast on the server.
$date Mon Feb 25 15:59:38 UTC 2019
UTC now is: Mon Feb 25 10:31:21 UTC 2019
I've tried to restart the ntpd service:
$service ntpd restart
without any luck. I found a discussion here: https://forums.freebsd.org/threads/the-system-clock-is-falling-behind.61450/. I need a drift file, so I added one:
$echo "0" > /var/db/ntpd.drift
Then I stopped and started the ntpd service:
$service ntpd stop $service ntpd start
Now the time is correct. But I'm a bit lost was it the hard stop/start or the driftfile which solved the issue.
To sum up the problem: The time one the server goes too fast. The ntpd service is not correcting the issue, only when I restart the service. From my naive eyes it seems a second on the VM is a bit shorter than a real second.