From: "Ethan John" Subject: Re: Designing a new prio_callout Date: Thu, 9 Aug 2007 10:55:50 -0700 Message-ID: References: <46A735E1.4070206@suse.de> <46AD85A5.1060609@suse.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1155424526==" Return-path: In-Reply-To: <46AD85A5.1060609@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids --===============1155424526== Content-Type: multipart/alternative; boundary="----=_Part_9282_16000655.1186682150449" ------=_Part_9282_16000655.1186682150449 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is it possible to manually set the priority of a path after a connection ha= s been established? Since we're doing failover-only (only 1 active path at a time), it would be nice to tell users that they can manually reset priority after a failure. For example, in a configuration with two paths, where one is active and the other is passive for two differeent volumes, a failure of one path will result in all traffic going through the one remaining path. After the secon= d path comes back up, all traffic will still be written to the first path (paths are not rebalanced after a failure). At this point, we're looking for a decent solution for customers that doesn't involve ALUA, since we won't have resources to implement that for this first version of our target. Ideally, we'd like to be able to set the priority for paths automatically through one of the mpath_prio_* scripts. Even allowing a user to set these priorities manually would be better than advising them to use mpath_prio_random as the "easy configuration" solution= . We're not looking to develop our own method of load balancing or failover. We want to work within the MPIO world, but it's a little difficult given that we don't support active/active configurations. Thanks so much for you help so far! On 7/29/07, Hannes Reinecke wrote: > > Ethan John wrote: > > Thanks for the heads-up about ALUA. We're looking into it. > > > > What is the purpose of the custom mpio_prio_* applications that ship > > with open-iscsi if not to handle multipathing? > > > It is. mpath_prio_* are the priority callouts for multipathing. > They determine the layout of the multipath map. > Theory is that mpath_prio_* will return the priority for a > given path in relation to the entire multipath layout. > > If used with 'group_by_prio' all paths with the same > priority will be grouped into one multipath group, and > the group with the highest priority will become active. > > When all paths in a group fail, the group with the next > highest priority will become active. Additionally some > failover command (as determined by the hardware handler) > may be send to the target. > > Cheers, > > Hannes > -- > Dr. Hannes Reinecke zSeries & Storage > hare@suse.de +49 911 74053 688 > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg > GF: Markus Rex, HRB 16746 (AG N=FCrnberg) > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel > --=20 Ethan John http://www.flickr.com/photos/thaen/ (206) 841.4157 ------=_Part_9282_16000655.1186682150449 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is it possible to manually set the priority of a path after a connection ha= s been established?

Since we're doing failover-only (only 1 acti= ve path at a time), it would be nice to tell users that they can manually r= eset priority after a failure. For example, in a configuration with two pat= hs, where one is active and the other is passive for two differeent volumes= , a failure of one path will result in all traffic going through the one re= maining path. After the second path comes back up, all traffic will still b= e written to the first path (paths are not rebalanced after a failure).

At this point, we're looking for a decent solution for customer= s that doesn't involve ALUA, since we won't have resources to imple= ment that for this first version of our target. Ideally, we'd like to b= e able to set the priority for paths automatically through one of the mpath= _prio_* scripts. Even allowing a user to set these priorities manually woul= d be better than advising them to use mpath_prio_random as the "easy c= onfiguration" solution.

We're not looking to develop our own method of load balancing o= r failover. We want to work within the MPIO world, but it's a little di= fficult given that we don't support active/active configurations.

Thanks so much for you help so far!

On 7/29/07, Hannes Reinecke <hare@suse.de> wrote:
Ethan John wrote:
> Thanks for the heads-up about ALUA. We're loo= king into it.
>
> What is the purpose of the custom mpio_prio_*= applications that ship
> with open-iscsi if not to handle multipathi= ng?
>
It is. mpath_prio_* are the priority callouts for multipathing.=
They determine the layout of the multipath map.
Theory is that mpath= _prio_* will return the priority for a
given path in relation to the ent= ire multipath layout.

If used with 'group_by_prio' all paths with the same
pri= ority will be grouped into one multipath group, and
the group with the h= ighest priority will become active.

When all paths in a group fail, = the group with the next
highest priority will become active. Additionally some
failover comm= and (as determined by the hardware handler)
may be send to the target.
Cheers,

Hannes
--
Dr. Hannes Reinecke   &= nbsp;           &nbs= p;   zSeries & Storage
hare@suse.de    = ;            &n= bsp;         +49 911 74053 688=
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg
GF: Markus= Rex, HRB 16746 (AG N=FCrnberg)

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.= com/mailman/listinfo/dm-devel



--
Ethan John
ht= tp://www.flickr.com/photos/thaen/
(206) 841.4157 ------=_Part_9282_16000655.1186682150449-- --===============1155424526== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1155424526==--