From: "Dimitry V. Ketov" <Dimitry.Ketov@avalon.ru>
To: "Nick S. Grechukh" <nick.grechukh@gmail.com>
Cc: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] udev, lvm2, #7369
Date: Mon, 19 Dec 2005 16:49:46 +0300
Message-ID: <43A6BA7A.5090905@avalon.ru> (raw)
In-Reply-To: <a4ab440f0511251031w4c90a137oe80df2fdcc2a7a96@mail.gmail.com>
Nick S. Grechukh пишет:
> Это понятно. Зачем в предложеном решении вызов /sbin/devmap_name $* из
> /etc/udev/scripts/lvm- vg.sh, если /usr/sbin/vgmknodes прекрасно сам
> справляется?
>
>
> второй раз запускать vgmknodes после работы udev мне не кажется
> правильным вариантом. вроде бы _были_ проблемы, я уже не помню деталей.
> в предложенном решении udev сам создает device node, как и полагается.
И не надо его запускать.
Судя по решению, предложенному в #7369 udev увидев в ядре dm-[0-9]* вызовет (косвенно
через /etc/udev/scripts/lvm-vg.sh) /usr/sbin/vgmknodes (который создаст нужные файлы
устройств), после чего будет (ЗАЧЕМ? вот в чем ворпос) запущен /sbin/devmap_name.
-------------------------------------------
/etc/udev/rules.d/10-lvm.rules:
## LVM compatibility by gns@altlinux.org
KERNEL="dm-[0-9]*", PROGRAM="/etc/udev/scripts/lvm-vg.sh %M %m", NAME="%k",
SYMLINK="%c"
-------------------------------------------
/etc/udev/scripts/lvm-vg.sh:
#!/bin/sh
## LVM compatibility by gns@altlinux.org
[ -e /usr/sbin/vgmknodes ] && /usr/sbin/vgmknodes >/dev/null 2>/dev/null
/sbin/devmap_name $*
-------------------------------------------
prev parent reply other threads:[~2005-12-19 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-25 17:37 Dimitry V. Ketov
2005-11-25 18:27 ` Dimitry V. Ketov
2005-12-19 13:49 ` Dimitry V. Ketov [this message]
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=43A6BA7A.5090905@avalon.ru \
--to=dimitry.ketov@avalon.ru \
--cc=devel@lists.altlinux.org \
--cc=nick.grechukh@gmail.com \
/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