From 4a292da5e8ffa349879b721cecfda856d5969c3a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 1 Aug 2006 14:56:25 +0000 Subject: run multipath on netdev devices (#180977) --- rc.d/init.d/netfs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rc.d') 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 -- cgit v1.2.1