<?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>VCritical &#187; thin provisioning</title>
	<atom:link href="http://www.vcritical.com/tag/thin-provisioning/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Wed, 19 Oct 2011 22:08:59 +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>vSphere Thin-Provisioned Disk Performance</title>
		<link>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/</link>
		<comments>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 06:19:55 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1934</guid>
		<description><![CDATA[A new paper published by the VMware Performance Team shows that virtual disks using  vStorage Thin Provisioning perform nearly as well as fully allocated thick disks.  ]]></description>
			<content:encoded><![CDATA[<p>Thin disk provisioning is a fully-supported feature in vSphere 4 that can save tons of storage space on your SAN by allowing virtual disks to consume storage space <em>as needed</em> instead all at once.</p>
<p>Under the supervision of VMware vCenter Server, ESX 4 thin provisioning is safe and reliable even for production workloads thanks to<a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/"> advanced storage accounting and built-in monitoring</a>.  And even if the worst does happen &#8212; an unexpectedly full datastore &#8212; <a href="http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/">recovery is simple</a>.</p>
<p>Now that <em>you </em>are convinced that VMware vSphere thin provisioning has a place in your data center, you may be wondering about performance tradeoffs.</p>
<p><strong>It turns out that thin disks perform just about as well as thick disks.</strong></p>
<h2>New Performance Results</h2>
<p>In this brand-new <a href="http://www.vmware.com/pdf/vsp_4_thinprov_perf.pdf">VMware vStorage Thin Provisioning performance study</a>, VMware performance engineers compare thick and thin disk performance.  This must-read document covers several important topics, such as:</p>
<ul>
<li>I/O-intensive benchmarking with a 16-node ESX cluster</li>
<li>File copy benchmarking with 2 ESX hosts</li>
<li>Fragmentation impact</li>
<li>Thin provisioning affect on co-located thick disks</li>
</ul>
<p>Now, go forth and provision&#8230; thinly.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
<li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2008/11/vmware-update-manager-performance-and-practices/' rel='bookmark' title='VMware Update Manager Performance and Practices'>VMware Update Manager Performance and Practices</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/#respond">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/esx/" rel="tag">ESX</a>, <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/performance/" rel="tag">performance</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/thin-provisioning/" rel="tag">thin provisioning</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/">vSphere Thin-Provisioned Disk Performance</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy recovery from a full VMware ESX datastore</title>
		<link>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/</link>
		<comments>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 21:57:37 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Storage VMotion]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[VMFS]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1757</guid>
		<description><![CDATA[With VMware vSphere, ESX, and VMFS, running out of space on a datastore does not cause damage to virtual machines.  It is easy to recover without even a guest OS reboot.]]></description>
			<content:encoded><![CDATA[<p>This is the third article in a series on VMware vSphere thin-provisioned virtual disks.  Now that we&#8217;ve covered:</p>
<ul>
<li><a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/">Full accounting for all provisioned storage space and complete monitoring</a></li>
<li><a href="http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/">Automatic response to a nearly-full datastore through vCenter Alarms, PowerShell, and Storage VMotion</a></li>
</ul>
<p>You may be <em>nearly </em>convinced to start using thin provisioning, but still wondering&#8230;</p>
<h2>What happens if a datastore fills up?</h2>
<p>When a datastore runs out of space, thin-provisioned virtual disks can no longer dynamically grow to accommodate additional storage demand.  When VMware ESX detects this condition, <strong>virtual machines in need of additional storage are instantly paused</strong> to prevent guest operating systems from failing.  Conversely, VMs that that read and write to existing allocated storage blocks will continue running without issue &#8212; <strong>not all virtual machines will be paused</strong> just because a datastore is out of space.</p>
<p>If you ever find yourself in this situation, it&#8217;s not hard to fix.  Here is one simple approach, step-by-step:</p>
<ol>
<li>Free up some space by deleting or moving files &#8212; ISO images or powered-off VMs would be perfect</li>
<li>Resume one of the paused VMs</li>
<li>Use Storage VMotion to move the disks for that VM to another datastore</li>
<li>Resume the remaining VMs</li>
</ol>
<p><strong>Watch the procedure in action:</strong><br />
<embed src="http://www.youtube.com/v/4G8MEC14eKU&#038;hl=en&#038;fs=1&#038;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></p>
<p>Depending on the size and storage demand of each VM, additional migrations may be needed.  An alternative resolution would be to add additional space to the SAN LUN and grow the VMFS volume.</p>
<p><span id="more-1757"></span></p>
<h2>The Experiment</h2>
<p>To simulate a sudden storage demand by the thin-provisioned VMs in the above video, I simply copied a large file from a network share to each Windows Server 2003 VM simultaneously.</p>
<p>For the curious, below is a PowerShell script for the task.  Run it from anywhere &#8212; it uses Sysinternals psexec to remotely initiate a file copy on each VM from a network share.</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># VM naming convention combines this string with 2-digit number</span>
<span style="color: #800080;">$vmPrefix</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;VM2003e-&quot;</span>
&nbsp;
<span style="color: #008000;"># UNC path to a large file that will be copied into each VM</span>
<span style="color: #800080;">$iso</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;\\fileserver\ISO\large.iso&quot;</span>
&nbsp;
<span style="color: #008000;"># credentials to download above file from \\fileserver</span>
<span style="color: #800080;">$user</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;domain\username&quot;</span>
<span style="color: #800080;">$pass</span><span style="color: pink;">=</span><span style="color: #800000;">&quot;pa55word&quot;</span>
&nbsp;
<span style="color: #008000;"># pass this function a list of numbers</span>
<span style="color: #0000FF;">function</span> createVmList <span style="color: #000000;">&#40;</span><span style="color: #800080;">$series</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$vmList</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$id</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$series</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #800080;">$vmList</span> <span style="color: pink;">+=</span>  <span style="color: pink;">%</span><span style="color: #000000;">&#123;</span><span style="color: #800000;">&quot;$vmPrefix{0:00}&quot;</span> <span style="color: #FF0000;">-f</span> <span style="color: #800080;">$id</span><span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #800080;">$vmList</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># make sure Sysinternals psexec is in your path</span>
<span style="color: #0000FF;">function</span> psexecOnVm <span style="color: #000000;">&#40;</span><span style="color: #800080;">$cmd</span><span style="color: pink;">,</span> <span style="color: #800080;">$vmList</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$vmList</span> <span style="color: pink;">|</span> <span style="color: pink;">%</span> <span style="color: #000000;">&#123;</span><span style="color: #008080; font-weight: bold;">Invoke-Expression</span> <span style="color: #800000;">&quot;psexec.exe \\$_ -d -u $user -p $pass $cmd&quot;</span><span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
psexecOnVM <span style="color: #800000;">&quot;cmd /c copy /Y $iso c:\&quot;</span> <span style="color: #000000;">&#40;</span>createVMlist <span style="color: #000000;">&#40;</span><span style="color: #804000;">31</span>..<span style="color: #804000;">39</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></pre></div></div>

<h2>VMware ESX is Resilient</h2>
<p>You may have been surprised at how easy it is to recover from a full datastore &#8212; without so much as a guest OS reboot.  It&#8217;s a testament to the rock-solid architecture behind VMware ESX and VMFS.  No other virtualization platform comes close.  Try for yourself.  See what happens if a group of thin-provisioned Hyper-V virtual machines suddenly run out of storage &#8212; it&#8217;s not going to be pretty.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/' rel='bookmark' title='PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</a></li>
<li><a href='http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/' rel='bookmark' title='vSphere Thin-Provisioned Disk Performance'>vSphere Thin-Provisioned Disk Performance</a></li>
<li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/#respond">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/powershell/" rel="tag">PowerShell</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/storage-vmotion/" rel="tag">Storage VMotion</a>, <a href="http://www.vcritical.com/tag/technical/" rel="tag">Technical</a>, <a href="http://www.vcritical.com/tag/thin-provisioning/" rel="tag">thin provisioning</a>, <a href="http://www.vcritical.com/tag/video/" rel="tag">video</a>, <a href="http://www.vcritical.com/tag/vmfs/" rel="tag">VMFS</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/">Easy recovery from a full VMware ESX datastore</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>PowerShell Prevents Datastore Emergencies</title>
		<link>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/</link>
		<comments>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 10:30:03 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[Storage VMotion]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1713</guid>
		<description><![CDATA[When a datastore in your VMware vSphere environment is about to fill up, you can have vCenter automatically spring into action to prevent downtime by using Storage VMotion.]]></description>
			<content:encoded><![CDATA[<p>In my previous post on <a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/">VMware vSphere thin provisioning</a>, I pointed out the new datastore alarm feature.  You can take advantage of this feature to respond to a sudden storage demand and <strong>automatically take action before end users notice</strong>.</p>
<p>When triggered, vCenter Server alarm actions allow several options, including the ability to run an arbitrary command such as a VMware PowerCLI PowerShell script.  Please see <a href="http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html" target="_blank">Carter Shanklin&#8217;s in-depth article</a> for more details on how this works &#8212; note that he uses a different technique to launch the scripts.</p>
<h2>Storage VMotion to the Rescue</h2>
<p>When a datastore is about to run out of space, the fastest resolution may be to simply migrate virtual disks to another datastore.   VMware Storage VMotion provides that capability with zero downtime for VMs and no disruption to end users.  Fortunately, PowerCLI can perform this feat with ease, thanks to the Move-VM cmdlet.</p>
<p>Let&#8217;s take a look at a functional prototype PowerCLI PowerShell script:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Add-PSSnapin</span> VMware.Vimautomation.Core
Connect<span style="color: pink;">-</span>VIServer localhost
&nbsp;
<span style="color: #800080;">$vmToMove</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>vm <span style="color: pink;">-</span>Datastore <span style="color: #800080;">$env</span>:VMWARE_ALARM_TARGET_NAME <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> <span style="color: #008080; font-style: italic;">-first</span> <span style="color: #804000;">1</span>
&nbsp;
<span style="color: #800080;">$destDS</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>Datastore <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.FreeSpaceMB <span style="color: #FF0000;">-gt</span> <span style="color: #804000;">50000</span> <span style="color: #FF0000;">-and</span> <span style="color: #000080;">$_</span>.Accessible <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$true</span><span style="color: #000000;">&#125;</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">select-object</span> <span style="color: #008080; font-style: italic;">-first</span> <span style="color: #804000;">1</span>
&nbsp;
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$destDS</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	move<span style="color: pink;">-</span>vm <span style="color: pink;">-</span>VM <span style="color: #800080;">$vmToMove</span> <span style="color: pink;">-</span>Datastore <span style="color: #800080;">$destDS</span> <span style="color: pink;">-</span>RunAsync
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>This script is a proof-of-concept that is not ready for your production environment as it is &#8212; it just picks an arbitrary VM from the nearly-full datastore, finds another datastore with at least 50GB free, and moves the VM disks.  More comprehensive selection logic and error checking are needed for a critical task like this.<span id="more-1713"></span></p>
<p>Save your script on the vCenter Server system somewhere, such as C:\scripts\datastore.ps1.</p>
<h2>Create the Datastore Alarm</h2>
<p>Create a new alarm at an appropriate level in the vCenter hierarchy, such as a datacenter, and configure like this:</p>
<p><img class="alignnone size-full wp-image-1717" title="Datastore Alarm" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-general.png" alt="Datastore Alarm" width="404" height="253" /></p>
<p>On the Triggers tab, add a &#8220;Datastore Disk Usage (%)&#8221; trigger to alert at a reasonable percentage &#8212; I opted for 93.</p>
<h2>Run PowerShell Directly from vCenter Server</h2>
<p>For whatever reason, PowerShell.exe does not do well when launched directly by another process &#8212; it tends to hang instead of exiting when it is finished.  As a workaround, it <em>can</em> be launched from cmd.exe as long as it receives something on standard input.  To do all that, the necessary code looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;">&quot;c:\windows\system32\cmd.exe&quot; &quot;/c <span style="color: #b1b100; font-weight: bold;">echo</span>.<span style="color: #33cc33;">|</span>powershell.exe -nologo -noprofile -noninteractive c:\scripts\datastore.ps1&quot;</pre></div></div>

<p>For an alternate approach, take a look at the intermediate batch file solution described by Carter Shanklin in the link above.</p>
<p>On the Actions tab, add a &#8220;Run a command&#8221; action and supply the appropriate command.  You also need to decide whether to run one time or repeat the action.</p>
<p><a href="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-run-command.png"><img class="alignnone size-medium wp-image-1718" title="Datastore alarm running a PowerShell script" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-run-command-300x191.png" alt="Datastore alarm running a PowerShell script" width="300" height="191" /></a></p>
<h2>Action!</h2>
<p>To test the alarm, either fill up the datastore or temporarily lower the alarm threshold.  When the alarm fires, a Storage VMotion should be seen in the vSphere Client:</p>
<p><img class="alignnone size-full wp-image-1721" title="Storage VMotion in progress" src="http://www.vcritical.com/wp-content/uploads/2009/09/svmotion-inprogress.png" alt="Storage VMotion in progress" width="381" height="39" /></p>
<p>Note the &#8220;Initiated by&#8221; column &#8212; that&#8217;s the machine account for this vCenter Server.  The PowerCLI script is kicked off from vpxd.exe, which is running as LocalSystem.</p>
<p>Additional information is available by looking at the Tasks &amp; Events tab for the datastore.  Here you can see a sample sequence of events, newest on top:</p>
<p><img class="alignnone size-full wp-image-1723" title="Datastore emergency events" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-emergency-events.png" alt="Datastore emergency events" width="500" height="418" /></p>
<h2>The Last Resort</h2>
<p>This automated Storage VMotion recovery alarm is a safety valve that could help you avoid suddenly running out of space on a datastore.  It should not take the place of more proactive storage management, but it sure beats VM downtime.</p>
<p style="padding-left: 30px;">In case you are wondering: No, you can&#8217;t do the same thing with Hyper-V because Hyper-V does not have zero-downtime Storage VMotion.  Just another reason to choose VMware vSphere &#8212; as if you needed <em>another</em> reason.</p>
<p><strong>Have you used vCenter alarms to automate any recovery processes in your environment?<br />
</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2010/08/register-a-lun-full-of-vms-with-powercli/' rel='bookmark' title='Register a LUN full of VMs with PowerCLI'>Register a LUN full of VMs with PowerCLI</a></li>
<li><a href='http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/' rel='bookmark' title='Responsible Thin Provisioning in VMware vSphere'>Responsible Thin Provisioning in VMware vSphere</a></li>
<li><a href='http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/' rel='bookmark' title='VMware vSphere 4 has a Snapshot Alarm'>VMware vSphere 4 has a Snapshot Alarm</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/#respond">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/powercli/" rel="tag">PowerCLI</a>, <a href="http://www.vcritical.com/tag/powershell/" rel="tag">PowerShell</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/storage-vmotion/" rel="tag">Storage VMotion</a>, <a href="http://www.vcritical.com/tag/technical/" rel="tag">Technical</a>, <a href="http://www.vcritical.com/tag/thin-provisioning/" rel="tag">thin provisioning</a>, <a href="http://www.vcritical.com/tag/vcenter/" rel="tag">vCenter</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/">PowerShell Prevents Datastore Emergencies</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Responsible Thin Provisioning in VMware vSphere</title>
		<link>http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/</link>
		<comments>http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:49:04 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[PASS]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[thin provisioning]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=1684</guid>
		<description><![CDATA[VMware vSphere 4 offers thin provisioned virtual disks backed by management that enables safe use in a production environment thanks to advanced accounting of all provisioned space.]]></description>
			<content:encoded><![CDATA[<p>A cost-saving feature introduced in VMware vSphere 4 is <strong>fully supported</strong> <a href="http://www.vmware.com/products/vstorage-thin-provisioning/overview.html" target="_blank">thin-provisioned virtual disks</a>. Thin-provisioning decreases demand for SAN storage space by permitting virtual disks to consume just the space they actually use &#8212; and grow as needed &#8212; instead of pre-allocating all space up front.</p>
<p>What&#8217;s new is not necessarily the <em>technology</em> &#8212; it&#8217;s the <a href="http://www.youtube.com/watch?v=FRZh-mzchnM&amp;NR=1" target="_blank"><em>management</em></a>.  In fact, veteran VMware ESX admins have been creating thin provisioned virtual disks for years &#8212; for controlled scenarios &#8212; by way of the <strong>vmkfstools</strong> command.</p>
<p>Before vSphere and ESX 4, however, thin disks came with risk &#8212; there was no simple way of accounting for the overcommitted storage on each LUN.  Even with multiple gigabytes of free space, a small gang of thin-provisioned virtual machines could quickly quickly grow to exceed datastore capacity during a sudden demand spike.</p>
<h2>Complete Storage Accounting</h2>
<p>Now in vSphere 4 there is a new element in the capacity section of the datastore summary tab that shows total provisioned space &#8212; the maximum potential growth of all virtual machines if thin provisioned disks were fully utilized:</p>
<p><img class="alignnone size-full wp-image-1686" title="Datastore summary tab shows committed capacity" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-summary-tab-capacity.png" alt="Datastore summary tab shows committed capacity" width="350" height="127" /></p>
<p>Virtual machines with snapshots have the potential of consuming <strong>even more</strong> datastore space, so vSphere accounts for this condition, too. <span id="more-1684"></span> Take a look at this VM Summary tab, where the total provisioned storage includes:</p>
<ul>
<li>Virtual hard disk (40GB)</li>
<li>Snapshot (another 40GB potential, worst-case)</li>
<li>VM swap file (1GB &#8212; sized according to RAM in theVM)</li>
</ul>
<p><img class="alignnone size-full wp-image-1692" title="Storage resources for VM with snapshot" src="http://www.vcritical.com/wp-content/uploads/2009/09/vm-resources-with-snapshot-poweredon.png" alt="Storage resources for VM with snapshot" width="374" height="207" /></p>
<p>As you can see, a VM with a 40GB virtual disk can actually consume up to 81GB of space on your SAN because of a forgotten snapshot!  Use the  <a href="http://www.vcritical.com/2009/06/vmware-vsphere-4-has-a-snapshot-alarm/" target="_self">snapshot alarm</a> to stay in control.  And don&#8217;t forget that VMware vSphere snapshots are perfectly <a href="http://www.vcritical.com/2009/04/hyper-v-snapshots-not-for-production/">suitable for production</a>.</p>
<h2>New Datastore Alarms</h2>
<p>New alarms in vSphere prevent out-of-space surprises.  Administrators can monitor not only the free space on a datastore, but also the percentage overallocated &#8212; making it easy to adhere to policies concerning thin provisioning aggressiveness in your environment.</p>
<p><img class="alignnone size-full wp-image-1699" title="Datastore alarm for disk overallocation" src="http://www.vcritical.com/wp-content/uploads/2009/09/datastore-disk-overalloc-alarm.png" alt="Datastore alarm for disk overallocation" width="397" height="137" /></p>
<h2>Flexible Virtual Disk Re-configuration</h2>
<p>When creating a new VM, opting for thin-provisioned disks is as easy as checking a box.  If you change your mind later, you don&#8217;t have to start over &#8212; during a Storage VMotion operation, administrators can opt to change the VM disk format on the fly (see below).  It is also possible to inflate thin disks into thick via a new menu in the Datastore Browser.</p>
<p><img class="alignnone size-full wp-image-1687" title="VM disk format selection during Storage VMotion" src="http://www.vcritical.com/wp-content/uploads/2009/09/vm-disk-format-selection.png" alt="VM disk format selection during Storage VMotion" width="512" height="256" /></p>
<h2>Danger!</h2>
<p>You&#8217;ve probably heard the now-famous quote by Tom Bittman from Gartner:</p>
<blockquote><p>Virtualization without good management is more dangerous than not using virtualization in the first place.</p></blockquote>
<p>That goes <em>double </em>for thin-provisioned virtual disks.  Without comprehensive accounting and monitoring in place, your virtual infrastructure may be heading for disaster.  <strong>This level of insight is only available with VMware vSphere 4 &#8212; and it&#8217;s built right into the platform.</strong></p>
<p>What about Microsoft virtualization?  Hyper-V R2 thin provisioning &#8212; known as &#8220;dynamic disks&#8221; &#8212; is not a <a href="http://blogs.technet.com/mghazai/archive/2009/09/04/hyper-v-dynamic-expanding-or-fixed-size-vhd.aspx" target="_blank">best practice</a>.  Perhaps due to the lack of accounting and monitoring of storage overcommitment &#8212; especially critical now with Cluster Shared Volumes and multiple VMs per LUN.</p>
<p><strong>Are <em>you</em> using vSphere thin provisioning?</strong></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/11/vsphere-thin-provisioned-disk-performance/' rel='bookmark' title='vSphere Thin-Provisioned Disk Performance'>vSphere Thin-Provisioned Disk Performance</a></li>
<li><a href='http://www.vcritical.com/2009/10/easy-recovery-from-a-full-vmware-esx-datastore/' rel='bookmark' title='Easy recovery from a full VMware ESX datastore'>Easy recovery from a full VMware ESX datastore</a></li>
<li><a href='http://www.vcritical.com/2009/01/finding-thin-provisioned-virtual-disks-with-powershell/' rel='bookmark' title='Finding thin-provisioned virtual disks with PowerShell'>Finding thin-provisioned virtual disks with PowerShell</a></li>
<li><a href='http://www.vcritical.com/2009/10/powershell-prevents-datastore-emergencies/' rel='bookmark' title='PowerShell Prevents Datastore Emergencies'>PowerShell Prevents Datastore Emergencies</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/#respond">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/pass/" rel="tag">PASS</a>, <a href="http://www.vcritical.com/tag/snapshots/" rel="tag">snapshots</a>, <a href="http://www.vcritical.com/tag/storage/" rel="tag">storage</a>, <a href="http://www.vcritical.com/tag/thin-provisioning/" rel="tag">thin provisioning</a>, <a href="http://www.vcritical.com/tag/vsphere/" rel="tag">vSphere</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/">Responsible Thin Provisioning in VMware vSphere</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2009 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/10/responsible-thin-provisioning-in-vmware-vsphere/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

