<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Brian Atkinson's Blog</title>
    <link>http://communities.vmware.com/blogs/vmroyale</link>
    <description>Findings from the VMTN forums and the field...</description>
    <pubDate>Mon, 11 May 2009 17:05:06 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-05-11T17:05:06Z</dc:date>
    <item>
      <title>Thin Provisioning Realities and Math</title>
      <link>http://communities.vmware.com/blogs/vmroyale/2009/05/14/thin-provisioning-realities-and-math</link>
      <description>I have a customer that deployed NetApp's NFS as the storage for their VI3 infrastructure. After the implementation, there was some general confusion about thin provisioning and understanding how it works in the VMware VI3 environment. In researching these issues, here is what was found: &lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Cloning thin provisioned disks will create thick disks.&lt;/li&gt;
&lt;li&gt;Move/Copy (SVMotion, cold migration w/move storage option) operations will convert thin disks to thick, including NFS volume to NFS volume operations.&lt;/li&gt;
&lt;li&gt;Disks created in vCenter and via VMware Converter are created "thin" by default. &lt;/li&gt;
&lt;li&gt;Running defrag utilities inside a Windows virtual machine will cause the associated thin disk(s) to grow to varying degrees.&lt;/li&gt;
&lt;li&gt;When a thin provisioned disk grows, a SCSI reservation takes place.&lt;/li&gt;
&lt;li&gt;If performance is the primary concern for a particular virtual machine, thin provisioned disks should not be used. &lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Bottom Line: Without additional work and/or operational procedures, cloning, storage VMotion and even cold migrations will convert thin disks to thick disks. vSphere addresses these issues by supporting thin provisioning, but in the meantime - check out &lt;a class="jive-link-external" href="http://blog.tpv.dk/?p=3"&gt;Kent's blog&lt;/a&gt; for a great workaround for converting thick disks to thin.&lt;br /&gt;
&lt;br /&gt;
Now that the operational limitations and the realities of thin provisioned disks were understood, there also was a need to determine true disk allocation and usage.  &lt;br /&gt;
&lt;br /&gt;
To discover what the totals are for all allocated VMDK files, run the following command from the /vmfs/volumes directory:&lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;find . -name '.snapshot' -prune -o -name &amp;quot;*-flat.vmdk&amp;quot; -exec ls -lh {} \;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This command will exclude the hidden NetApp snapshot directory and only return the "flat" vmdk files in the listing.  The output will contain this block of information:&lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;20G&lt;/td&gt;
&lt;td&gt;./01234a56-bc78d901/Win2003Std32SP1/Win2003Std32SP1-flat.vmdk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20G&lt;/td&gt;
&lt;td&gt;./0ab1cd23-45efg67h/Win2003Std32SP2/Win2003Std32SP2-flat.vmdk&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
&lt;br /&gt;
Adding the sizes up will show that 40Gb of space has been allocated.  &lt;br /&gt;
&lt;br /&gt;
The next step is to discover what the total disk used value actually is.  To do this, run the following command from the /vmfs/volumes directory: &lt;br /&gt;
&lt;pre class="jive-pre"&gt;&lt;code class="jive-code jive-plain"&gt;find . -name '.snapshot' -prune -o -name &amp;quot;*-flat.vmdk&amp;quot; -exec du -sh {} \;
&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
This command will exclude the hidden NetApp snapshot directory and only return the "flat" vmdk files in the listing.  The output will appear as:&lt;br /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;3.5G&lt;/td&gt;
&lt;td&gt;./01234a56-bc78d901/Win2003Std32SP1/Win2003Std32SP1-flat.vmdk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3.7G&lt;/td&gt;
&lt;td&gt;./0ab1cd23-45efg67h/Win2003Std32SP2/Win2003Std32SP2-flat.vmdk&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
&lt;br /&gt;
Adding the sizes up will show that 7.2Gb is actually being used on disk. These numbers can be verified by viewing the free space value of the datastores in the VMware Infrastructure Client, NetApp FilerView or NetApp System Manager application.&lt;br /&gt;
&lt;br /&gt;
Dividing the combined values returned from the "du" command by the combined values returned from the "ls" command will give the total percentage of disk space in use.  In the example above, this value works out to 18% or a savings of 82%.  The customer was actually seeing a savings of 51% in their production environment, and this is just by using thin provisioning.  A-SIS, or deduplication, will be implemented soon, and it will be interesting to see what the disk usage numbers change to then.&lt;br /&gt;
&lt;br /&gt;
Thanks for reading!</description>
      <category domain="http://communities.vmware.com/blogs/vmroyale/tags">vi3</category>
      <category domain="http://communities.vmware.com/blogs/vmroyale/tags">esx</category>
      <category domain="http://communities.vmware.com/blogs/vmroyale/tags">nfs</category>
      <pubDate>Thu, 14 May 2009 15:27:38 GMT</pubDate>
      <author>vmroyale</author>
      <guid>http://communities.vmware.com/blogs/vmroyale/2009/05/14/thin-provisioning-realities-and-math</guid>
      <dc:date>2009-05-14T15:27:38Z</dc:date>
      <clearspace:dateToText>10 months, 3 days ago</clearspace:dateToText>
      <wfw:comment>http://communities.vmware.com/blogs/vmroyale/comment/thin-provisioning-realities-and-math</wfw:comment>
      <wfw:commentRss>http://communities.vmware.com/blogs/vmroyale/feeds/comments?blogPostID=3074</wfw:commentRss>
    </item>
  </channel>
</rss>

