LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-30-2010, 03:56 AM   #1
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Rep: Reputation: 15
Question Bonding not able to sense Uplink failure in switches..


Hi
My query is how do I configure bonding so that it can sense Uplink 1 failure in switch 1 and failover to switch 2 on which Uplink 2 is coming.
Here I have two HP L2 Procure Switches on which two network backend Uplink is connected.
I did the bonding configuration on the bases of arp request.
My configuration of modprobe.conf file was like this
alias bond0 bonding
options bond0 mode=0 arp_interval=100 arp_ip_target=192.168.1.1


the above options woked fine it sense uplink failure and failover the connectivity to switch 2 and vice versa. But this configuration had drawback that I was not able to take putty of this server although I was able to ping the 192.168.1.1 gateway from this server. I ran the tcpdump for figure out on both interface eth0 and eth1 I found first it sent ICMP packet from eth0 and second time from eth1.
Thus I changed mode=0 to mode=1 for dedicated interface I tried the failover testing of uplink again but this time it was successfully able to failover to eth1 to eth0 but not able to failback from eth0 to eth1. So how do I resolve this problem which can detect Network Uplink failiure of backend network.

Thanks & Regards
CJ
 
Old 01-30-2010, 07:33 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Can your switches be configured redundantly ? .. that would be my first choice. I'd let the switches deal with link failures upstream and use bonding to handle local link or switch failures

cheers
 
Old 01-30-2010, 10:37 PM   #3
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
Do You think If I asked my Network Administrator to activate the STP and local loop on my local L3 switches would this will help..?

Thx & RGD
CJ
 
Old 01-31-2010, 03:28 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
STP would most likely be on already.. but that doesn't mean the network is configured for redundancy, may be worth asking ...
 
Old 02-01-2010, 01:45 PM   #5
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
No STP is not enable on backend network thus I am compelled to implement my solution. I tried it and check again the Uplink failure on my HP procure switches, now it is working fine with mode=1 also there was some mess up with network cables with switch while testing anyway... now it is ok. But my query is I have implemented on one server but what will happen if I implement this configuration on my 18 servers will this arp configuration creates flood on network. Say if I put 100 ms in arp_interval in modprobe.conf file.
 
Old 02-01-2010, 03:41 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
If you run tcpdump or wireshark and filter on arp packets you should be able to estimate the amount of traffic generated by one machine with this configuration. Then simply multiply by 18 and decide whether this is an acceptable amount of overhead/traffic for your network.

cheers
 
Old 02-02-2010, 03:12 AM   #7
cj_cheema
Member
 
Registered: Mar 2006
Location: INDIA
Distribution: RedHat, SuSE, Debian
Posts: 156

Original Poster
Rep: Reputation: 15
Thanks I have checked from tcpdump but ironacily if i run tcpdump from node A it shows me another node B arp request to gateway and if i run from node B it shows me information of arp of node A. Why it is showing this why it don't show me arp information of the server on which i m sitting and executed tcpdump.

Rgd CJ
 
Old 02-02-2010, 03:07 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You should see any arp traffic for hosts that are in your broadcast domain, but you'll only see gratuitous arps when your link fails over so you may need to pull one of the cables. You will see normal arp requests when your machine is initiating a connection over the network to another machine and that machine has not been connected to recently ( arp cache entry has expired/been deleted ).

cheers
 
  


Reply

Tags
bonding, detection, failure


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
bonding bonding-xor and bonding-alb Chrysalis Linux - Networking 1 10-24-2009 02:14 PM
External hard drive failure? Sense key: medium error Mister_Abc Linux - Hardware 6 07-23-2009 10:27 AM
NIC Bonding on Separate Switches for Oracle RAC Cluster legonz Linux - Networking 5 01-26-2006 11:31 AM
kernel: st0: Error with sense data: Current st09:00: sense key N da_kidd_er Linux - Hardware 0 12-16-2004 10:51 PM
Hard drive failure error? (sense key Medium error) Arodef Linux - Hardware 2 11-02-2004 12:39 PM


All times are GMT -5. The time now is 05:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration