chhost
Use the chhost command to change the name or type of a host object. This command does not affect any existing host mappings.
Syntax
Note: Mapping a new portset to a host object can cause host application outage
unless the newly mapped portset contains at least one port that is overlapping with the old portset.
If volume protection is turned on, the administrator cannot change to a portset that doesn't have at
least one overlapping port. To override that restriction and enforce a change, the global admin must
run the chsystem -vdiskprotectionenabled no command to turn off volume
protection for the system. Also, if a host is offline, the volume protection
check is bypassed and chhost will allow a portset with non-overlapping ports to
be used.
Parameters
- -type hpux | tpgs | generic | openvms | adminlun | hide_secondary
- (Optional) Specifies the type of host. The following values are the available host types:
genericindicates the default.tpgsindicates when target port information changes (deprecated).openvmsindicates OpenVMS (deprecated).adminlunindicates virtual volumes, which are enabled on the host.hpuxindicates HP-UX firmware.hide_secondary
The host type for NVMe hosts cannot be changed. For more information about hosts that require the type parameter, see the host attachment documentation.
- -name new_name_arg
- (Optional) Specifies the new name that you want to assign to the host object.
- -iscsiusername username_for_authentication
- (Optional) Specifies the user name for a host object for one-way authentication for Internet Small Computer System Interface (iSCSI) host attachment login. If this parameter is specified, the value is taken as the "username" for one-way authentication to log in to the iSCSI host attachment. If you do not specify the iscsiusername parameter, the IQN of the host object is used as the user name by default. If no iscsiusername parameter is provided and multiple IQNs exist in the same host object, the user name of each IQN is the IQN itself. If the iscsiusername parameter is provided for a multiple IQN host, then log in to all hosts by using the provided IQN. If you use the iscsiusername parameter, you must also specify the chapsecret parameter.
- -chapsecret chap_secret
- (Optional) Sets the Challenge Handshake Authentication Protocol (CHAP) secret that is used to authenticate the host for iSCSI I/O. This secret is shared between the host and the cluster. The CHAP secret for each host can be listed by using the lsiscsiauth command.
- -nochapsecret
- (Optional) Clears any previously set CHAP secret for this host. The nochapsecret parameter cannot be specified whether chapsecret is specified.
- -site site_name | site_id
- (Optional) Specifies the numeric site value or site name of the host. The site name must be an
alphanumeric value. The site ID must be
1or2. The site that is assigned to a host can be changed with any topology (hyperswaporstandard).Note: If the host is mapped to a volume that is in an active-active relationship (HyperSwap®), you cannot specify -nosite. - -nosite
- (Optional) Resets the site value.
- -statuspolicy redundant | complete
- (Optional) Specifies if complete or redundant policy is
used for online status calculations.
- Complete connectivity is where online host status indicates complete connectivity, with every host port that is logged in to every node through which that host can access volumes, and degraded host status indicates one or more of these nodes does not have a login.
- Redundant connectivity calculation is where online host status indicates redundant connectivity, where enough host ports are logged in to enough nodes such that the removal of a single node or a single host port allows that host to access all of its volumes. In addition, there must be the same total login count from the host to each node within an I/O group. Degraded host status indicates non-redundant connectivity, in which a single point of failure prevents a host from accessing at least some of its volumes, or there is no single point of failure but the total login count from the host to each node within an I/O group is not the same.
The default value is redundant.
- -statussite all | local
- (Optional) Specifies whether all sites or only the local host site connectivity is used to determine online status. local is only applicable in a dual site topology for a host with a valid site. The default value is all.
- -ownershipgroup owner_id | owner_name
- (Optional) The name or ID of the ownership group to which the object is being added.
- -noownershipgroup
- (Optional) If specified, the object is removed from the ownership group to which it belongs.
- -portset
- (Optional) The name or ID of the portset to associate with the host object.
- -partition partition_id|partition_name
- (Optional) The name or ID of the storage partition to associate with the host object.
- -nopartition
- (Optional) If specified, the host is removed from the partition to which it is associated.
- -draftpartition
- Attempt to associate this host with the specified draft partition.
- -nodraftpartition
- Attempt to remove this host from the draft partition.
- -location location_system_name | location_system_id
- (Optional) Specifies the system ID or system name that is co-located with this host.
- -nolocation
- (Optional) Remove the currently set location from this host.
- host_name | host_id
- (Required) Specifies the host object to modify, either by ID or by current name.
Description
This command can change the name of the specified host to a new name, or it can change the type of host. This command does not affect any of the current host mappings.
Note: When all I/O groups are removed from an iSCSI host, the lsiscsiauth command
does not display the authentication entry for that host. Use the addhostiogrp
command to map the iSCSI host to at least one I/O group, and then use the
addhostport command to add the iSCSI port into it. You must also add
authentication for that host by using the chhost command with either the
chapsecret or nochapsecret parameter.
- The protocol of the portset must match the protocol of the host
Note: The 100 Gbps ports are mainly
used for NVMe over RDMA and NVMe over TCP connections to host attachments. Any attempt to map an
iSCSI host using chhost to a 100 Gbps portset will fail. This iSCSI mapping using
chhost cannot be completed through any plugins or GUI. This fails because a 100
Gbps portset will not match the performance expectation for iSCSI host attach connectivity. However,
user can use -force flag CLI command to map an iSCSI host to a 100 Gbps port for
less demanding application or boot from SAN applications.
- To change the portset by using the chhost command user has to check portset port_type and it must match the type of the host (FC, NVMe, or iSCSI) created.
An invocation example
chhost -portset myportset myhost
The following output is displayed:
No feedback