
Eu tenho 2 servidores NTP. Um sincronizado diretamente com um relógio GPS (chamarei este servidor de 185), então st 0. Depois tenho um segundo (vamos chamá-lo de 186) que deve sincronizar com o 185 já que é st 1, mas em vez disso sincroniza com LOCAL.
[root@185 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*GENERIC(3) .GPS. 0 l 6 64 7 0.000 5.902 2.454
LOCAL(0) .LOCL. 10 l - 64 0 0.000 0.000 0.000
[root@186 ~]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
GENERIC(3) .GPS. 0 l - 64 0 0.000 0.000 0.000
192.168.61.185 .GPS. 1 u 52 64 1 0.238 0.036 0.000
*LOCAL(0) .LOCL. 10 l 51 64 1 0.000 0.000 0.000
A configuração é bastante simples, pois este é um dos primeiros testes que fazemos. Além disso, tenho o parâmetro tinker panic 0 definido em ambos ntp.conf.
Você tem alguma ideia de por que 186 não escolhe 185?
Desde já, obrigado!
EDIT: Para mostrar que 186 pode chegar a 185.
***EDITAR: mais informações (a data é 1º de janeiro porque o GPS é simulado) ***
[root@ntp1 ~]# ntpdate -d 192.168.xx.185
1 Jan 10:08:16 ntpdate[17348]: ntpdate [email protected] Fri Dec 18 13:55:10 UTC 2020 (1)
Looking for host 192.168.xx.185 and service ntp
host found : 192.168.xx.185
transmit(192.168.xx.185)
receive(192.168.xx.185)
transmit(192.168.xx.185)
receive(192.168.xx.185)
transmit(192.168.xx.185)
receive(192.168.xx.185)
transmit(192.168.xx.185)
receive(192.168.xx.185)
server 192.168.xx.185, port 123
stratum 1, precision -23, leap 00, trust 000
refid [GPS], delay 0.02576, dispersion 0.00000
transmitted 4, in filter 4
reference time: c39e6ff9.17cf49c0 Thu, Jan 1 2004 10:07:53.093
originate timestamp: c39e7011.1621002b Thu, Jan 1 2004 10:08:17.086
transmit timestamp: c39e7011.16146846 Thu, Jan 1 2004 10:08:17.086
filter delay: 0.02586 0.02576 0.02576 0.02583
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000067 0.000094 0.000098 0.000065
0.000000 0.000000 0.000000 0.000000
delay 0.02576, dispersion 0.00000
offset 0.000094