<?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>VMtoday &#187; ntfs</title> <atom:link href="http://vmtoday.com/tag/ntfs/feed/" rel="self" type="application/rss+xml" /><link>http://vmtoday.com</link> <description>VMware News, Views, &#38; How-To&#039;s from vExpert Josh Townsend</description> <lastBuildDate>Wed, 08 Feb 2012 20:33:54 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Storage Basics &#8211; Part VII: Storage Alignment</title><link>http://vmtoday.com/2010/06/storage-basics-part-vii-storage-alignment/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=storage-basics-part-vii-storage-alignment</link> <comments>http://vmtoday.com/2010/06/storage-basics-part-vii-storage-alignment/#comments</comments> <pubDate>Wed, 23 Jun 2010 13:32:35 +0000</pubDate> <dc:creator>Joshua Townsend</dc:creator> <category><![CDATA[Storage Basics]]></category> <category><![CDATA[VMware]]></category> <category><![CDATA[alignment]]></category> <category><![CDATA[disk]]></category> <category><![CDATA[IOPS]]></category> <category><![CDATA[ntfs]]></category> <category><![CDATA[performance]]></category> <category><![CDATA[SAN]]></category> <category><![CDATA[sql]]></category> <category><![CDATA[Storage]]></category> <category><![CDATA[throughput]]></category> <category><![CDATA[VMDK]]></category><guid
isPermaLink="false">http://vmtoday.com/?p=494</guid> <description><![CDATA[Storage alignment, or the lack of alignment, is not a new issue and is not unique to VMware or virtualization in general.  However, the effects of misaligned storage can be more greatly felt in shared, oversubscribed or high I/O environments.  In this article I explain what storage alignment is, how to tell if you are already aligned, and if not - how to fix storage misalignment.  Tools, references, and best practices for storage alignment are included.]]></description> <content:encoded><![CDATA[<p></p><p>At the risk of beating a dead horse, it&#8217;s time to resurrect my Storage Basics series.  I&#8217;ve recently had some great feedback on the series and figured I should round out a few of the concepts before I wrap it up.  I want to cover a topic often discussed amongst virtualization professionals, but one I often find general practitioners and server admins not understanding: storage alignment.  Storage alignment, or the lack of alignment, is not a new issue and is not unique to VMware or virtualization in general.  However, the effects of misaligned storage can be more greatly felt in terms of reduced performance and strain on a storage system in shared, oversubscribed or high I/O environments.  Many others in the virtualization and storage communities have already covered partition alignment (see <a
title="Aligning Your VM's Virtual Hard Disks" href="http://www.yellow-bricks.com/2010/04/08/aligning-your-vms-virtual-harddisks/" target="_blank">Duncan Epping</a>, <a
title="Raising Awareness Around the Mishalignment of Data" href="http://blogs.netapp.com/virtualstorageguy/2010/04/raising-awareness-around-the-misalignment-of-data.html" target="_blank">Vaughn Stewart</a>, and most recently <a
title="So – why all the fuss about Alignment?" href="http://virtualgeek.typepad.com/virtual_geek/2010/06/so-why-all-the-fuss-about-alignment.html" target="_blank">Chad Sakac</a>), but I feel it is an important enough topic for me to re-hash as part of this series.</p><h2>What is Storage Alignment?</h2><p>Let&#8217;s start with a quick overview of what storage alignment means.  Quite simply, storage alignment refers to the positioning (starting offset) of the various pieces of a systems storage components &#8211; the physical disk sectors or array&#8217;s chunks, the VMware File System (VMFS) in a VMware environment, and the guest file system&#8217;s clusters within a partition &#8211; in relation to the layer directly under the element in question.  A quick graphic often makes quick work of explaining this (I often whiteboard this concept for colleagues and clients):</p><p><a
href="http://cloudfront.vmtoday.com/wp-content/uploads/2010/06/partition-alignment.png" rel="lightbox[494]"><img
class="size-full wp-image-548 alignnone" title="partition alignment conceptual diagram" src="http://cloudfront.vmtoday.com/wp-content/uploads/2010/06/partition-alignment.png" alt="partition alignment conceptual diagram" width="508" height="237" /></a></p><p>As you can see, the starting offset of the VMFS partition does not correspond to the physical segmentation of the underlying disks (in this case, the chunks on a SAN &#8211; but could be conceptually replaced with the sectors of a single disk).  Furthermore, the clusters (or blocks) of the guest VM are not aligned to the VMFS partition nor to the underlying storage.  For traditional (physical) systems or VMware RDM&#8217;s, the VMFS layer could be abstracted, but the result would be the same &#8211; the clusters of a partition would be misaligned to the underlying disk.</p><h2>What Does it Mean?</h2><p>Quite simply, misaligned storage (both VMFS partitions and Guest File Systems) can lead to poor performance under certain conditions.  How badly performance is impacted depends on the degree of I/O strain your server and storage are under, the caching mechanisms in your environment, and the architecture of your SAN.  Again, a visual can help explain how misaligned storage can hurt you. For simplicity let&#8217;s leave out the VMFS layer as we consider the following diagram (pardon my hasty Visio visualization):</p><p><a
href="http://cloudfront.vmtoday.com/wp-content/uploads/2010/06/read_impact_of_alignmnet.png" rel="lightbox[494]"><img
class="alignnone size-medium wp-image-554" title="read_impact_of_alignmnet" src="http://cloudfront.vmtoday.com/wp-content/uploads/2010/06/read_impact_of_alignmnet-300x76.png" alt="" width="300" height="76" /></a></p><p>What we see is that the target data in a tiny 16kb read request spans two 64kb chunks on our storage array.  Any reads of that piece of data will result in twice the amount of data as would be minimally necessary being transferred to the host&#8217;s storage stack.  The net effect is an increase in the work the storage array must do &#8211; gobbling up <a
title="Storage Basics – Part II: IOPS" href="http://vmtoday.com/2009/12/storage-basics-part-ii-iops/">IOPS </a>that would otherwise be available for the real work of reading data, reducing throughput on the <a
title="Storage Basics - Part IV: Interface" href="http://vmtoday.com/2010/01/storage-basics-part-iv-interface/">interface</a>, and messing with <a
title="Storage Basics – Part V: Controllers, Cache and Coalescing" href="http://vmtoday.com/2010/03/storage-basics-part-v-controllers-cache-and-coalescing/">cache </a>algorithms and dedupe mechanisms on some arrays.  In short, misaligned storage is an efficiency killer.  Now add in the VMFS layer back in and you&#8217;ll see how things get  complicated.</p><p>If (and we&#8217;re talking a big IF here) every bit of data you wanted to read spanned a chunk or sector boundary, you could experience half the expected performance due to misalignment.  In reality, depending on your <a
title="Storage Basics - Part VI: Storage Workload Characterization" href="http://vmtoday.com/2010/04/storage-basics-part-vi-storage-workload-characterization/">workload </a>and storage technology your performance increase from properly aligning your storage will probably be somewhere between 10-30%.</p><h2>Want to dig deeper?</h2><p>There have been some great resources published on this issue over the past few years on storage alignment.  Major vendors have all begun pushing information on the problem &#8211; here are some of the best that I have found:</p><p><strong>Microsoft </strong>has a Knowledge Base article (<a
title="Disk performance may be slower than expected when you use multiple=" target="_blank">http://support.microsoft.com/kb/929491</a>) that describes the problem and symptoms of misaligned partitions, how to determine if your partition is aligned, and the use of diskpart to create aligned partitions.</p><p><strong>Microsoft </strong>also has an in-depth article on MSDN, including some performance numbers at <a
title="Disk Partition Alignment Best Practices for SQL Server" href="http://msdn.microsoft.com/en-us/library/dd758814.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd758814.aspx</a>.  Also check out Jimmy May&#8217;s series Partition (Sector) alignment for SQL Server here: <a
title="Disk Partition Alignment (Sector Alignment) for SQL Server: Part 1: Slide Deck" href="http://blogs.msdn.com/b/jimmymay/archive/2008/10/14/disk-partition-alignment-for-sql-server-slide-deck.aspx" target="_blank">http://blogs.msdn.com/b/jimmymay/archive/2008/10/14/disk-partition-alignment-for-sql-server-slide-deck.aspx</a>.  One of the best descriptions of the complexities of the problem can be found in Jimmy&#8217;s blog series.</p><p><strong>VMware </strong>has an article here: <a
title="VMware ESX 3 Partition Alignment" href="http://www.vmware.com/pdf/esx3_partition_align.pdf" target="_blank">http://www.vmware.com/pdf/esx3_partition_align.pdf</a>.  Be aware that this article is for Virtual Infrastructure 3, not vSphere 4.0.  Some of the information is now a bit dated.</p><p><strong>Netapp </strong>has a few documents to check out: <a
title="NetApp and VMware Virtual Infrastructure 3 Storage Best Practices" href="http://media.netapp.com/documents/tr-3428.pdf" target="_blank">http://media.netapp.com/documents/tr-3428.pdf</a> (VI3), and <a
title="NetApp and VMware vSphere Storage Best Practices" href="http://media.netapp.com/documents/tr-3749.pdf" target="_blank">http://media.netapp.com/documents/tr-3749.pdf</a> (vSphere)</p><p><strong>EMC </strong>covers alignment in their TechBooks for <a
title="Using EMC Clariion Storage with VMware vSphere and VMware Infrastructure" href="http://www.emc.com/collateral/software/solution-overview/h2197-vmware-esx-clariion-stor-syst-ldv.pdf">Clariion</a>, <a
title="Using EMC Celerra Storage with VMware vSphere and VMware Infrastructure" href="http://www.emc.com/collateral/hardware/technical-documentation/h5536-vmware-esx-srvr-using-celerra-stor-sys-wp.pdf" target="_blank">Celerra</a>, and <a
title="Using EMC Symmetrix Storage with VMware vSphere and VMware Infrastructure" href="http://www.emc.com/collateral/hardware/solution-overview/h2529-vmware-esx-svr-w-symmetrix-wp-ldv.pdf">Symmetrix</a>.</p><h2>Tools to Align Partitions:</h2><p>Ok &#8211; so you&#8217;ve bought into this whole partition alignment thing as being a real issue.  How to you fix it?  Here are some tools:</p><ol><li>MSInfo32.exe, wmic, and dmdiag will show you misaligned partitions on Windows machines (check the Microsoft links above for usage info).</li><li><a
title="An updated version of the Disk Partition tool for Windows Server 2003 is available" href="http://support.microsoft.com/kb/923076" target="_blank">Diskpart.exe</a> (or diskpar.exe on versions of Windows previous to 2003) creates aligned partitions on Windows systems.  Diskpart cannot be used to realign a previously created partition, only to create new correctly aligned partitions.</li><li><a
title="mbrscan/mbralign" href="http://blogs.netapp.com/storage_nuts_n_bolts/2009/01/mbrscanmbralign.html" target="_blank">MBRScan/MBRAlign</a> from NetApp can report on and realign existing virtual disks on a VMware ESX server.  Also a nifty PowerShell script from NetApp to find if your partitions are aligned: <a
title="Data ONTAP PowerShell Toolkit - About Disk Alignment" href="http://communities.netapp.com/docs/DOC-6175">http://communities.netapp.com/docs/DOC-6175</a></li><li><a
title="vOptimizer" href="http://vizioncore.com/product/voptimizer-pro">vOptimizer </a>from Vizioncore can report on and realign existing virtual disks.</li><li><a
title="GParted Partition Editor" href="http://gparted.sourceforge.net/">GParted</a> can be used to create aligned partitions on both Windows and Linux machines, and to realign some existing partitions.</li><li>VMware vCenter &#8211; VMFS datastores created using vCenter are aligned automatically. Note &#8211; Guest VMDK&#8217;s are not aligned automatically by vCenter &#8211; you must manually create aligned partitions on your VMDK&#8217;s or use a Guest OS that creates properly aligned partitions (Windows 2008 and later).</li></ol><h2>Best Practices:</h2><p>Before I wrap this installment up, here are some best practices for storage alignment in your environment:</p><ul><li>Create aligned partitions in your VMware templates. Do it once, do it right &#8211; every machine you deploy from the template will be aligned.</li><li>Use caution with tools like Symantec Ghost.  Ghost can take images of aligned partitions and misalign them when laying down on a new system.</li><li>Use caution when performing P2V&#8217;s using VMware vCenter Converter &#8211; it does not align guest disks on import.  You might consider using Converter to perform a P2V of the system disk only, then create new VMDK&#8217;s on the converted guest.  Use Diskpart, gparted, or another tool to create aligned partitions on the new VMDK&#8217;s and finally copy the data over to the newly virtualized server using a tool like Robocopy, <a
title="RichCopy Utility" href="http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx" target="_blank">RichCopy</a>, or rsync.</li><li>SSD&#8217;s are particularly sensitive to misalignment, leading to poor performance and excessive wear.</li><li>Local VMFS volumes created by the ESX installer are not aligned.  If you are using an installer-created local VMFS for anything where performance matters, you might consider re-creating it through vCenter.</li><li>Watch out when attaching a data disk from an older VM to a new VM.  For example, you are upgrading your SQL servers to Windows 2008 R2 from 2003.  You decide to do a side-by-side upgrade, using the detach/attach method.  You install (or better yet, deploy from template) a new Windows 2008 R2 VM, detach your databases from the old server, move your SQL data and log virtual disks from your 2003 VM to the new VM and attach the SQL DB&#8217;s on the new server.  Those old VMDK&#8217;s may be misaligned!  Consider using Robocopy, RichCopy or rsync to ensure an aligned disk.</li><li>Check your storage vendors best practices for your particular environment (OS, workload, SAN, etc.).</li><li>There is some debate on whether or not it is advised to align your OS partitions.  There is no clear-cut answer on this as it depends so much on your  environment and particular needs.  For help in deciding if you should align your Guest OS drives, see the comments in the blogs by <a
title="Aligning Your VM's Virtual Hard Disks" href="http://www.yellow-bricks.com/2010/04/08/aligning-your-vms-virtual-harddisks/" target="_blank">Duncan Epping</a>, <a
title="Raising Awareness Around  the Mishalignment of Data" href="http://blogs.netapp.com/virtualstorageguy/2010/04/raising-awareness-around-the-misalignment-of-data.html" target="_blank">Vaughn Stewart</a>, and <a
title="So –  why all the fuss about Alignment?" href="http://virtualgeek.typepad.com/virtual_geek/2010/06/so-why-all-the-fuss-about-alignment.html" target="_blank">Chad Sakac</a>.</li><li>While working the <a
title="Washington DC VMware User Group" href="http://dcvmug.com" target="_blank">VMware User Group</a> booth at the Washington, DC Virtualization Forum 2010 I had a user ask me if rules and procedures for alignment on <a
title="Are you ready for 4k sector drives?" href="http://www.zdnet.com/blog/storage/are-you-ready-for-4k-sector-drives/731" target="_blank">4k sector disks</a> are different. I forgot to research it until just now, so I honestly don&#8217;t know (please comment if you do know!).  Check with your storage vendor if this is an issue for you.</li><li>Finally, you can&#8217;t realign partitions using tools like mbralign or vOptimizer in ESXi -Aaaron Delp explains the  problem here: <a
title="My 1 Issue with VMware ESXi  Today" href="http://blog.aarondelp.com/2010/06/my-1-issue-with-vmware-esxi-today.html" target="_blank">http://blog.aarondelp.com/2010/06/my-1-issue-with-vmware-esxi-today.html</a>.</li></ul><p>I hope this is helpful for you in understanding the problem of storage alignment and how it can impact your environment.  Comments or questions are welcomed!</p><div
class="shr-publisher-494"></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div
class='shareaholic-like-buttonset' style='float:none;height:30px;'><a
class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fvmtoday.com%2F2010%2F06%2Fstorage-basics-part-vii-storage-alignment%2F' data-shr_title='Storage+Basics+-+Part+VII%3A+Storage+Alignment'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fvmtoday.com%2F2010%2F06%2Fstorage-basics-part-vii-storage-alignment%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fvmtoday.com%2F2010%2F06%2Fstorage-basics-part-vii-storage-alignment%2F' data-shr_title='Storage+Basics+-+Part+VII%3A+Storage+Alignment'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div>]]></content:encoded> <wfw:commentRss>http://vmtoday.com/2010/06/storage-basics-part-vii-storage-alignment/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 6/14 queries in 0.084 seconds using disk: basic
Object Caching 461/462 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cloudfront.vmtoday.com

Served from: vmtoday.com @ 2012-02-08 18:15:41 -->
