
4 changed files with 33 additions and 0 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
if [[ $hostonly ]]; then |
||||
inst /etc/multipath.conf |
||||
fi |
||||
|
||||
for f in \ |
||||
/sbin/multipath \ |
||||
/sbin/multipathd \ |
||||
/lib/libmultipath* \ |
||||
/lib/multipath/* ;do |
||||
inst $f |
||||
done |
||||
|
||||
inst_hook pre-trigger 02 "$moddir/multipathd.sh" |
||||
inst_hook pre-pivot 02 "$moddir/multipathd-stop.sh" |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
instmods dm-multipath dm-round-robin |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh |
||||
|
||||
if [ -e /etc/multipath.conf ]; then |
||||
HARD="" |
||||
while pidof multipathd >/dev/null 2>&1; do |
||||
for pid in $(pidof multipathd); do |
||||
kill $HARD $pid >/dev/null 2>&1 |
||||
done |
||||
HARD="-9" |
||||
done |
||||
fi |
||||
|
Loading…
Reference in new issue