<?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>Sun Solaris System Admin &#187; hba</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/hba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>List LUNs attached to HBA/Disk controllers in Solaris 10</title>
		<link>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=list-luns-attached-to-hbadisk-controllers-in-solaris-10</link>
		<comments>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 20:16:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[cfgadm]]></category>
		<category><![CDATA[fcinfo]]></category>
		<category><![CDATA[hba]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[oraHBA]]></category>
		<category><![CDATA[SAN]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=143</guid>
		<description><![CDATA[As a system administrator, every now and then you may come across situations wherein your SAN admin presents you some storage (LUNS) and you can&#8217;t find where the hell has it gone. The following are some of the ways to list the LUNS presented on a controller or all the controllers on the server. 1. <a href='http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>As a system administrator, every now and then you may come across situations wherein your SAN admin presents you some storage (LUNS) and you can&#8217;t find where the hell has it gone. The following are some of the ways to list the LUNS presented on a controller or all the controllers on the server.<br />
<span id="more-143"></span></p>
<p><span style="text-decoration: underline;"><strong>1. Using fcinfo</strong></span></p>
<p>In Solaris 10, you can use the &#8220;fcinfo&#8221; utility which is a 2 step process to identify the Luns presented to the server.</p>
<p>1. Find the HBA port WWN number on the server:</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># fcinfo hba-port</pre></div></div>

<p>This command will show the HBA Port WWN among other information like the Node WWN, Device name, manufacturer, firmware, driver details etc.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # fcinfo hba-port
HBA Port WWN: 21000022ff0553e9
OS Device Name: /dev/cfg/c5
Manufacturer: QLogic Corp.
Model: 371-4324-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.03; EFI: 2.01;
Serial Number: 0402R00-1102885753
Driver Name: qlc
Driver Version: 3.00p
Type: L-port
State: online
Supported Speeds: 2Gb 4Gb 8Gb
Current Speed: 4Gb
Node WWN: 20000022ff0553e9</pre></div></div>

<p>Here <span style="color: #ff0000;">21000022ff0553e9</span> is the WWN number for the HBA port.</p>
<p>2. List SCSI targets for the remote port attached to the HBA port attached to the above.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># fcinfo -sl -p HBA-Port-WWN</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # fcinfo remote-port -sl -p 21000022ff0553e9
Remote Port WWN: 202400a0b8744072
Active FC4 Types:
SCSI Target: yes
Node WWN: 200400a0b8744072
Link Error Statistics:
Link Failure Count: 1
Loss of Sync Count: 2
Loss of Signal Count: 72
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: LCSM100_F
OS Device Name: /dev/rdsk/c5t202400A0B8744072d0s2
LUN: 2 Vendor: SUN
Product: LCSM100_F
OS Device Name: /dev/rdsk/c5t202400A0B8744072d2s2
LUN: 31 Vendor: SUN
Product: Universal Xport
OS Device Name: /dev/rdsk/c5t202400A0B8744072d31s2</pre></div></div>

<p>Here, LUN0 and LUN2 are the actual disks and LUN31 is the Command device for the Storage controller</p>
<p><span style="text-decoration: underline;"><strong>2. Using cfgadm</strong></span></p>
<p>You can also find the above information using the &#8220;cfgadm&#8221; utility. One of the following commands should reveal the LUNS attached to the controller. Although the later works only on Solaris 10.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># cfgadm -al -o show_FCP_dev c5
&nbsp;
or
&nbsp;
# cfgadm -al -o show_SCSI_LUNS c5</pre></div></div>

<p>where c5 is the controller. If you do not mentioned the controller, it then displays for every single disk controller on the server.</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # cfgadm -al -o show_FCP_dev c5
Ap_Id Type Receptacle Occupant Condition
c5 fc-private connected configured unknown
c5::202400a0b8744072,0 disk connected configured unknown
c5::202400a0b8744072,2 disk connected configured unknown
c5::202400a0b8744072,31 disk connected configured unknown</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">root@myserver:/root # cfgadm -al -o show_SCSI_LUN c5
Ap_Id Type Receptacle Occupant Condition
c5 fc-private connected configured unknown
c5::202400a0b8744072,0 disk connected configured unknown
c5::202400a0b8744072,2 disk connected configured unknown
c5::202400a0b8744072,31 disk connected configured unknown</pre></div></div>

<p>Share your thoughts, if you know more ways of doing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-10/list-luns-attached-to-hbadisk-controllers-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the WWN (World Wide Name) in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-find-the-wwn-world-wide-name-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 22:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[fcal]]></category>
		<category><![CDATA[fcinfo]]></category>
		<category><![CDATA[fcode]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[hba]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[prtconf]]></category>
		<category><![CDATA[prtpicl]]></category>
		<category><![CDATA[scli]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[worldwide name]]></category>
		<category><![CDATA[wwn]]></category>
		<category><![CDATA[wwnn]]></category>
		<category><![CDATA[wwpn]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=64</guid>
		<description><![CDATA[World Wide Name (WWN) are unique 8 byte (64-bit) identifiers in SCSI or fibre channel similar to that of MAC Addresses on a Network Interface Card (NIC). Talking about the WWN names, there are also World Wide port Name (WWpN), a WWN assigned to a port on a Fabric which is what you would be <a href='http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><strong><em>World Wide Name (WWN) </em></strong>are unique 8 byte (64-bit) identifiers in SCSI or fibre channel similar to that of MAC Addresses on a Network Interface Card (NIC).</p>
<p>Talking about the WWN names, there are also</p>
<p><strong><em>World Wide port Name (WWpN)</em></strong>, a WWN assigned to a port on a Fabric which is what you would be looking for most of the time.</p>
<p><strong><em>World Wide node Name (WWnN)</em></strong>, a WWN assigned to a node/device on a Fibre Channel fabric.</p>
<p><span id="more-64"></span></p>
<p>To find the WWN numbers of your HBA card in Sun Solaris, you can use one the following procedures</p>
<p><strong><span style="text-decoration: underline;"><em>Using fcinfo (Solaris 10 only)</em></span></strong></p>
<p>This is probably the easiest way to find the WWN numbers on your HBA card. Here you can see the HBA Port WWN (WWpN) and the Node WWN (WWnN) of the two ports on the installed Qlogic HAB card.</p>
<p>This is also useful in finding the Model number, Firmwar version FCode, supported and current speeds and the port status of the HBA card/port.</p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# fcinfo hba-port | grep WWN</strong><br />
HBA Port WWN: 2100001b32xxxxxx<br />
Node WWN: 2000001b32xxxxxx<br />
HBA Port WWN: 2101001b32yyyyyy<br />
Node WWN: 2001001b32yyyyyy</p></blockquote>
<p>For detailed info including Make &amp; model number, Firmware, Fcode and current status and supported/current speeds then</p>
<blockquote><p><strong>root@ sunserver:/root# fcinfo hba-port</strong><br />
HBA Port WWN: 2100001b32xxxxxx<br />
OS Device Name: /dev/cfg/c2<br />
Manufacturer: QLogic Corp.<br />
Model: 375-3356-02<br />
Firmware Version: 4.04.01<br />
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;<br />
Type: N-port<br />
State: online<br />
Supported Speeds: 1Gb 2Gb 4Gb<br />
Current Speed: 4Gb<br />
Node WWN: 2000001b32xxxxxx<br />
HBA Port WWN: 2101001b32yyyyyy<br />
OS Device Name: /dev/cfg/c3<br />
Manufacturer: QLogic Corp.<br />
Model: 375-3356-02<br />
Firmware Version: 4.04.01<br />
FCode/BIOS Version:  BIOS: 1.24; fcode: 1.24; EFI: 1.8;<br />
Type: unknown<br />
State: offline<br />
Supported Speeds: 1Gb 2Gb 4Gb<br />
Current Speed: not established<br />
Node WWN: 2001001b32yyyyyy</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using scli</em></span></strong></p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# scli -i | egrep &#8220;Node Name|Port Name&#8221;</strong><br />
Node Name                  : 20-00-00-1B-32-XX-XX-XX<br />
Port Name                  : 21-00-00-1B-32-XX-XX-XX<br />
Node Name                  : 20-01-00-1B-32-YY-YY-YY<br />
Port Name                  : 21-01-00-1B-32-YY-YY-YY</p></blockquote>
<p> </p>
<p>For more detailed info on the HBA Cards run as follows: Similar to fcinfo but also provides Model Name and serial number.</p>
<p> </p>
<blockquote><p><strong>root@ sunserver:/root# scli -i</strong><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Host Name                  : sunserver<br />
HBA Model                  : QLE2462<br />
HBA Alias                  :<br />
Port                       : 1<br />
Port Alias                 :<br />
Node Name                  : 20-00-00-1B-32-XX-XX-XX<br />
Port Name                  : 21-00-00-1B-32-XX-XX-XX<br />
Port ID                    : 11-22-33<br />
Serial Number              : AAAAAAA-bbbbbbbbbb<br />
Driver Version             : qlc-20080514-2.28<br />
FCode Version              : 1.24<br />
Firmware Version           : 4.04.01<br />
HBA Instance               : 2<br />
OS Instance                : 2<br />
HBA ID                     : 2-QLE2462<br />
OptionROM BIOS Version     : 1.24<br />
OptionROM FCode Version    : 1.24<br />
OptionROM EFI Version      : 1.08<br />
OptionROM Firmware Version : 4.00.26<br />
Actual Connection Mode     : Point to Point<br />
Actual Data Rate           : 2 Gbps<br />
PortType (Topology)        : NPort<br />
Total Number of Devices    : 2<br />
HBA Status                 : Online<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Host Name                  : sunserver<br />
HBA Model                  : QLE2462<br />
HBA Alias                  :<br />
Port                       : 2<br />
Port Alias                 :<br />
Node Name                  : 20-01-00-1B-32-YY-YY-YY<br />
Port Name                  : 21-01-00-1B-32-YY-YY-YY<br />
Port ID                    : 00-00-00<br />
Serial Number              : AAAAAAA-bbbbbbbbbb<br />
Driver Version             : qlc-20080514-2.28<br />
FCode Version              : 1.24<br />
Firmware Version           : 4.04.01<br />
HBA Instance               : 3<br />
OS Instance                : 3<br />
HBA ID                     : 3-QLE2462<br />
OptionROM BIOS Version     : 1.24<br />
OptionROM FCode Version    : 1.24<br />
OptionROM EFI Version      : 1.08<br />
OptionROM Firmware Version : 4.00.26<br />
Actual Connection Mode     : Unknown<br />
Actual Data Rate           : Unknown<br />
PortType (Topology)        : Unidentified<br />
Total Number of Devices    : 0<br />
HBA Status                 : Loop down</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using prtconf</em></span></strong></p>
<blockquote><p>root@ sunserver:/root# prtconf -vp | grep -i wwn<br />
port-wwn:  2100001b.32xxxxxx<br />
node-wwn:  2000001b.32xxxxxx<br />
port-wwn:  2101001b.32yyyyyy<br />
node-wwn:  2001001b.32yyyyyy</p></blockquote>
<p><strong><span style="text-decoration: underline;"><em>Using prtpicl</em></span></strong></p>
<blockquote><p><strong>root@ sunserver:/root# prtpicl -v | grep wwn</strong><br />
:node-wwn  20  00  00  1b  32  xx  xx  xx<br />
:port-wwn  21  00  00  1b  32  xx  xx  xx<br />
:node-wwn  20  01  00  1b  32  yy  yy  yy<br />
:port-wwn  21  01  00  1b  32  yy  yy  yy</p></blockquote>
<p> </p>
<p><strong><span style="text-decoration: underline;"><em>Using luxadm</em></span></strong></p>
<p>Run the following command to obtain the physical path to the HBA Ports</p>
<blockquote><p><strong>root@ sunserver:/root$ luxadm -e port</strong><br />
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl              CONNECTED<br />
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0:devctl            NOT CONNECTED</p></blockquote>
<p> </p>
<p>With the physical path obtained from the above command, we can trace the WWN numbers as follows. here I use the physical path to the one that is connected:</p>
<blockquote><p><strong>root@ sunserver:/root$ luxadm -e dump_map /devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl</strong><br />
Pos  Port_ID Hard_Addr Port WWN         Node WWN         Type<br />
0    123456  0         1111111111111111 2222222222222222 0&#215;0  (Disk device)<br />
1    789123  0         1111111111111111 2222222222222222 0&#215;0  (Disk device)<br />
2    453789  0         2100001b32xxxxxx 2000001b32xxxxxx 0x1f (Unknown Type,Host Bus Adapter)</p></blockquote>
<p> </p>
<p>Hope this helps. If you know of any more way then please feel free to post it to the comments and I shall amend it to the article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/hardware/how-to-find-the-wwn-world-wide-name-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

