add module 90multipath
parent
03d8ec2601
commit
978d78f7b2
|
@ -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 @@
|
|||
instmods dm-multipath dm-round-robin
|
|
@ -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
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -e /etc/multipath.conf ]; then
|
||||
multipathd
|
||||
fi
|
||||
|
Loading…
Reference in New Issue