[ewg] [PATCH] ofed_scripts: Remove code that handles HA/Bonding configuration from service script
Moni Shoua
monis at Voltaire.COM
Tue Sep 16 00:30:08 PDT 2008
>From e0511fb9146c82351a3c32cc67a8153b5aaaf57c Mon Sep 17 00:00:00 2001
From: root <root at ain.voltaire.com>
Date: Tue, 16 Sep 2008 10:16:40 +0300
Remove IPoIB HA support - no longer supported
Remove IPoIB bonding support - OS standard configuration seems stable now
so support here is not required
Signed-off-by: Moni Shoua <monis at voltaire.com>
---
ofed_scripts/openibd | 42 ------------------------------------------
1 files changed, 0 insertions(+), 42 deletions(-)
diff --git a/ofed_scripts/openibd b/ofed_scripts/openibd
index 11dba21..8b23c7a 100755
--- a/ofed_scripts/openibd
+++ b/ofed_scripts/openibd
@@ -1011,48 +1011,6 @@ EOF
done
echo_done "Setting up service network . . ."
- if [ "X${IPOIBHA_ENABLE}" == "Xyes" ]; then
- ipoib_ha_log="/var/log/ipoib_ha.log"
- rotate_log ${ipoib_ha_log}
- # Added sleep in order to wait for IPoIB interfaces to be UP
- sleep 1
- if [ ! -z "${PRIMARY_IPOIB_DEV}" ] && [ ! -z "${SECONDARY_IPOIB_DEV}" ]; then
- ipoib_ha.pl -p ${PRIMARY_IPOIB_DEV} -s ${SECONDARY_IPOIB_DEV} --with-arping --with-multicast -v > ${ipoib_ha_log} 2>&1 &
- else
- ipoib_ha.pl --with-arping --with-multicast -v > ${ipoib_ha_log} 2>&1 &
- fi
- ipoib_ha_pid=$!
- echo ${ipoib_ha_pid} > ${ipoib_ha_pidfile}
- elif [ "X${IPOIBBOND_ENABLE}" == "Xyes" ]; then
- if ( test ! -z $IPOIB_BONDS && which ib-bond &>/dev/null ) ; then
- echo Setting up bonding interfaces:
- for bond in $(echo $IPOIB_BONDS|tr , " ") ; do
- eval bond_ip=\$${bond}_IP
- if [ -z $bond_ip ]; then
- echo No IP address defined for $bond
- continue
- fi
- eval bond_slaves=\$${bond}_SLAVES
- if [ -z $bond_slaves ]; then
- echo No slaves defined for $bond
- continue
- fi
- ib-bond --bond-name $bond --bond-ip $bond_ip --slaves $bond_slaves
- RC=$?
- if [ $RC -eq 0 ] ; then
- echo_success $"Bringing up interface $bond"
- else
- echo_failure $"Bringing up interface $bond"
- fi
- if [ "X${SET_IPOIB_CM}" == "Xyes" ]; then
- for slave in $(echo $bond_slaves|tr , " ") ; do
- set_ipoib_cm ${slave}
- done
- /sbin/ifconfig $bond mtu ${IPOIB_MTU}
- fi
- done
- fi
- fi
fi
# Load configured modules
--
1.5.5
More information about the ewg
mailing list