308 Implementing the IBM Storwize V7000 with IBM Spectrum Virtualize V8.2.1
7.8.15  Deleting a volume to host mapping
Deleting a volume mapping does not affect the volume. Instead, it removes only the host’s 
ability to use the volume. Use the rmvdiskhostmap command to unmap a volume from a host, 
as shown in Example 7-27.
Example 7-27   The rmvdiskhostmap command 
IBM_2145:ITSO_CLUSTER:superuser>rmvdiskhostmap -host Tiger volume_D
This command unmaps the volume that is called volume_D from the host that is called Tiger.
You can also use the rmvolumehostclustermap command to delete a volume mapping from a 
host cluster, as shown in Example 7-28.
Example 7-28   The rmvolumehostclustermap command
IBM_Storwize:ITSO:superuser>rmvolumehostclustermap -hostcluster vmware_cluster 
UNCOMPRESSED_VOL
This command unmaps the volume called UNCOMPRESSED_VOL from the host cluster called 
vmware_cluster.
7.8.16  Migrating a volume
You might want to migrate volumes from one set of MDisks to another set of MDisks to 
decommission an old disk subsystem to better distribute load across your virtualized 
environment, or to migrate data into the IBM Spectrum Virtualize environment by using image 
mode. For more information about migration, see Chapter 9, “Storage migration” on 
page 385.
As you can see from the parameters that are shown in Example 7-29, before you can migrate 
your volume, you must determine the name of the volume that you want to migrate and the 
name of the storage pool to which you want to migrate it. To list the names of volumes and 
storage pools, run the lsvdisk and lsmdiskgrp commands.
The command that is shown in Example 7-29 moves volume_C to the storage pool named 
STGPool_DS5000-1.
Example 7-29   The migratevdisk command 
IBM_2145:ITSO_CLUSTER:superuser>migratevdisk -mdiskgrp STGPool_DS5000-1 -vdisk volume_C
Note: Removing a volume mapped to the host makes the volume unavailable for I/O 
operations. Ensure that the host is prepared for this before removing a volume mapping.
Important: After migration is started, it continues until completion unless it is stopped or 
suspended by an error condition or the volume that is being migrated is deleted.