From: Tomasz Chmielewski <mangoo@wpkg.org>
To: dm-devel@redhat.com
Subject: can I create static /dev/dm-XY device mappings?
Date: Fri, 11 Jan 2008 14:52:41 +0100 [thread overview]
Message-ID: <478774A9.1010104@wpkg.org> (raw)
Is it possible to create static /dev/dm-XY device mappings?
I have an encrypted disk, later partitioned, DRBD over it, and finally,
LVM2 over it.
LVM2 gets confused, and detects physical volume with duplicate IDs
(/dev/drbd0 and /dev/dm-2).
So far my only workaround was to filter out /dev/dm-2 in lvm.conf, but
as /dev/dm-XY are not static, this solution is not very reliable.
This is a udev rule which creates these mappings, but I've no idea how
to change it to make all or certain mappings static.
#
# multipath and multipath partitions nodes are created in /dev/mapper/
# this file should be installed in /etc/udev/rules.d
#
# take care of devmap partitioning
ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings
-c -o name info", \
RUN+="/sbin/kpartx -a /dev/mapper/%c"
Any clues?
--
Tomasz Chmielewski
http://wpkg.org
reply other threads:[~2008-01-11 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=478774A9.1010104@wpkg.org \
--to=mangoo@wpkg.org \
--cc=dm-devel@redhat.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.