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. 

## Removing a volume mapping from a host cluster 

To remove a volume mapping from a host cluster, run the rmvolumehostclustermap command, as shown in Example 8-46. 

IBM_2145:ITSO-SV1:superuser> rmvolumehostclustermap -hostcluster ITSO-ESX-Cluster-01 VMware3 IBM_2145:ITSO-SV1:superuser> 

In Example 8-46, 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-45 on page 407. 

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. 

## Removing a host cluster member 

To remove a host cluster member, run the rmhostclustermember  command, as shown in Example 8-47. 

IBM_2145:ITSO-SV1:superuser> rmhostclustermember -host ITSO-VMHOST-02 -removemappings ITSO-ESX-Cluster-01 IBM_2145:ITSO-SV1:superuser> 

In Example 8-47, the host ITSO-VMHOST-02  was removed as a member from the host cluster ITSO-ESX-Cluster-01 , along with the associated volume mappings due to the -removemappings  flag being specified. 

## Removing a host cluster 

To remove a host cluster, run the rmhostcluster  command, as shown in Example 8-48. 

IBM_2145:ITSO-SV1:superuser> rmhostcluster -removemappings ITSO-ESX-Cluster-01 IBM_2145:ITSO-SV1:superuser> 

The -removemappings  flag also causes the system to remove any host mappings to volumes that are shared. The mappings are deleted before the host cluster is deleted. 

Note:  To keep the volumes mapped to the host objects even after the host cluster is deleted, specify the -keepmappings  flag instead of -removemappings  for the rmhostcluster command. When -keepmappings  is specified, the host cluster is deleted, but the volume mapping to the host becomes private  instead of shared . 

