LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2013, 05:37 PM   #1
parthelion
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Bonded interface failover speed question


Hi everyone,

I'm having a bit of a problem with a bond interface. Essentially, my configuration is the following:
Code:

  Box1
    |
  Switch
  |    |
 Box2  Box3
    \  /
    Box4
Boxes 1,2,3 and 4 are all RHEL5 servers. The critical communications path I'm concerned with is between Box1 and Box4. Box4 cannot be directly connected to the switch, so traffic is routed through box2 and box3. I have to handle losing either of those two boxes. I'm accomplishing this by bonding box4's interfaces to boxes 2 and 3, and having box1 toggle its route to box4 between the two intermediate boxes if it loses its connection.

This all seems to work pretty well, but my problem is that if box4's bonded interface is talking through box2 and I sever that interface by any means, it seems to take about 5 seconds before communications between box3 and box4 come up (and vice-versa.) I'd like this to be faster. Checking the active-slave file for the bonded interface shows me that the bonded interface seems to swap over almost instantly. Using ifconfig also shows that box4 immediately starts trying to use the correct new interface, but it's still about 5 seconds before I can ping between box4 and the new intermediate box. Does anyone have any ideas as to how I might improve this time? Or am I going about this completely the wrong way?

This is box4's modprobe.conf:
Code:
alias bond0 bonding
options bonding miimon=100 mode=1
Its ifcfg-bond0:
Code:
DEVICE=bond0
IPADDR=10.7.12.4
NETWORK=10.7.12.0
NETMASK=255.255.255.0
GATEWAY=10.7.12.1
BROADCAST=10.7.12.255
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
And the two slave interfaces:
Code:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
Code:
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
The two box4-facing interfaces are nothing special (and both have the IP 10.7.12.3).

Thanks for your help, everyone. I've been banging my head against the wall for a couple days.
 
Old 07-10-2013, 11:23 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
IMHO, the better solution is to cluster a virtual IP interface between the two boxes. When one drops, the other takes over. For me, the takeover is almost instantaneous. It also handles fluttering up/down/up/down situations well. RHEL5's cluster is solid, but crusty code now. It's got a gui too, so not too much meddling about for a simple failover NIC.

Another alternative is to use SNMP to trigger a script to clean up after the downed interface. That's pretty scripty/SNMP mucking about, but might be a less intimidating learning curve than a heartbeat cluster.

I'd be interested to see the kernel messages when one of the bonded interfaces fail. Do you know what causes the delay?

Last edited by mpapet; 07-10-2013 at 11:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifying MaxSpeed of a Bonded Interface zama Linux - Networking 5 05-29-2013 06:58 PM
bonded interface as default gw jabirmk Linux - Networking 1 07-02-2012 03:31 AM
Netdump over bonded interface ? shriyer Linux - Software 0 07-22-2009 09:45 AM
LXer: Bonded VPNs for Higher Throughput and Failover with Zeroshell Linux LXer Syndicated Linux News 0 07-21-2009 02:00 AM
kickstart with bonded interface bajones Linux - Newbie 6 07-29-2008 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration