The mkhost command creates a logical host object.
>>- svctask -- -- mkhost -- --+---------------------+-- --------> '- -name -- new_name -' >--+- -hbawwpn -- wwpn_list ------+-----------------------------> '- -iscsiname--iscsi_name_list-' >-- --+-----------------------+-- ------------------------------> '- -iogrp -iogrp_list -' >-- --+-------------------------+-- --+----------+--------------> '- -mask -port_login_mask-' '- -force -' >--+------------------------+---------------------------------->< '- -type --+- hpux ----+-' +- tpgs ----+ '- generic -'
The mkhost command associates one or more HBA WWPNs or iSCSI names with a logical host object. This command creates a new host. The ID is displayed when the command completes. You can subsequently use this object when you map virtual disks to hosts by using the mkvdiskhostmap command.
Issue the mkhost command only once. The cluster scans the fabric for WWPNs in the host zone. The cluster itself cannot filter into the hosts to determine which WWPNs are in which hosts. Therefore, you must use the svctask mkhost command to identify the hosts.
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 in the host object are mapped to the virtual disks.
Some HBA device drivers do not log in to the fabric until they can see target logical unit numbers (LUNs). Because they do not log in, their WWPNs are not recognized as candidate ports. You can specify the force parameter with this command to stop the validation of the WWPN list.
This command fails if you add the host to an I/O group that is associated with more host ports or host objects than is allowed by the limits within the cluster.
For additional information, see the svctask mkvdiskhostmap and svcinfo lshbaportcandidate commands.
An invocation example
svctask mkhost -name hostone -hbawwpn 210100E08B251DD4 -force -mask 1001
The resulting output
Host id [1] successfully created
An invocation example
svctask mkhost -iscsiname iqn.localhost.hostid.7f000001 -name newhost
The resulting output
Host, id [10], successfully created