Skip to contentSkip to conversation

multipath and READ_CAPACITY

DISCUSSION Hannes Reinecke 2 participants 2 messages Jul 24, 2014 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi Christophe,

I've had a customer issue where someone complained that multipath would reject paths if they are in ALUA 'standby'. As it turns out, SPC-3 does _not_ require the READ_CAPACITY command to be implemented if a target port is in standby. Consecutively, linux would register this path with a capacity of '0', and multipath would reject the path in ev_add_path().

Which makes we wonder, do we actually _need_ the check for a matched capacity?
With VPD page 0x83 pretty much standard as of now (and I'm reasonbly sure we'll reject any device _not_ providing VPD page 0x83 anyway) we basically have to rely on that information. IE if the WWID is identical we have assume the devices are identical. So it would make sense to just remove the check altogether.

Thoughts?

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +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)
#1 lore raw

This sanity check is useful because users can set arbitrary getuid scripts, and thus corrupt data if their getuid callout is bogus.
Now, this getuid callout facility is a lot less publicized ... I'd apply the patch, no problem on my side.

Quoted 28 lines · Hannes Reinecke

Hi Christophe,

I've had a customer issue where someone complained that multipath would reject paths if they are in ALUA 'standby'.
As it turns out, SPC-3 does _not_ require the READ_CAPACITY command to be implemented if a target port is in standby.
Consecutively, linux would register this path with a capacity of '0', and multipath would reject the path in ev_add_path().

Which makes we wonder, do we actually _need_ the check for a matched capacity?
With VPD page 0x83 pretty much standard as of now (and I'm reasonbly sure we'll reject any device _not_ providing VPD page 0x83 anyway) we basically have to rely on that information.
IE if the WWID is identical we have assume the devices are identical. So it would make sense to just remove the check altogether.

Thoughts?

Cheers,

Hannes
--
Dr. Hannes Reinecke zSeries & Storage
[email protected] +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)