From: Jeremy Russell (Jeremy.Russell@chickasaw.net)
Date: Wed Apr 30 2003 - 15:39:28 EDT
Well, Thanks to all who replied. These are the resources I was pointed
to for IPMP
http://www.samag.com/documents/s=7933/sam0305a/0305a.htm
http://www.sun.com/blueprints/
http://www.eng.auburn.edu/users/doug/howtos/multipathing.html
http://www.sun.com/solutions/blueprints/0327-608/2011.pdf
But, I ended up not using IPMP, I can't have to active IP's.
So I wrote this little script to run.
<------------------ cut here ------------------------->
#!/bin/sh
# This script will check the status of the nic, and fail over if there
is a problem.
PATH=/bin:/sbin:/usr/bin:/usr/sbin
INTA="iprb0"
INTB="iprb1"
IP="10.64.16.1"
HBIP="192.168.255.1"
FAULT="$1"
PING="ping -c 1 -t 1"
while [ 1 = 1 ]
do
case $FAULT in
1)
$PING $IP >>fault.log 1>&2
if [ $? = 1 ]
then
ifconfig $INTB $IP down
ifconfig $INTB $HBIP netmask 255.255.255.252 -failover up
ifconfig $INTA down
ifconfig $INTA $IP netmask 255.255.0.0 failover up
FAULT=2
fi
;;
2)
$PING $IP >>fault.log 1>&2
if [ $? = 1 ]
then
ifconfig $INTA $IP down
ifconfig $INTA $HBIP netmask 255.255.255.252 -failover up
ifconfig $INTB down
ifconfig $INTB $IP netmask 255.255.0.0 failover up
FAULT=1
fi
sleep 1
;;
reset)
ifconfig $INTB down
ifconfig $INTB $HBIP netmask 255.255.255.252 -failover up
ifconfig $INTA down
ifconfig $INTA $IP netmask 255.255.0.0 failover up
;;
*)
echo "usage: $0 { 1 | 2 | reset } ( where 1 or 2 is the STANDBY
nic )"
exit
;;
esac
done
<----------------------- Cut again
------------------------------------->
The only problem is this will only fail over on a complete interface
failure, A link failure will don nothing. Does anyone have a take on
what I might do to sense a link failure (some ifconfig option maybe?).
Thanks for the help!!
Jeremy Russell
Network Administrator, CNI
580-272-2707
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:19 EDT