Re: scsi (sg) device status vs FC connectivity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12-02-21 04:35 PM, Candid Shot wrote:
(I hope this list is the right place to ask SG Driver related question ..)

Background: A FC cable-pull is simulated by disabling the FC switch (Brocade) port.


While /sys/class/fc_host/hostx/port_state might confirm the FC connectivity is missing,

/proc/scsi/sg/devices will show the scsi device to be 'online'.

My goal is to be able to return an error to the application, should a cable-pull happen.

Is there a way to be able to tweak this behavior where the scsi driver is able to look at port events,
and possibly return errors during read/write operations?

The sg driver works at the SCSI level and these days
asynchronous notifications are being left to the
transport layer.

I don't know much about FC. Using SAS (disks connected via
an expander which seems to be functionally similar to a
FC switch) then if an expander port connecting a disk
is disabled then the expander will generate a
Broadcast(Change) which all initiators (HBAs) should
receive and those HBAs should do another device discover
process. That should lead to various events being generated
which udev sees and removes the disk device node.

Hopefully someone who knows about FC and Linux can
supply more details for your case.

Doug Gilbert

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux