Browse Source

add module 90multipath

master
Harald Hoyer 16 years ago
parent
commit
978d78f7b2
  1. 14
      modules.d/90multipath/install
  2. 1
      modules.d/90multipath/installkernel
  3. 12
      modules.d/90multipath/multipathd-stop.sh
  4. 6
      modules.d/90multipath/multipathd.sh

14
modules.d/90multipath/install

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

1
modules.d/90multipath/installkernel

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

12
modules.d/90multipath/multipathd-stop.sh

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

6
modules.d/90multipath/multipathd.sh

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

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

Loading…
Cancel
Save