Browse Source
install /etc/multipath/wwids With the proper 40-multipath.rules and new udev device-mapper mechanism, we don't need the multipath scan anymore. rhbz#595719master

4 changed files with 3 additions and 31 deletions
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
# scan for multipath devices |
||||
SUBSYSTEM!="block", GOTO="end_mpath_scan" |
||||
KERNEL!="sd*", GOTO="end_mpath_scan" |
||||
PROGRAM=="/bin/sh -c 'for i in $sys/$devpath/holders/dm-[0-9]*; do [ -e $$i ] && exit 0; done; exit 1;' ", GOTO="end_mpath_scan" |
||||
RUN+="/sbin/modprobe dm-multipath" |
||||
RUN+="/bin/echo 'queuing multipath scan'" |
||||
RUN+="/sbin/initqueue --settled --onetime --unique --name mpscan /sbin/multipath-scan" |
||||
RUN+="/bin/sh -c '>/tmp/.multipath-scan-%k;'" |
||||
LABEL="end_mpath_scan" |
@ -1,16 +0,0 @@
@@ -1,16 +0,0 @@
|
||||
#!/bin/sh |
||||
|
||||
# scan for multipaths if udev has settled |
||||
|
||||
. /lib/dracut-lib.sh |
||||
|
||||
[ -d /etc/multipath ] || mkdir -p /etc/multipath |
||||
mpdevs=$( |
||||
for f in /tmp/.multipath-scan-* ; do |
||||
[ -e "$f" ] || continue |
||||
echo -n "${f##/tmp/.multipath-scan-} " |
||||
done |
||||
) |
||||
|
||||
[ -e /etc/multipath.conf ] || exit 1 |
||||
multipath ${mpdevs} |
Loading…
Reference in new issue