* storageworks controlers & linux-scsi
@ 2003-08-25 12:55 christophe.varoqui
2003-08-27 15:56 ` James Bottomley
0 siblings, 1 reply; 5+ messages in thread
From: christophe.varoqui @ 2003-08-25 12:55 UTC (permalink / raw)
To: linux-scsi
Hello,
In 2.4.21, a LUN hosted by a storageworks FC controler in multibus failover was
shown through 4 devices per HBA. 2 usable devices, 2 hang process that submit IO
in D-state. Such unusable devices, ghost paths, could be activated by sg_start.
In current 2.4.22 pre-release and 2.6, only the valid path get presented though
associated sd are allocated and partialy setup. There is no longer a clear way
to start the ghosts as sg_utils will refuse to submit commands. This behaviour
is dicted by the new BLIST_NOSTARTONADD bflag.
I would like to know what was the intention of this patch (from steeleye I
guess) ? What problems does it solve ?
Wouldn't it be better to consider ghosts as removable media, as one would get
automatic activation on IO submition ?
regards,
cva
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: storageworks controlers & linux-scsi
2003-08-25 12:55 storageworks controlers & linux-scsi christophe.varoqui
@ 2003-08-27 15:56 ` James Bottomley
2003-08-27 23:37 ` christophe varoqui
0 siblings, 1 reply; 5+ messages in thread
From: James Bottomley @ 2003-08-27 15:56 UTC (permalink / raw)
To: christophe.varoqui; +Cc: SCSI Mailing List
On Mon, 2003-08-25 at 07:55, christophe.varoqui@free.fr wrote:
> In 2.4.21, a LUN hosted by a storageworks FC controler in multibus failover was
> shown through 4 devices per HBA. 2 usable devices, 2 hang process that submit IO
> in D-state. Such unusable devices, ghost paths, could be activated by sg_start.
>
> In current 2.4.22 pre-release and 2.6, only the valid path get presented though
> associated sd are allocated and partialy setup. There is no longer a clear way
> to start the ghosts as sg_utils will refuse to submit commands. This behaviour
> is dicted by the new BLIST_NOSTARTONADD bflag.
What's the inquiry strings of the array? That's what the
BLIST_NOSTARTONADD flag uses. I'm curious to know why it even
recognised the need not to start an array not in the black list.
> I would like to know what was the intention of this patch (from steeleye I
> guess) ? What problems does it solve ?
> Wouldn't it be better to consider ghosts as removable media, as one would get
> automatic activation on IO submition ?
The intention of the patch is not to send spurious start commands to
arrays as we boot up. The HP MSA/EVA storage gets very annoyed by this
because a start triggers a path switch..you can imagine what this does
to a SAN when lots of machines boot, since we try to start every visible
path.
The MSA/EVA seem to handle this fine and the switch over start command
can be sent to the passive path on the event of active failure.
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: storageworks controlers & linux-scsi
2003-08-27 15:56 ` James Bottomley
@ 2003-08-27 23:37 ` christophe varoqui
2003-08-28 20:06 ` Patrick Mansfield
0 siblings, 1 reply; 5+ messages in thread
From: christophe varoqui @ 2003-08-27 23:37 UTC (permalink / raw)
To: James Bottomley; +Cc: SCSI Mailing List
On 27 Aug 2003 10:56:30 -0500
James Bottomley <James.Bottomley@steeleye.com> wrote:
> On Mon, 2003-08-25 at 07:55, christophe.varoqui@free.fr wrote:
> > In 2.4.21, a LUN hosted by a storageworks FC controler in multibus failover was
> > shown through 4 devices per HBA. 2 usable devices, 2 hang process that submit IO
> > in D-state. Such unusable devices, ghost paths, could be activated by sg_start.
> >
> > In current 2.4.22 pre-release and 2.6, only the valid path get presented though
> > associated sd are allocated and partialy setup. There is no longer a clear way
> > to start the ghosts as sg_utils will refuse to submit commands. This behaviour
> > is dicted by the new BLIST_NOSTARTONADD bflag.
>
> What's the inquiry strings of the array? That's what the
> BLIST_NOSTARTONADD flag uses. I'm curious to know why it even
> recognised the need not to start an array not in the black list.
>
I'm away from this array for 2 weeks.
I can only tell for sure that the vendor string is COMPAQ and model HSV110.
the BLIST_NOSTARTONADD bflag is set for this tuple in 2.4.22.
I did not say the linux kernel tried to start the array, only that before the BLIST_NOSTARTONADD patch it presented all 4 paths and now it only presents the 2 active path, which does not permit admins to manualy start inactive path (sg_start /dev/sg?? 1).
The situation before this patch was not perfect either, as ghost paths blocked I/O submitters in D-state rather than returning I/O.
I successfully tested setting the BLIST_ISDISK bflag instead of BLIST_NOSTARTONADD and all 4 paths are rightfully presented and inactive paths rightfully return I/O errors on media acces cmds. I did not test BLIST_NOSTARTONADD | BLIST_ISDISK yet, but it seems the way to go.
> > I would like to know what was the intention of this patch (from steeleye I
> > guess) ? What problems does it solve ?
> > Wouldn't it be better to consider ghosts as removable media, as one would get
> > automatic activation on IO submition ?
>
> The intention of the patch is not to send spurious start commands to
> arrays as we boot up. The HP MSA/EVA storage gets very annoyed by this
> because a start triggers a path switch..you can imagine what this does
> to a SAN when lots of machines boot, since we try to start every visible
> path.
>
Only clusters are concerned, as LUN are masked in most SANs.
Argument is valid though.
> The MSA/EVA seem to handle this fine and the switch over start command
> can be sent to the passive path on the event of active failure.
>
Not any more in 2.4.22 and 2.6.x
For now I'll stick to BLIST_ISDISK for this array.
I leave for a 2 week vacation, but if the HSV LUNs handling is turned to a usable state I'll be able to post a GPL C agent to handle DM multipath autoconfig & reconfig on event (through VPD 0x83 for wwid detection and TUR for ghosts detection) in about 3 weeks. In hope there will interest to move it to a broader use.
regards,
cvaroqui
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: storageworks controlers & linux-scsi
2003-08-27 23:37 ` christophe varoqui
@ 2003-08-28 20:06 ` Patrick Mansfield
2003-08-29 10:25 ` christophe.varoqui
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Mansfield @ 2003-08-28 20:06 UTC (permalink / raw)
To: christophe varoqui; +Cc: James Bottomley, SCSI Mailing List
On Thu, Aug 28, 2003 at 01:37:06AM +0200, christophe varoqui wrote:
>
> I leave for a 2 week vacation, but if the HSV LUNs handling is turned to a usable state I'll be able to post a GPL C agent to handle DM multipath autoconfig & reconfig on event (through VPD 0x83 for wwid detection and TUR for ghosts detection) in about 3 weeks. In hope there will interest to move it to a broader use.
>
Hi -
Is that a 2.4 solution?
I was starting to work on a hotplug interface to get and store scsi wwid's
or serial numbers for use with 2.6.
We need a method that would (ideally) work for all users, so we: don't
hang broken devices, can use other pages (0x80), can use vendor
specific methods, and works for udev or multipath config tools.
We need a black/white list (or config file) for the broken or special
devices.
Have you seen the libsysfs/udev code? We can use libsysfs for common
interfaces to get/set a scsi serial number, and for other common uses of
sysfs such as getting the bus_id, or figuring out if we have a scsi
device.
-- Patrick Mansfield
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: storageworks controlers & linux-scsi
2003-08-28 20:06 ` Patrick Mansfield
@ 2003-08-29 10:25 ` christophe.varoqui
0 siblings, 0 replies; 5+ messages in thread
From: christophe.varoqui @ 2003-08-29 10:25 UTC (permalink / raw)
To: Patrick Mansfield; +Cc: James Bottomley, SCSI Mailing List
Selon Patrick Mansfield <patmans@us.ibm.com>:
> On Thu, Aug 28, 2003 at 01:37:06AM +0200, christophe varoqui wrote:
> >
> > I leave for a 2 week vacation, but if the HSV LUNs handling is turned to a
> usable state I'll be able to post a GPL C agent to handle DM multipath
> autoconfig & reconfig on event (through VPD 0x83 for wwid detection and TUR
> for ghosts detection) in about 3 weeks. In hope there will interest to move
> it to a broader use.
> >
>
> Hi -
>
> Is that a 2.4 solution?
it initialy is.
2.6 support will be easy to add, as we don't have to mess with /dev/sg* anymore.
>
> I was starting to work on a hotplug interface to get and store scsi wwid's
> or serial numbers for use with 2.6.
>
good
> We need a method that would (ideally) work for all users, so we: don't
> hang broken devices, can use other pages (0x80), can use vendor
> specific methods, and works for udev or multipath config tools.
>
> We need a black/white list (or config file) for the broken or special
> devices.
>
Speaking of blacklists, the kernel lists could be fed in early userspace and
thus tweaked at run-time. Didn't Linus search for initramfs uses ? :)
While I'm in the wish list, it would be good to
have 'cat /sys/bus/scsi/...../tur' trigger a TUR and echo the result.
> Have you seen the libsysfs/udev code? We can use libsysfs for common
> interfaces to get/set a scsi serial number, and for other common uses of
> sysfs such as getting the bus_id, or figuring out if we have a scsi
> device.
>
yes, will do. Thanks for the feedback and hints
regards,
cvaroqui
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-08-29 10:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-25 12:55 storageworks controlers & linux-scsi christophe.varoqui
2003-08-27 15:56 ` James Bottomley
2003-08-27 23:37 ` christophe varoqui
2003-08-28 20:06 ` Patrick Mansfield
2003-08-29 10:25 ` christophe.varoqui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox