<?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>Kraft Kennedy &#124; Technology Blog &#187; VSphere</title>
	<atom:link href="http://blogs.kraftkennedy.com/index.php/tag/vsphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.kraftkennedy.com</link>
	<description>Trends and insight into legal technology, infrastructure and strategic thinking.</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:44:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Manage EqualLogic SANs directly from the vSphere Client</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 22:38:35 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[EqualLogic]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1357</guid>
		<description><![CDATA[Quite a while back I saw that Eric Sloof had figured out how to add his Twitter feed directly into the VI Client.  I thought it was clever but didn&#8217;t really give it much more thought than that.
Today I decided to take that concept and extend it to systems that you might manage alongside your [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F07%2F12%2Fmanage-equallogic-sans-directly-from-the-vsphere-client%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F07%2F12%2Fmanage-equallogic-sans-directly-from-the-vsphere-client%2F" height="61" width="51" /></a></div><p>Quite a while back I saw that Eric Sloof had figured out how to <a href="http://www.ntpro.nl/blog/archives/995-Extending-the-VI-Client-with-the-Twitter-Plug-in.html" target="_blank">add his Twitter feed</a> directly into the VI Client.  I thought it was clever but didn&#8217;t really give it much more thought than that.</p>
<p>Today I decided to take that concept and extend it to systems that you might manage alongside your VI3/vSphere environment.  Storage management seemed like the obvious first choice.<span id="more-1357"></span></p>
<p>I created an XML file called EqualLogic.xml in C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Plugins\SAN Management.  The contents of the file are as follows (you would replace the &lt;url&gt; section with the IP or DNS name of your SAN):</p>
<p>&lt;scriptConfiguration version=&#8221;1.0.0&#8243;&gt;<br />
&lt;key&gt;EqualLogic&lt;/key&gt;<br />
&lt;description&gt;EqualLogic SAN Management&lt;/description&gt;<br />
&lt;view parent=&#8221;Inventory.HostSystem&#8221;&gt;<br />
&lt;title locale=&#8221;en&#8221;&gt;EqualLogic&lt;/title&gt;<br />
&lt;url&gt;http://10.1.97.30&lt;/url&gt;<br />
&lt;/view&gt;<br />
&lt;/scriptConfiguration&gt;</p>
<p>This gave me a nice way to manage my SAN from the same interface that I use to manage my vSphere environment.  It is simply opening a browser window within the vSphere Client and letting me manage the SAN.</p>
<p><img class="alignnone size-full wp-image-1364" title="EqualLogic Management" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/07/EQLMGMT2.jpg" alt="EqualLogic Management" width="582" height="189" /></p>
<p>The code above will make the EqualLogic tab visible only when clicking on an ESX/ESXi host.  If you wanted to extend that to other objects, you can simply adjust the &#8220;&lt;view parent=&#8221; section.  For example, to also make this available at the cluster level you would include the following:</p>
<p>&lt;view parent=&#8221;Inventory.Cluster&#8221;&gt;<br />
&lt;title locale=&#8221;en&#8221;&gt;EqualLogic&lt;/title&gt;<br />
&lt;url&gt;http://10.1.97.30/&lt;/url&gt;<br />
&lt;/view&gt;</p>
<p>Similarly you could add Inventory.Global, Inventory.VirtualMachine, Inventory.Datacenter, etc.</p>
<p>This is a really simple way to make it easy to manage any web interface (not just EqualLogic) from within the vSphere/VI Client.  It&#8217;s not a new trick and has been out there for a while but I had never used it for this until today.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/07/12/manage-equallogic-sans-directly-from-the-vsphere-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware KB Clarifies Page Sharing on Nehalem Processors</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/#comments</comments>
		<pubDate>Thu, 27 May 2010 19:31:21 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1269</guid>
		<description><![CDATA[For quite a while there has been confusion over how VMware&#8217;s Transparent Page Sharing (TPS) feature works with vSphere 4 running on Nehalem (or other modern) processors. Many people were noticing that it appeared that TPS was not actually working anymore and looked for ways to fix the problem.
In my recent post on the effects [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F27%2Fvmware-kb-clarifies-page-sharing-on-nehalem-processors%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F27%2Fvmware-kb-clarifies-page-sharing-on-nehalem-processors%2F" height="61" width="51" /></a></div><p>For quite a while there has been confusion over how VMware&#8217;s Transparent Page Sharing (TPS) feature works with vSphere 4 running on Nehalem (or other modern) processors. Many people were noticing that it appeared that TPS was not actually working anymore and looked for ways to fix the problem.</p>
<p>In my <a href="http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/" target="_blank">recent post</a> on the effects of ASLR in vSphere the comments turned into a discussion about TPS on modern processors. And there are countless posts about this issue on the VMTN forums where folks are looking for a fix. In reality nothing is broken and there is no need to fix the issue.<span id="more-1269"></span></p>
<p>VMware has <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1020524" target="_blank">published a KB article</a> that gives more information on TPS with Nehalem processors and why it appears TPS isn&#8217;t working (this affects modern AMD processors also). The short version is that TPS uses small pages (4K), and Nehalem processors utilize large pages (2MB). The ESX/ESXi host keeps track of what pages could be shared, and once memory is over-comitted it breaks the large pages into small pages and begins sharing memory.</p>
<p>Many people think this is a bug in ESX that needs to be fixed. This likely started because when vSphere 4 was released there <em><strong>was</strong></em> a bug around memory usage on ESX hosts with Nehalem processors. In reality the bug was that vCenter was triggering high memory usage alarms for virtual machines running in this configuration. Nothing was actually wrong but because the host was using all of the assigned memory for the VM, vCenter was incorrectly triggering the alarm. That behavior has since been fixed <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013206" target="_blank">with a patch </a>and is no longer an issue.</p>
<p>So what does this actually look like? When a VM is powered up on an ESX host with Nehalem processors, the amount of host memory in use will not drop down as the VM uses less memory or becomes idle. Those of us that have been using ESX for a long time likely found this scenario disturbing.</p>
<p>From vSphere Client (red highlighted section shows guest taking all of the 2GB assigned memory, yet memory usage in the guest is very low):</p>
<p><img class="alignnone size-full wp-image-1273" title="High host memory usage" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/MemUsageBeforeTPS.jpg" alt="High host memory usage" width="599" height="251" /></p>
<p>From esxtop (red highlighted section shows almost no memory being shared with page sharing):</p>
<p><img class="alignnone size-full wp-image-1277" title="View from esxtop" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/EsxtopNoTPS.jpg" alt="View from esxtop" width="608" height="371" /></p>
<p>The above screenshots show a host that is <em>under-committed </em>on memory and so no page sharing is occurring.  If the host gets over-commited page sharing kicks in automatically by breaking up large pages into small pages.  You can force the use of small pages on all guests all the time by changing the value of the advanced option Mem.AllocGuestLargePage to 0.  I don&#8217;t really see any reason to do this &#8211; remember that TPS isn&#8217;t broken and what you see in the above screenshots is normal and expected.</p>
<p>Once host memory is over-committed (or if you use the advanced option), memory sharing kicks in and things look like they normally do when page sharing is taking place.</p>
<p>From the vSphere Client (red highlighted section shows guest taking very little of the assigned 2GB memory as page sharing has kicked in):</p>
<p><img class="alignnone size-full wp-image-1279" title="Memory usage with TPS" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/MemUsageAfterTPS.jpg" alt="Memory usage with TPS" width="681" height="241" /></p>
<p>From esxtop (red highlighted sections show a large amount of shared memory and the host is over-commited on memory by 48%):</p>
<p><img class="alignnone size-full wp-image-1281" title="esxtop with TPS" src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/05/EsxtopWithTPS.jpg" alt="esxtop with TPS" width="649" height="394" /></p>
<p>A quick note on the esxtop screenshot above &#8211; it was taken from a VDI environment where all workloads are identical so that explains the high amount of shared pages.  It was also overcommitted more than normal as it was taken during host maintenance.</p>
<p>I hope this clears up some of the confusion around TPS on modern Intel/AMD processors.  In short, don&#8217;t get hung up on the fact that TPS isn&#8217;t kicking in like it did with older processors.  Nothing is broken, TPS is working as expected, and it will kick in when you actually need it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/05/27/vmware-kb-clarifies-page-sharing-on-nehalem-processors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Round Robin MPIO as default for vSphere 4/EqualLogic SANs</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/#comments</comments>
		<pubDate>Fri, 07 May 2010 15:18:28 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[EqualLogic]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1189</guid>
		<description><![CDATA[When VMware released vSphere 4 last year, one of the changes they made was a completely re-written software iSCSI initiator.  This was done to optimize performance which is great considering how popular iSCSI SANs have become. They also gave the ability to use Round Robin MPIO (mutlipathing) in the software initiator in addition to [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F07%2Fset-round-robin-mpio-as-default-for-vsphere-4equallogic-sans%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F05%2F07%2Fset-round-robin-mpio-as-default-for-vsphere-4equallogic-sans%2F" height="61" width="51" /></a></div><p>When VMware released vSphere 4 last year, one of the changes they made was a completely re-written software iSCSI initiator.  This was done to optimize performance which is great considering how popular iSCSI SANs have become. They also gave the ability to use Round Robin MPIO (mutlipathing) in the software initiator in addition to Fixed Path and MRU which were previously available.</p>
<p>I&#8217;m working on a vSphere implementation using Dell EqualLogic SANs and wanted to configure Round Robin on all of my datastores.  Dell has a <a href="http://www.equallogic.com/resourcecenter/assetview.aspx?id=8453" target="_blank">great whitepaper</a> on how to set this up, but unfortunately the document fails to mention one key thing: this doesn&#8217;t change the default path selection plugin (PSP) from Fixed to Round Robin.    That means that you&#8217;ll have to set the multipathing policy to Round Robin on all of your existing datastores and will have to remember to do that on all future datastores.  When you&#8217;ve got multiple ESX hosts with lots of  datastores this can quickly become a pain.</p>
<p><span id="more-1189"></span>Luckily there is a way to force the default multipathing policy to Round Robin.  The following commands can be used to change the default PSP to Round Robin as well as configure round robin specifically for the EqualLogic provider.  These commands can be entered at the Service Console or via the <a href="http://www.vmware.com/support/developer/vcli/">vSphere CLI 4.0</a>:</p>
<blockquote><p>esxcli nmp satp setdefaultpsp &#8211;satp VMW_SATP_DEFAULT_AA  &#8211;psp VMW_PSP_RR<br />
esxcli nmp satp setdefaultpsp &#8211;satp VMW_SATP_EQL  &#8211;psp VMW_PSP_RR<br />
esxcli corestorage claimrule load<br />
esxcli corestorage claimrule run</p></blockquote>
<p><em>Note that &#8220;satp&#8221; and &#8220;psp&#8221; are preceded by two dashes and not a single dash as it appears in this blog post.</em></p>
<p>Once you enter those commands (no rebooting required) any volume you add, either new or existing, will use Round Robin MPIO by default.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/05/07/set-round-robin-mpio-as-default-for-vsphere-4equallogic-sans/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Does ASLR really hurt memory sharing in VMware vSphere?</title>
		<link>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 15:47:10 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=1142</guid>
		<description><![CDATA[I&#8217;ve seen a lot of talk lately about VMware&#8217;s Transparent Page Sharing (TPS) and how it is affected by ASLR in Windows 2008/Windows 7.  I wanted to see if there was any real measurable reduction in shared memory when using ASLR vs. when it was disabled.  First, let&#8217;s talk about what TPS and [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F04%2F26%2Feffect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2010%2F04%2F26%2Feffect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere%2F" height="61" width="51" /></a></div><p>I&#8217;ve seen a lot of talk lately about VMware&#8217;s Transparent Page Sharing (TPS) and how it is affected by ASLR in Windows 2008/Windows 7.  I wanted to see if there was any real measurable reduction in shared memory when using ASLR vs. when it was disabled.  First, let&#8217;s talk about what TPS and ASLR actually are and what the acronyms mean.<br />
<span id="more-1142"></span><br />
Transparent Page Sharing is a technology built into ESX/ESXi that looks for identical guest memory pages and writes them to memory just once.  Guests can then share those identical pages rather than each writing the same page to memory.  TPS is a great feature that allows for memory overcommittment, especially on hosts that run many of the same type of workload.</p>
<p>Address Space Layout Randomization (ASLR) is a security feature that randomizes the position of data in memory, making it more difficult for attackers to predict where data can be found while in memory.  This feature has been enabled in Windows since Windows Vista, and other operating system such as Linux and MacOS implement this in some form as well.</p>
<p>Since ASLR randomizes information in memory it makes sense that it would be more difficult for TPS to find identical memory pages and thus memory sharing would be reduced.  But just how much of a difference does it make?  I decided to try and find out.  Here are the specs from my test environment:</p>
<p>Server: HP DL385 G1 (AMD Opteron 275)<br />
ESX: 4.0.0 build 244038<br />
Guest OS: Windows Server 2008 R2<br />
Guest RAM: 2.5GB</p>
<p>All guests were cloned from the same template and have the same software installed.  On guests TESTSRV1 and TESTSRV3, I left the default settings. On TESTSRV2 and TESTSRV4, I disabled ASLR using the following regkey:</p>
<p><em>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]<br />
&#8220;MoveImages&#8221;=dword:00000000</em></p>
<p>In all of my testing, including leaving VMs idle and also running memory tests, I found <strong>no measurable difference</strong> in the amount of memory shared with TPS.  I also looked at esxtop to see how much memory was actually being shared and I saw virtually no difference whatsoever between VMs that had ASLR enabled and those that had it disabled.</p>
<p><strong>Host Memory Usage:</strong><br />
<img src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/04/HostMem.jpg" alt="Host Memory Usage" title="Host Memory Usage" width="539" height="116" class="alignnone size-full wp-image-1158" /></p>
<p><strong>esxtop statistics:</strong><br />
<img src="http://blogs.kraftkennedy.com/wp-content/uploads/2010/04/esxtop.png" alt="esxtop" title="esxtop" width="501" height="102" class="alignnone size-full wp-image-1168" /></p>
<p>The SHRD and SHRDSVD columns represent how much memory is being shared with TPS and the total memory savings.  Clearly there is quite a bit of memory sharing going with or without ASLR enabled. </p>
<p>Why would this be the case since it makes sense that TPS would be hurt by ASLR?  ASLR requires applications to &#8220;opt-in&#8221; to have their memory randomized, and I suspect that much of Windows 2008 R2 is not opted in.  Perhaps applications will come out in the future that are written to take advantage of ASLR, but at the moment that doesn&#8217;t appear to be the case.</p>
<p>Of course this is by no means a definitive test as it wasn&#8217;t run with production systems and real users running real applications.  That said, I think it shows that ASLR does not dramatically reduce the amount of memory shared with TPS.  I did also look at production systems left at the default settings (ASLR enabled) and saw similar memory sharing gains.  I&#8217;m curious if others have seen similar results in their environments, so drop me a line if you&#8217;ve done any similar testing.</p>
<p>More info:<br />
<br />
<a href="http://en.wikipedia.org/wiki/Address_space_layout_randomization" target="_blank">What is ASLR (Wikipedia)</a><br />
<a href="http://communities.vmware.com/docs/DOC-9279/version/2;jsessionid=AD58140E2334A04A619AD1DC3D07F43F" target="_blank">Interpreting esxtop statistics</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2010/04/26/effect-of-aslr-on-transparent-page-sharing-in-vmware-vsphere/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Comparing VMware Fault Tolerance to Microsoft Failover Clusters</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 20:09:32 +0000</pubDate>
		<dc:creator>Matt Liebowitz</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[Failover Cluster]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.kraftkennedy.com/?p=416</guid>
		<description><![CDATA[With the release of VMware vSphere 4, VMware has released a very powerful management tool called Fault Tolerance (FT).  At a basic level, FT allows you to keep two virtual machines (a Primary VM and a Secondary VM) running in lockstep on two different physical ESX hosts.  If one of the ESX hosts were to [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F10%2F01%2Fcomparing-vmware-fault-tolerance-to-microsoft-failover-clusters%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F10%2F01%2Fcomparing-vmware-fault-tolerance-to-microsoft-failover-clusters%2F" height="61" width="51" /></a></div><p>With the release of VMware vSphere 4, VMware has released a very powerful management tool called <a href="http://www.vmware.com/products/fault-tolerance/" target="_blank">Fault Tolerance</a> (FT).  At a basic level, FT allows you to keep two virtual machines (a Primary VM and a Secondary VM) running in lockstep on two different physical ESX hosts.  If one of the ESX hosts were to experience a hardware failure, the VM protected with FT would remain running on the second host without any downtime.  This can greatly reduce downtime due to hardware failures and provide increased service levels for important applications.</p>
<p>FT is often compared to Microsoft Windows Failover Clusters, formerly Microsoft Cluster Server (MSCS), and in fact many have talked about how FT can replace Microsoft clustering altogether.  Rather than jump to conclusions like this, it is important to understand the use cases for both technologies.  In addition, there are several limitations to FT that need to be considered. Here are some important points to remember about FT:</p>
<p><span id="more-416"></span></p>
<p>1) FT only supports a single vCPU, limiting its usefulness for some applications (this will probably change in the future).</p>
<p>2) FT is meant to protect against <strong>host level failures</strong> only, such as physical server failures.</p>
<p>3) FT keeps protected virtual machines in complete lockstep, meaning whatever happens on the Primary VM also happens on the Secondary VM.  Why is this important to understand?  Guess what happens when the Primary VM bluescreens.</p>
<p>4) FT VMs share the same virtual disk file, meaning a storage level failure affects both.</p>
<p>Microsoft Failover Clustering, on the other hand, can help protect against <strong>application and operating system</strong> level failures in addition to physical server failures.  Clusters also make it easier to patch the underlying operating system with minimal downtime.  Finally, FT has a limited set of hardware that it is compatible with (see <a href="http://www.vmware.com/download/shared_utilities.html" target="_blank">this link</a> to check if your system is compatible) so that may limit its usefulness for some organizations using older hardware.</p>
<p>All of that said, FT is a great feature and definitely has a place in your virtual infrastructure.  Best of all it is available in <a href="http://www.vmware.com/products/vsphere/mid-size-and-enterprise-business/buy.html" target="_blank">vSphere Advanced</a> and above, making it an affordable feature that many organizations may already own.  So what are good use cases for FT over Microsoft clusters?  Here are some thoughts:</p>
<ul>
<li>Provide hardware level protection to applications that don&#8217;t natively support any clustering functionality.  There are many examples here &#8211; web servers, application servers, etc.</li>
<li>Provide hardware level protection to applications where clustering support may be available but is either expensive or requires a special license.  Document management servers, indexers, etc., may make good candidates here.</li>
<li>Provide extra protection against hardware failures for critical applications during specific business periods where downtime simply cannot be tolerated, such as accounting servers during end of month processing.</li>
<li>Your specific virtual infrastructure configuration precludes you from using Microsoft clusters due to <a href="http://www.windowsservercatalog.com/svvp.aspx?svvppage=svvpwizard.htm" target="_blank">Microsoft</a> or <a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_mscs.pdf" target="_blank">VMware</a> supportability.</li>
</ul>
<p>VMware FT is a great new feature that can help provide extra uptime to virtual machines in your environment.  It is available in most versions of vSphere and should definitely be considered as part of a virtual infrastructure design.  Just make sure you understand the use cases for it and don&#8217;t rule out Microsoft clusters where they are appropriate.</p>
<p>See also:</p>
<p><a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013428" target="_blank">FT Frequently Asked Questions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/10/01/comparing-vmware-fault-tolerance-to-microsoft-failover-clusters/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automating VMware ESX snapshot notification</title>
		<link>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/</link>
		<comments>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:01:38 +0000</pubDate>
		<dc:creator>David Carlson</dc:creator>
				<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSphere]]></category>

		<guid isPermaLink="false">http://blogs.research.kkl.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/</guid>
		<description><![CDATA[Discovering that your ESX hosts have been unknowingly creating open snapshots can be an alarming, not to mention dangerous, event.
Third party storage and backup vendors frequently call the vCenter API to issue a snapshot creation of running virtual machines before they grab a copy of the virtual machine&#8217;s hard disk &#8211; VMDK files &#8211; which [...]]]></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%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F05%2F06%2Fautomating-vmware-esx-snapshot-notification%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblogs.kraftkennedy.com%2Findex.php%2F2009%2F05%2F06%2Fautomating-vmware-esx-snapshot-notification%2F" height="61" width="51" /></a></div><p>Discovering that your ESX hosts have been unknowingly creating open snapshots can be an alarming, not to mention dangerous, event.</p>
<p>Third party storage and backup vendors frequently call the <a href="http://www.vmware.com/products/vi/vc/">vCenter</a> API to issue a snapshot creation of running virtual machines before they grab a copy of the virtual machine&#8217;s hard disk &#8211; VMDK files &#8211; which are located on the VMware VMFS datastore. This process is typically followed by an immediate deletion of the snapshot file which will merge the changes back into the initial VMDK file. Problems can occur when this process does not complete successfully leaving you with an &#8220;open&#8221; snapshot. This problem is compounded when it occurs multiple times against the same guest.</p>
<p>Each open snapshot can significantly degrade virtual machine performance and also contribute to poor storage utilization. Unless you monitor each of your virtual machines on a daily basis, you could quickly be left with an uncomfortable situation on your hands.</p>
<p><span id="more-106"></span></p>
<p>The script below can be easily customized for your environment and provide regular email reports for open snapshots.</p>
<p style="margin-left: 72pt"><span style="color:gray">#Initialize VI Toolkit<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">Add-PSSnapin VMware.VimAutomation.Core<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Configure VC credentials<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$Username = &#8217;service_account_name&#8217;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$password = &#8216;PASSWORD&#8217;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$server = &#8216;vcenter_host.domain.local&#8217;<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Setup email client<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient = New-Object system.net.mail.smtpClient<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage = New-Object system.net.mail.mailmessage<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient.host = &#8220;smtp_host.domain.local&#8221;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.from = &#8220;virtualcenter@domain.com&#8221;<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.To.add(&#8221;admin@domain.com&#8221;)<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.IsBodyHtml = 1<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.Subject = &#8220;List of current VMware Snapshots&#8221;<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray">#Get snapshots from all servers<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">Connect-VIServer $server -User $Username -Password $password<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$Snaps = Get-VM | Get-Snapshot | Select VM,Name,Created<br />
</span></p>
<p style="margin-left: 72pt"> </p>
<p style="margin-left: 72pt"><span style="color:gray"># Send email<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$MailMessage.body = $Snaps | ConvertTo-Html<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:gray">$SmtpClient.Send($MailMessage)<br />
</span></p>
<p>To execute the script, you will need to install Powershell and the <a href="http://www.vmware.com/sdk/vitk_win/index.html">VI Toolkit</a><span style="color:#993366">. </span>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.kraftkennedy.com/index.php/2009/05/06/automating-vmware-esx-snapshot-notification/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
