Sponsored Content
Full Discussion: Interfaces do not failover
Operating Systems Solaris Interfaces do not failover Post 80321 by pressy on Friday 5th of August 2005 12:27:15 PM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 03:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy