WGSSS
Contributor
Contributor

Check VMFS disk alignment

Jump to solution

Hi,

I’m trying to check the disk alignment on my VMFS LUNs. From what I’ve read online, I should use the esxcfg-vmhbadevs command to see which SD number equates to me datastores, and then run FDISK against each of these SD’s to check the alignment.

I’m running into problems with the “ESXCFG-VMHBADEVS –M” command. It is not recognised in the COS.

I’m able to run FDISK /dev/sddx to check alignment, but this is no use if I don’t know which LUN I’m checking.

Is there a command in the PowerCLI that I can use to show me which sdd associated with each LUN, or another COS command I can run?

Alternatively, if anyone can suggest a better way of checking VMFS alignment, let me know!!

Cheers,

G

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal

With this command you can map the datastore with the /dev/sdX value:

esxcfg-scsidevs -l

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
5 Replies
AndreTheGiant
Immortal
Immortal

With this command you can map the datastore with the /dev/sdX value:

esxcfg-scsidevs -l

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
AWo
Immortal
Immortal

Which storage do you use?


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
WGSSS
Contributor
Contributor

Thanks Andre!! That got me the information I need.

AWo, we are connected to a NetApp filer over iSCSI.

0 Kudos
AWo
Immortal
Immortal

If I remember that correctly your VMFS volumes are aligned with NetApp storage as long as you have created them with the vSphere vClient.

BTW, NetApp offers two free tools (mbrscan and mbralign) to check and align Windows guest partitions from the ESX console.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
AWo
Immortal
Immortal

Do you know this one? http://communities.vmware.com/servlet/JiveServlet/download/2409-117516-821464-4435/NetappDiskAlignmentonVirtuals-+3593.pdf

It states that choosing the correct LUN protocol (VMware) aligns the VMFS partition on a NetAPP filer.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =