# ntpdate -u 192.168.22.200
: \, @2 ^7 D* d U7 K. G9 y5 F20 Oct 19:06:23 ntpdate[3987]: no server suitable for synchronization found3 z2 T6 _# l, A @4 V# m& X
, U) S9 W, q3 x# Z' T
Server dropped: Strata too high 在ntp客户端运行ntpdate serverIP,出现no server suitable for synchronization found的错误。 在ntp客户端用ntpdate -d serverIP查看,发现有“Server dropped: strata too high”的错误,并且显示“stratum ”。而正常情况下stratum这个值得范围是“0~15”。 这是因为NTP server还没有和其自身或者它的server同步上。 以下的定义是让NTP Server和其自身保持同步,如果在/ntp.conf中定义的server都不可用时,将使用local时间作为ntp服务提供给ntp客户端。, v6 r( r* M# M' t2 p
server 127.127.1.0 6 }: q8 B h, ?, S- x
fudge 127.127.1.0 stratum 8
. Z/ t( e: C7 E2 Q$ S# L, w在ntp server上重新启动ntp服务后,ntp server自身或者与其server的同步的需要一个时间段,这个过程可能是5分钟,在这个时间之内在客户端运行ntpdate命令时会产生no server suitable for synchronization found的错误。 那么如何知道何时ntp server完成了和自身同步的过程呢? 只需要修改ntp server端配置
6 ]: Y: W/ D* U Q5 {
6 {& \, ^9 h5 X8 s% V$ Q) c
' j1 x, y5 P. a$ M. e5 \3 b
L5 v) d% z2 e& N9 k - ~- z: H2 y3 m, ?+ K- A3 U
|