1
diff -Naurd multipath-tools-0.4.7.orig/multipath/multipath.rules multipath-tools-0.4.7/multipath/multipath.rules
2
--- multipath-tools-0.4.7.orig/multipath/multipath.rules 2006-03-13 16:12:08.000000000 +0100
3
+++ multipath-tools-0.4.7/multipath/multipath.rules 2007-06-13 11:54:55.000000000 +0200
5
# !! check the other installed rules !!
8
-# lookup the devmap name
9
-#ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
10
-# PROGRAM="/sbin/devmap_name %M %m"
11
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
12
- PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info"
13
+ACTION=="add|change", SUBSYSTEM=="block", \
14
+ RUN+="/sbin/modprobe -Qba dm-multipath"
16
+## take care to inizialize HSG80 disks when configured in multibus failover
17
+# old kernels reports 2097152 (10GB) size on the passive path
18
+ACTION=="add", SUBSYSTEM=="block", \
19
+ ATTRS{model}=="HSG80", ATTRS{size}=="2097152", \
20
+ RUN+="/sbin/hsg80_start %k", \
23
+# new kernels report 0 size on the passive path
24
+ACTION=="add", SUBSYSTEM=="block", \
25
+ ATTRS{model}=="HSG80", ATTRS{size}=="0", \
26
+ RUN+="/sbin/hsg80_start %k", \
29
+# call multipath -v 0 to add devices as they appear
30
+ACTION=="add|change", SUBSYSTEM=="block", \
31
+ RUN+="/sbin/multipath -v 0 /dev/%k"
35
# take care of devmap partitioning
36
-ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
37
+ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="dm-*", \
38
+ PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info", \
39
RUN+="/sbin/kpartx -a /dev/mapper/%c"