Linux SCSI subsystem development
 help / color / mirror / Atom feed
* qla2xxx: automatically rescan removed luns.
@ 2013-11-25 15:37 Benjamin ESTRABAUD
  2013-11-25 17:17 ` Ewan Milne
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin ESTRABAUD @ 2013-11-25 15:37 UTC (permalink / raw)
  To: linux-scsi

Hi,

Using the qla2xxx driver from Linux 3.10.1 (release), if a LUN from the 
target side (multiple drives exported over a LIO IBlock qla2xxx export) 
is removed at the LIO level, the initiator side will not automatically 
detect that this LUN was removed.

All commands to this LUN will fail (sg_inq, read, writes) but the 
qla2xxx will never kick the drive out.

If another drive was to be exported on the target side using the same 
lun as the previously removed drive, commands sent to the same block id 
would now work again but be sent to the new LUN.

I tried to echo "- - -" in the scsi_host sysfs "scan" file corresponding 
to the FC port. This worked to detect new LUNs but not to "clear" 
removed ones.

I tried issuing a lip_reset on both sides, but no change.

Looking through Google, I realized that, on RedHat, a /proc/scsi/qla2xxx 
virtual FS exists which allows to send a "scsi-qlascan" command to the 
driver that apparently can detect removed LUNs. Unfortunately I don't 
have this FS visible on my Linux kernel, and I made sure /proc/scsi was 
enabled.

The only way I found was to "echo 1 > /sys/block/sdX/device/delete" to 
the stale device (that corresponds to the removed LUN from the target 
side), then replace the removed LUN on the target side before finally 
issuing a "scan" command on the initiator side.

Am I missing something here? Is there a way to rescan a Qlogic FC port 
using the "qla2xxx" driver from the official, stock kernel?

Thank you very much in advance for your help!

Regards,

Ben - MPSTOR

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

end of thread, other threads:[~2013-12-03 17:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 15:37 qla2xxx: automatically rescan removed luns Benjamin ESTRABAUD
2013-11-25 17:17 ` Ewan Milne
2013-11-26 16:06   ` Benjamin ESTRABAUD
2013-11-26 16:26     ` Douglas Gilbert
2013-11-28 13:29       ` Hannes Reinecke
2013-12-03 17:35         ` Benjamin ESTRABAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox