VMware vSphere

 View Only
  • 1.  How To configure a Virtual HBA on a Linux VM?

    Posted Jul 18, 2022 07:46 PM

    I have a new vSphere two-node cluster that will host RedHat8 VMs.  The storage array is HP Alletra. 

    The goal is to automate taking a snap image of a LUN that has been mounted on one VM, then mount the snap onto a second VM -- in order to run a backup against it.

    I've got taking the snap image scripted, and that works.  And I can manually mount the snap to the second VM through the vCenter menus.  However, I am told there is a way to create WWNs for the VM, so that the Alletra array can alias them, and I can reference them in a script.  But the only instructions I have found are these (and one is from 2011):

    https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-74DDA7F7-84AC-4251-8749-552A2678A33C.html?hWord=N4IghgNiBcIHIAUCSA1EBfIA

    https://blogs.vmware.com/vsphere/2011/11/npiv-n-port-id-virtualization.html

    My storage tech is having trouble seeing the WWNs, so I suspect the instructions are incomplete.

    I have gone into the config for the VM, and under "VM Options" I have had it generate 1 Node WWN and 4 Port WWNs under "Fiber Channel NPIV". 

    Can anyone provide more complete instructions? 

     



  • 2.  RE: How To configure a Virtual HBA on a Linux VM?

    Posted Jul 23, 2022 01:07 PM

    Hi, 

    Based on your explaination, you could generate a WWN for a VM level and I think you can mount a FC LUN to your VM through the WWN. Did you try it? 

    This is a picture from web as sample. This picture show us single node WWN and two port WWNs. (Your case, single node WWN and four port WWNs.)

    VM_Yamato_0-1658581546205.png

    I think you can use these generated WWNs for your storage network. But do they not working?

    And if you meet any error message, please share us it.

     



  • 3.  RE: How To configure a Virtual HBA on a Linux VM?

    Posted Jul 23, 2022 08:37 PM

    As this doesn’t seem to have anything to do with vSAN I have reported your thread to moderators asking them to move it.