Difference between revisions of "HBA"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
# Identify your HBAs in Linux: <code>[[lspci]] | grep "Fibre Channel"</code> or <code>[[lspci]] -nn | grep "Fibre Channel"</code>
 
# Identify your HBAs in Linux: <code>[[lspci]] | grep "Fibre Channel"</code> or <code>[[lspci]] -nn | grep "Fibre Channel"</code>
 
# [[Fibre Channel]] LUN Scan:  
 
# [[Fibre Channel]] LUN Scan:  
:<code>echo "1" > /sys/class/fc_host/host0/issue_lip</code>
+
:<code>echo "1" > /sys/class/fc_host/host0/issue_lip</code> (No output from command)
 
:<code>echo "- - -" > /sys/class/scsi_host/host0/scan</code>
 
:<code>echo "- - -" > /sys/class/scsi_host/host0/scan</code>
 
  
 
== fc_host ==
 
== fc_host ==

Revision as of 07:39, 9 December 2019

HBA is a controller/network card which connects a host system (computer) to other network and storage devices, primarily used with controllers that connect to SCSI, Fibre Channel and eSATA devices


Linux related commands

  1. Identify your HBAs in Linux: lspci | grep "Fibre Channel" or lspci -nn | grep "Fibre Channel"
  2. Fibre Channel LUN Scan:
echo "1" > /sys/class/fc_host/host0/issue_lip (No output from command)
echo "- - -" > /sys/class/scsi_host/host0/scan

fc_host

/sys/class/fc_host/host1/port_state [Online]
/sys/class/fc_host/host1/fabric_name

See also

Advertising: