376 Implementing the IBM Storwize V7000 with IBM Spectrum Virtualize V8.2.1
site_name 
host_cluster_id 
host_cluster_name 
protocol nvme
nqn nqn.2014-08.com.redhat:nvme:nvm-nvmehost01-edf223876
node_logged_in_count 0
state offline
IBM_Storwize:ITSO-V7000:superuser>
8.5.2  Advanced host administration by using the CLI
This section describes the following advanced host operations, which can be carried out by 
using the CLI:
/SM590000Mapping a volume to a host
/SM590000Mapping a volume already mapped to a different host
/SM590000Unmapping a volume from a host
/SM590000Renaming a host
/SM590000Host properties
Mapping a volume to a host
To map a volume, complete the following steps:
1. To map a volume to a host, use the mkvdiskhostmap command, as shown in 
Example 8-21.
Example 8-21   Mapping a volume
IBM_Storwize:ITSO-V7000:superuser>mkvdiskhostmap -host RHEL_HOST -scsi 0 
RHEL_VOLUME
Virtual Disk to Host map, id [0], successfully created
2. The volume mapping can then be checked by issuing the lshostvdiskmap command 
against that host, as shown in Example 8-22.
Example 8-22   Checking the mapped volume
IBM_Storwize:ITSO-V7000:superuser>lshostvdiskmap RHEL_HOST
id name      SCSI_id vdisk_id vdisk_name  vdisk_UID                        
IO_group_id IO_group_name mapping_type host_cluster_id host_cluster_name
7  RHEL_HOST 0       109      RHEL_VOLUME 600507680C81825B0000000000000154 0           
io_grp0       private
Mapping a volume that is already mapped to a different host
To map a volume to another host that is mapped to one host, complete the following steps:
1. Issue the mkvdiskhost -force command, as shown in Example 8-23.
Example 8-23   Mapping the same volume to a second host
IBM_Storwize:ITSO-V7000:superuser>svctask mkvdiskhostmap -force -host 
RHEL-Host-06 -scsi 0 Linux1
Virtual Disk to Host map, id [0], successfully created
IBM_Storwize:ITSO-V7000:superuser>