Use it to configure or check NTP on a Linux server.
chrony
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.
1. systemctl status chronyd (or chrony) — running?
2. chronyc sources -v — * marks the selected source.
3. chronyc tracking — System time offset and Leap status Normal.
4. Large offset → chronyc makestep.
5. Serving others → allow set and UDP 123 open.
chronyd reads its config → polls sources → selects the best → slews or steps the clock → optionally serves clients
For Time & NTP → chrony, continue with the first unproven Topic check: Read effective chrony config and service invocation, then capture chronyc sources -v and chronyc tracking with timestamps. If that boundary is healthy, advance to the adjacent check: Interpret selection flags, reach register, last sample, offset/error, frequency/skew, reference ID, stratum and leap status together. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
chrony config → source resolution/reach → chronyd measurements + selection → tracking/frequency discipline → kernel clock → chronyc observation → workload verification
Healthy evidence: chronyd has an intended selected source, reach and tracking are stable, estimated error/frequency are within requirements and time-sensitive consumers behave correctly.
Step 2 Verification and output interpretation Verify boundary
Compare offset/stratum/reach or chrony tracking/sources and confirm DNS/network reachability to time sources.
Existing fast checks for this Topic. - Read effective chrony config and service invocation, then capture chronyc sources -v and chronyc tracking with timestamps.
- Interpret selection flags, reach register, last sample, offset/error, frequency/skew, reference ID, stratum and leap status together.
- Check DNS/network path, source policy, VM/RTC interaction and competing time daemons before forcing a step or changing sources.
- After correction, observe stable tracking across samples and repeat the original time-sensitive workload; document any deliberate clock step.
Verification chain. chrony config → source resolution/reach → chronyd measurements + selection → tracking/frequency discipline → kernel clock → chronyc observation → workload verification
Step 3 Specialized verification Verify boundary
Inspect tracking first to understand system-clock state, then source selection/reachability and measured offsets. Correlate with system time, timezone and leap/status only as relevant; timezone presentation is not synchronization. For connectivity issues, verify UDP path to the selected source. After a change, wait for stable measurements rather than declaring success from one reachable packet. The operational evidence is acceptable offset/frequency/stratum behavior over time for the host’s workload requirements.
Step 4 Commands Verify boundary
chronyc tracking
chronyc sources -v
cat /etc/chrony.conf
Step 5 Failure modes and next checks Narrow the fault
Suspicious evidence: no selected source, reach resets, falseticker/unselectable sources dominate, tracking drifts, another daemon competes, or repeated makestep hides the underlying source/clock problem.
It does not show behavior outside the captured host, clock/timezone, scheduler or time-daemon instance, identity/environment, source, trigger/measurement interval or workload scope. chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient.
Step 6 Special cases and limits Narrow the fault
A reachable NTP source does not show the local clock is synchronized, and “synchronized” does not imply zero offset. Timezone configuration changes display semantics, not the underlying UTC clock. Hypervisor clock corrections can fight chronyd and create jumps. DNS failure can prevent pool resolution while direct sources still work. Keep source reachability, chrony selection, clock discipline and application tolerance distinct.
Step 7 Common mistakes Narrow the fault
- Large offsets corrected slowly; use
makestepfor initial sync.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
timedatectl— time, time zone and sync statuschronyc tracking— offset and source (chrony)chronyc sources -v— time sources and reachabilitydate -u— UTC time
ReferenceWhat it is1 section · depth on demand
Core model
Read effective chrony configuration and runtime source/tracking data rather than inferring state from service activity. Correlate source flags/reach with tracking reference, system time offset, frequency/skew and leap status; understand whether makestep, offline/online, local reference or RTC features alter expected behavior.
ReferenceImportant terms & boundaries6 sections · depth on demand
What this shows and what it does not
chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient.
In depth
chrony: configuration and diagnostics
chrony is the default NTP implementation on the RHEL family and on many other distributions. It works well on servers, virtual machines and systems with intermittent networks. The chrony.conf(5) documentation describes the core directives:
| Directive | Purpose |
|---|---|
server host iburst | A time source; iburst sends a quick burst for a fast first sync |
pool name iburst maxsources 4 | A DNS name resolving to several servers (default 4, maximum 16) |
prefer | Prefer this source among those selectable |
nts | Authenticate with Network Time Security |
makestep 1.0 3 | Step the clock if it's off by more than 1 s, but only during the first 3 updates |
driftfile /var/lib/chrony/drift | Remember the clock's frequency error across restarts |
allow 10.0.0.0/8 | Serve time to clients in this subnet (by default no clients are allowed) |
local stratum 10 | Keep serving time to clients even without upstream sources |
minsources 2 | Require this many selectable sources before adjusting the clock |
leapsectz right/UTC | Get leap seconds from the time zone database |
Diagnostics (chronyc documentation)
| Command | Shows |
|---|---|
chronyc tracking | Reference ID, stratum, offset (system time), frequency and leap status |
chronyc sources -v | Sources with state symbols: * selected, + combined, - not used, x falseticker, ~ too variable, ? unusable |
chronyc sourcestats | Sample counts, offset and standard deviation per source |
chronyc activity | How many sources are online or offline |
chronyc makestep | Step the clock immediately (the documentation warns that some software is badly affected by jumps) |
Stepping and slewing
chrony normally corrects the clock by slewing it: running it slightly faster or slower. That avoids time jumps. makestep allows a step only when the error is large, typically right after boot. On a running database or cluster node, a sudden jump can cause more trouble than a slow correction.
host$ grep -vE '^\s*(#|$)' /etc/chrony.conf
pool 2.rocky.pool.ntp.org iburst maxsources 3
server ntp1.example.net iburst prefer
makestep 1.0 3
driftfile /var/lib/chrony/drift
rtcsync
allow 10.110.0.0/16
host$ chronyc tracking
Reference ID : 0A630B0A (ntp1.example.net)
Stratum : 3
System time : 0.000021300 seconds fast of NTP time
Frequency : 12.418 ppm slow
Leap status : Normal
host$ chronyc sources -v | head -12
host$ sudo chronyc clients | head -4
host$ sudo firewall-cmd --add-service=ntp --permanent && sudo firewall-cmd --reload
Reading tracking
"System time 0.000021 seconds fast" is the current offset, 21 microseconds. "Frequency 12.418 ppm slow" is how much the hardware clock would drift without correction, about one second per day. "Leap status: Normal" confirms that the client is synchronised.
Documented example, not captured output.
How it works at runtime
chrony is part of Time & NTP → chrony. chrony is a common Linux NTP implementation consisting primarily of chronyd for clock discipline and chronyc for runtime inspection/control, designed to handle intermittent networks, variable latency and virtualized/mobile systems well.
NTP/chrony disciplines the system clock from selected sources using offset, delay, jitter, reachability and clock-quality information.
Topic-specific state model. chrony is a common Linux NTP implementation consisting primarily of chronyd for clock discipline and chronyc for runtime inspection/control, designed to handle intermittent networks, variable latency and virtualized/mobile systems well.
Technical metadata. Host/VM, distribution/kernel/systemd/cron/chrony versions, wall-clock UTC/local time + numeric offset, monotonic/uptime context, timezone/tzdata, RTC/clocksource/virtualization, scheduler/unit/crontab owner, schedule expression/calendar/next+last trigger, effective user/group/environment/PATH/cwd, process/exit/output, time daemon/configured sources/selected source/stratum/reach/offset/delay/jitter/frequency/leap state, logs and original workload result.
Interpretation rule. - chronyd active ≠ the host is synchronized to a valid source.
chronyc sourceslists peers ≠ one is selected and disciplining the clock.chronyc trackingshows a reference ≠ historical incident timestamps were correct.makestepcompleted ≠ downstream schedulers/authentication/log correlation are unaffected by the clock jump.
Specialized mechanics
chronyd measures offsets to configured time sources and disciplines the system clock using filtering, source selection and frequency estimation. The daemon distinguishes source reachability and selection from actual clock synchronization quality. Tracking state reports current correction, frequency and reference; source state reports candidates and reachability. Stepping and slewing are different correction behaviors, and startup policy may permit steps that would be inappropriate during steady-state application operation.
Quick reference
chrony configuration (/etc/chrony.conf or /etc/chrony/chrony.conf):
server ntp1.example.com iburst
server ntp2.example.com iburst
pool 2.dk.pool.ntp.org iburst maxsources 2
server time.cloudflare.com iburst nts
makestep 1.0 3 # step if offset > 1 s during first 3 updates
rtcsync
allow 10.0.0.0/8 # serve time to clients
systemctl restart chronyd
chronyc tracking # System time offset, Leap status
chronyc sources -v
chronyc makestep # force a step now
chrony slews (adjusts gradually) after startup; large offsets later need makestep or a restart.
Limits and how it fails
Primary failure point. chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient.
ReferenceConfiguration & state2 sections · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. chrony owns chronyd/chronyc implementation behavior. NTP owns protocol concepts; Time & NTP owns overall host clock semantics; Scheduling/Security/applications consume the disciplined clock.
Specialized lifecycle
Define authoritative sources, pools, network permissions and makestep/rtcsync policy deliberately. On VMs, consider hypervisor time injection versus guest NTP ownership. Large initial offsets, intermittent connectivity and local clocks can change source selection. Avoid running multiple clock-discipline daemons simultaneously unless their roles are explicitly coordinated. If serving time, configure client networks and firewall separately from the local synchronization sources.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Time & NTP → chrony. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://chrony-project.org/documentation.html · confidence 94%Authoritative Linux project/vendor documentation reviewed for bounded reference claims: clock discipline, sources, tracking state and synchronization verification. Documentation-based technical verification only; not lab or production-runtime proof. The schema vendor_doc method is used for authoritative project/vendor documentation; deployment applicability remains separate evidence.
Basis: https://chrony-project.org/documentation.html · confidence 93%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
chrony operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for chrony.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | chrony is a common Linux NTP implementation consisting primarily of chronyd for clock discipline and chronyc for runtime inspection/control, designed to handle intermittent networks, variable latency and virtualized/mobile systems well. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact symptom + clock/trigger time → identify authoritative scheduler or time daemon → read back effective configuration/runtime state → reproduce or observe the expected event/source measurement → correlate identity/environment/offset/status with logs → change one demonstrated cause → read back stable state → repeat original scheduled or time-sensitive workload + regression check. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | chrony config → source resolution/reach → chronyd measurements + selection → tracking/frequency discipline → kernel clock → chronyc observation → workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux scheduling/time evidence can establish this proof path: chrony config → source resolution/reach → chronyd measurements + selection → tracking/frequency discipline → kernel clock → chronyc observation → workload verification | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host, clock/timezone, scheduler or time-daemon instance, identity/environment, source, trigger/measurement interval or workload scope. chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven scheduling/time boundary: preserve the original timing and execution/source context, capture the adjacent scheduler/process or clock/source state, change only the demonstrated cause, then repeat the original scheduled or time-sensitive workload and regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
chrony · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | chrony |
|---|---|
| Topic path | Time & NTP → chrony |
| Runtime state | chrony is a common Linux NTP implementation consisting primarily of chronyd for clock discipline and chronyc for runtime inspection/control, designed to handle intermittent networks, variable latency and virtualized/mobile systems well. |
| Fast checks | - Read effective chrony config and service invocation, then capture chronyc sources -v and chronyc tracking with timestamps. - Interpret selection flags, reach register, last sample, offset/error, frequency/skew, reference ID, stratum and leap status together. - Check DNS/network path, source policy, VM/RTC interaction and competing time daemons before forcing a step or changing sources. - After correction, observe stable tracking across samples and repeat the original time-sensitive workload; document any deliberate clock step. |
| Verification chain | chrony config → source resolution/reach → chronyd measurements + selection → tracking/frequency discipline → kernel clock → chronyc observation → workload verification Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | chrony is verified only when runtime tracking shows stable discipline to an intended source within required error bounds and the original workload is confirmed; service-active or source-list output alone is insufficient. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
chrony · specialized operational reference
Topic-specific Linux mechanics, lifecycle, proof path and failure-boundary lookup.
| Operational boundary | Topic-specific reference |
|---|---|
| Tracking | Local clock offset/frequency/reference state |
| Sources | Reachability + selection + measurement quality |
| Correction | Slew vs controlled step policy |
| Proof | Stable acceptable offset for workload, not one packet |