これからもチョニーはずっと前進します。

これからもチョニーはずっと前進します。

私はcentos 8システムにchronyをインストールし、2日ごとに約2時間ずつ将来の時間を設定します。引き続きサービスを再起動してntpdata修正する必要がありますが、それは面倒です。構成を操作してみましたが、どうすればいいかわかりません。どんなアイデアがありますか?

私の設定は次のとおりです。

# Please consider joining the pool (http://www.pool.ntp.org/join.html).
pool 2.centos.pool.ntp.org iburst

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
makestep 1000 10

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
#allow 192.168.0.0/16
allow 192.168.1.0/24
# Serve time even if not synchronized to a time source.
#local stratum 10

# Specify file containing keys for NTP authentication.
keyfile /etc/chrony.keys

# Get TAI-UTC offset and leap seconds from the system tz database.
leapsectz right/UTC

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

[server ~]$ chronyc tracking
Reference ID    : A29FC87B (time.cloudflare.com)
Stratum         : 4
Ref time (UTC)  : Fri Mar 25 08:22:28 2022
System time     : 3662.770263672 seconds fast of NTP time
Last offset     : +0.000199583 seconds
RMS offset      : 37.570960999 seconds
Frequency       : 14.564 ppm slow
Residual freq   : -0.000 ppm
Skew            : 0.007 ppm
Root delay      : 0.038045153 seconds
Root dispersion : 0.000602906 seconds
Update interval : 1036.4 seconds
Leap status     : Normal

[server ~]$ date
Fri Mar 25 11:31:15 EET 2022

ベストアンサー1

クロックはカーネルが変更できるよりも速く実行できます。これは、仮想マシンなどのハードウェアまたはカーネルの問題である可能性があります。

印刷された周波数値を確認してくださいchronyc tracking。 100000ppmを超える場合は、指示を次のように変更してクロックステップを永久に有効にする必要がありますmakestep

makestep 1 -1

ただし、これは時計を修正できない場合は最後の手段としてのみ使用する必要があります。

おすすめ記事