PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ntpd aktiviert, trotzdem 4min. Unterschied



Admira98
28.02.06, 11:00
Hallo!

Ich hab am 3.Feb. mein Suse10.0-System aufgesetzt und ntpd aktiviert. Der NTP-Server ist erreichbar. Heute seh ich, dass die Uhrzeit trotzdem um 4min. vor geht. Nachdem ich den NTP-Client manuell gestoppt und wieder gestartet hab, wurde die Systemuhr korrigiert.
Wie kann das sein, dass ntpd in 17 Tagen kein Update macht und die Uhr deshalb schon 4min. auseinander läuft?

/var/log/ntp zeigt folgendes:

3 Feb 17:15:35 ntpd[8985]: synchronized to LOCAL(0), stratum 10
3 Feb 17:30:36 ntpd[8985]: kernel time sync disabled 0041
3 Feb 17:31:42 ntpd[8985]: kernel time sync enabled 0001
28 Feb 11:07:10 ntpd[8985]: ntpd exiting on signal 15
28 Feb 11:04:17 ntpd[19769]: ntpd exiting on signal 15
28 Feb 11:07:37 ntpd[19823]: synchronized to LOCAL(0), stratum 10
28 Feb 11:07:37 ntpd[19823]: kernel time sync disabled 0041
28 Feb 11:08:42 ntpd[19823]: kernel time sync enabled 0001

Tomek
28.02.06, 11:01
Verschoben ins Forum "Server und Clients".

bla!zilla
28.02.06, 11:05
Poste bitte mal deine /etc/ntp.conf. Hast du deinem NTP Server überhaupt externe NTP Server genannt oder verwendest du eine DCF77 Quelle?

ramsys
28.02.06, 11:27
Bei Suse kannst du auch in Yast den Server eintragen.
Netzwerdienst-> ntp Client.
Der aktualisiert dann auch die ntp.conf

Was mich wundert is das es den xntpd dienst in suse 10.0 nicht mehr als solches gibt. Der war für das syncronisieren mal zuständig was mit ntpq -c peers überprüft werden konnte.
ntpq geht zwar aber ohnte das xntpd läuft.
Gibts da mal wieder was neues seid 10.0?

Admira98
28.02.06, 11:42
Ich hab den NTP-Dienst eh über YaST eingerichtet und nicht manuell.
Hier /etc/ntp.conf:


################################################## ##############################
## /etc/ntp.conf
##
## Sample NTP configuration file.
## See package 'ntp-doc' for documentation, Mini-HOWTO and FAQ.
## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
##
## Author: Michael Andres, <ma@suse.de>
##
################################################## ##############################

##
## Radio and modem clocks by convention have addresses in the
## form 127.127.t.u, where t is the clock type and u is a unit
## number in the range 0-3.
##
## Most of these clocks require support in the form of a
## serial port or special bus peripheral. The particular
## device is normally specified by adding a soft link
## /dev/device-u to the particular hardware device involved,
## where u correspond to the unit number above.
##
## Generic DCF77 clock on serial port (Conrad DCF77)
## Address: 127.127.8.u
## Serial Port: /dev/refclock-u
##
## (create soft link /dev/refclock-0 to the particular ttyS?)
##
# server 127.127.8.0 mode 5 prefer

##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized

##
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server
##
## Miscellaneous stuff
##

driftfile /var/lib/ntp/drift/ntp.drift # path for drift file

logfile /var/log/ntp # alternate log file
server ntp0.fau.de
# logconfig =syncstatus + sysevents
# logconfig =all

# statsdir /tmp/ # directory for statistics files
# filegen peerstats file peerstats type day enable
# filegen loopstats file loopstats type day enable
# filegen clockstats file clockstats type day enable

#
# Authentication stuff
#
# keys /etc/ntp.keys # path for keys file
# trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
# requestkey 15 # key (7) for accessing server variables
# controlkey 15 # key (6) for accessing server variables


Wie könnt ich ntpd dazu bewegen, in kürzeren Abständen die Systemuhr zu aktualsieren?

bla!zilla
28.02.06, 11:46
Du hast ja auch keinen Server angegeben.

Trag bitte mal folgende Zeilen in deine /etc/ntp.conf ein und führe rcntp restart aus.

server ntp1.ptb.de
server ntps1.gwdg.de
server ntps2.gwdg.de

Admira98
28.02.06, 11:54
Natürlich hab ich einen eingetragen.

Siehe /etc/ntp.conf
.
.
.
logfile /var/log/ntp # alternate log file
server ntp0.fau.de
# logconfig =syncstatus + sysevents
# logconfig =all
.
.
.

Wenn ich über YaST den Dienst stoppe und neustarte, dann wird die Systemuhr ja auch korrekt eingestellt. Eben in den 17 Tagen uptime des Servers lief die Systemuhr 4min. auseinander, obwohl ntpd eben gelaufen ist.
Und das will ich irgendwie in den Griff bekommen.