Re: ntpd korrigiert uhrzeit nicht

From: Florian Timm Schubert <webmaster(at)flosch.net>
Date: Thu, 29 Apr 2004 11:20:04 +0200

On Thursday, April 29, 2004 10:29 AM Daniel Graupner wrote:

> Hallo,
>
> ich habe auf einer meiner Kisten eine recht unzuverlässige Uhr, die sich
> nach ein paar Stunden nach Lust und Laune verstellt. Ein ntpdate mit nem
> entsprechendem Zeitserver richtet alles.
> Also habe ich wie im Handbuch beschrieben den ntpd angeschmissen, die
> server ins konfig-file eingetragen und den ntpd mit selbigem gestartet
> -> das passiert auch fehlerfrei (laut /val/log/messages).
>
> Nach meinem Verständnis korrigiert der ntpd die Zeit auf dem Host auf
> dem er läuft und reicht sie zusätzlich an andere Maschinen raus. Nun,
> nach ein paar Stunden mit laufendem ntpd hat sich die Uhr trotzdem
> wieder komplett verstellt!?!
> Notfalls muß ich halt nen cronjob mit ntpdate starten...aber das muß
> doch auch mit dem ntpd gehen??

ntpd(8) hilft:
<schnipp>
Most operating systems and hardware of today incorporate a time-of-year
(TOY) chip to maintain the time during periods when the power is off.
When the machine is booted, the chip is used to initialize the operating
system time. After the machine has synchronized to a NTP server, the
operating system corrects the chip from time to time. In case there is
no TOY chip or for some reason its time is more than 1000s from the
server time, ntpd assumes something must be terribly wrong and the only
reliable action is for the operator to intervene and set the clock by
hand. This causes ntpd to exit with a panic message to the system log.
The -g option overrides this check and the clock will be set to the
server time regardless of the chip time. However, and to protect against
broken hardware, such as when the CMOS battery fails or the clock counter
becomes defective, once the clock has been set, an error greater than
1000s will cause ntpd to exit anyway.
</schnapp>

> Danke,
> Daniel.

Bitte.

Gruß
Florian

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 29 Apr 2004 - 11:20:33 CEST

search this site