Kezdőlap › Fórumok › Gentoo linux › Gentoo Linux haladó › ntp gond
- This topic has 30 hozzászólás, 5 résztvevő, and was last updated 17 years, 8 months telt el by
gendelider.
-
SzerzőBejegyzés
-
2007-09-30-07:02 #2134839
@sany:
Nem neked – nyilván tudod – az ntp nem csak annyi, hogy egyszer lekérdezi az időt a szervertől, beírja, azután csókolom. Több csomag, több lekérdezés és a mért csomagkésést is bekalkulálja a beállításkor. Arról nem beszélve, hogy az ntpd tud olyat, hogy méri a géped órájának a hibáját, és a „ritka” lekérdezések között saját maga is korrigál. Mindezt folyamatosan és dinamikusan, tehát ha „melegszik az idő” pl, és máshogy kezd ketyegni az óra, akkor átáll erre a hibanagyságra.Ezért nem értem a „gyors szerver” kérdést.
2007-09-30-07:02 #2134840@sany:
Nem neked – nyilván tudod – az ntp nem csak annyi, hogy egyszer lekérdezi az időt a szervertől, beírja, azután csókolom. Több csomag, több lekérdezés és a mért csomagkésést is bekalkulálja a beállításkor. Arról nem beszélve, hogy az ntpd tud olyat, hogy méri a géped órájának a hibáját, és a „ritka” lekérdezések között saját maga is korrigál. Mindezt folyamatosan és dinamikusan, tehát ha „melegszik az idő” pl, és máshogy kezd ketyegni az óra, akkor átáll erre a hibanagyságra.Ezért nem értem a „gyors szerver” kérdést.
2007-09-30-15:42 #2134841Kössz az infokat. Azt nem tudom h ntpd konfigjába hogy kell beállitani h milyen idöközönként szinkronizáljon?
Ez a /etc/ntp.conf -ba kéne h legyen gondolom. Nekem az ez:Code:# NOTES:
# – you should only have to update the server line below
# – if you start getting lines like ‘restrict’ and ‘fudge’
# and you didnt add them, AND you run dhcpcd on your
# network interfaces, be sure to add ‘-Y -N’ to the
# dhcpcd_ethX variables in /etc/conf.d/net# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server ntp.example.tld iburstserver 0.hu.pool.ntp.org
server 1.hu.pool.ntp.org
server 2.hu.pool.ntp.org
server 3.hu.pool.ntp.org
##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
### you should not need to modify the following paths
driftfile /var/lib/ntp/ntp.drift#server ntplocal.example.com prefer
#server timeserver.example.org# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore# To deny other machines from changing the
# configuration but allow localhost:
restrict default nomodify nopeer
restrict 127.0.0.1# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrapGyors szerver alatt azt érettem h gyorsabban szinkronizálja vele a gép az idöt, gondolom ez függ a szerver sebességétöl..
Egyébként nekem most olyan h elinditom a gépet, bootkor ugye szinkronizál, utána kb nemtom egy ora mulva már késik 1-2percet az idö, aztán 1re többet.2007-09-30-15:42 #2134842Kössz az infokat. Azt nem tudom h ntpd konfigjába hogy kell beállitani h milyen idöközönként szinkronizáljon?
Ez a /etc/ntp.conf -ba kéne h legyen gondolom. Nekem az ez:Code:# NOTES:
# – you should only have to update the server line below
# – if you start getting lines like ‘restrict’ and ‘fudge’
# and you didnt add them, AND you run dhcpcd on your
# network interfaces, be sure to add ‘-Y -N’ to the
# dhcpcd_ethX variables in /etc/conf.d/net# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server ntp.example.tld iburstserver 0.hu.pool.ntp.org
server 1.hu.pool.ntp.org
server 2.hu.pool.ntp.org
server 3.hu.pool.ntp.org
##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
### you should not need to modify the following paths
driftfile /var/lib/ntp/ntp.drift#server ntplocal.example.com prefer
#server timeserver.example.org# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.# If you want to deny all machines (including your own)
# from accessing the NTP server, uncomment:
#restrict default ignore# To deny other machines from changing the
# configuration but allow localhost:
restrict default nomodify nopeer
restrict 127.0.0.1# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrapGyors szerver alatt azt érettem h gyorsabban szinkronizálja vele a gép az idöt, gondolom ez függ a szerver sebességétöl..
Egyébként nekem most olyan h elinditom a gépet, bootkor ugye szinkronizál, utána kb nemtom egy ora mulva már késik 1-2percet az idö, aztán 1re többet.2007-09-30-16:41 #2134843” ora mulva már késik 1-2percet az idö, aztán 1re többet”
úgy hogy az ntpd fut?
Ja és nézz bele az /etc/conf.d könyvtárba is! 🙂
2007-09-30-16:41 #2134844” ora mulva már késik 1-2percet az idö, aztán 1re többet”
úgy hogy az ntpd fut?
Ja és nézz bele az /etc/conf.d könyvtárba is! 🙂
2007-09-30-18:57 #2134845Igen ugy h ntpd fut. Tudom h ott is van két konfig fájla, de abba se látok semmi olyat ami azzal lenne kapcsolatos h mennyi idönként szinkronizáljon.
2007-09-30-18:57 #2134846Igen ugy h ntpd fut. Tudom h ott is van két konfig fájla, de abba se látok semmi olyat ami azzal lenne kapcsolatos h mennyi idönként szinkronizáljon.
2007-09-30-19:25 #2134847kukacomone wrote:Igen ugy h ntpd fut. Tudom h ott is van két konfig fájla, de abba se látok semmi olyat ami azzal lenne kapcsolatos h mennyi idönként szinkronizáljon.Pedig ott tudod variálni. /etc/conf.d/ntpd
ntpd –help
A kapcsolókra ad magyarázatot, vagy ezen a linken olvashatsz.
http://www.ntp.org/documentation.html
most nem gentoo-t használok(ammortizálódott),
de nekem műxöt gentoo és most is műxik suse alatt is.
Így sajna nem tudok hibákról beszámolni! 🙂2007-09-30-19:25 #2134848kukacomone wrote:Igen ugy h ntpd fut. Tudom h ott is van két konfig fájla, de abba se látok semmi olyat ami azzal lenne kapcsolatos h mennyi idönként szinkronizáljon.Pedig ott tudod variálni. /etc/conf.d/ntpd
ntpd –help
A kapcsolókra ad magyarázatot, vagy ezen a linken olvashatsz.
http://www.ntp.org/documentation.html
most nem gentoo-t használok(ammortizálódott),
de nekem műxöt gentoo és most is műxik suse alatt is.
Így sajna nem tudok hibákról beszámolni! 🙂 -
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz