VMware vSphere

 View Only
  • 1.  Check VMFS disk alignment

    Posted Aug 27, 2010 11:59 AM

    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



  • 2.  RE: Check VMFS disk alignment
    Best Answer

    Posted Aug 27, 2010 12:12 PM

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

    esxcfg-scsidevs -l

    Andre



  • 3.  RE: Check VMFS disk alignment

    Posted Aug 27, 2010 12:59 PM

    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!=



  • 4.  RE: Check VMFS disk alignment

    Posted Aug 27, 2010 01:01 PM

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

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



  • 5.  RE: Check VMFS disk alignment

    Posted Aug 27, 2010 01:03 PM

    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!=



  • 6.  RE: Check VMFS disk alignment

    Posted Aug 27, 2010 01:05 PM

    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!=