From: Alexey Shabalin <a.shabalin@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [SCM] packages/mdadm: tags/3.2.6-alt2
Date: Tue, 22 Jan 2013 20:28:01 +0400
Message-ID: <CAEdvWkTYoNLO_N8R0Kf4qTy57ZRQ6L=wOM6+aqeL=+ejs1SB0Q@mail.gmail.com> (raw)
In-Reply-To: <20130122160837.GA10084@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2736 bytes --]
22 января 2013 г., 20:08 пользователь Dmitry V. Levin написал:
> On Tue, Jan 22, 2013 at 08:03:13PM +0400, Alexey Shabalin wrote:
>> 2013/1/18 Dmitry V. Levin :
>> > On Thu, Jan 17, 2013 at 09:27:00PM +0000, Alexey Shabalin wrote:
>> >> Update of /people/shaba/packages/mdadm.git
>> > [...]
>> >> commit 4916715824549203a6ca380ec79839a0acb7d6b1
>> >> Author: Alexey Shabalin <shaba@altlinux>
>> >> Date: Fri Jan 18 01:21:30 2013 +0400
>> >>
>> >> Ignore exit code.
>> >> For system without raid disks.
>> >>
>> >> Full diff since `3.2.6-alt1' follows:
>> >> diff --git a/alt/mdadm-activation.service b/alt/mdadm-activation.service
>> >> index 77bd093..dc7a81a 100644
>> >> --- a/alt/mdadm-activation.service
>> >> +++ b/alt/mdadm-activation.service
>> >> @@ -12,7 +12,7 @@ ConditionKernelCommandLine=!noraidtab
>> >>
>> >> [Service]
>> >> Type=oneshot
>> >> -ExecStart=/sbin/mdadm --assemble --scan
>> >> +ExecStart=-/sbin/mdadm --assemble --scan
>> >> RemainAfterExit=yes
>> >>
>> >> [Install]
>> >
>> > 1. Я полагаю, что игнорирование всех ошибок - это неправильное изменение.
>> > 2. Зачем вообще нужен mdadm-activation.service? У нас штатный
>> > /lib/udev/rules.d/64-md-raid.rules, который предназначен для
>> > инкрементальной сборки массивов, не функционирует?
>>
>> отправил на сборку mdadm без mdadm-activation.service.
>> В виртуалках virtio для raid использовать не рекомендуется, используйте scsi.
>
> Давайте сперва разберемся, почему с virtio не работает.
Подозрений несколько:
1) в 60-persistent-storage.rules:
# virtio-blk
KERNEL=="vd*[!0-9]", ATTRS{serial}=="?*",
ENV{ID_SERIAL}="$attr{serial}",
SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}"
KERNEL=="vd*[0-9]", ATTRS{serial}=="?*",
ENV{ID_SERIAL}="$attr{serial}",
SYMLINK+="disk/by-id/virtio-$env{ID_SERIAL}-part%n"
# scsi devices
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*",
IMPORT{program}="scsi_id --export --whitelisted -d $devnode",
ENV{ID_BUS}="scsi"
KERNEL=="sd*|sr*|cciss*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*",
SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
Возможно для virtio нужен аналог scsi_id.
2) в 60-persistent-storage.rules:
# by-path (parent device path)
ENV{DEVTYPE}=="disk", DEVPATH!="*/virtual/*", IMPORT{builtin}="path_id"
ENV{DEVTYPE}=="disk", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}"
ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*",
SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
Мне кажется это совсем не работает - у меня и на рабочей машине нет
/dev/disk/by-path
Прикладываю вывод udevadm info для дисков virtio(vdb) и scsi(sda) -
может кто увидит, что не хватает для virtio?
Для virtio надо обязательно назначать серийный номер, иначе "udevadm
info" почти совсем пустой.
--
Alexey Shabalin
[-- Attachment #2: vdb --]
[-- Type: application/octet-stream, Size: 360 bytes --]
[-- Attachment #3: vdb1 --]
[-- Type: application/octet-stream, Size: 933 bytes --]
[-- Attachment #4: sda1 --]
[-- Type: application/octet-stream, Size: 1468 bytes --]
[-- Attachment #5: sda --]
[-- Type: application/octet-stream, Size: 886 bytes --]
next prev parent reply other threads:[~2013-01-22 16:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 21:54 ` Dmitry V. Levin
2013-01-21 14:09 ` Alexey Shabalin
2013-01-21 14:27 ` Valery V. Inozemtsev
2013-01-21 14:31 ` Alexey Shabalin
2013-01-21 14:36 ` Valery V. Inozemtsev
2013-01-22 10:08 ` Alexey Shabalin
2013-01-21 14:37 ` Alexey Gladkov
2013-01-22 16:03 ` Alexey Shabalin
2013-01-22 16:08 ` Dmitry V. Levin
2013-01-22 16:28 ` Alexey Shabalin [this message]
2013-01-23 9:22 ` Alexey Shabalin
2013-01-22 17:45 ` Anton Gorlov
2013-01-22 17:47 ` Anton Gorlov
2013-01-23 9:23 ` Alexey Shabalin
2013-01-23 10:10 ` Anton Gorlov
2013-01-23 10:38 ` Alexey Shabalin
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='CAEdvWkTYoNLO_N8R0Kf4qTy57ZRQ6L=wOM6+aqeL=+ejs1SB0Q@mail.gmail.com' \
--to=a.shabalin@gmail.com \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git