Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aperi-dev] Discovering virtual N_Port_IDs

Hi,

Just thought we'd share; a development SAN is running VMs with
virtual N_Port_IDs, and it seems Aperi was able to discover the virtual
WWNN and WWPN [1] and map to the VM hosts that had them
(dynamically) bound, via SNMP from the Fibre Channel switch; relative
to discovery on VM hosts (running the Aperi agent) with SAN HBAs.
No code changes required to shipping 0.4 Aperi codebase (which also
supports running the Aperi agent inside a Xen-based VM).

Thanks,
Robert

[1] http://en.wikipedia.org/wiki/World_Wide_Name 

P.S. 

Example WWWN:WWPN for VM 1:
  C0001B0000000001:C0001B1000000001

Emulex driver implementation (SLES10 SP2):
  /etc/modprobe.conf.local
  options lpfc lpfc_enable_npiv=1

To bind a virtual port:
  (See also /etc/xen/scripts/block-npiv)
  echo $wwpn:$wwnn > /sys/class/scsi_host/$host/vport_create

E.g. for VM 1
  echo "C0001B1000000001:C0001B0000000001" > /sys/class/scsi_host/host1/vport_create




Back to the top