Skip to contentSkip to conversation

fast detection of loss of FC connectivity?

DISCUSSION devnetfs 1 participant 1 message Apr 3, 2003 SCSI

lore
Share & tools
lore

devnetfs

author
#0 lore raw

Hi,

In a SAN setup is it possible to quickly detect that a FC cable has been plugged out of the card? Presently the way I do is send a SCSI-2 TUR cmd to the device (periodically) and check if the device is reachable.

When the cable is pulled out, TUR fails indicating some problem. But TUR command takes a LONG time to complete before returning an error. This time is more than 8-10secs :( Thats too slow.

I noticed that as soon as I pull the cable I get a LOOP DOWN message on the console (its a qlogic card, qla2x00 driver). Is there a generic flag in the scsi-midlayer (part of Scsi_Host) that would let me know that has happend -- hence quickly determine loss of connectivity.

I looked at the qlogic source and they have a loop_state field in scsi_qla_host, but then thats specific to a particular card.

Is there a generic way to QUICKLY detect such loss of connectivity, in a FC setup?

Any ideas/suggestions are welcome :)

Thanks
A.