This post is more than 5 years old

66 Posts

3171

May 14th, 2009 14:00

Disk alignment with ESX and Windows 2003 guest

I'm trying to figure out disk alignment for ESX and windows with DMX storage. I found a white paper from VMware that tells me I need to align both the ESX host and the Windows guest. PowerLink tells me to align at the guest if I'm presenting raw volumes or align at the VMFS for VMDK files. Does anyone know who is correct?

6 Operator

 • 

5.7K Posts

May 15th, 2009 02:00

First of all: you should always align !

And ESX host is just like a physical Windows host and all drives should be aligned before installing the OS.
Withing ESX each and every guest should also be aligned, whether or not this is RDM or VMFS based, that doesn't matter. However: the VMFS itself will be aligned already when you create this filesystem after you installed ESX. But when you create a VMDK for a guest, you should align the disk from within the guest. And on guest's c drives this can be done as follows: present the c drive to another guest as h drive for example and align it. After that disconnect this drive and present it to the new host for which it's going to be the c drive.

Once again: it doesn't matter whether or not this is RDM or VMFS based. Always align !! And on DMX you should use "create partition primary align=64".

6 Operator

 • 

2.8K Posts

May 15th, 2009 03:00

I don't see contraddiction between what Powerlink is telling and what VmWare is telling... EMC is talking from its very special point of view (the storage point of view) and is asking you to align IOs (from storage point of view). If you are using RAW volumes, IO's will come from the virtual host (thus I ask you to align the virtual host). If you are using VMFS ios will come from ESX server (thus I ask you to align VMFS).
VmWare is talking from a higher pint of view. And from VmWare's point of view I ask you to align both VMDK itself (the virtual disk, inside the virtual host) and the whole VMFS (as EMC suggests).

6 Operator

 • 

5.7K Posts

May 15th, 2009 04:00

My words exactly, in other words.

66 Posts

May 15th, 2009 07:00

If it's needed it should have been added to the EMC doc as well.

Thanks for the answers.

6 Operator

 • 

2.8K Posts

September 21st, 2009 06:00

Ulli can you please write me an email ?? delcorno_stefano at emc.com

Thank you... :D

3 Posts

September 21st, 2009 13:00

I believe the command for Symmetrix volume devices allocated to a W2K3 SP1 host is

diskpart(5.2.3790)
create partition primary align=128

diskpar for W2K

This is because a Symm, cache slot boundary, which is one track covers 64 Blocks ¿32Kb¿

A RAID5 set Meta boundary, which is 4 tracks covers 256 Blocks ¿128Kb¿

For CLARiiON LUN¿s presented to a Window OS host the same command is

create partition primary align=64

When we discuss Storage on EMC array we view things from a Block perspective as opposed to Windows which always assumes disk sectors this reports a max of 255 heads, which counts from 0, = 254 as the last head.

And if the application that you are going to host on that volume is MS-SQL, then you have to format the drive with a 64k allocation unit size.

I understand all this stuff might became null and void with the introduction of Windows 7

2.2K Posts

September 21st, 2009 14:00

ESX will align the partition of a datastore automatically when a LUN is formatted in VMFS from within the ESX Vi Client. You can confirm this by logging onto the console and issuing a fdisk -lu at the command prompt. Look at the starting value.

Also Microsoft has changed their recommendations for Disk Alignment. Their recommendation is now to create the alignment at 2048 since this will cover most array stripe sizes. See http://support.microsoft.com/kb/929491 for more details. You do not need to align the partition in Windows 2008 and later as the partition will automatically be aligned at 2048.

Now if the array manufacturer has a specific recommendation for an alignment offset to use in place of the Microsoft general recommendation that would probably be the best one to use as it will be array specific, but most likely the Microsoft general recommendation will be sufficient.

6 Operator

 • 

5.7K Posts

September 22nd, 2009 06:00

In ESX disks are automatically aligned when you add a new LUN to this host and you format it as VMFS. Within that VMFS you create VMDKs in which the MBR is created which is misaligned, so yes, you'd have to align that one ni the virtual machine.
So you align twice, although the ESX part isn't needed, since it's automatically aligned.

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

September 22nd, 2009 06:00

are you sure about that? I've read somewhere that all vmdk that are created using Virtual Center are automatically aligned, no need to manually align them unless you are presenting RDM.

6 Operator

 • 

5.7K Posts

September 22nd, 2009 07:00

....told you.....

2.2K Posts

September 22nd, 2009 07:00

I only did it for the free stuff ;-)

2.2K Posts

September 22nd, 2009 07:00

LOL :^0 :^0 :^0

2.2K Posts

September 22nd, 2009 07:00

Well I just tested this by creating a VMDK on one of our ESX 3.5 clusters, and assigning it to one of my Windows VMs. The VMDK appears as just a raw unitiniliazed disk and if you create the partition through Disk Management the partition will be misaligned. So, as Rob said you have to use Diskpart.exe for VMDKs.

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

September 22nd, 2009 07:00

Thanks Aran, i just found that paper. We don't have to align VMFS datastores if they are created using VC, but we do have to align VMs. Thank you for correcting me.

6 Operator

 • 

5.7K Posts

September 22nd, 2009 07:00

A star is born :D

0 events found

No Events found!

Top