<?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>Mon, 23 Jan 2012 15:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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/06/08/esx-commands-esxcfg-module/' rel='bookmark' title='ESX Commands &#8211; esxcfg-module'>ESX Commands &#8211; esxcfg-module</a></li>
<li><a href='http://www.2vcps.com/2008/10/30/vcdx-nugget-identify-iscsi-fibre-channel/' rel='bookmark' title='VCDX &#8211; Nugget &#8212; Identify iSCSI, Fibre Channel'>VCDX &#8211; Nugget &#8212; Identify iSCSI, Fibre Channel</a></li>
<li><a href='http://www.2vcps.com/2009/06/05/esx-commands-esxcfg-init/' rel='bookmark' title='ESX Commands &#8211; esxcfg-init'>ESX Commands &#8211; esxcfg-init</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<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/06/08/esx-commands-esxcfg-module/' rel='bookmark' title='ESX Commands &#8211; esxcfg-module'>ESX Commands &#8211; esxcfg-module</a></li>
<li><a href='http://www.2vcps.com/2008/10/30/vcdx-nugget-identify-iscsi-fibre-channel/' rel='bookmark' title='VCDX &#8211; Nugget &#8212; Identify iSCSI, Fibre Channel'>VCDX &#8211; Nugget &#8212; Identify iSCSI, Fibre Channel</a></li>
<li><a href='http://www.2vcps.com/2009/06/05/esx-commands-esxcfg-init/' rel='bookmark' title='ESX Commands &#8211; esxcfg-init'>ESX Commands &#8211; esxcfg-init</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>

