Saturday, November 3, 2012

How to determine file system alignment within Windows

File system alignments are important in a virtual environment.  If a partition within a virtual machine is not aligned correctly, additional load can be placed on the storage array.  Windows 2008 R2 by default should use the correct alignment parameters, but older Windows versions may not.  To check the alignment, launch a command prompt with administrative credentials and use:

wmic partition get BlockSize, StartingOffset, Name, Index

Divide the StartingOffset by the BlockSize.  In the example below, the value would be 63.  This would be an example of a misaligned partition.  The offset value of 32,256 is a common value for a misaligned file system.

misaligned_partitions_1

The value for the next example would be 2048 for the first partition.  This partition has correct alignment.

misaligned_partitions_2

More information concerning this command can be found at http://support.microsoft.com/kb/929491

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.