Interview Prep/Linux/Boot, time, cron and kernel

The clock is 10 minutes off and chrony is running, but it corrects only very slowly.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → chrony slews (gradually adjusts) the clock after startup, and only steps it during the first updates if makestep allows. Large offsets later take a long time to slew away.

Diagnose →

chronyc tracking            # System time offset
grep makestep /etc/chrony.conf

Fix → Step it now: sudo chronyc makestep. Keep makestep 1.0 3 in chrony.conf so large offsets at boot get stepped.

Prevent → Investigate why it drifted (VM pause/resume, wrong clocksource, NTP blocked).

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel