382 Implementing the IBM Storwize V7000 with IBM Spectrum Virtualize V8.2.1
Mapping a volume to a host cluster
To map a volume to a host cluster so that it automatically is mapped to member hosts, the 
mkvolumehostclustermap command can be used, as shown in Example 8-42.
Example 8-42   Mapping a volume to a host cluster
IBM_Storwize:ITSO-V7000:superuser>mkvolumehostclustermap -hostcluster ITSO-ESX-Cluster-01 
VMware1
Volume to Host Cluster map, id [0], successfully created
IBM_Storwize:ITSO-V7000:superuser>
Listing the volumes that are mapped to a host cluster
To list the volumes that are mapped to a host cluster, the lshostclustervolumemap command 
can be used, as shown in Example 8-43.
Example 8-43   Listing volumes that are mapped to a host cluster by using lshostclustervolumemap
IBM_Storwize:ITSO-V7000:superuser>lshostclustervolumemap ITSO-ESX-Cluster-01
id name                SCSI_id volume_id volume_name volume_UID                       IO_group_id 
IO_group_name protocol 
0  ITSO-ESX-Cluster-01 0       8         VMware1     60050768019C85144400000000000039 0           io_grp0       
scsi     
0  ITSO-ESX-Cluster-01 1       9         VMware2     60050768019C8514440000000000003A 0           io_grp0       
scsi     
0  ITSO-ESX-Cluster-01 2       10        VMware3     60050768019C8514440000000000003B 0           io_grp0       
scsi     
IBM_Storwize:ITSO-V7000:superuser>
Removing a volume mapping from a host cluster
To remove a volume mapping to a host cluster, use the rmvolumehostclustermap command, 
as shown in Example 8-44.
Example 8-44   Removing a volume mapping
IBM_Storwize:ITSO-V7000:superuser>rmvolumehostclustermap -hostcluster ITSO-ESX-Cluster-01 
VMware3
IBM_Storwize:ITSO-V7000:superuser>
In Example 8-44, volume VMware3 is unmapped from the host cluster ITSO-ESX-Cluster-01. 
The current volume mapping can be checked to ensure that it is unmapped, as shown in 
Example 8-43.
Note: When a volume is mapped to a host cluster, that volume is mapped to all of the 
members of the host cluster with the same SCSI_ID.
Note: The lshostvdiskmap command can be run against each host that is part of a host 
cluster to ensure that the mapping type for the shared volume is shared, and is private for 
the non-shared volume.
Note: To specify the host or hosts that acquire private mappings from the volume that is 
being removed from the host cluster, specify the -makeprivate flag.