summaryrefslogtreecommitdiff
path: root/extras/multipath/README
diff options
context:
space:
mode:
authorchristophe.varoqui@free.fr <christophe.varoqui@free.fr>2004-02-13 00:48:36 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:27 -0700
commitcbb576b91dea8bd84a9fdd147b6b4cbe757dd198 (patch)
treec8cdfff7480e5c8bf8bcf783979c44bb1195f38c /extras/multipath/README
parent0c040e8d7cc0d027a240769dd7455679beca521d (diff)
[PATCH] more udev-016/extras/multipath
> Hello, > > incremental to udev-016/extras/multipath, > > * don't rely on the linux symlink in the udev/klibc dir since > udev build doesn't use it anymore. This corrects build breakage > * remove make_dm_node fn & call. Rely on udev for this. > > The first patch is to be applied. > The second is conditioned by udev dealing correctly with devmap names. > > For this I can suggest a CALLOUT rule like this : > KERNEL="dm-[0-9]*", PROGRAM="/tmp/name_devmap %M %m", NAME="%k", > SYMLINK="%c" > > With name_devmap like : > #!/bin/sh > /usr/sbin/dmsetup ls|/bin/grep "$1, $2"|/usr/bin/awk '{print $1}' > ok I coded the suggested tool. it works with the following rule : KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" I don't know if it's right to keep this tools packaged with multipath because it's widely more general. Maybe Joe should merge it in the device-mapper package or provide the functionnality through dmsetup ?
Diffstat (limited to 'extras/multipath/README')
-rw-r--r--extras/multipath/README8
1 files changed, 8 insertions, 0 deletions
diff --git a/extras/multipath/README b/extras/multipath/README
index 417a0d38e4..80945db438 100644
--- a/extras/multipath/README
+++ b/extras/multipath/README
@@ -8,6 +8,8 @@ o libsysfs : comes with sysutils or udev
See ftp.kernel.org/pub/linux/utils/kernel/hotplug/
o Linux kernel 2.6.0 with udm5 patchset
http://people.sistina.com/~thornber/dm/
+o udev
+ See ftp.kernel.org/pub/linux/utils/kernel/hotplug/
How it works :
==============
@@ -53,6 +55,12 @@ struct multipath {
When mp is filled, the device maps are fed to the kernel
through libdevmapper.
+The naming of the corresponding block device is handeld
+by udev with the help of the devmap_name proggy. It is
+called by the following rule in /etc/udev/udev.rules :
+KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", \
+NAME="%k", SYMLINK="%c"
+
Notes :
=======