ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Опять системное время и таймзона.
Date: Thu, 18 Jun 2015 16:51:40 +0300
Message-ID: <5582CCEC.3010404@rambler.ru> (raw)
In-Reply-To: <201506171632.45868.a_s_y@sama.ru>

17.06.2015 15:32, Sergey пишет:
> On Wednesday 17 June 2015, Kharitonov A. Dmitry wrote:
>>>
>>> И, если используется ntpd, есть третий вариант:
>>>
>>> 1. hwclock не использовать никогда, чтобы adjtime не создавался (а RTC
>>>              ядро синхронизировать будет всё равно)
>>> 2. rm -f /etc/adjtime
>>> 3. sed "s/^HWCLOCK_SET_TIME_AT_START.*/HWCLOCK_SET_TIME_AT_START=false/" -i /etc/sysconfig/clock
>>>
>> А ядро-то у вас какое?
> Да не важно. Это важно только ввиду умения новых ядер сделать
> коррекцию за пределами 15-и минут.
>
>> user@eee2 ~ 9:23:46> uname -r
>> 3.14.38-std-def-alt1
>> user@eee2 ~ 13:30:22> date
>> Ср июн 17 13:30:28 MSK 2015
>> user@eee2 ~ 13:30:28> sudo hwclock -r
>> [sudo] password for user:
>> Wed Jun 17 13:30:50 2015  -0.137856 seconds
>> user@eee2 ~ 13:31:07> cat /etc/adjtime
>> -242.054684 1434436959 0.000000
>> 1434436959
>> LOCAL
>>
>> Всё работает как "часы" и в локальном времени.
> "HWCLOCK_SET_TIME_AT_START=true", значит. Или Вы хотите сказать, что у
> Вас ещё и ntpd работает при Вашем варианте ? Если да, то какой ? Может,
> надо ещё openntpd проверить на этот счёт, я только с ntpd проверял.
> Может быть, openntpd с sys_tz и persistent_clock_is_local не так работает,
> как ntpd.
user@eee2 ~ 9:57:05> egrep -v "^#|^$" /etc/sysconfig/clock
ARC=false
ARC=false
HWCLOCK_SET_TIME_AT_START=true
HWCLOCK_SET_AT_HALT=true
HWCLOCK_ADJUST=true
UTC=false
ZONE=Europe/Moscow
user@eee2 ~ 16:22:08> rpm -qa | grep ntp
ntpdate-4.2.8-alt0.M70P.1
openntpd-3.9p1-alt12
ntp-aux-4.2.8-alt0.M70P.1
user@eee2 ~ 16:22:15> egrep -v "^#|^$" /etc/ntpd.conf
servers pool.ntp.org
>
> И покажите "date && hwclock -r" при отодвинутом в сторону adjtime.
>
user@eee2 ~ 16:46:32> sudo mv -v /etc/adjtime{,.bak}
'/etc/adjtime' -> '/etc/adjtime.bak'
user@eee2 ~ 16:47:23> date; sudo hwclock -r
Чт июн 18 16:47:41 MSK 2015
Thu Jun 18 19:47:52 2015  -1.000158 seconds
user@eee2 ~ 16:47:42> sudo mv -v /etc/adjtime{.bak,}
'/etc/adjtime.bak' -> '/etc/adjtime'
user@eee2 ~ 16:49:46> date; sudo hwclock -r
Чт июн 18 16:49:54 MSK 2015
Thu Jun 18 16:50:05 2015  -0.250512 seconds




  reply	other threads:[~2015-06-18 13:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 11:40 Sergey
2015-05-26  4:49 ` Sergey
2015-06-16  8:39 ` Sergey
2015-06-16 10:17   ` Sergey
2015-06-17 10:35     ` Kharitonov A. Dmitry
2015-06-17 12:32       ` Sergey
2015-06-18 13:51         ` Kharitonov A. Dmitry [this message]
2015-06-18 14:11           ` Sergey
2015-06-18 14:34             ` Kharitonov A. Dmitry
2015-06-19  6:56               ` Sergey
2015-06-18 14:43             ` Mikhail Efremov
2015-06-19  6:52               ` Sergey
2015-06-20 12:50                 ` Kharitonov A. Dmitry
2015-06-20 16:17                   ` Sergey
2015-06-20 17:06                     ` Sergey
2015-06-21 15:14                       ` Kharitonov A. Dmitry
2015-06-21 18:16                         ` Sergey
2015-06-25 10:11                           ` Kharitonov A. Dmitry
2015-06-26  6:58                             ` Sergey
2015-06-26 10:10                               ` Kharitonov A. Dmitry
2015-06-26 10:45                                 ` Sergey

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=5582CCEC.3010404@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