<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: PowerCLI: Check Partition Alignment (Windows VMs Only)</title>
	<atom:link href="http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/feed/" rel="self" type="application/rss+xml" />
	<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/</link>
	<description>VMware, Linux, Scripting...</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:00:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Michael Ryom</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-15279</link>
		<dc:creator><![CDATA[Michael Ryom]]></dc:creator>
		<pubDate>Tue, 08 Feb 2011 09:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-15279</guid>
		<description><![CDATA[Inspiret by your script I made one which takes the raid systems block size into account, and check if the disk is aligned to that... Fx windows 2008 has a disk offset of 1048576 which in the above scripts would show the disk as unaligned:

$vms = get-vm
$winvms = $vmsview &#124; where {$_.Config.GuestId -match &quot;win&quot;}

Foreach($winvm in $winvms){$raidblocksize = 64; $wmivm = get-wmiobject -class &quot;Win32_DiskPartition&quot; -namespace &quot;root\CIMV2&quot; -ComputerName $winvm.name; if($?){Foreach($obj in $wmivm){$a = $obj.StartingOffset/$obj.BlockSize/$raidblocksize; if($a % 2 -eq &quot;0&quot;){$a = &quot;$True&quot;}else{$a = &quot;$false&quot;}$winvm.name, $obj.Name, $a}}}]]></description>
		<content:encoded><![CDATA[<p>Inspiret by your script I made one which takes the raid systems block size into account, and check if the disk is aligned to that&#8230; Fx windows 2008 has a disk offset of 1048576 which in the above scripts would show the disk as unaligned:</p>
<p>$vms = get-vm<br />
$winvms = $vmsview | where {$_.Config.GuestId -match &#8220;win&#8221;}</p>
<p>Foreach($winvm in $winvms){$raidblocksize = 64; $wmivm = get-wmiobject -class &#8220;Win32_DiskPartition&#8221; -namespace &#8220;root\CIMV2&#8243; -ComputerName $winvm.name; if($?){Foreach($obj in $wmivm){$a = $obj.StartingOffset/$obj.BlockSize/$raidblocksize; if($a % 2 -eq &#8220;0&#8243;){$a = &#8220;$True&#8221;}else{$a = &#8220;$false&#8221;}$winvm.name, $obj.Name, $a}}}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wayne</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-14821</link>
		<dc:creator><![CDATA[Wayne]]></dc:creator>
		<pubDate>Wed, 10 Nov 2010 19:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-14821</guid>
		<description><![CDATA[No, it should be divisible by 8192. See the $.01 best practices guide:
http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.0.pdf

&quot;The alignment of your file system partitions can impact performance. VMware makes the following
recommendations for VMFS partitions:
* Like other disk-based file systems, VMFS suffers a penalty when the partition is unaligned. Using the
vSphere Client to create VMFS partitions avoids this problem since it automatically aligns the
partitions along the 64KB boundary.
* To manually align your VMFS partitions, check your storage vendor’s recommendations for the
partition starting block. If your storage vendor makes no specific recommendation, use a starting
block that is a multiple of 8KB.&quot;]]></description>
		<content:encoded><![CDATA[<p>No, it should be divisible by 8192. See the $.01 best practices guide:<br />
<a href="http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.0.pdf" rel="nofollow">http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.0.pdf</a></p>
<p>&#8220;The alignment of your file system partitions can impact performance. VMware makes the following<br />
recommendations for VMFS partitions:<br />
* Like other disk-based file systems, VMFS suffers a penalty when the partition is unaligned. Using the<br />
vSphere Client to create VMFS partitions avoids this problem since it automatically aligns the<br />
partitions along the 64KB boundary.<br />
* To manually align your VMFS partitions, check your storage vendor’s recommendations for the<br />
partition starting block. If your storage vendor makes no specific recommendation, use a starting<br />
block that is a multiple of 8KB.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel M (@dmVI)</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-12551</link>
		<dc:creator><![CDATA[Daniel M (@dmVI)]]></dc:creator>
		<pubDate>Wed, 02 Jun 2010 23:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-12551</guid>
		<description><![CDATA[Do you know if the WMI call captures info for Dynamic Disks correctly?  According to an MS Technet article, WMI calls done locally (using the wmic command) don&#039;t return Dynamic Disk information &quot;reliably.&quot;  Not sure if the WMI call done remotely (leveraging PowerCLI as per your article) is any different.  As per the MS article:

Important: Neither the output of the wmic command listed earlier nor any other tool designed only for basic disks reliably reports starting partition offsets of Windows dynamic disks.

Article located at URL http://msdn.microsoft.com/en-us/library/dd758814.aspx]]></description>
		<content:encoded><![CDATA[<p>Do you know if the WMI call captures info for Dynamic Disks correctly?  According to an MS Technet article, WMI calls done locally (using the wmic command) don&#8217;t return Dynamic Disk information &#8220;reliably.&#8221;  Not sure if the WMI call done remotely (leveraging PowerCLI as per your article) is any different.  As per the MS article:</p>
<p>Important: Neither the output of the wmic command listed earlier nor any other tool designed only for basic disks reliably reports starting partition offsets of Windows dynamic disks.</p>
<p>Article located at URL <a href="http://msdn.microsoft.com/en-us/library/dd758814.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd758814.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Feigenson</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-11491</link>
		<dc:creator><![CDATA[Alex Feigenson]]></dc:creator>
		<pubDate>Tue, 04 May 2010 07:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-11491</guid>
		<description><![CDATA[Thanks for the script, I modified it slightly and posted it on my blog - just a quick elseif for another alignment size. 

I spent a good awhile reading your whole site, and I learned a great deal about powercli - many thanks!]]></description>
		<content:encoded><![CDATA[<p>Thanks for the script, I modified it slightly and posted it on my blog &#8211; just a quick elseif for another alignment size. </p>
<p>I spent a good awhile reading your whole site, and I learned a great deal about powercli &#8211; many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PowerCLI - Windows VM Partition Alignment &#124; Alex Feigenson&#039;s Blog</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-11490</link>
		<dc:creator><![CDATA[PowerCLI - Windows VM Partition Alignment &#124; Alex Feigenson&#039;s Blog]]></dc:creator>
		<pubDate>Tue, 04 May 2010 07:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-11490</guid>
		<description><![CDATA[[...] to keep my blog from becoming an wasteland, I bring you a modified version of a script I found here that enumerates virtual machines and then does a WMI call against each one to determine if the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] to keep my blog from becoming an wasteland, I bring you a modified version of a script I found here that enumerates virtual machines and then does a WMI call against each one to determine if the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NotoriousBDG</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-10828</link>
		<dc:creator><![CDATA[NotoriousBDG]]></dc:creator>
		<pubDate>Mon, 25 Jan 2010 02:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-10828</guid>
		<description><![CDATA[The starting offset does not have to be 65536, but it should be divisible by 65536.  If you change your if statement to use mod, it will be more accurate.

if (($Partition.StartingOffset % 65536) -eq 0) {
  $Details.VMName    = $objItem.SystemName
  $Details.Partition = $objItem.Name
  $Details.Status    = &quot;Partition aligned&quot;
}]]></description>
		<content:encoded><![CDATA[<p>The starting offset does not have to be 65536, but it should be divisible by 65536.  If you change your if statement to use mod, it will be more accurate.</p>
<p>if (($Partition.StartingOffset % 65536) -eq 0) {<br />
  $Details.VMName    = $objItem.SystemName<br />
  $Details.Partition = $objItem.Name<br />
  $Details.Status    = &#8220;Partition aligned&#8221;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtualization Short Take #34 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-10827</link>
		<dc:creator><![CDATA[Virtualization Short Take #34 - blog.scottlowe.org - The weblog of an IT pro specializing in virtualization, storage, and servers]]></dc:creator>
		<pubDate>Mon, 25 Jan 2010 00:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-10827</guid>
		<description><![CDATA[[...] up is Arne Fokkema&#8217;s PowerCLI script to check Windows VM partition alignment. As one commenter pointed out, the fact that the starting offset isn&#8217;t 65536&#8212;which is [...]]]></description>
		<content:encoded><![CDATA[<p>[...] up is Arne Fokkema&#8217;s PowerCLI script to check Windows VM partition alignment. As one commenter pointed out, the fact that the starting offset isn&#8217;t 65536&#8212;which is [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-10732</link>
		<dc:creator><![CDATA[Vincent]]></dc:creator>
		<pubDate>Thu, 17 Dec 2009 14:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-10732</guid>
		<description><![CDATA[The fact that a partion doesn&#039;t start at offset 65536 doesn&#039;t mean it is not aligned. Windows 2008 leaves the fist megabyte of the disk unused. This is still an aligned situation although your script will say it&#039;s not. To really make sure a disk is aligned use the instruction from the following article: http://msdn.microsoft.com/en-us/library/dd758814.aspx

In short: Issue the following command on the client: 
  wmic partition get BlockSize, StartingOffset, Name, Index
and then
  fsutil fsinfo ntfsinfo c:
you can use any other drive letter ofcourse. 

Divide the StartingOffset from the first command with the &quot;Bytes Per Cluster&quot; from the second command. If the outcome is a integer then the disk is aligned.

This should all be doable with scripting of course.]]></description>
		<content:encoded><![CDATA[<p>The fact that a partion doesn&#8217;t start at offset 65536 doesn&#8217;t mean it is not aligned. Windows 2008 leaves the fist megabyte of the disk unused. This is still an aligned situation although your script will say it&#8217;s not. To really make sure a disk is aligned use the instruction from the following article: <a href="http://msdn.microsoft.com/en-us/library/dd758814.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd758814.aspx</a></p>
<p>In short: Issue the following command on the client:<br />
  wmic partition get BlockSize, StartingOffset, Name, Index<br />
and then<br />
  fsutil fsinfo ntfsinfo c:<br />
you can use any other drive letter ofcourse. </p>
<p>Divide the StartingOffset from the first command with the &#8220;Bytes Per Cluster&#8221; from the second command. If the outcome is a integer then the disk is aligned.</p>
<p>This should all be doable with scripting of course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-10730</link>
		<dc:creator><![CDATA[uberVU - social comments]]></dc:creator>
		<pubDate>Wed, 16 Dec 2009 06:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-10730</guid>
		<description><![CDATA[&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;

This post was mentioned on Twitter by afokkema: New blog post: http://tinyurl.com/yd7syxx - PowerCLI: Check Partition Alignment (Windows VMs Only)...]]></description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p>
<p>This post was mentioned on Twitter by afokkema: New blog post: <a href="http://tinyurl.com/yd7syxx" rel="nofollow">http://tinyurl.com/yd7syxx</a> &#8211; PowerCLI: Check Partition Alignment (Windows VMs Only)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets die vermelden PowerCLI: Check Partition Alignment (Windows VMs Only) « ICT-Freak.nl -- Topsy.com</title>
		<link>http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/comment-page-1/#comment-10729</link>
		<dc:creator><![CDATA[Tweets die vermelden PowerCLI: Check Partition Alignment (Windows VMs Only) « ICT-Freak.nl -- Topsy.com]]></dc:creator>
		<pubDate>Tue, 15 Dec 2009 23:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://ictfreak.wordpress.com/2009/12/15/powercli-check-partition-alignment-windows-vms-only/#comment-10729</guid>
		<description><![CDATA[[...] Dit blogartikel was vermeld op Twitter door afokkema, vSphere PowerCLI. vSphere PowerCLI heeft gezegd: Partition alignment is important for max performance, here&#039;s a PowerCLI script that will check your Windows guests http://is.gd/5p8XK [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Dit blogartikel was vermeld op Twitter door afokkema, vSphere PowerCLI. vSphere PowerCLI heeft gezegd: Partition alignment is important for max performance, here&#39;s a PowerCLI script that will check your Windows guests <a href="http://is.gd/5p8XK" rel="nofollow">http://is.gd/5p8XK</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

