VMware vSphere

 View Only
  • 1.  How to find WWN for RAW device mapped LUN?

    Posted Jul 09, 2012 09:26 PM

    I presented a set of 4 LUNs from Clariion to 2 ESXi servers.

    On each of these servers, I have a CentOS VM running.

    I presented all 4 luns to both CentOS VM's using Raw Device Mapping.

    Im using a application which provides it's own clustering software, and as such, I need to identify which of the 4 luns are which on each of the hosts.

    Ideally, I would like to create a mapping between /dev/sdb and it's WWN, and between /dev/sdc and it's WWN etc...

    That way, I can make sure that each of the 4 luns on both VM's are setup in the correct order for the application to reference them.

    So, on a CentOS VM, how can I obtain the WWN of a Raw Device Mapped from ESXi host?

    Thanks,

    Ron



  • 2.  RE: How to find WWN for RAW device mapped LUN?
    Best Answer

    Posted Jul 09, 2012 11:09 PM

    The way RAW mappings work, the vm wouldnt be aware that its connected to a san.

    it should view the lun as a locally presented disk.

    if you want it to be aware of the wwn, it might have ot be connected through the vm itself.

    A raw device mapping is effectively a symbolic link from a VMFS to a raw LUN. This makes LUNs appear as files in a VMFS volume. The mapping file — not the rawLUN — is referenced in the virtual machine configuration. The mapping file contains a reference to the raw LUN.

    http://www.vmware.com/pdf/esx25_rawdevicemapping.pdf

    this link might help

    http://pubs.vmware.com/vi35/wwhelp/wwhimpl/common/html/wwhelp.htm?context=fibre_san_config&file=esx_san_cfg_manage.8.19.html