Beim chrony gibt es dieses:
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
...
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
#logchange 0.5
logchange 0.1
600sec aber in ~ 1/100sec-Schritten aufzuholen, naja, s.u. ~ Wochen.
Das entsprechende "ntpdate" war:
Code: Alles auswählen
#!/bin/sh
...
PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
password $PASSWORD
sources -v
activity
online
makestep
EOF
} >> $LOGDATEI
Irgendwann war das Problem der schnellen Drift aber wieder erledigt
(entweder durch kernel oder chrony) und 'makestep' wurde unnötig.
Beim ntpd ist normalerweise eingeschaltet:
Code: Alles auswählen
-g Normally, ntpd exits with a message to the system log if the offset exceeds the panic
threshold, which is 1000 s by default. This option allows the time to be set to any
value without restriction; however, this can happen only once. If the threshold is
exceeded after that, ntpd will exit with a message to the system log. This option
can be used with the -q and -x options.
Interessant wären aber auch diese:
Code: Alles auswählen
-q Exit the ntpd just after the first time the clock is set. This behavior mimics that
of the ntpdate program, which is to be retired. The -g and -x options can be used
with this option. Note: The kernel time discipline is disabled with this option.
...
-x Normally, the time is slewed if the offset is less than the step threshold, which is
128 ms by default, and stepped if above the threshold. This option sets the thresh‐
old to 600 s, which is well within the accuracy window to set the clock manually.
Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second
of adjustment requires an amortization interval of 2000 s. Thus, an adjustment as
much as 600 s will take almost 14 days to complete. This option can be used with the
-g and -q options. Note: The kernel time discipline is disabled with this option.
für entsprechende Optionen in der ntp.conf müßte wohl
ntp-doc durchgelesen werden.
Dort wird bei '-x' auch auf ein '
tinker'-Kommando verwiesen ("sacred system-parameters", "dangerous").
--------------------------------
Es handelt sich sogar um einen SAP-Produktivserver *autsch*
Ein ntpclient-Dienst hat normalerweise die Kerneluhr unter seiner Fuchtel,
und regelt freq und tick entsprechend.
Code: Alles auswählen
# ./adjtimex -p
mode: 0
offset: 0
frequency: 2536411 <<<<<<<<<<<<<<<<<<<<
maxerror: 16000000
esterror: 16000000
status: 64
time_constant: 2
precision: 1
tolerance: 32768000
tick: 10000 <<<<<<<<<<<<<<<<<<
raw time: 1345127016s 114734us = 1345127016.114734
return value = 5
Kann es sein, daß auf dem SAP durch irgendeine Policy der ntp das nicht darf,
sodaß sich da die 10min akkumulieren? -> Logfiles