Pcornel
Linux · Time & NTP

chrony

Cheat sheet · https://pcornel.dk/topic.php?topic=2833

Back to the Topic

Answer

chrony (chronyd and the chronyc client) is the default NTP implementation on RHEL and many other distributions. It syncs quickly, handles intermittent networks and can serve time to others.

Remember

Configuration is /etc/chrony.conf (RHEL) or /etc/chrony/chrony.conf (Debian). makestep 1 3 allows stepping the clock at startup. allow <subnet> makes it a server. chronyc makestep forces an immediate correction.

First checks

  • timedatectl — time, time zone and sync status
  • chronyc tracking — offset and source (chrony)
  • chronyc sources -v — time sources and reachability
  • date -u — UTC time

Verify in this order

chronyd reads its config → polls sources → selects the best → slews or steps the clock → optionally serves clients

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2833

Confirmation

Confirm action

Continue?