ntpd nem mukodik

Sziasztok,
adott ket szerver, mind a ketton debian 5 es ntpd van. Az ntp.conf is megegyezik mindkettonek, az egyik szinkronizalja az idot a masik nem. Most pl. 00:25 van azon amelyik nem szinkronizal.
Mi lehet a gond?


# /etc/ntp.conf, configuration for ntpd

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# pool.ntp.org maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** ***

server 3.ro.pool.ntp.org
server 1.europe.pool.ntp.org
server 3.europe.pool.ntp.org

# By default, exchange time with everybody, but don't allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient

A szervereket tudom pingelni.


root@linux2:~# ntpq -p
No association ID's returned

root@linux2:~# ps xa | grep ntp
2969 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 114:120 -g
7325 pts/0 R+ 0:00 grep ntp

Hozzászólások

A syslog-ba mit ír indításkor? AFAIK ha túl nagy az eltérés az időben, akkor nem fog szinkronizálni.

ntpd by default refuses to sync times
if the difference on invocation is bigger
than 3600 seconds.

--
trey @ gépház

Elvileg ami negyedórán kívül van, az nem állítódik.

és ez?:

server 1.europe.pool.ntp.org
server 3.europe.pool.ntp.org
server <a másik szervered - ha időkiszolgáló is tud lenni>

szerk.
trey mindig előbb nyomja meg az entert :)

"server <a másik szervered - ha időkiszolgáló is tud lenni>"

Ha mind2 szerveren ugyanazokat az ntp szervereket allitja be akkor igy az a szerver mar alacsonyabb stratum szinten lesz es nem tekinti annyira hitelesnek h hozza szinkronizaljon, max ha a tobbit nem eri el.
Ill. ehhez engedni kell konfigban h le is tudja kerdezni masik szervertol mert jelenlegi konfig szerint csak localban old fel neki.

--
Don't Panic if you see me laughing,
that's not a bug, just a feature.