<p dir="ltr">Ak je rozduel casov vacsi ako 15 min, tak sa ntpd nechyti. Preto sa pred startom ntpd robi ntpdate na server a ten urobi aj skokovu zmenu. Ntpd potom dotahuje fazovo.</p>
<div class="gmail_quote">Dňa 15. 6. 2016 14:43 používateľ "Tomáš Koželuh" <<a href="mailto:mr.death@ipq.cz">mr.death@ipq.cz</a>> napísal:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Není tam tak náhodou to zvěrstvo systemd? Pokud jo, tak nejspíš po změně<br>
konfigurace nemusí správně fungovat /etc/init.d/ntpd restart, ale je třeba<br>
použít systemctl reload ntp.service nebo tak něco.<br>
Případně se zbavit systemd a žít šťastně. Pro Debian existuje pěkný návod:<br>
<a href="http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debia
n_jessie/sid_installation" rel="noreferrer" target="_blank">http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debia<br>
n_jessie/sid_installation</a><br>
<div class="quoted-text"><br>
<br>
> -----Original Message-----<br>
> From: Hw-list [mailto:<a href="mailto:hw-list-bounces@list.hw.cz">hw-list-bounces@list.hw.cz</a>] On Behalf Of Zapletal<br>
> Martin<br>
</div><div class="elided-text">> Sent: Wednesday, June 15, 2016 2:24 PM<br>
> To: HW-news<br>
> Subject: Re: Raspberry-NTP se nechce chytit<br>
><br>
> takže ntpdate se chytí a nastaví správný čas. Co je tedy špatně s ntpd?<br>
><br>
> MZ<br>
> ----- Original Message -----<br>
> From: "Tomáš Koželuh" <<a href="mailto:mr.death@ipq.cz">mr.death@ipq.cz</a>><br>
> To: "'HW-news'" <<a href="mailto:hw-list@list.hw.cz">hw-list@list.hw.cz</a>><br>
> Sent: Wednesday, June 15, 2016 2:15 PM<br>
> Subject: RE: Raspberry-NTP se nechce chytit<br>
><br>
><br>
> apt-get install ntpdate<br>
> ?<br>
><br>
> > -----Original Message-----<br>
> > From: Hw-list [mailto:<a href="mailto:hw-list-bounces@list.hw.cz">hw-list-bounces@list.hw.cz</a>] On Behalf Of Zapletal<br>
> > Martin<br>
> > Sent: Wednesday, June 15, 2016 2:13 PM<br>
> > To: HW-news<br>
> > Subject: Re: Raspberry-NTP se nechce chytit<br>
> ><br>
> > takový příkaz v mém raspbianu vůbec není. Update a upgrade jsem dělal<br>
> > před půl hodinou.<br>
> ><br>
> > MZ<br>
> ><br>
> > ----- Original Message -----<br>
> > From: Ladislav Vaiz <mailto:<a href="mailto:spam@nagano.cz">spam@nagano.cz</a>><br>
> > To: HW-news <mailto:<a href="mailto:hw-list@list.hw.cz">hw-list@list.hw.cz</a>><br>
> > Sent: Wednesday, June 15, 2016 2:09 PM<br>
> > Subject: Re: Raspberry-NTP se nechce chytit<br>
> ><br>
> > ntpd běží nějakou dobu? Reach je bitová maska, jak se při posledních<br>
> > pokusech podařilo dosáhnout server. Nula znamená, že odpověď nikdy<br>
> > nedorazila. Mělo by tam po čase být 377 (je to osmičkově).<br>
> > Zkuste ntpdate -u 192.168.1.1<br>
> > L.<br>
> ><br>
> ><br>
> ><br>
> > On 15.6.2016 14:02, Zapletal Martin wrote:<br>
> ><br>
> ><br>
> > Zdravím přítomné.<br>
> > Už od rána ležím nad problémem synchronizace času NTP<br>
> > serveru. Už jsem prolezl celý internet ale jako nonlinux guru z toho moc<br>
> > moudrý nejsem. Výpis příkazu sudo ntpq -p mi vypíše<br>
> ><br>
> >      remote           refid      st t when poll reach<br>
> delay   offset<br>
> > jitter<br>
> ><br>
> > ====================================================<br>
> > ==========================<br>
> > 192.168.1.1     .INIT.          16 u    -   64    0<br>
> 0.000    0.000   0.000<br>
> > <a href="http://tik.cesnet.cz" rel="noreferrer" target="_blank">tik.cesnet.cz</a>   .INIT.          16 u    -   64    0<br>
> 0.000    0.000   0.000<br>
> > <a href="http://tak.cesnet.cz" rel="noreferrer" target="_blank">tak.cesnet.cz</a>   .INIT.          16 u    -   64    0<br>
> 0.000    0.000   0.000<br>
> ><br>
> > už zkouším všechno možné, i spojení na 192.168.1.1 což je<br>
> > router který NTP má. Poradíte mi prosím co zkontrolovat?<br>
> > Takhle vypadá ntp.conf<br>
> ><br>
> > # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for<br>
> > help<br>
> ><br>
> > driftfile /var/lib/ntp/ntp.drift<br>
> ><br>
> ><br>
> ><br>
> > # Enable this if you want statistics to be logged.<br>
> > #statsdir /var/log/ntpstats/<br>
> ><br>
> > statistics loopstats peerstats clockstats<br>
> > filegen loopstats file loopstats type day enable<br>
> > filegen peerstats file peerstats type day enable<br>
> > filegen clockstats file clockstats type day enable<br>
> ><br>
> ><br>
> > # You do need to talk to an NTP server or two (or three).<br>
> > #server ntp.your-provider.example<br>
> ><br>
> > # <a href="http://pool.ntp.org" rel="noreferrer" target="_blank">pool.ntp.org</a> maps to about 1000 low-stratum NTP servers.<br>
> > Your server will<br>
> > # pick a different set every time it starts up.  Please<br>
> consider<br>
> > joining the<br>
> > # pool: <<a href="http://www.pool.ntp.org/join.html" rel="noreferrer" target="_blank">http://www.pool.ntp.org/join.html</a>><br>
> ><br>
> > #puvodni nastaveni<br>
> > #server <a href="http://0.debian.pool.ntp.org" rel="noreferrer" target="_blank">0.debian.pool.ntp.org</a> iburst<br>
> > #server <a href="http://1.debian.pool.ntp.org" rel="noreferrer" target="_blank">1.debian.pool.ntp.org</a> iburst<br>
> > #server <a href="http://2.debian.pool.ntp.org" rel="noreferrer" target="_blank">2.debian.pool.ntp.org</a> iburst<br>
> > #server <a href="http://3.debian.pool.ntp.org" rel="noreferrer" target="_blank">3.debian.pool.ntp.org</a> iburst<br>
> ><br>
> > #nove nastaveni cz casovych serveru<br>
> > server 192.168.1.1 prefer<br>
> > server <a href="http://tik.cesnet.cz" rel="noreferrer" target="_blank">tik.cesnet.cz</a><br>
> > server <a href="http://tak.cesnet.cz" rel="noreferrer" target="_blank">tak.cesnet.cz</a><br>
> ><br>
> > # Access control configuration; see /usr/share/doc/ntp-<br>
> > doc/html/accopt.html for<br>
> > # details.  The web page<br>
> > <<a href="http://support.ntp.org/bin/view/Support/AccessRestrictions" rel="noreferrer" target="_blank">http://support.ntp.org/bin/view/Support/AccessRestrictions</a>><br>
> > # might also be helpful.<br>
> > #<br>
> > # Note that "restrict" applies to both servers and clients,<br>
> so a<br>
> > configuration<br>
> > # that might be intended to block requests from certain<br>
> > clients could also end<br>
> > # up blocking replies from your own upstream servers.<br>
> ><br>
> > # By default, exchange time with everybody, but don't allow<br>
> > configuration.<br>
> > restrict -4 default kod notrap nomodify nopeer noquery<br>
> > restrict -6 default kod notrap nomodify nopeer noquery<br>
> ><br>
> > # Local users may interrogate the ntp server more closely.<br>
> > restrict 127.0.0.1<br>
> > restrict ::1<br>
> ><br>
> > # Clients from this (example!) subnet have unlimited access,<br>
> > but only if<br>
> > # cryptographically authenticated.<br>
> > #restrict 192.168.123.0 mask 255.255.255.0 notrust<br>
> ><br>
> ><br>
> > # If you want to provide time to your local subnet, change<br>
> the<br>
> > next line.<br>
> > # (Again, the address is an example only.)<br>
> > #broadcast 192.168.123.255<br>
> ><br>
> > # If you want to listen to time broadcasts on your local<br>
> > subnet, de-comment the<br>
> > # next lines.  Please do this only if you trust everybody on<br>
> the<br>
> > network!<br>
> > #disable auth<br>
> > #broadcastclient<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> > <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
> > <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> ><br>
> ><br>
> ><br>
> > ________________________________<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> > <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
> > <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> ><br>
><br>
><br>
> _______________________________________________<br>
> HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
> <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
><br>
> _______________________________________________<br>
> HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
> <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
<br>
_______________________________________________<br>
HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</div></blockquote></div>