linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why does SCSI mid layer mark the LUN offline in this situation?
@ 2009-10-01  5:46 G S
  2009-10-01  6:31 ` Joe Eykholt
  0 siblings, 1 reply; 5+ messages in thread
From: G S @ 2009-10-01  5:46 UTC (permalink / raw)
  To: linux-scsi

Howdy,

I have a Linux (2.6) using Emulex and QLogic FC HBA's to a disk array
product, with a single LUN presented, say LUN 1.

The dsf is created for LUN 1 and i can send SCSI commands to LUN 1.
And i'm using "sg".

If i delete LUN 1 from disk array.  Reboot the disk array.  Array
boots up only with LUN 0.

I have recreated LUN 1 on the target storage array.

But any attempt to send SCSI command to LUN 1 fails because LUN 1 has
been marked offline by SCSI mid layer.

Why?  Is it because RSCN seen by HBA driver is passed up to SCSI mid
layer to trigger re-scan?  And re-scan no longer finds LUN 1, so LUN 1
kernel structures are torned down, and LUN 1 marked offline by SCSI
mid layer?

Doing following to add back LUN 1 will bring it back for access,

# echo "scsi add-single-device <H> <B> <T> <L>" > /proc/scsi/scsi

Above "echo" seems to cause a blind re-scan by sending SCSI INQUIRY to
LUN 1 on the h/b/t/l hardware path.  That SCSI INQUIRY succeeds.  And
that success seems to cause LUN 1 to be marked online again.

Thanks much,

G

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-01 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01  5:46 Why does SCSI mid layer mark the LUN offline in this situation? G S
2009-10-01  6:31 ` Joe Eykholt
2009-10-01 14:18   ` James Smart
     [not found]   ` <4AC4B642.5050000@emulex.com>
2009-10-01 18:08     ` G S
2009-10-01 18:53       ` James Smart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).