All of lore.kernel.org
 help / color / mirror / Atom feed
* Can DM-Multipath work on non-SCSI block device
@ 2013-03-14  7:58 Ahmed Al-Mehdi
  2013-03-14  9:29 ` Hannes Reinecke
  0 siblings, 1 reply; 4+ messages in thread
From: Ahmed Al-Mehdi @ 2013-03-14  7:58 UTC (permalink / raw)
  To: dm-devel


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

Hello,

I read the documentation on the dm-multipath home page: htttp://
christophe.varoqui.free.fr/refbook.html , that describes how the userspace
multipath tool detects and maps (scsi) devices.  However, would like to
confirm, does the dm-multipath utilty only work with SCSI devices.  Is
there any option to make it (or fake it) to work with non-SCSI  block
device.

Thank you,
Ahmed.

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

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



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

* Re: Can DM-Multipath work on non-SCSI block device
  2013-03-14  7:58 Can DM-Multipath work on non-SCSI block device Ahmed Al-Mehdi
@ 2013-03-14  9:29 ` Hannes Reinecke
  2013-03-14 10:41   ` Bryn M. Reeves
  0 siblings, 1 reply; 4+ messages in thread
From: Hannes Reinecke @ 2013-03-14  9:29 UTC (permalink / raw)
  To: dm-devel

On 03/14/2013 08:58 AM, Ahmed Al-Mehdi wrote:
> Hello,
>
> I read the documentation on the dm-multipath home page:
> htttp://christophe.varoqui.free.fr/refbook.html
> <http://christophe.varoqui.free.fr/refbook.html> , that describes
> how the userspace multipath tool detects and maps (scsi) devices.
> However, would like to confirm, does the dm-multipath utilty only
> work with SCSI devices.  Is there any option to make it (or fake it)
> to work with non-SCSI  block device.
>
If you can figure out a way on how to get a unique _disk_ id without 
SCSI, sure.

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)

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

* Re: Can DM-Multipath work on non-SCSI block device
  2013-03-14  9:29 ` Hannes Reinecke
@ 2013-03-14 10:41   ` Bryn M. Reeves
  2013-03-14 10:44     ` Hannes Reinecke
  0 siblings, 1 reply; 4+ messages in thread
From: Bryn M. Reeves @ 2013-03-14 10:41 UTC (permalink / raw)
  To: device-mapper development

On 03/14/2013 09:29 AM, Hannes Reinecke wrote:
> On 03/14/2013 08:58 AM, Ahmed Al-Mehdi wrote:
>> Hello,
>>
>> I read the documentation on the dm-multipath home page:
>> htttp://christophe.varoqui.free.fr/refbook.html
>> <http://christophe.varoqui.free.fr/refbook.html> , that describes
>> how the userspace multipath tool detects and maps (scsi) devices.
>> However, would like to confirm, does the dm-multipath utilty only
>> work with SCSI devices.  Is there any option to make it (or fake it)
>> to work with non-SCSI  block device.
>>
> If you can figure out a way on how to get a unique _disk_ id without
> SCSI, sure.

E.g. cciss devices are supported using the cciss_id program - that's a 
good example of a very "non-scsi" device type working with multipath.

As well as the WWID problem you'll need to come up with some scheme for 
faking unique HCIL values for the devices since multipath userspace 
cares about that. The cciss approach is to force lun and channel to '0' 
for all devices and to use the CCISS controller (cN) and disk (dN) 
values for the host and id (aka target) values.

See the functions in discovery.c with a cciss_ prefix for more examples.

Regards,
Bryn.

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

* Re: Can DM-Multipath work on non-SCSI block device
  2013-03-14 10:41   ` Bryn M. Reeves
@ 2013-03-14 10:44     ` Hannes Reinecke
  0 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2013-03-14 10:44 UTC (permalink / raw)
  To: Bryn M. Reeves; +Cc: device-mapper development

On 03/14/2013 11:41 AM, Bryn M. Reeves wrote:
> On 03/14/2013 09:29 AM, Hannes Reinecke wrote:
>> On 03/14/2013 08:58 AM, Ahmed Al-Mehdi wrote:
>>> Hello,
>>>
>>> I read the documentation on the dm-multipath home page:
>>> htttp://christophe.varoqui.free.fr/refbook.html
>>> <http://christophe.varoqui.free.fr/refbook.html> , that describes
>>> how the userspace multipath tool detects and maps (scsi) devices.
>>> However, would like to confirm, does the dm-multipath utilty only
>>> work with SCSI devices.  Is there any option to make it (or fake it)
>>> to work with non-SCSI  block device.
>>>
>> If you can figure out a way on how to get a unique _disk_ id without
>> SCSI, sure.
>
> E.g. cciss devices are supported using the cciss_id program - that's
> a good example of a very "non-scsi" device type working with multipath.
>
> As well as the WWID problem you'll need to come up with some scheme
> for faking unique HCIL values for the devices since multipath
> userspace cares about that. The cciss approach is to force lun and
> channel to '0' for all devices and to use the CCISS controller (cN)
> and disk (dN) values for the host and id (aka target) values.
>
> See the functions in discovery.c with a cciss_ prefix for more
> examples.
>
Or the dasd variant of those.

However, the HCIL variable is mostly cosmetic.
The disk id is the true issue; without it you cannot do multipathing.

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)

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

end of thread, other threads:[~2013-03-14 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14  7:58 Can DM-Multipath work on non-SCSI block device Ahmed Al-Mehdi
2013-03-14  9:29 ` Hannes Reinecke
2013-03-14 10:41   ` Bryn M. Reeves
2013-03-14 10:44     ` Hannes Reinecke

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.