Read more

Fix timedrifts after VM live migration

Claus-Theodor Riegg
September 22, 2020Software engineer at makandra GmbH

After performing a live migration of a VM you may encounter issues with the clock of the migrated VM. The time drifts fairly fast in the future or the past and ntpd doesn't seem to be able sync the time.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

A bit of testing showed that the problem disappeared when we replaced openntpd with chrony. So it seems to be a openntpd issue probably.

To fix the issue on Ubuntu:

  1. sudo apt-get purge openntpd

  2. sudo rm /var/lib/openntpd/db/ntpd.drift

  3. reinstall openntpd and deploy the config again. In the makandra setup this is done by puppet.

Posted by Claus-Theodor Riegg to makandra Operations (2020-09-22 14:50)