All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] How to check an inactive slave in a bond?
@ 2007-07-19 13:16 olivier arsac
  2007-07-19 20:49 ` Jay Vosburgh
  2007-08-13  9:49 ` olivier arsac
  0 siblings, 2 replies; 3+ messages in thread
From: olivier arsac @ 2007-07-19 13:16 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 1471 bytes --]

I'm using bonding in active-fallback mode to guarantee maximum 
availability on some critical servers.
The mii mode is active so I can detect things like dead card and/or 
unplugged cable even on the inactive slave.
But how do I check that the inactive slave is properly 
configured/connected to the switch/vlan?
I ask this question because it has just bitten me in a part I'll keep 
undisclosed.

Scenario:
your bond0 is running fine. it uses eth0 as active slave and eth2 as 
inactive slave (different cards/ different driver to be safe)
some bozo reconfigures the switch port where your eth2 is plugged in and 
you don't notice it (the crucial point here)
later on, your eth0 dies (or is unplugged by the brother of the first bozo)
and bamm... your nice HA node is off-line.
note: eth2 is still plugged and fine at the mii level.
even an arp would return OK so going from mii to arp for the bond is not 
the right option.

So. How could I check that an IP packet send via eth2 would really reach 
its vlan?
I tried a probably naive thing:
ifenslave -d bond0 eth2
ifconfig eth2 $ip netmask 255.255.255.255
route add -host $target eth2
ping $target
(target is the gateway, ip is a reserved IP used only on this server to 
do that check)
but it does not work as I hopped. Sometimes the ping is OK (but goes 
thru bond0) sometimes it blocks...
The real question is How to do it properly (rather than how to fix my 
naive try).

Thank you for your help.

    Olivier







[-- Attachment #1.2: Type: text/html, Size: 1869 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-13  9:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 13:16 [LARTC] How to check an inactive slave in a bond? olivier arsac
2007-07-19 20:49 ` Jay Vosburgh
2007-08-13  9:49 ` olivier arsac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.