NTP sanity check

Creating a new FreeBSD Xen template at work, I was given the all too familiar error message:

ntpd[1037]: time correction of -39583 seconds exceeds sanity
limit (1000); set clock manually to the correct UTC time.

This despite setting the time to UTC and the local timezone in bsdinstall moments earlier.

The solution is to set the time manually. Even if its slightly off, it will
be within the allowed drift of NTP, which will let it correct it:

# date 1654

I’ll have to ask the other engineers how much of an issue time drift is to VMs. From my own client experience, it can be a hugely thorny issue.


Imprint

This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at weblog2017@rubenschade.com. Thanks :).