<?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>2vcps and a Truck &#187; iSCSI</title>
	<atom:link href="http://www.2vcps.com/tag/iscsi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.2vcps.com</link>
	<description></description>
	<lastBuildDate>Thu, 01 Jul 2010 20:49:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="search"
           href="http://www.2vcps.com/opensearch"
           type="application/opensearchdescription+xml"
           title="Content Search" /><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Get iSCSI iqn from the ESX Command Line</title>
		<link>http://www.2vcps.com/2009/11/27/get-iscsi-iqn-from-the-esx-command-line/</link>
		<comments>http://www.2vcps.com/2009/11/27/get-iscsi-iqn-from-the-esx-command-line/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 18:25:17 +0000</pubDate>
		<dc:creator>Jon Owings</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iSCSI]]></category>
		<category><![CDATA[vcdx]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.2vcps.com/?p=213</guid>
		<description><![CDATA[I was in my personal ESX about to upgrade to update 1. I was distracted by trying to setup iSCSI from the command line. Right before I looked to the vSphere Client to get the iqn I said, &#8220;There is &#8230; <a href="http://www.2vcps.com/2009/11/27/get-iscsi-iqn-from-the-esx-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.2vcps.com/2009/11/12/esx-commands-esxcfg-pciidrescanresgrpswiscsiupgrade-vmhbadevs/' rel='bookmark' title='Permanent Link: ESX Commands: esxcfg-pciid,rescan,resgrp,swiscsi,upgrade, vmhbadevs'>ESX Commands: esxcfg-pciid,rescan,resgrp,swiscsi,upgrade, vmhbadevs</a></li>
<li><a href='http://www.2vcps.com/2009/06/08/esx-commands-esxcfg-module/' rel='bookmark' title='Permanent Link: ESX Commands &#8211; esxcfg-module'>ESX Commands &#8211; esxcfg-module</a></li>
<li><a href='http://www.2vcps.com/2009/06/17/rescan-all-hbas-where-are-you/' rel='bookmark' title='Permanent Link: Rescan All Hba&#8217;s Where are you?'>Rescan All Hba&#8217;s Where are you?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.2vcps.com%2F2009%2F11%2F27%2Fget-iscsi-iqn-from-the-esx-command-line%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.2vcps.com%2F2009%2F11%2F27%2Fget-iscsi-iqn-from-the-esx-command-line%2F&amp;source=2vcps&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I was in my personal ESX about to upgrade to update 1. I was distracted by trying to setup iSCSI from the command line. Right before I looked to the vSphere Client to get the iqn I said, &#8220;There is surely a way for me to find this from the command line.&#8221;</p>
<p>Searching around I found the command vmkiscsi-tool. Really good stuff,  I can complete the rest of my setup without the GUI. One thing though to list out the iqn for iscsi after you enable it you must know the device name (ie vmhba??). </p>
<p>Using this command:<br />
<code>vmkiscsi-tool -I -l <adapter name></code></p>
<p>I usually guess the iscsi hba is vmhba33 or 32 but how do I know for sure?<br />
Try:<br />
esxcfg-scsidevs -a<br />
<a href="http://www.2vcps.com/wp-content/uploads/2009/11/esxcfg-scsidevs-a.PNG"><img src="http://www.2vcps.com/wp-content/uploads/2009/11/esxcfg-scsidevs-a.PNG" alt="esxcfg-scsidevs-a" title="esxcfg-scsidevs-a" width="1258" height="126" class="alignright size-full wp-image-214" /></a><br />
Ok great, now we know it is vmhba33<br />
<code><br />
[root@esxhost01 sbin]# vmkiscsi-tool -I -l vmhba33<br />
iSCSI Node Name: iqn.1998-01.com.vmware:esxhost01-35151883<br />
[root@esxhost01 sbin]#</code></p>
<p>Now with a few more vmkiscsi-tool commands I can finish configuring my iSCSI.<br />
Add the Ip of the SAN:<br />
[root@esxhost01 sbin]# vmkiscsi-tool -D -a 172.16.23.251 vmhba33<br />
Now rescan:<br />
[root@esxhost01 sbin]# esxcfg-rescan -a vmhba33</p>


<p>Related posts:<ol><li><a href='http://www.2vcps.com/2009/11/12/esx-commands-esxcfg-pciidrescanresgrpswiscsiupgrade-vmhbadevs/' rel='bookmark' title='Permanent Link: ESX Commands: esxcfg-pciid,rescan,resgrp,swiscsi,upgrade, vmhbadevs'>ESX Commands: esxcfg-pciid,rescan,resgrp,swiscsi,upgrade, vmhbadevs</a></li>
<li><a href='http://www.2vcps.com/2009/06/08/esx-commands-esxcfg-module/' rel='bookmark' title='Permanent Link: ESX Commands &#8211; esxcfg-module'>ESX Commands &#8211; esxcfg-module</a></li>
<li><a href='http://www.2vcps.com/2009/06/17/rescan-all-hbas-where-are-you/' rel='bookmark' title='Permanent Link: Rescan All Hba&#8217;s Where are you?'>Rescan All Hba&#8217;s Where are you?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.2vcps.com/2009/11/27/get-iscsi-iqn-from-the-esx-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
