HP 3PAR InForm OS 3.1.1 CLI Administrator's Manual

After you move a host to a new port, you must:
Remove the old host definitions.
Disconnect the host from the system.
Reconnect the host to the new port.
To move the host to another system port, you must do the following:
1. Use the InForm OS CLI command servicehost copy to create an inactive host on the
system port to which you wish to move the host. The inactive host created with this command
is identical to the active host that is to be relocated to this port.
The servicehost copy command automatically exports all volumes that are currently
exported to the active host to the new, inactive host once it is created. For more information
about active and inactive hosts, Active and Inactive Hosts” (page 70).
The VLUNs from the specified source port (src_node:slot:port) are copied from the host
WWNs or iSCSI Names matching the specified pattern (WWN_or_iSCSI_name_pattern)
to the specified destination port (dest_node:slot:port). If necessary, the port is reset to
target mode.
To create an inactive host on the system port to which you wish to move the host, issue
the servicehost copy <src_node:slot:port>
<WWN_or_iSCSI_name_pattern> <dest_node:slot:port> command, where:
<src_node:slot:port> is the current port location.
<WWN_or_iSCSI_name_pattern> specifies that the indicated WWN or iSCSI
Name is treated as a glob-style pattern.
<dest_node:slot:port> is the destination port location.
2. Remove the host definition(s) from the old port or ports.
Removing the host definitions does not remove the old host paths. To remove the host paths,
see “Removing Host Paths” (page 74). To remove host definitions and all VLUNs associated
with the old host port, issue theservicehost remove
[<node:slot:port>[<WWN_or_iSCSI_name> ... ]] command, where:
<node:slot:port> is the old port location.
<WWN> is the WWN path or paths to the host to be removed.
<iscsi_name> is the iSCSI path or paths to the host to be removed.
3. Disconnect the host from the system and then reconnect it to the new port.
The system discovers the host on the new port automatically by matching the WWNs or iSCSI
Names of the inactive host you created in Step 1 to the WWNs or iSCSI Names of the host.
The InForm OS automatically changes the state of the host from inactive to active. The host
has immediate access to all volumes exported to the host.
Removing Host Paths
Host paths can be removed from the system before or after VLUNs are exported to the hosts. The
removehost command removes a system host path to an FC or iSCSI host. If one or more paths
are specified the command removes only the specified paths, otherwise the entire host definition
is removed. If VLUNs have been exported to the host, issue the removehost -rvl <host_name>
command. For information about exporting VLUNs, see “Unexporting Virtual Volumes” (page 94).
74 Managing Ports and Hosts