Several GBase 8a clusters running on Anolis OS 8.9 were powered down over the Spring Festival holidays, and afterward their system clocks were wrong. The usual fix — ntpdate — turned out to be unsupported on this OS, and yum could not install the ntp service either. As it turns out, Anolis handles clock synchronization with chronyc instead.
The OS
[root@vm151 ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.9"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.9"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.9"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
[root@vm151 ~]# cat /etc/anolis-release
Anolis OS release 8.9
The Commands
Sync the clock: chronyc makestep
This immediately steps the system time to whatever NTP time chronyd currently knows. If the system clock is far off, the step will be a sudden jump — but when you need the time corrected right away, that is exactly the point.
Some articles mention the -a parameter, but per the man page it is only kept for compatibility and is effectively ignored.
Here is the clock before and after on one host — a jump of about 9 hours:
[root@vm151 ~]# date
Tue Feb 24 23:56:04 CST 2026
[root@vm151 ~]# chronyc makestep
200 OK
[root@vm151 ~]# date
Wed Feb 25 08:56:36 CST 2026
Check the clock: chronyc tracking
This prints a snapshot of chronyd's current sync state: the ID of the remote server being synced to, the system's position in the NTP hierarchy (stratum), and the offset between system time and NTP time. If the offset is close to zero and Leap status reads Normal, synchronization is healthy.
Before the sync, the host was 32,000+ seconds slow; after it, the offset was 0.000000001 seconds:
[root@vm151 ~]# chronyc tracking
Reference ID : CB6B0658 (203.107.6.88)
Stratum : 3
Ref time (UTC) : Wed Feb 25 00:50:13 2026
System time : 32414.154296875 seconds slow of NTP time
Last offset : -0.000094009 seconds
RMS offset : 3076.199462891 seconds
Frequency : 6.521 ppm slow
Residual freq : -0.006 ppm
Skew : 2.104 ppm
Root delay : 0.038376234 seconds
Root dispersion : 0.003302030 seconds
Update interval : 515.2 seconds
Leap status : Normal
=== after stepping the clock ===
[root@vm151 ~]# chronyc tracking
Reference ID : CB6B0658 (203.107.6.88)
Stratum : 3
Ref time (UTC) : Wed Feb 25 01:07:00 2026
System time : 0.000000001 seconds slow of NTP time
Last offset : -0.000908873 seconds
RMS offset : 2768.579589844 seconds
Frequency : 6.766 ppm slow
Residual freq : -0.070 ppm
Skew : 1.915 ppm
Root delay : 0.039329700 seconds
Root dispersion : 0.004922534 seconds
Update interval : 521.5 seconds
Leap status : Normal
What the fields mean:
- Reference ID: the address or IP of the remote NTP server being synced to.
- Stratum: the system's level in the NTP hierarchy (Stratum 1 syncs directly to atomic clocks or GPS; each layer below syncs to the one above).
- Ref time (UTC): when the last time update was received from the remote server, in UTC.
- System time: the offset of system time versus NTP time — fast means ahead, slow means behind.
- Last offset: the offset at the last synchronization.
- RMS offset: root-mean-square of the offsets, a measure of sync precision.
- Frequency: whether the local clock runs fast or slow relative to a perfect source, in ppm.
- Residual freq: the local clock frequency change observed since the last sync.
- Skew: the uncertainty of the frequency estimate.
- Root delay: round-trip time to the sync source.
- Root dispersion: the maximum likely error of the sync source.
- Update interval: seconds between consecutive updates.
- Leap status: leap-second status — Normal, Insert second, or Delete second.
Check the NTP sources: chronyc sources -v
This lists each NTP source server chronyd is using, with its IP, state, and time offset — useful for confirming where your time comes from and whether each source is usable:
[root@vm151 ~]# chronyc sources -v
.-- Source mode '^' = server, '=' = peer, '#' = local clock.
/ .- Source state '*' = current best, '+' = combined, '-' = not combined,
| / 'x' = may be in error, '~' = too variable, '?' = unusable.
|| .- xxxx [ yyyy ] +/- zzzz
|| Reachability register (octal) -. | xxxx = adjusted offset,
|| Log2(Polling interval) --. | | yyyy = measured offset,
|| \ | | zzzz = estimated error.
|| | | \
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 203.107.6.88 2 10 377 855 -5627us[-6536us] +/- 29ms
In this example the source mode is server and the state is the current best source (^*).
Other commands — adding or removing time sources, switching between them — are easy to find in the chronyc documentation. Once the clock was corrected, the time-dependent behaviors inside the gbase database returned to normal as well. Finally, consider adding the sync command to a cron job so drift never accumulates; the scheduling parameters follow the same approach as the classic ntpdate workflow.
Top comments (0)