Creating a logical host object by using the CLI

You can use the mkhost command to create a logical host object.

The mkhost command associates one or more worldwide port names (WWPNs), InfiniBand IDs, iSCSI qualified names (AE2-only) with a logical host object.

For a Fibre Channel (FC) or Fibre Channel over Ethernet (FCoE) (AE2-only) interface card, the command is similar to
mkhost -fcwwpn 210100E08B132AA5 -mask 0011
where 2010100E08B132AA5 is the FC WWPN and 0011 is the target port.
For an InfiniBand interface card, the command is similar to
mkhost -ibgid 00000000000000000002C90300A00B61
where 00000000000000000002C90300A00B61 is the InfiniBand ID.
For an iSCSI interface card (AE2-only), the command is similar to
mkhost -iscsiname iqn.localhost.hostid.7f000001
where iqn.localhost.hostid.7f000001 is an IQN of this host.

The ID is displayed when the command finishes. You can then use this object when you map virtual disks to hosts by using the mkvdiskhostmap command.

After you identify the hosts, mappings are created between hosts and virtual disks. These mappings effectively present the virtual disks to the hosts to which they are mapped. All WWPNs, IQNs (AE2-only), or InfiniBand IDs in the host object are mapped to the virtual disks.