linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: "Moger, Babu" <Babu.Moger@netapp.com>
Cc: device-mapper development <dm-devel@redhat.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	Mike Snitzer <snitzer@redhat.com>
Subject: Re: [dm-devel] [PATCH 0/2] 'default' hardware handler for multipath
Date: Wed, 18 Apr 2012 16:07:49 +0200	[thread overview]
Message-ID: <4F8ECAB5.1020806@suse.de> (raw)
In-Reply-To: <77471C95FAFD844C8CA02DD4F4C5FE2B03A484@SACEXCMBX02-PRD.hq.netapp.com>

On 04/03/2012 11:12 PM, Moger, Babu wrote:
> Thanks Hannes. We appreciate your work on this.
> 
>> -----Original Message-----
>> From: dm-devel-bounces@redhat.com [mailto:dm-devel-
>> bounces@redhat.com] On Behalf Of Hannes Reinecke
>> Sent: Monday, April 02, 2012 11:44 AM
>> To: linux-scsi@vger.kernel.org
>> Cc: dm-devel@redhat.com; Mike Snitzer
>> Subject: [dm-devel] [PATCH 0/2] 'default' hardware handler for multipath
>>
>> This patchset introduces a 'default' hardware handler for dm-multipath.
>> Modern storage arrays typically support two failover methods, the original
>> proprietary and the modern ALUA-based one.
>> The device_handler implementation will currently select the ALUA handler,
>> and falling back to the proprietary one if ALUA isn't supported.
>> However, in the built-in hardware table for multipath one can specify only
>> one hardware handler, causing the original hardware handler to be
>> overwritten.
>> By specifying a 'default' hardware handler multipath will not try to attach a
>> specific hardware handler, but rather using the currently attached on.
> 
> I think we still have some issues here. Right now we load the driver
> either by adding it in initrd or by using request_module call from device mapper.
> If the user passes, hardware_handler   "1 default"  from multipath then request_module will fail. 
> How are we going to load the driver if these handlers are not loaded. 
> 
The idea of the 'default' hardware handler is to avoid multipath
overriding the kernel matchine algorithm. To make this work we
obviously have to load the modules prior to start multipathing.

Given that we (ie RH and us) are already loading the device-handler
modules from the initrd independent from multipathing we should be fine.

But thinking a bit more about it, it might be better to handle this
via features.
Implementing a feature like 'default_hw_handler' would not override
the default hardware handler from the hardware table.
So the requested hardware handler would still be loaded, but the
actual initialisation would be controlled via the feature.

Yep, that sound better.
I'll be preparing a patch.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-04-18 14:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 16:43 [PATCH 0/2] 'default' hardware handler for multipath Hannes Reinecke
2012-04-02 16:43 ` [PATCH 1/2] scsi_dh: Allow NULL hardware handler name in scsi_dh_attach() Hannes Reinecke
2012-04-02 17:06   ` Mike Snitzer
2012-04-03  1:46   ` [dm-devel] " Jun'ichi Nomura
2012-04-02 16:43 ` [PATCH 2/2] dm-mpath: Allow 'default' hardware handler Hannes Reinecke
2012-04-02 17:04   ` Mike Snitzer
2012-04-02 17:07     ` Hannes Reinecke
2012-04-03  1:45       ` [dm-devel] " Jun'ichi Nomura
2012-04-03 21:12 ` [dm-devel] [PATCH 0/2] 'default' hardware handler for multipath Moger, Babu
2012-04-18 14:07   ` Hannes Reinecke [this message]
2012-04-18 16:25     ` Moger, Babu

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=4F8ECAB5.1020806@suse.de \
    --to=hare@suse.de \
    --cc=Babu.Moger@netapp.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=snitzer@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).