* switching the active interface for bonding
@ 2009-10-12 16:27 Sumeet Lahorani
[not found] ` <4AD35909.9020006-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Sumeet Lahorani @ 2009-10-12 16:27 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Hi,
We are using OFED 1.4.2 and trying to simulate the effect of a bonding
failover initiated by a switch failure using echo commands in parallel
to the /sys/class/net/bond0/bonding/active_slave file on a few of the
nodes attached to the switch. Is this an acceptable technique? We are
trying to avoid actually resetting the switch to avoid affecting other
nodes connected to the same switch, since the other nodes are being used
for other purposes.
Would there be any difference in terms of the codepath which the bonding
driver/ofed stack follows when we do this as opposed to resetting the
switch?
- Sumeet
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: switching the active interface for bonding
[not found] ` <4AD35909.9020006-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
@ 2009-10-14 11:15 ` Or Gerlitz
2009-10-14 11:20 ` Or Gerlitz
1 sibling, 0 replies; 3+ messages in thread
From: Or Gerlitz @ 2009-10-14 11:15 UTC (permalink / raw)
To: Sumeet Lahorani
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Richard Frank,
Sumanta Chatterjee
Sumeet Lahorani wrote:
> We are [...] trying to simulate the effect of a bonding failover
> initiated by a switch failure using echo commands in parallel to the
> /sys/class/net/bond0/bonding/active_slave file on a few of the nodes
> attached to the switch. Is this an acceptable technique?
yes
> We are trying to avoid actually resetting the switch to avoid
> affecting other nodes connected to the same switch, since the other
> nodes are being used for other purposes
There's no need to reboot a switch in order to cause an IB link down
event on an HCA port across the wire connected to one of the switch
ports. You can administratively disable the switch port you want and
later administratively enable it. This is simple as
$ ibportstate disable/query/enable $LID $PORT
using the switch one and the switch port the hca port is connected to.
> Would there be any difference in terms of the code path which the
> bonding driver/ofed stack follows when we do this as opposed to
> resetting the switch?
yes and yes.
Bonding wise, when setting the active slave through sysfs, the bonding
driver doesn't go through the link monitoring code, wheres if you do
cause a link down it does.
As for the IB stack (there's nothing like "ofed stack", ofed is just a
bunch of rpms installed over your distro), when a port goes down, things
happen... if the software you're using counts/uses IB port down events,
you may exercise a different flow, e.g IPoIB is using these events, and
you will not go through the port down flow of it. Next, if some code
you're working with uses the IB RC transport, then depending on the
timeout programmed to the RC QP, a transport timeout may happen which in
turn causes the HW to move the QP into the error state, and so on.
Or
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: switching the active interface for bonding
[not found] ` <4AD35909.9020006-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2009-10-14 11:15 ` Or Gerlitz
@ 2009-10-14 11:20 ` Or Gerlitz
1 sibling, 0 replies; 3+ messages in thread
From: Or Gerlitz @ 2009-10-14 11:20 UTC (permalink / raw)
To: Sumeet Lahorani; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Sumeet Lahorani wrote:
> We are using OFED 1.4.2
Please note that the bonding driver provided by the latest distros
supports IPoIB. So if your distro happen to be RHEL 5.4 (or its OEL 5.4
derivative), or SLES11 you can and should use the distro provided
bonding. Moving forward, OTOH customers would use only distro code and
OTOH bonding will be moved out from ofed, so best if you better start
working now as things will be outside anyway.
Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-14 11:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 16:27 switching the active interface for bonding Sumeet Lahorani
[not found] ` <4AD35909.9020006-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2009-10-14 11:15 ` Or Gerlitz
2009-10-14 11:20 ` Or Gerlitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox