public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: christophe varoqui <christophe.varoqui@free.fr>
To: James.Bottomley@steeleye.com
Cc: linux-scsi@vger.kernel.org
Subject: sd.c and storageworks assistance
Date: Sun, 28 Sep 2003 12:13:35 +0200	[thread overview]
Message-ID: <1064744014.1736.40.camel@zezette> (raw)

James,

I put up a small tool to auto-configure multipath device-mapper targets.
I will release it as soon as the dm target is available.
The path coalescing is based on and unique id, which is vendor specific.
The approach taken is to explicitly declare a fonction for retreiving
this UID, the default being "ignore the path if no method found"
(WhiteList).
This initial release is focused on storageworks controlers : I have
access to HSG80 and HSV110 hw. For them, the UID is the WWID stored in
page 0x83 of the VPD at offset 8.

These controlers, as I have already mentioned on linux-scsi, export Luns
through all 4 FC ports, but only two ports of the same controler (in the
pair) present valid IO paths. The other two are what we called in
previous threads "ghost paths".

TUR can be reliably used to detect if a path is in ghost or valid state.

After this long intro, here goes my problem :
Recent 2.4 linux kernels attach /dev/sd* only to the valid paths. Ghosts
structures are present in the sg and mid-layer, giving access to HBTL,
TUR, VPD info. In case the active controler reboots, the 2 ghosts become
active but Linux won't dynamically assign them a /dev/sd* name. Having
no /dev/sd* name, they can't be used in a multipath map, and the
multipath runs out of paths even if there are 2 paths around but Linux
can't see them ... not good.

I ask for assistance for implementing the following behaviour :
/dev/sd* names must be assigned to ghosts.

Multipath maps contain only the valid paths (test based on TUR), so no
IO will be submitted to the ghosts (IO can safely block or fail). When a
controler reboots, TUR states will change and the updated devmap will
contain the newly valid paths.

Do you agree with this solution ?
If not, do you have other ?
Can you help ?
(I'd rather avoid kernel dev)

regards,
cvaroqui


                 reply	other threads:[~2003-09-28 10:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1064744014.1736.40.camel@zezette \
    --to=christophe.varoqui@free.fr \
    --cc=James.Bottomley@steeleye.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox