Interfaces do not failover


 
Thread Tools Search this Thread
Operating Systems Solaris Interfaces do not failover
# 1  
Old 08-05-2005
Interfaces do not failover

Would anyone know why a V440 Solaris 9 machine's interfaces (ce0 and ce1)
will not failover?

Both interfaces are on the same subnet, but different IPs. I can pull the plug on once interface (ce0) and ce1 will be accessible. I can reverse it and pull ce1, and ce0 will NOT be accessible. This behavior is consistent on all 10 machines, however, its not always the same interface that is the failover-friendly one.

Thanks for any assistance.
# 2  
Old 08-05-2005
could you post your IPMP configuration and an ifconfig output so we could see if your settings are ok

gP
# 3  
Old 08-05-2005
[gamwsm02]:#ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xxx.xxx.xxx.xxx netmask ffffff00 broadcast xxx.xxx.xxx.xxx
ether 0:3:ba:c3:54:d1
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet xxx.xxx.xxx.xxxnetmask ffffff00 broadcast xxx.xxx.xxx.xxx
ether 0:3:ba:c3:54:d2
________________________________________________________________

#pragma ident "@(#)mpathd.dfl 1.2 00/07/17 SMI"
#
# Time taken by mpathd to detect a NIC failure in ms. The minimum time
# that can be specified is 100 ms.
#
FAILURE_DETECTION_TIME=10000
#
# Failback is enabled by default. To disable failback turn off this option
#
FAILBACK=yes
#
# By default only interfaces configured as part of multipathing groups
# are tracked. Turn off this option to track all network interfaces
# on the system
#
TRACK_INTERFACES_ONLY_WITH_GROUPS=yes

Last edited by StorageGuy; 08-05-2005 at 05:07 PM..
# 4  
Old 08-05-2005
well:
TRACK_INTERFACES_ONLY_WITH_GROUPS=yes
you don't have groups definitions you will have to say there no or make groups
to be honest, i've never tried it with the global setting, am always using the IPMP groups for failover interfaces, because you have the outbound multipathing feature if you work with groups.
try it my way (by the way it's also the recommended sun way Smilie )
you have to turn the global setting off

Code:
cat /etc/hosts
192.168.133.10 hostip1 
192.168.133.11 hostip2
192.168.133.12 dummy1
192.168.133.13 dummy2

# ifconfig ce0 dummy1 netmask + broadcast + group PRESSY deprecated -failover up addif hostip1 netmask + broadcast + up
# ifconfig ce1 dummy2 netmask + broadcast + group PRESSY deprecated -failover up addif hostip2 netmask + broadcast + up

my ifconfig:
Code:
root@venus # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
        inet 192.168.133.22 netmask ffffff00 broadcast 192.168.133.255
        groupname production
        ether 8:0:20:c2:d2:da
hme0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.133.20 netmask ffffff00 broadcast 192.168.133.255
hme1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 3
        inet 192.168.133.23 netmask ffffff00 broadcast 192.168.133.255
        groupname production
        ether 8:0:20:c2:d2:db
hme1:1: flags=1000842<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.133.21 netmask ffffff00 broadcast 192.168.133.255
root@venus #

you will have to use a 100% available gateway, because the IPMP uses the gateway to test the connection. if you don't have a "good" router choose about 4 other hosts and make hostsroutes. if more then the half fail the IPMP groups will go down!
# /usr/sbin/route add -host IP IP

examples:

1:1 ifconfig command into your /etc/hostname.*

Code:
# more /etc/hostname.*
### hostname.ce0 ###
dummy1 netmask + broadcast + group PRESSY deprecated -failover up addif hostip1 netmask + broadcast + up
################
### hostname.ce1 ###
dummy2 netmask + broadcast + group PRESSY deprecated -failover up addif hostip2 netmask + broadcast + up
################

i wrote a start script for the route purpose:
Code:
# cat /etc/rc2.d/S70ipmp.start
#!/sbin/sh
# small start script by pressy to provide more testtargets than the
# firewall for ipmp.
#

FRAG="192.168.133.52 192.168.133.53 192.168.133.35 192.168.133.34"

case "$1" in
        'start')
                /usr/bin/echo "adding FRAG targets for IPMP"
                for target in $FRAG;
                do
                        /usr/sbin/route add -host $target $target
                done
        ;;

        'stop')
                /usr/bin/echo "removing FRAG targets for IPMP"
                for target in $FRAG;
                do
                        /usr/sbin/route delete -host $target $target
                done
        ;;
esac

to test your configuration use the command
/usr/sbin/if_mpadm -d ce0
to detach the interface then you should see in your messagefile the failover
use /usr/sbin/if_mpadm -r ce0 to reattach the interface again

you will see it works ;-)
greetings PRESSY

Last edited by pressy; 08-05-2005 at 01:33 PM..
# 5  
Old 08-06-2005
Thanks Pressy. I found out that this behavior is a solaris
default. Multipathing software would be needed to allow
failover of both interfaces.
# 6  
Old 08-06-2005
Quote:
Thanks Pressy. I found out that this behavior is a solaris
default. Multipathing software would be needed to allow
failover of both interfaces.
the IPMP feature is provided by solaris oe (think since sunos 5.8 it is included), you don't need an additional software. with the configuration i have posted before both interfaces, both IP addresses (hostip1 & hostip2) could do a failover...
gP
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Etherchannel failover testing

Hi Guys, I am trying to test an etherchannel failover and switchback. I did failover from primary to backup adapter, but now I am not able to switch it back to primary. phcxxxxx:/ > entstat -d ent4 | grep Active Active channel: backup adapter ... (1 Reply)
Discussion started by: snchaudhari2
1 Replies

2. Solaris

Interfaces and Virtual-interfaces queries

Hi Al, In course of understanding networking in Solaris, I have these doubts on Interfaces. Please clarify me. I have done fair research in this site and others but could not be clarified. 1. In the "ifconfig -a" command, I see many interfaces and their configurations. But I see many... (1 Reply)
Discussion started by: satish51392111
1 Replies

3. Linux

dhcpd failover with static IP

Hi I am a bit confused, I want to setup failover within dhcpd. There are multiple subnets and hosts with static IP's. however it seems I need to set up an IP range for the subnets for failover to work is this correct or am I missing something (1 Reply)
Discussion started by: eeisken
1 Replies

4. Gentoo

How to failover the cluster ?

How to failover the cluster ? GNU/Linux By which command, My Linux version 2008 x86_64 x86_64 x86_64 GNU/Linux What are the prerequisites we need to take while failover ? if any Regards (3 Replies)
Discussion started by: sidharthmellam
3 Replies

5. IP Networking

IP failover needed

All, I am looking to setup a simple IP failover setup, but it seems every place i look has some difficult setup like pacemaker or LVS. I only want to handle the IP piece to failover a VIP. Any suggestions? I checked out keepalived and that my work for me. (4 Replies)
Discussion started by: markdjones82
4 Replies

6. Solaris

EMC Failover

Hi guys, I'm running vxdmp and powerpath at the same time. Vxdmp for internal disks and powerpath for external. The problem is that, on the failover tests which a fiber cable should be removed, the system cannot recognize the disks. Any hints on how to configure powerpath in order to... (4 Replies)
Discussion started by: glenioborges
4 Replies

7. AIX

POWER6 VIO Failover

Hello, Can someone point to me document or the method to make failover for VIO Servers ? I have one VIO_Server1 which has 4 AIX LPARS - From the VIO_SERVER1 I have assigned virtual SCSI DISK to the four LPARS - For Ethernet I have used LHEA So, if my VIO Server1 crashes all the LPARS... (17 Replies)
Discussion started by: filosophizer
17 Replies

8. UNIX for Advanced & Expert Users

LAMP Server Failover

How does everyone else handle this? My Setup: Server A: CentOS 5.x 10.0.0.1 Apache MySQL Master Server B: CentOS 5.x 10.0.0.2 Apache MySQL Slave My Domains: dom1.com A record: 10.0.0.1 A Record: 10.0.0.2 dom2.com A record: 10.0.0.1 A Record: 10.0.0.2 (3 Replies)
Discussion started by: Ikon
3 Replies

9. AIX

failover on 4.5 hacmp

Hi All, How do I trigger the failover on the second hacmp server? Please give me idea and I will do the rest. Thanks, itik (2 Replies)
Discussion started by: itik
2 Replies

10. UNIX for Advanced & Expert Users

directories failover

Hi, I have 3 directories (/1 /2 and /3) with same contents and want to achieve fail over among them. The Solution i thought of: 1. link /data to /1 (and provide users with /data to access) 2. CRON a script (to run every minute) to verify if /1 exist or not, if it does not exist (or its... (3 Replies)
Discussion started by: prvnrk
3 Replies
Login or Register to Ask a Question