<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How to find HBA cards Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-find-hba-cards/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 14 Jun 2018 13:09:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to  find HBA cards/ports and WWN in Linux Redhat/Centos</title>
		<link>https://www.osradar.com/how-to-find-hba-cards-ports-and-wwn-in-linux-redhat-centos/</link>
					<comments>https://www.osradar.com/how-to-find-hba-cards-ports-and-wwn-in-linux-redhat-centos/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Mon, 23 Apr 2018 12:19:41 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to find HBA cards]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2707</guid>

					<description><![CDATA[<p>Maybe you are new in a professional environment where you have to become familiar with new  terms like HBA cards and storage via Fiber or others A host bus adapter (HBA) is a circuit board and/or integrated circuit adapter that provides input/output (I/O) processing and physical connectivity between a host system, or server, and a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-find-hba-cards-ports-and-wwn-in-linux-redhat-centos/">How to  find HBA cards/ports and WWN in Linux Redhat/Centos</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Maybe you are new in a professional environment where you have to become familiar with new  terms like HBA cards and storage via Fiber or others</p>
<p>A host bus adapter (HBA) is a circuit board and/or integrated circuit adapter that provides input/output (I/O) processing and physical connectivity between a host system, or server, and a storage and/or network device</p>
<p>How to find HBA cards/ports and WWN in Linux Redhat/Centos ?</p>
<h2><strong>Method 1</strong></h2>
<p>To find the HBA cards installed on your system use :</p>
<pre>[root@su444p043 ~]# lspci -nn | grep -i qlog
08:00.0 Fibre Channel [0c04]: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter [1077:2031] (rev 02)
08:00.1 Fibre Channel [0c04]: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter [1077:2031] (rev 02)
[root@su444p043 ~]#</pre>
<p>&nbsp;</p>
<p>To check the available HBA ports :</p>
<pre># ls -l   /sys/class/fc_host/
total 0
lrwxrwxrwx 1 root root 0 Apr 20 11:21 host7 -&gt; ../../devices/pci0000:00/0000:00:03.0/0000:08:00.0/host7/fc_host/host7
lrwxrwxrwx 1 root root 0 Apr 20 11:21 host8 -&gt; ../../devices/pci0000:00/0000:00:03.0/0000:08:00.1/host8/fc_host/host8

</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-2710" src="https://www.osradar.com/wp-content/uploads/2018/04/host1.png" alt="" width="992" height="94" srcset="https://www.osradar.com/wp-content/uploads/2018/04/host1.png 992w, https://www.osradar.com/wp-content/uploads/2018/04/host1-300x28.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/host1-768x73.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/host1-696x66.png 696w" sizes="(max-width: 992px) 100vw, 992px" /></p>
<p>To find the state of HBA ports (online/offline) :</p>
<pre>]# more /sys/class/fc_host/host?/port_state
::::::::::::::
/sys/class/fc_host/host7/port_state
::::::::::::::
Online
::::::::::::::
/sys/class/fc_host/host8/port_state
::::::::::::::
Online</pre>
<p>&nbsp;</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2717" src="https://www.osradar.com/wp-content/uploads/2018/04/hostx.png" alt="" width="630" height="146" srcset="https://www.osradar.com/wp-content/uploads/2018/04/hostx.png 630w, https://www.osradar.com/wp-content/uploads/2018/04/hostx-300x70.png 300w" sizes="(max-width: 630px) 100vw, 630px" /></p>
<p><strong>To find the WWN numbers of the above ports :</strong></p>
<pre># more /sys/class/fc_host/host?/port_state

::::::::::::::
/sys/class/fc_host/host7/port_name
::::::::::::::
0x51402ec000f497a0
::::::::::::::
/sys/class/fc_host/host8/port_name
::::::::::::::
0x51402ec000f497a2</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-2712" src="https://www.osradar.com/wp-content/uploads/2018/04/host3.png" alt="" width="750" height="193" srcset="https://www.osradar.com/wp-content/uploads/2018/04/host3.png 750w, https://www.osradar.com/wp-content/uploads/2018/04/host3-300x77.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/host3-696x179.png 696w" sizes="(max-width: 750px) 100vw, 750px" /></p>
<p>&nbsp;</p>
<h2><strong>Method 2 : Using systool</strong></h2>
<p>Another useful command to find the information about HBAs is systool. If not already installed please do it  with the following command.</p>
<pre># yum install sysfsutils  -y</pre>
<p>To check the available HBA ports :</p>
<pre>[root@------ ~]# systool -c fc_host
Class = "fc_host"

Class Device = "host7"
 Device = "host7"

Class Device = "host8"
 Device = "host8"</pre>
<p>&nbsp;</p>
<p><strong>To find the WWNs for the HBA ports :</strong></p>
<pre># systool -c fc_host -v | grep port_name
 port_name = "0x51402ec000f497a0"
 port_name = "0x51402ec000f497a2"

</pre>
<p>To check the state of the HBA ports (online/offline) :</p>
<pre># # systool -c fc_host -v | grep port_state
 port_state = "Online"
 port_state = "Online"</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-2714" src="https://www.osradar.com/wp-content/uploads/2018/04/systool.png" alt="" width="759" height="139" srcset="https://www.osradar.com/wp-content/uploads/2018/04/systool.png 759w, https://www.osradar.com/wp-content/uploads/2018/04/systool-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/systool-696x127.png 696w" sizes="(max-width: 759px) 100vw, 759px" /></p>
<p>Please Enjoy and share !!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-find-hba-cards-ports-and-wwn-in-linux-redhat-centos/">How to  find HBA cards/ports and WWN in Linux Redhat/Centos</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-find-hba-cards-ports-and-wwn-in-linux-redhat-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
