LINUX.ORG.RU
ФорумAdmin

Сильно отстает время NTP+Webmin(Debian)

 , ,


0

1

Здравствуйте! Трабл с временем. За пол часа отстает в среднем на 2-3минуты. Стоит Debian на VirtualBOX, Webmin (после возникновения проблемы допольнительно установил ntp пакет и отключил синхронизацию в webmin, чтобы ntp не был привязан к webmin'у).

#ntpdc -c kerninfo
pll offset:           0 s
pll frequency:        0.078 ppm
maximum error:        16 s
estimated error:      16 s
status:               2041  pll unsync nano
pll time constant:    3
precision:            1e-09 s
frequency tolerance:  500 ppm

#ntpdc -c peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=ns02.hns.net.in *.*.*.47   2   64   37 0.03343 95.201893 0.66489

#ntpdc -c 'pstats ns02.hns.net.in'
remote host:          ns02.hns.net.in
local interface:      *.*.*.47
time last received:   33s
time until next send: 31s
reachability change:  359s
packets sent:         6
packets received:     6
bad authentication:   0
bogus origin:         0
duplicate:            0
bad dispersion:       0
bad reference time:   0
candidate order:      0
flags:   config, bclient
/etc/ntp.conf:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift


# Enable this if you want statistics to be logged.
#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 about 1000 low-stratum NTP servers.  Your server will
# pick a different set every time it starts up.  Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
# server 0.debian.pool.ntp.org iburst
# server 1.debian.pool.ntp.org iburst
# server 2.debian.pool.ntp.org iburst
# server 3.debian.pool.ntp.org iburst
server pool.ntp.org

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
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


после возникновения проблемы допольнительно установил ntp пакет

Помогло?
На хосте время не отстаёт?
VirtualBox какой версии?
На других виртуальных машинах на этом же хосте есть аналогичные проблемы?

SaBo ★★
()
Ответ на: комментарий от SaBo

Помогло?
Нет не помогло.
На хосте время не отстаёт?
Хост Wondows 2008 R2, там не отстает.
VirtualBox какой версии?
Версия 4.2.14
На других виртуальных машинах на этом же хосте есть аналогичные проблемы?
Стоит только одна виртуалка.

shpak1
() автор топика
Ответ на: комментарий от shpak1

Немного поменял настройки в /etc/ntp.conf и перезагрузил виртуалку - пока держится:

/etc/ntp.conf
-------------
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp.log
logconfig =all
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org
peer 0.pool.ntp.org
peer 1.pool.ntp.org
peer 2.pool.ntp.org
peer 3.pool.ntp.org
restrict 127.0.0.1
.....
ntpdc -c peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
*web10.hnshostin *.47   2   64  377 0.02663 -0.019252 0.06627
=web10.hnshostin *.47   2   64  377 0.02592 -0.015938 0.07227
+120-88-47-10.in *.47   2   64  377 0.02643 -0.024791 0.05975
=120-88-47-10.in *.47   2   64  377 0.02629 -0.026480 0.05727
+ns02.hns.net.in *.47   2   64  377 0.02689 -0.008514 0.03548
=125.62.193.121  *.47   2   64  377 0.10205 -0.036183 0.04005

shpak1
() автор топика
Ответ на: комментарий от shpak1

Странно но по каменде ntpdc -c kerninfo максимальная ошибка постоянно растет:

1.
pll offset:           0 s
pll frequency:        0.078 ppm
maximum error:        0.059516 s
estimated error:      1.6e-05 s
status:               2001  pll nano
pll time constant:    3
precision:            1e-09 s
frequency tolerance:  500 ppm

2. Через 30секунд
pll offset:           0 s
pll frequency:        0.078 ppm
maximum error:        0.117516 s
estimated error:      1.6e-05 s
status:               2001  pll nano
pll time constant:    3
precision:            1e-09 s
frequency tolerance:  500 ppm

shpak1
() автор топика
Ответ на: комментарий от SaBo

Сервер в Азии находится.
Так время и плывет:

pll offset:           0 s
pll frequency:        0.078 ppm
maximum error:        0.457016 s
estimated error:      1.6e-05 s
status:               2001  pll nano
pll time constant:    3
precision:            1e-09 s
frequency tolerance:  500 ppm

shpak1
() автор топика
Ответ на: комментарий от shpak1
> date
Mon Jul 28 11:14:09 UTC 2014

> sudo ntpdc -c kerninfo
pll offset:           0.0267455 s
pll frequency:        0.191 ppm
maximum error:        1.06078 s
estimated error:      0.010106 s
status:               2001  pll nano
pll time constant:    6
precision:            1e-09 s
frequency tolerance:  500 ppm

> date                  
Mon Jul 28 11:14:48 UTC 2014

> sudo ntpdc -c kerninfo
pll offset:           0.0229593 s
pll frequency:        0.191 ppm
maximum error:        1.08028 s
estimated error:      0.010106 s
status:               2001  pll nano
pll time constant:    6
precision:            1e-09 s
frequency tolerance:  500 ppm

Я могу ошибаться, но думаю, что для VirtualBox'а и для десктопа (у вас же на десктопе virtualbox?) это нормально.

SaBo ★★
()
Последнее исправление: SaBo (всего исправлений: 1)
Ответ на: комментарий от SaBo
Memory size:     1024MB
Page Fusion:     off
VRAM size:       12MB
CPU exec cap:    59%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
PAE:             off
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
State:           running (since 2014-07-28T11:33:33.475000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      2
Storage Controller Bootable (1):        on
shpak1
() автор топика

попробуй вот эти сервера:

server 31.28.161.68  iburst
server ntp.nasa.gov  iburst
server 193.67.79.202 iburst
server 62.149.0.30 iburst
server 198.123.30.132 iburst

то что такой розсинхрон в виртуалбоксе это нормально. лучше покажи

ntpq -np ntpstat

CHIPOK ★★★
()
Ответ на: комментарий от CHIPOK

До смены серваков:

ntpq -np (с ntpstat выдает Name or service not known)
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 123.108.225.6   200.98.196.212   2 u   19   64  377   48.530  70504.5 28146.4
 125.62.193.121  129.6.15.29      2 u   16   64  377  136.171  73482.5 30829.2
 120.88.47.10    193.79.237.14    2 u   16   64  377   59.541  73469.7 30929.2
 202.71.136.67   203.185.69.60    2 u   15   64  377   50.003  73512.0 30950.9
 120.88.47.10    193.79.237.14    2 u   17   64  377   59.799  73418.0 30845.5
 123.108.225.6   200.98.196.212   2 u   19   64  377   49.396  70504.4 28194.0
После смены серваков:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 31.28.161.68    .GPS.            1 u    2   64    1  180.729  84531.6 3251.01
 198.123.30.132  .GPS.            1 u    -   64    1  270.559  84557.1 2304.98
 193.67.79.202   .PPS.            1 u    -   64    1  146.473  84545.3 2305.26
 62.149.0.30     .GPS.            1 u    1   64    1  178.108  84541.0  18.487

shpak1
() автор топика
Ответ на: комментарий от shpak1

Может это webmin свой сервис по апдейту времени парраллельно держит? (я все в админке отключил).

shpak1
() автор топика
Ответ на: комментарий от shpak1

а ты после ребута службы ждешь минут 10-20? тот сервер с которым засинкалось должен быть с + а тот с которым можно синкатся с *. НТП это хитрая служба, без бутылки не розберешся.

советую почитать http://chip0k.blogspot.com/2014/05/ntp-linux.html

CHIPOK ★★★
()
Ответ на: комментарий от shpak1

стыдно признать но я webmin никогда не использовал.

CHIPOK ★★★
()
Ответ на: комментарий от CHIPOK

Я сам не собо любитель админок, но для почтового сервера пока удобнее не попадался, во всяком случае для управления акками и быстрой подстройкой без убивания времени.
ntp при загрузке пролетает за пару секунд. Почитаю на досуге, спасибо.

shpak1
() автор топика
Ответ на: комментарий от shpak1

пролетать то он пролетает, а вот чтоб засинкался корректно нужно минимум минут 10, еще и от железа зависит, а так как у тебя виртуалка то и подано будет синк не торт, так что не огорчайся, все правильно сделал.

CHIPOK ★★★
()
Ответ на: комментарий от CHIPOK

Вопросик тогда в догонку - кто-либо пользовался iRedMail(скрипт установки постфикса, давкота с админкой и тд)? Нормально работает? Всеравно скоро буду переносить виртуалку с Debian x32 на другой сервак и поновой ставить на x64.

shpak1
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.