Wednesday, December 14, 2011

Rescan Linux Bus

·  Find what's the host number for the HBA:
ls /sys/class/fc_host/
(You'll have something like host1 or host2, I'll refer to them as host$NUMBER from now on)

·  Ask the HBA to issue a LIP signal to rescan the FC bus:
echo 1 >/sys/class/fc_host/host$NUMBER/issue_lip

·  Wait around 15 seconds for the LIP command to have effect

·  Ask Linux to rescan the SCSI devices on that HBA:
echo - - - >/sys/class/scsi_host/host$NUMBER/scan
The wildcards "- - -" mean to look at every channel, every target, every lun.

No comments: