* mechanism for multipath to pass information to hardware handler @ 2009-06-24 17:14 Eddie Williams 2009-06-26 19:10 ` [dm-devel] " James Bottomley 0 siblings, 1 reply; 7+ messages in thread From: Eddie Williams @ 2009-06-24 17:14 UTC (permalink / raw) To: SCSI development list, device-mapper development 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dm-devel] mechanism for multipath to pass information to hardware handler 2009-06-24 17:14 mechanism for multipath to pass information to hardware handler Eddie Williams @ 2009-06-26 19:10 ` James Bottomley 2009-06-26 19:45 ` Chandra Seetharaman 0 siblings, 1 reply; 7+ messages in thread From: James Bottomley @ 2009-06-26 19:10 UTC (permalink / raw) To: device-mapper development Cc: SCSI development list, Rafael J. Wysocki, Chandra Seetharaman On Wed, 2009-06-24 at 13:14 -0400, Eddie Williams wrote: > 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. 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 <sekharan@us.ibm.com> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dm-devel] mechanism for multipath to pass information to hardware handler 2009-06-26 19:10 ` [dm-devel] " James Bottomley @ 2009-06-26 19:45 ` Chandra Seetharaman 2009-06-26 19:55 ` James Bottomley 2009-06-26 20:01 ` [dm-devel] " Eddie Williams 0 siblings, 2 replies; 7+ messages in thread From: Chandra Seetharaman @ 2009-06-26 19:45 UTC (permalink / raw) To: James Bottomley Cc: device-mapper development, SCSI development list, Rafael J. Wysocki, Mike Christie, Edward Goggin, Benoit, Arthur, asson_ronald, berthiaume_wayne 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 On Fri, 2009-06-26 at 14:10 -0500, James Bottomley wrote: > On Wed, 2009-06-24 at 13:14 -0400, Eddie Williams wrote: > > 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. > > 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 <sekharan@us.ibm.com> > 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 > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dm-devel] mechanism for multipath to pass information to hardware handler 2009-06-26 19:45 ` Chandra Seetharaman @ 2009-06-26 19:55 ` James Bottomley 2009-06-27 0:03 ` Chandra Seetharaman 2009-06-26 20:01 ` [dm-devel] " Eddie Williams 1 sibling, 1 reply; 7+ messages in thread From: James Bottomley @ 2009-06-26 19:55 UTC (permalink / raw) To: sekharan Cc: device-mapper development, SCSI development list, Rafael J. Wysocki, Mike Christie, Edward Goggin, Benoit, Arthur, asson_ronald, berthiaume_wayne On Fri, 2009-06-26 at 12:45 -0700, Chandra Seetharaman wrote: > 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. 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dm-devel] mechanism for multipath to pass information to hardware handler 2009-06-26 19:55 ` James Bottomley @ 2009-06-27 0:03 ` Chandra Seetharaman 2009-06-27 17:48 ` Mike Christie 0 siblings, 1 reply; 7+ messages in thread From: Chandra Seetharaman @ 2009-06-27 0:03 UTC (permalink / raw) To: device-mapper development Cc: SCSI development list, asson_ronald, Rafael J. Wysocki, Mike Christie, Benoit, Arthur On Fri, 2009-06-26 at 14:55 -0500, James Bottomley wrote: > On Fri, 2009-06-26 at 12:45 -0700, Chandra Seetharaman wrote: > > 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. > > 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 ? > 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. > > James > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: mechanism for multipath to pass information to hardware handler 2009-06-27 0:03 ` Chandra Seetharaman @ 2009-06-27 17:48 ` Mike Christie 0 siblings, 0 replies; 7+ messages in thread From: Mike Christie @ 2009-06-27 17:48 UTC (permalink / raw) To: sekharan Cc: SCSI development list, asson_ronald, Rafael J. Wysocki, device-mapper development, Mike Christie, Benoit, Arthur On 06/26/2009 07:03 PM, Chandra Seetharaman wrote: > On Fri, 2009-06-26 at 14:55 -0500, James Bottomley wrote: >> On Fri, 2009-06-26 at 12:45 -0700, Chandra Seetharaman wrote: >>> 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. >> 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 ? > 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. >> 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. >> James >> >> >> -- >> dm-devel mailing list >> dm-devel@redhat.com >> 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [dm-devel] mechanism for multipath to pass information to hardware handler 2009-06-26 19:45 ` Chandra Seetharaman 2009-06-26 19:55 ` James Bottomley @ 2009-06-26 20:01 ` Eddie Williams 1 sibling, 0 replies; 7+ messages in thread From: Eddie Williams @ 2009-06-26 20:01 UTC (permalink / raw) To: sekharan, device-mapper development Cc: James Bottomley, SCSI development list, asson_ronald, Rafael J. Wysocki, Mike Christie, Benoit, Arthur 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 On Fri, 2009-06-26 at 12:45 -0700, Chandra Seetharaman wrote: > 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 > > On Fri, 2009-06-26 at 14:10 -0500, James Bottomley wrote: > > On Wed, 2009-06-24 at 13:14 -0400, Eddie Williams wrote: > > > 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. > > > > 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 <sekharan@us.ibm.com> > > 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 > > > > > > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-06-27 17:48 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-06-24 17:14 mechanism for multipath to pass information to hardware handler Eddie Williams 2009-06-26 19:10 ` [dm-devel] " James Bottomley 2009-06-26 19:45 ` Chandra Seetharaman 2009-06-26 19:55 ` James Bottomley 2009-06-27 0:03 ` Chandra Seetharaman 2009-06-27 17:48 ` Mike Christie 2009-06-26 20:01 ` [dm-devel] " Eddie Williams
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox