Chapter 8. Hosts 377
2. The volume RHEL_VOLUME is mapped to two hosts (RHEL_HOST and iSCSI_RHEL_HOST), and 
can be seen by issuing the lsvdiskhostmap command, as shown in Example 8-24.
Example 8-24   Ensuring the same volume is mapped to multiple hosts
IBM_Storwize:ITSO-V7000:superuser>lsvdiskhostmap Linux1
id name   SCSI_id host_id host_name    vdisk_UID                        
IO_group_id IO_group_name mapping_type host_cluster_id host_cluster_name 
protocol 
11 Linux1 0       3       RHEL-Host-05 60050768019C8514440000000000003C 0           
io_grp0       private                                        scsi     
11 Linux1 0       4       RHEL-Host-06 60050768019C8514440000000000003C 0           
io_grp0       private                                        scsi     
IBM_Storwize:ITSO-V7000:superuser>
Unmapping a volume from a host
To unmap a volume from the host, the rmvdiskhostmap command is used, as shown in 
Example 8-25.
Example 8-25   Unmapping a volume from a host
IBM_Storwize:ITSO-V7000:superuser>rmvdiskhostmap -host RHEL-Host-06 Linux1
IBM_Storwize:ITSO-V7000:superuser>
Renaming a host
To rename a host definition, issue the chhost -name command, as shown in Example 8-26. In 
this example, the host RHEL_HOST is renamed to FC_RHEL_HOST.
Example 8-26   Renaming a host
IBM_Storwize:ITSO-V7000:superuser>chhost -name RHEL-Host-07 RHEL-Host-06
IBM_Storwize:ITSO-V7000:superuser>
Removing a host
To remove a host from the Storwize V7000, the rmhost command is used, as shown in 
Example 8-27.
Example 8-27   Removing a host
IBM_Storwize:ITSO-V7000:superuser>rmhost RHEL-Host-07
IBM_Storwize:ITSO-V7000:superuser>
Note: The volume RHEL_VOLUME is mapped to both of the hosts by using the same SCSI 
ID. Typically, that is the requirement for most host-based clustering software, such as 
Microsoft Clustering Service (MSCS), IBM PowerHA, and VMware ESX clustering.
Important: Before unmapping a volume from a host on Storwize V7000, ensure that the 
host side action is completed on that volume by using the respective host operating system 
platform commands, such as unmounting the file system, or removing the volume or 
volume group. Otherwise, it can result in data corruption.
Note: Before removing a host from Storwize V7000, ensure that all of the volumes are 
unmapped from that host, as shown in Example 8-25.