+sipb-xen-clvm-config (2.0) unstable; urgency=low
+
+ * Depend on multipath-tools because we're going to want it
+ * Fix multipath-tools' udev script because it's horribly broken
+
+ -- Evan Broder <broder@mit.edu> Mon, 5 May 2008 03:35:00 -0400
+
sipb-xen-clvm-config (1.2) unstable; urgency=low
* I remain an idiot, unfortunately, and didn't notice this last time
Package: sipb-xen-clvm-config
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs
+Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs, multipath-tools
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Description: Configure clustering LVM
Package: sipb-xen-clvm-config
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs
+Depends: ${shlibs:Depends}, ${misc:Depends}, clvm, cman, ccs, multipath-tools
Provides: ${diverted-files}
Conflicts: ${diverted-files}
Description: Configure clustering LVM
DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
DEB_DIVERT_EXTENSION = .sipb-xen
DEB_DIVERT_FILES_sipb-xen-clvm-config += \
- /etc/lvm/lvm.conf.sipb-xen
+ /etc/lvm/lvm.conf.sipb-xen \
+ /etc/udev/multipath.rules.sipb-xen
include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/config-package.mk
\ No newline at end of file
+include /usr/share/cdbs/1/rules/config-package.mk
--- /dev/null
+#
+# 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 status", \
+ RESULT=="*multipath*", \
+ PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info", \
+ RUN+="/sbin/kpartx -a /dev/mapper/%c"
+