<?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>Maartendamen&#039;s blog &#187; VMware vSphere</title>
	<atom:link href="http://www.maartendamen.com/category/vmware-vsphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maartendamen.com</link>
	<description>Blogging on various IT subjects</description>
	<lastBuildDate>Tue, 22 Nov 2011 21:27:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Disable firewall on ESXi</title>
		<link>http://www.maartendamen.com/2011/10/disable-firewall-on-esxi/</link>
		<comments>http://www.maartendamen.com/2011/10/disable-firewall-on-esxi/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 17:36:56 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=943</guid>
		<description><![CDATA[I didn&#8217;t have a lot of time for blogging lately but here&#8217;s just a quick tip (I am currently working hard on HouseAgent behind the scenes!) Sometimes it&#8217;s handy to disable the ESXi host firewall for some quick troubleshooting. Here&#8217;s how to accomplish that: After you have done your testing, please make sure you re-enable [...]]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t have a lot of time for blogging lately but here&#8217;s just a quick tip (I am currently working hard on HouseAgent behind the scenes!)<br />
Sometimes it&#8217;s handy to disable the ESXi host firewall for some quick troubleshooting. Here&#8217;s how to accomplish that:</p>
<p><a href="http://www.maartendamen.com/2011/10/disable-firewall-on-esxi/10-10-2011-19-29-03/" rel="attachment wp-att-944"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/10-10-2011-19-29-03.png" alt="" title="10-10-2011 19-29-03" width="399" height="62" class="alignnone size-full wp-image-944" /></a></p>
<p>After you have done your testing, please make sure you re-enable your firewall. As it is a good practice to always have it enabled. Here&#8217;s how to re-enable it:</p>
<p><a href="http://www.maartendamen.com/2011/10/disable-firewall-on-esxi/10-10-2011-19-34-27/" rel="attachment wp-att-945"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/10-10-2011-19-34-27.png" alt="" title="10-10-2011 19-34-27" width="396" height="87" class="alignnone size-full wp-image-945" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/10/disable-firewall-on-esxi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal error occured in the vSphere Client when you try to add an existing virtual disk to a VM</title>
		<link>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/</link>
		<comments>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 12:01:13 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=487</guid>
		<description><![CDATA[Today I got this error when I tried to add an existing virtual disk to a virtual machine: &#8220;An internal error occured in the vSphere Client. Details: Object reference not set to an instance of an object. Contact VMware support if necessary.&#8221; Looking at the hostd.log file using &#8216;tail&#8217;: tail -f /var/log/vmware/hostd.log I got the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got this error when I tried to add an existing virtual disk to a virtual machine:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error.png" alt="" title="vsphere_error" width="500" height="142" class="alignnone size-full wp-image-488" /></a></p>
<p><em>&#8220;An internal error occured in the vSphere Client.<br />
Details: Object reference not set to an instance of an object.</p>
<p>Contact VMware support if necessary.&#8221;</em><br />
<span id="more-487"></span><br />
Looking at the hostd.log file using &#8216;tail&#8217;:<br />
<code>tail -f /var/log/vmware/hostd.log</code> </p>
<p>I got the folowing error:<br />
<a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error21.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error21.png" alt="" title="vsphere_error2" width="617" height="93" class="alignnone size-full wp-image-492" /></a></p>
<p><em>&#8220;Could not convert disk adapter type 4&#8243;</em></p>
<p>The problem lies within the virtual disk descriptor file (.VMDK), in this case the lsilogic adapter was typed with capitals (LSIlogic):<br />
<a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error3.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error3.png" alt="" title="vsphere_error3" width="505" height="139" class="alignnone size-full wp-image-495" /></a></p>
<p>Changing the adapter name to &#8220;lsilogic&#8221; (lower-case) fixed the issue!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goofed fiber channel cable</title>
		<link>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/</link>
		<comments>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 17:38:55 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=482</guid>
		<description><![CDATA[Just a &#8216;fun&#8217; little post today&#8230; Today I figured out that one of our HBA&#8217;s (Host Bus Adapter) in a VMware ESX host, did no longer have a correct connection to our SAN (Storage Area Network). After some troubleshooting, I figured out why: Guess fiber channel cables don&#8217;t like bending :-)]]></description>
			<content:encoded><![CDATA[<p>Just a &#8216;fun&#8217; little post today&#8230;<br />
Today I figured out that one of our HBA&#8217;s (Host Bus Adapter) in a VMware ESX host, did no longer have a correct connection to our SAN (Storage Area Network).<br />
After some troubleshooting, I figured out why:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/11/2010-11-24_16-02-51_550.jpg"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/2010-11-24_16-02-51_550-300x168.jpg" alt="" title="2010-11-24_16-02-51_550" width="300" height="168" class="alignnone size-medium wp-image-483" /></a></p>
<p>Guess fiber channel cables don&#8217;t like bending :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HP Insight Management Agent reports that unused VMware nics are down</title>
		<link>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/</link>
		<comments>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 14:14:28 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=341</guid>
		<description><![CDATA[When you don&#8217;t use certain nics on your VMware hosts, HP Insight Management Agents may report that the nics are down. Which is the natural behavior of these clients. The system management homepage on those hosts looks like this: To find out the vmnic number, simple click the error, the vmnic number is shown on [...]]]></description>
			<content:encoded><![CDATA[<p>When you don&#8217;t use certain nics on your VMware hosts, HP Insight Management Agents may report that the nics are down. Which is the natural behavior of these clients.<br />
The system management homepage on those hosts looks like this:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics1.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics1.png" alt="" title="vmware_nics1" width="403" height="177" class="alignnone size-full wp-image-342" /></a></p>
<p><span id="more-341"></span><br />
To find out the vmnic number, simple click the error, the vmnic number is shown on that page:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics2.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics2.png" alt="" title="vmware_nics2" width="725" height="126" class="alignnone size-full wp-image-343" /></a></p>
<p>To resolve this you simple have to put the nics into the &#8220;Down&#8221; state using &#8220;ifconfig&#8221;:</p>
<p><code>ifconfig vmnic3 down</code></p>
<p>To make this change more permanent (surviving reboots) you have to put the command in the file /etc/rc.local (this file is called once the host has been started)<br />
Here is an example rc.local disabling 2 nics:</p>
<p><code><br />
#!/bin/sh<br />
#<br />
# This script will be executed *after* all the other init scripts.<br />
# You can put your own initialization stuff in here if you don't<br />
# want to do the full Sys V style init stuff.</p>
<p>touch /var/lock/subsys/local<br />
ifconfig vmnic3 down<br />
ifconfig vmnic7 down<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extending Windows 2003 os disk using diskpart and VMware</title>
		<link>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/</link>
		<comments>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 20:07:58 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=216</guid>
		<description><![CDATA[I use this trick quite often for Windows 2003 machines (this is not needed on Windows 2008 machines, you can use diskpart directly here!) After time the OS disk grows out it&#8217;s free space, usually this happens due to Windows updates or logfiles. So, here&#8217;s how to extend an OS disk of a Windows 2003 [...]]]></description>
			<content:encoded><![CDATA[<p>I use this trick quite often for Windows 2003 machines (this is not needed on Windows 2008 machines, you can use diskpart directly here!)<br />
After time the OS disk grows out it&#8217;s free space, usually this happens due to Windows updates or logfiles.<br />
So, here&#8217;s how to extend an OS disk of a Windows 2003 machine using diskpart and VMware (ESX 2.0, vSphere, ESX3.5 anything will do):</p>
<p><span id="more-216"></span></p>
<ol>
<li>Shut down the virtual machine in question.</li>
<li>Connect the virtual machine OS disk to another virtual machine, this can be a running virtual machine (please note that you do need to reboot this machine after you are done):- Click edit settings on the running virtual machine.- Click on &#8220;Add&#8230;&#8221; to add hardware to the machine.<br />
- Select &#8220;Hard disk&#8221;<br />
- Select &#8220;Use an existing virtual disk&#8221;<br />
- Browse to the virtual disk.<br />
- Click &#8220;Next&#8221; and &#8220;Finish&#8221;</p>
<p>Your running virtual machine should now look like this:</p>
<p><img class="alignnone size-full wp-image-220" title="10-3-2010 20-44-19" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-44-19.png" alt="10-3-2010 20-44-19" width="373" height="321" /></p>
<p>Click &#8220;OK&#8221; to apply the settings.</li>
<li>Now go to edit settings again, and change the size of the virtual disk.
<p><img class="alignnone size-full wp-image-221" title="10-3-2010 20-55-36" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-55-36.png" alt="10-3-2010 20-55-36" width="317" height="99" />Click &#8220;OK&#8221; once again.</li>
<li>Now open the console of the running machine. And start a command prompt.</li>
<li>Type &#8220;diskpart&#8221;.Within diskpart, type &#8220;list disk&#8221; to display available disks, you should notice the disk with the free space:
<p><img class="alignnone size-full wp-image-222" title="10-3-2010 20-58-31" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-58-31.png" alt="10-3-2010 20-58-31" width="439" height="95" /></p>
<p>Now select that disk, using &#8220;select disk 2&#8243; (2 being the disk number offcourse..)<br />
After that, select the appropriate partition, using &#8220;select part 1&#8243; (1 being the partition number)<br />
<img class="alignnone size-full wp-image-223" title="10-3-2010 21-01-03" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-21-01-03.png" alt="10-3-2010 21-01-03" width="439" height="138" /></p>
<p>Now extend the partition using the &#8220;extend&#8221; command.</p>
<p><img class="alignnone size-full wp-image-224" title="10-3-2010 21-02-46" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-21-02-46.png" alt="10-3-2010 21-02-46" width="351" height="73" /></p>
<p>Hooray! :-)</li>
<li>Now shut down the virtual machine, and remove the added disk. After that you can power on the initial virtual machine.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere web access not working &#8211; The attempt to acquire a valid session ticket for  took longer than expected.</title>
		<link>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/</link>
		<comments>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 17:23:00 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=120</guid>
		<description><![CDATA[Today I wanted to give someone remote console access using vSphere web access. I granted him virtual machine user access, which should be sufficient. However after installing the component for remote console view. The session failed with the following error: The attempt to acquire a valid session ticket for &#60;virtual machine&#62; took longer than expected. [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to give someone remote console access using vSphere web access.<br />
I granted him virtual machine user access, which should be sufficient. However after installing the component for remote console view. The session failed with the following error:</p>
<p><span id="more-120"></span>The attempt to acquire a valid session ticket for &lt;virtual machine&gt; took longer than expected.</p>
<p><img class="alignnone size-full wp-image-121" title="VMware Web Console error" src="http://www.maartendamen.com/wp-content/uploads/2010/01/vmware_webconsole.png" alt="VMware Web Console error" width="535" height="261" /></p>
<p><em>Image 1: VMware error message.</em></p>
<p>The solution to this problem can be found here: <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013816">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013816</a></p>
<p>Creating a shortcut can be done in the first screen (Summary) in the Commands part.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vSphere snapshot overview script (with e-mail report)</title>
		<link>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/</link>
		<comments>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 11:33:48 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=28</guid>
		<description><![CDATA[I was looking for a way to e-mail an overview of all exisiting snapshots (on virtual machines) in our virtual environment. VMware provides an excellent powershell cmdlet pack (known as PowerCLI), you can download the latest version (as of today) here: http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html I used PowerCLI to write a script that does the following: Loop through [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to e-mail an overview of all exisiting snapshots (on virtual machines) in our virtual environment.<br />
VMware provides an excellent powershell cmdlet pack (known as PowerCLI), you can download the latest version (as of today) here: <a href="http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html">http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html</a></p>
<p>I used PowerCLI to write a script that does the following:</p>
<ul>
<li>Loop through all virtual machines to check if there a snapshots created for a specific virtual machine;</li>
<li>sum up all of the snapshots for a machine containing snapshots;</li>
<li>e-mail a report of the above.</li>
</ul>
<p>Here is the script:<br />
<span id="more-28"></span></p>
<pre class="brush: powershell; title: ; notranslate">
Add-PSSnapin -Name &quot;VMware.VimAutomation.Core&quot;

$VIServer = &quot;yourvirtualcenterserver.test.local&quot;
$VIUsername = &quot;DOMAIN\username&quot;
$VIPassword = &quot;password&quot;

Connect-VIServer -Server $VIServer -User $VIUsername -Password $VIPassword

$AllVirtualMachines = Get-VM

$SmtpClient = new-object system.net.mail.smtpClient
$MailMessage = New-Object system.net.mail.mailmessage 

$SmtpClient.Host = &quot;smtpserver.test.local&quot;
$MailMessage.from = &quot;notification@smtpserver.test.local&quot;
$MailMessage.To.add(&quot;address1@test.local&quot;)
$MailMessage.To.add(&quot;address2@test.local&quot;)
$MailMessage.Headers.Add(&quot;message-id&quot;, &quot;&lt;3BD50098E401463AA228377848493927-1&gt;&quot;)
$MailMessage.IsBodyHtml = 1

$MailMessage.Subject = &quot;VMware snapshot overview&quot;
$MailMessage.Body += &quot;&lt;FONT FACE='Arial, Helvetica, Geneva'&gt;&lt;h2&gt;VMware snapshot overview:&lt;/h2&gt;&lt;br&gt;&quot;

foreach ($VirtualMachine in $AllVirtualMachines)
{
	$AllSnapshots=Get-Snapshot -VM $VirtualMachine

	if ($AllSnapshots.count -gt 0)
	{
		$MailMessage.Body += &quot;&lt;b&gt;&quot; + $VirtualMachine + &quot;&lt;/b&gt;&lt;br&gt;&quot;
		foreach ($Snapshot in $AllSnapshots)
		{
			If ($Snapshot.ID -like &quot;VirtualMachineSnapshot-*&quot;)
			{
				$MailMessage.Body += $Snapshot.Created, $Snapshot.Name, $Snapshot.Description + &quot;&lt;br&gt;&quot;
			}
		}
		$MailMessage.Body += &quot;&lt;br&gt;&quot;
	}
}
$MailMessage.Body += &quot;&lt;/font&gt;&quot;
$SmtpClient.Send($MailMessage)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware vSphere default pathing policy</title>
		<link>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/</link>
		<comments>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:05:49 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[eva]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[pathing]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=7</guid>
		<description><![CDATA[I am currently building a new vSphere farm at my company. This also includes the storage part, which can become a load of work: First you have to fix up the physical cabling; next, you have to setup up the zoning; up next you have to present the virtual disks to the VMware hosts. Last [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently building a new vSphere farm at my company. This also includes the storage part, which can become a load of work:</p>
<ul>
<li>First you have to fix up the physical cabling;</li>
<li>next, you have to setup up the zoning;</li>
<li>up next you have to present the virtual disks to the VMware hosts.</li>
</ul>
<p>Last but not least you need to take care of pathing for your presented virtual disks. For our HP EVA SAN, vSphere defaults to the &#8220;Most Recently Used (VMware)&#8221; policy.<br />
In the past we used to manually load balance using fixed paths. <span id="more-7"></span>This was mainly because the round robin policy mechanism was still in an EXPERIMENTAL status.<br />
The round robin policy offers great advantages over the default MRU policy:</p>
<ul>
<li>The HP EVA offers ALUA (Asymmetrical Logical Unit Access). ALUA allows a LUN to be accessed via its primary path (via the owning Storage Processor) and via an asymmetrical path (via the not-owning Storage Processor) I/O to the not-owning Storage Processor or not-optimized path  comes with a performance penalty because the I/O has to be transmitted over the internal connection between the storage processors which does not have much bandwidth;</li>
<li>using ALUA in combination with Round Robin will load balance the I/O&#8217;s over the most optimized paths for that LUN;</li>
<li>the load is balanced between the two optimized paths rather then the most recently used path (as with the MRU policy).</li>
</ul>
<p>Setting the pathing policy for each individual LUN can become quite a job. Good thing there is a way to set the default pathing policy for new discovered LUN&#8217;s using &#8220;esxcli&#8221;</p>
<p><em>esxcli nmp satp setdefaultpsp -–psp VMW_PSP_RR –-satp &lt;Storage Array Type&gt;</em></p>
<p>To figure out the storage array type for your virtual disk, right click a LUN and select &#8220;Manage Paths&#8221; (the screenshot highlights the Storage Array Type.</p>
<p><img class="alignleft size-full wp-image-8" title="vmware_roundrobin" src="http://www.maartendamen.com/wp-content/uploads/2009/11/vmware_roundrobin.png" alt="vmware_roundrobin" width="726" height="231" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

