aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-08-01 14:56:25 +0000
committerBill Nottingham <notting@redhat.com>2006-08-01 14:56:25 +0000
commit4a292da5e8ffa349879b721cecfda856d5969c3a (patch)
treed0fbb0b0a9f2bb1006f4478f87e822ff3fce5d4b /rc.d/init.d/netfs
parenta3ec6a0c61c899499c8261c7bea0acc13f2d2011 (diff)
downloadinitscripts-4a292da5e8ffa349879b721cecfda856d5969c3a.tar
initscripts-4a292da5e8ffa349879b721cecfda856d5969c3a.tar.gz
initscripts-4a292da5e8ffa349879b721cecfda856d5969c3a.tar.bz2
initscripts-4a292da5e8ffa349879b721cecfda856d5969c3a.tar.xz
initscripts-4a292da5e8ffa349879b721cecfda856d5969c3a.zip
run multipath on netdev devices (#180977)
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-xrc.d/init.d/netfs7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index c18348d6..105b97f9 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -45,6 +45,13 @@ case "$1" in
[ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
[ -n "$NETDEVFSTAB" ] &&
{
+ if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ]; then
+ modprobe dm-multipath >/dev/null 2>&1
+ /sbin/multipath.static -v 0
+ if [ -x /sbin/kpartx ]; then
+ /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
+ fi
+ fi
if [ -x /sbin/lvm.static ]; then
if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then
action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y