* can I create static /dev/dm-XY device mappings?
@ 2008-01-11 13:52 Tomasz Chmielewski
0 siblings, 0 replies; only message in thread
From: Tomasz Chmielewski @ 2008-01-11 13:52 UTC (permalink / raw)
To: dm-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-11 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 13:52 can I create static /dev/dm-XY device mappings? Tomasz Chmielewski
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.