add module 90multipath

master
Harald Hoyer 2009-11-12 15:12:18 +01:00
parent 03d8ec2601
commit 978d78f7b2
4 changed files with 33 additions and 0 deletions

14
modules.d/90multipath/install Executable file
View File

@ -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"

View File

@ -0,0 +1 @@
instmods dm-multipath dm-round-robin

View File

@ -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

View File

@ -0,0 +1,6 @@
#!/bin/sh

if [ -e /etc/multipath.conf ]; then
multipathd
fi