Skip to contentSkip to conversation

mechanism for multipath to pass information to hardware handler

DISCUSSION Eddie Williams 4 participants 7 messages Jun 24, 2009 – Jun 27, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I notice in scsi_dh_emc.c that there is a comment:

TODO: need some interface so we can set trespass values

I don't see where any such interface has been developed or even any discussion on the different mailing lists to create such an interface. Did I miss something?

As it stands now there is no way that I can see to have the emc hardware handler support the "honor trespass" feature short of recompiling the module forcing the flag to be set. This leaves a feature that worked in earlier versions of multipath not working now.

Eddie

maintainer
#1 lore raw
Quoted 4 lines · Eddie Williams

I notice in scsi_dh_emc.c that there is a comment:

TODO: need some interface so we can set trespass values

Quoted 8 lines

I don't see where any such interface has been developed or even any discussion on the different mailing lists to create such an interface. Did I miss something?

As it stands now there is no way that I can see to have the emc hardware handler support the "honor trespass" feature short of recompiling the module forcing the flag to be set. This leaves a feature that worked in earlier versions of multipath not working now.

OK so as I understand it that means that the line

hardware handler "1 emc 0 1"

now fails to function correctly because dm-emc no longer exists. That makes this a functionality regression from 2.6.26 because of this commit:

commit cb520223d7f22c5386aff27a5856a66e2c32aaac

Author: Chandra Seetharaman <[email protected]>
Date:   Thu May 1 14:50:34 2008 -0700

[SCSI] scsi_dh: Remove hardware handlers from dm

This patch removes the 3 hardware handlers that currently exist under dm as the functionality is moved to SCSI layer in the earlier patches.

Because we haven't actually moved all the functionality.

James

#2 lore raw

Yes, Mike Christie and I were aware of this and it was one of the issue we were trying to resolve before we pushed scsi_dh interface upstream. (It is little complicated as we need the parameters to be set per vendor-product tuple).

The original code I ported to scsi_dh interface was from Ed Goggin(who was working for EMC then). IIRC, he was also aware of this issue.

When we pushed scsi_dh interface, we did get few of the EMC folks (on Cc) to review/test the code and they did, and this issue was not seen as a problem.

We wanted to get back to that issue sometime later, got busy with other things, and it disappeared from my list of things-to-do as the regression was not seen as an issue (till now :)... I will get back to it.

chandra

Quoted 39 lines · James Bottomley
Quoted 4 lines · Eddie Williams

I notice in scsi_dh_emc.c that there is a comment:

TODO: need some interface so we can set trespass values

Quoted 8 lines

I don't see where any such interface has been developed or even any discussion on the different mailing lists to create such an interface. Did I miss something?

As it stands now there is no way that I can see to have the emc hardware handler support the "honor trespass" feature short of recompiling the module forcing the flag to be set. This leaves a feature that worked in earlier versions of multipath not working now.

OK so as I understand it that means that the line

hardware handler "1 emc 0 1"

now fails to function correctly because dm-emc no longer exists. That makes this a functionality regression from 2.6.26 because of this commit:

commit cb520223d7f22c5386aff27a5856a66e2c32aaac

Author: Chandra Seetharaman <[email protected]>
Date:   Thu May 1 14:50:34 2008 -0700

[SCSI] scsi_dh: Remove hardware handlers from dm

This patch removes the 3 hardware handlers that currently exist under dm as the functionality is moved to SCSI layer in the earlier patches.

Because we haven't actually moved all the functionality.

James

maintainer
#3 lore raw
Quoted 8 lines · Chandra Seetharaman

Yes, Mike Christie and I were aware of this and it was one of the issue we were trying to resolve before we pushed scsi_dh interface upstream. (It is little complicated as we need the parameters to be set per vendor-product tuple).

The original code I ported to scsi_dh interface was from Ed Goggin(who was working for EMC then). IIRC, he was also aware of this issue.

Quoted 8 lines

When we pushed scsi_dh interface, we did get few of the EMC folks (on Cc) to review/test the code and they did, and this issue was not seen as a problem.

We wanted to get back to that issue sometime later, got busy with other things, and it disappeared from my list of things-to-do as the regression was not seen as an issue (till now :)... I will get back to it.

One way around this might simply be to make the device_handlers create a sysfs interface for additional parameters. Then the multipath command can feed them (or in a pinch, users relying on the features can pass them in manually). Right at the moment having no possible work around does appear to be an issue.

James

#4 lore raw
Quoted 13 lines · James Bottomley
Quoted 12 lines · Chandra Seetharaman

Yes, Mike Christie and I were aware of this and it was one of the issue we were trying to resolve before we pushed scsi_dh interface upstream. (It is little complicated as we need the parameters to be set per vendor-product tuple).

The original code I ported to scsi_dh interface was from Ed Goggin(who was working for EMC then). IIRC, he was also aware of this issue.

When we pushed scsi_dh interface, we did get few of the EMC folks (on Cc) to review/test the code and they did, and this issue was not seen as a problem.

Quoted 7 lines
Quoted 4 lines

We wanted to get back to that issue sometime later, got busy with other things, and it disappeared from my list of things-to-do as the regression was not seen as an issue (till now :)... I will get back to it.

One way around this might simply be to make the device_handlers create a sysfs interface for additional parameters. Then the multipath command

Yes, having a per device interface is one of the options we considered. Once we have that defined we can either use sysfs or a scsi_dh_8() API to achieve the same.

But we wanted to have it per vendor-product instead of per device, I don't recall the problems associated with it. Mike(C), do you recall ?

Quoted 3 lines

can feed them (or in a pinch, users relying on the features can pass them in manually). Right at the moment having no possible work around does appear to be an issue.

I will try to roll up a patch soon.

Quoted 8 lines

James

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

#5 lore raw
Quoted 21 lines · Chandra Seetharaman
Quoted 13 lines · James Bottomley
Quoted 12 lines · Chandra Seetharaman

Yes, Mike Christie and I were aware of this and it was one of the issue we were trying to resolve before we pushed scsi_dh interface upstream. (It is little complicated as we need the parameters to be set per vendor-product tuple).

The original code I ported to scsi_dh interface was from Ed Goggin(who was working for EMC then). IIRC, he was also aware of this issue.

When we pushed scsi_dh interface, we did get few of the EMC folks (on Cc) to review/test the code and they did, and this issue was not seen as a problem.

Quoted 6 lines
Quoted 4 lines

We wanted to get back to that issue sometime later, got busy with other things, and it disappeared from my list of things-to-do as the regression was not seen as an issue (till now :)... I will get back to it.

One way around this might simply be to make the device_handlers create a sysfs interface for additional parameters. Then the multipath command

Quoted 7 lines

Yes, having a per device interface is one of the options we considered. Once we have that defined we can either use sysfs or a scsi_dh_8() API to achieve the same.

But we wanted to have it per vendor-product instead of per device, I don't recall the problems associated with it. Mike(C), do you recall ?

I do not think you want the interface to be per vendor-product in the kernel. You might want some devices with some feature on and some with it off. In userspace we can decide if it is should be per vendor-product or per device, and then have multipath set things up. The kernel interface should probably be more generic.

Quoted 17 lines
Quoted 3 lines

can feed them (or in a pinch, users relying on the features can pass them in manually). Right at the moment having no possible work around does appear to be an issue.

I will try to roll up a patch soon.

Quoted 7 lines

James

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Chandra Seetharaman

The problem is easy to duplicate using sg_persist to register/reserve paths to a Clariion array and then fail the active path. The "enable" path will fail to become active when the HONOR RESERVATION flag is not set. Given of course that you have a Clariion array handy...

One question I have asked EMC is in what situations would you NOT want to set this bit?

I can test out any changes you make in my test rig and I can probably get the folks in the EMC lab I work with to test it as well.

Eddie

Quoted 64 lines · Chandra Seetharaman

Yes, Mike Christie and I were aware of this and it was one of the issue we were trying to resolve before we pushed scsi_dh interface upstream. (It is little complicated as we need the parameters to be set per vendor-product tuple).

The original code I ported to scsi_dh interface was from Ed Goggin(who was working for EMC then). IIRC, he was also aware of this issue.

When we pushed scsi_dh interface, we did get few of the EMC folks (on Cc) to review/test the code and they did, and this issue was not seen as a problem.

We wanted to get back to that issue sometime later, got busy with other things, and it disappeared from my list of things-to-do as the regression was not seen as an issue (till now :)... I will get back to it.

chandra

Quoted 29 lines · James Bottomley
Quoted 4 lines · Eddie Williams

I notice in scsi_dh_emc.c that there is a comment:

TODO: need some interface so we can set trespass values

Quoted 8 lines

I don't see where any such interface has been developed or even any discussion on the different mailing lists to create such an interface. Did I miss something?

As it stands now there is no way that I can see to have the emc hardware handler support the "honor trespass" feature short of recompiling the module forcing the flag to be set. This leaves a feature that worked in earlier versions of multipath not working now.

OK so as I understand it that means that the line

hardware handler "1 emc 0 1"

now fails to function correctly because dm-emc no longer exists. That makes this a functionality regression from 2.6.26 because of this commit:

commit cb520223d7f22c5386aff27a5856a66e2c32aaac

Author: Chandra Seetharaman <[email protected]>
Date:   Thu May 1 14:50:34 2008 -0700

[SCSI] scsi_dh: Remove hardware handlers from dm

Quoted 10 lines

This patch removes the 3 hardware handlers that currently exist under dm as the functionality is moved to SCSI layer in the earlier patches.

Because we haven't actually moved all the functionality.

James

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel