From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Избитая тема: ntpdate
Date: Thu, 01 Apr 2010 09:29:37 +0400
Message-ID: <4BB42F41.6080706@rambler.ru> (raw)
In-Reply-To: <4BB09EDD.3040801@rambler.ru>
On 29.03.2010 16:36, Kharitonov A. Dmitry wrote:
> On 29.03.2010 16:06, Alexey Novikov wrote:
>> On Mon, Mar 29, 2010 at 02:32:22PM +0400, Kharitonov A. Dmitry wrote:
>>> On 29.03.2010 15:00, Alexey Novikov wrote:
>>>>>> On Mon, Mar 29, 2010 at 01:57:40PM +0400, Kharitonov A. Dmitry
>>>>>> wrote:
>> <skip>
>>>>>> А в сизифе снова конфликтуют, ага.
>>>>>> 29 Mar 15:59:20 ntpdate[8539]: ntpdate 4.2.4p7@1.1607 Tue May 19
>>>>>> 14:54:02 UTC 2009 (1)
>>>>>> 29 Mar 15:59:21 ntpdate[8539]: the NTP socket is in use, exiting
>> <skip>
>>>> На самом деле читать маны все же стоит. :)
>>>> Дело в том, что опция -d у ntpdate _не_ переводит время, а без
>>>> нее невозможна одновременная работа вместе с ntpd.
>>>>
>>> Во-первых я опцией -d пользовался (по назначению) для проверки
>>> соединения.
>>> Во-вторых -- версия, которая у меня, с -d переводит.
>>> В-третьих -- на одновременную работу не влияет.
>>>
>>> У меня есть гипотеза, что ntpd, который у меня, soket высвобождает и по
>>> этому конфликта не возникает.
>>> Такое поведение менее безопасно.
>>> $ sudo which ntpd
>>> /usr/sbin/ntpd
>>> $ rpm -qf /usr/sbin/ntpd
>>> openntpd-3.9p1-alt10
>> Ну версия ntpdate у нас с Вами по всей видимости все же
>> одинаковая:
>> [novikov@novikov ~]$ /usr/sbin/ntpdate -v 2>/dev/null
>> 29 Mar 16:02:56 ntpdate[5266]: ntpdate 4.2.4p7@1.1607 Tue May 19
>> 14:53:59 UTC 2009 (1)
>> [novikov@novikov ~]$ rpmquery ntpdate
>> ntpdate-4.2.4-alt5.p7
>>
>> А вот ntpd - разные:
>> [novikov@novikov ~]$ rpmquery -f /usr/sbin/ntpd
>> ntpd-4.2.4-alt5.p7
> Я об этом уже догадался. Надо будет на сервере тоже openntp поставить.
>
> Когда сглюкнется -- трассировщиком гляну почему время не переводилось.
Обнаружил странное:
когда выполняется
ntpdate 90.156.232.75
шлются пакеты
09:15:28.111987 IP 192.168.2.9.ntp > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:15:28.157812 IP 192.168.2.9.ntp > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:15:28.202690 IP 192.168.2.9.ntp > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:15:28.248004 IP 192.168.2.9.ntp > 90.156.232.75.ntp: NTPv4, Client,
length 48
когда выполняется
ntpdate -d 90.156.232.75
шлются пакеты
09:16:17.659879 IP 192.168.2.9.46148 > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:16:18.659845 IP 192.168.2.9.46148 > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:16:19.659860 IP 192.168.2.9.46148 > 90.156.232.75.ntp: NTPv4, Client,
length 48
09:16:20.659829 IP 192.168.2.9.46148 > 90.156.232.75.ntp: NTPv4, Client,
length 48
Традиционный вопрос: это фича или баг?
next prev parent reply other threads:[~2010-04-01 5:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 1:36 Kharitonov A. Dmitry
2010-03-29 4:20 ` Alexey Novikov
2010-03-29 7:01 ` Andrey Rahmatullin
2010-03-29 7:29 ` Kharitonov A. Dmitry
2010-03-29 8:14 ` Alexey Novikov
2010-03-29 9:25 ` Kharitonov A. Dmitry
2010-03-29 9:31 ` Kharitonov A. Dmitry
2010-03-29 9:47 ` Andrey Rahmatullin
2010-03-29 9:57 ` Kharitonov A. Dmitry
2010-03-29 10:00 ` Andrey Rahmatullin
2010-03-29 10:22 ` Kharitonov A. Dmitry
2010-03-29 11:00 ` Alexey Novikov
2010-03-29 10:32 ` Kharitonov A. Dmitry
2010-03-29 12:06 ` Alexey Novikov
2010-03-29 12:36 ` Kharitonov A. Dmitry
2010-04-01 5:29 ` Kharitonov A. Dmitry [this message]
2010-04-01 6:13 ` Alexey Novikov
2010-04-01 8:45 ` Kharitonov A. Dmitry
2010-03-29 7:39 ` Kharitonov A. Dmitry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB42F41.6080706@rambler.ru \
--to=kharpost@rambler.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git