0

在我的一个 Debian VM(Debian GNU/Linux 10 (buster))中,我发现时间同步服务存在一些问题。机器时钟时不时地落后于标准时间几分钟。机器的本地时区设置为IST

我需要使用以下命令(sudo service chrony restart)重新启动服务以再次同步时间。

有什么解决办法吗?

Thr gcloud 文档链接如下:

https://cloud.google.com/compute/docs/instances/configure-ntp

日志:我在日志中看不到任何错误(很可能它已被清除),但重新启动后日志看起来像这样(您可以看到所做的调整):

Starting chrony, an NTP client/server... 
chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS
+SECHASH +IPV6 -DEBUG) 
Frequency -93.458 +/- 0.001 ppm read from /var/lib/chrony/chrony.drift 
Loaded seccomp filter 
Started chrony, an NTP client/server. 
Selected source 169.254.169.254 System clock wrong by 98.886791 seconds, adjustment started 
System clock was stepped by 98.886791 seconds

我正在使用默认配置文件(/etc/chrony/chrony.conf):

server metadata.google.internal prefer iburst
keyfile /etc/chrony/chrony.keys
logdir /var/log/chrony
maxupdateskew 100.0
rtcsync
makestep 1 3
4

0 回答 0