Storage Administrator tasks

This section describes the storage administrator tasks for configuring N_Port ID Virtualization (NPIV).

Procedure

  1. Log on to the switch and create separate zones for the virtual port WWNs and physical HBA port WWNs. Zone all the physical HBA port WWNs in a single zone with the storage initiator, and then individually zone the virtual HBA port WWNs of each VM to a storage array port WWN.
  2. On the storage subsystem, create separate hosts (SAN Volume Controller) or host connections (DS8000®) with separate volume groups for physical HBA ports and virtual HBA ports.
    Create a host with physical HBA WWPNs. The following example shows what the output might look like:
    node2:~ # svcinfo lshost 3
    id 3
    name ESX100
    port_count 1
    type generic
    mask 111111111111111111111111111111111111111111111111111
    iogrp_count 4
    status online
    WWPN 210000024FF2FADE0
    node_logged_in_count 1
    state active
    Create another host for VM with virtual HBA WWPNs. The result is that you now have two hosts, one for the physical HBA port WWPNs and one for the virtual port WWPNs. The following example shows what the output might look like:
    node2:~ # svcinfo lshost 32
    id 32
    name Win35npiv
    port_count 1
    type generic
    mask 11111111111111111111111111111111111111111111111111111111111
    iogrp_count 4
    status online
    WWPN 21050024FF2FAD75
    node_logged_in_count 1
    state active
  3. Map the LUN to both hosts so that the LUN can work through NPIV. The following example shows what the output might look like:
    node2:~ # svcinfo lsvdiskhostmap 22
    id	name				SCSI_id host_id	host_name	vdisk_UID							  IO_group_id	IO_group_name
    22	vm110npiv	0			 3				ESX100			6005076802908168E00001D3C	0						io_grp0
    22	vm110npiv	0			 32			Win35npiv	6005076802908168E00001D3C	0						io_grp0

    The LUN 22 is mapped to physical HBA ports.