Mint 18.1 - 一大堆“Soliciting pool server xxx.xxx.xxx.xxx”

Var*_*uuk 13 syslog linux-mint ntpd

我在 syslog 中查看音频问题,我看到了大量的请求池服务器 ntp 守护进程消息。我过去运行过其他 linux,从不记得看到这么多 ntp 日志消息。这可能是由于新的网络问题,对于 Mint 来说是否常见,如果“常见”,是否有办法让它们安静下来?

从那时起我已经更换了运营商和路由器硬件,所以我不排除我的网络中的某些东西。我在访问互联网或玩在线游戏等方面没有问题。

小智 10

这些消息意味着您的 ntpd 服务器正在寻找更多要同步的时间源。预计会看到几个,尤其是在中断或重新启动后重新连接到网络之后,但如果您的 ntpd 和网络连接运行顺利,您每天看到的应该不会超过几个。如果每隔几分钟就有几个,这可能是一个问题。

您的 ntpd 是否连接到对等点并成功同步时间?您可以使用ntpq. 查看 中的对等列表ntpq -c pe以及 中报告的层和 reftime ntpq -c rv。16 层意味着“不同步”。

这个:

user@localhost $ ntpq -c pe
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 de.pool.ntp.org .POOL.          16 p    -   64    0    0.000    0.000   0.002
user@localhost $ ntpq -c rv
associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
version="ntpd 4.2.8p10@1.3728-o Tue Jun 20 08:08:18 UTC 2017 (1)",
processor="x86_64", system="Linux", leap=11, stratum=16,
precision=-23, rootdelay=0.000, rootdisp=0.090, refid=INIT,
reftime=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
clock=dde6bdf4.dec8453b  Fri, Dec 22 2017  0:10:44.870, peer=0, tc=3,
mintc=3, offset=0.000000, frequency=4.981, sys_jitter=0.000000,
clk_jitter=0.000, clk_wander=0.000
Run Code Online (Sandbox Code Playgroud)

意味着您的 NTP 实际上不起作用(在这种情况下,因为我刚刚启动它),而这个:

user@localhost $ ntpq -c pe
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 cz.pool.ntp.org .POOL.          16 p    -   64    0    0.000    0.000   0.002
+mail.nettel.cz  195.113.144.201  3 u    4   64  377    5.215   -0.842   0.332
*fedecks.wuji.cz 195.113.144.238  2 u   61   64  377    2.121   -2.005   0.171
-lx.ujf.cas.cz   .GPS.            1 u   62   64  177    2.662   -0.714   0.215
-pyrrha.fi.muni. 195.113.144.238  2 u   63   64  177    7.445   -0.697   0.340
-host-81-200-57- 192.168.3.246    2 u   55   64  177   15.792    0.098   1.160
  cz.inthouse.clo 147.231.2.6      2 u   47   64   17    5.338   -0.266   0.461
user@localhost $ ntpq -c rv
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
version="ntpd 4.2.8p10@1.3728-o Sat Jul 29 07:38:14 UTC 2017 (1)",
processor="ppc", system="Linux", leap=00, stratum=2,
precision=-19, rootdelay=2.652, rootdisp=4.409, refid=147.231.100.5,
reftime=dde6be4a.f90912d6  Fri, Dec 22 2017  0:12:10.972,
clock=dde6be4d.12f27b56  Fri, Dec 22 2017  0:12:13.074, peer=10703, tc=6,
mintc=3, offset=-0.387828, frequency=-254.539, sys_jitter=1.572660,
clk_jitter=0.456, clk_wander=0.098
Run Code Online (Sandbox Code Playgroud)

表示您的 NTP 工作正常。

如果它不同步并长时间保持这种状态,则您可能存在网络或配置问题。查看man 5 ntp.conf帮助和NTP.org 支持页面关于示例的配置。就我而言,无休止的“Soliciting pool server”垃圾邮件的原因是nopeer指令,对于池服务器必须关闭。


ets*_*ner -1

对我来说,NTP 似​​乎正在完成它的工作:从 NTP 服务器请求时间数据,然后将其发布在系统日志中。完全不用担心。