From: olivier arsac <oliv@arsac.org>
To: lartc@vger.kernel.org
Subject: [LARTC] How to check an inactive slave in a bond?
Date: Thu, 19 Jul 2007 13:16:18 +0000 [thread overview]
Message-ID: <469F6422.5060303@arsac.org> (raw)
[-- 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
next reply other threads:[~2007-07-19 13:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-19 13:16 olivier arsac [this message]
2007-07-19 20:49 ` [LARTC] How to check an inactive slave in a bond? Jay Vosburgh
2007-08-13 9:49 ` olivier arsac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=469F6422.5060303@arsac.org \
--to=oliv@arsac.org \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.