Difference between revisions of "HBA"

From wikieduonline
Jump to navigation Jump to search
 
(25 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
 
== Linux related commands ==
 
== Linux related commands ==
# Identify your HBAs in Linux: <code>[[lspci]] | grep "Fibre Channel"</code> or <code>[[lspci]] -nn | grep "Fibre Channel"</code>
+
* Identify your HBAs in Linux:  
# [[Fibre Channel]] LUN Scan:
+
** <code>[[lspci]] | grep "Fibre Channel"</code> or <code>[[lspci]] -nn | grep "Fibre Channel"</code>
:<code>echo "1" > /sys/class/fc_host/host0/issue_lip</code>
+
** <code>ls /sys/class/fc_host/</code>
:<code>echo "- - -" > /sys/class/scsi_host/host0/scan</code>
+
** <code>[[systool]] -c fc_host -v</code>
  
 +
* [[Fibre Channel]] LUN Scan or <code>[[rescan-scsi-bus.sh]]</code>:
 +
**<code>echo "1" > /sys/class/fc_host/host1/issue_[[lip]]</code> (No output from command) or <code>[[rescan-scsi-bus.sh]] -i</code>
 +
**<code>echo "- - -" > /sys/class/scsi_host/host1/scan</code>
 +
**<code>[[lsblk -S]]</code>
  
 +
 +
* <code>[[lssd]]</code> command part of HP <code>fibreutils</code> package
 +
 +
== [[fc_host]] ==
 +
:<code>[[/sys/]]class/fc_host/host1/port_state</code>
 +
::<code>Online</code>
 +
:<code>/sys/class/fc_host/host1/fabric_name</code>
 +
::<code>0x1000889471a683T4</code>
 +
:<code>/sys/class/fc_host/host1/node_name</code> (Used for mapping in your [[storage array]])
 +
::<code>0x51402ec000f3xxxx</code>
 +
 +
== Related terms ==
 +
* <code>[[multipath]]</code>
 +
* [[Network adapter]]
 +
* <code>[[pg_hba.conf]]</code>
  
 
== See also ==
 
== See also ==
* [[Ethernet]]: <code>[[ifconfig]]</code>
+
* {{Linux Fibre Channel}}
 
* {{Fibre Channel}}
 
* {{Fibre Channel}}
 
* {{Linux block devices}}
 
* {{Linux block devices}}
 +
* [[SCSI]]
  
 
[[Category:Storage]]
 
[[Category:Storage]]
 
[[Category:SAN]]
 
[[Category:SAN]]

Latest revision as of 15:14, 3 February 2023

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[edit]

  • Identify your HBAs in Linux:
    • lspci | grep "Fibre Channel" or lspci -nn | grep "Fibre Channel"
    • ls /sys/class/fc_host/
    • systool -c fc_host -v


  • lssd command part of HP fibreutils package

fc_host[edit]

/sys/class/fc_host/host1/port_state
Online
/sys/class/fc_host/host1/fabric_name
0x1000889471a683T4
/sys/class/fc_host/host1/node_name (Used for mapping in your storage array)
0x51402ec000f3xxxx

Related terms[edit]

See also[edit]

Advertising: