>>- svcinfo -- -- lshostvdiskmap -- --+----------+-- -----------> '- -nohdr -' >--+-----------------------+-- --+-------------+--------------->< '- -delim -- delimiter -' +- host_id ---+ '- host_name -'
| Note: If there is no data to be displayed (for example, an empty view has been returned), then headings are not displayed irrespective of whether the -nohdr option was used or not. |
This command returns a list of virtual disk IDs and names. These are the virtual disks that have been mapped to the specified host, that is, they are visible to the specified host. The SCSI LUN ID is also shown. This SCSI LUN ID is the ID by which the virtual disk is being presented to the host.
Determining the VDisk name from the vpath number on the host: Each VDisk exported by the SAN Volume Controller is assigned a unique vpath number. This number uniquely identifies the VDisk and can be used to determine which VDisk corresponds to the volume that the hosts sees. This procedure can only be performed using the command line interface.
For the volume in question, find the vpath serial number by issuing the datapath query device command. Find the host object defined to the SAN Volume Controller that corresponds with the host you are working with.
| Note: You should name your hosts accordingly, for example, if the actual host is called orange you should also name the host object defined to the SAN Volume Controller as orange. |
Now that you have the <host name> as defined to the SAN Volume Controller and the
<vpath serial number>, issue the following command:
svcinfo lshostvdiskmap <hostname>
where <hostname> is the name of the
host. A list is displayed. Look for the VDisk UID that matches the <vpath
serial number> and remember the VDisk name or ID.
An invocation example
svcinfo lshostvdiskmap -delim : 2
The resulting output
id:name:SCSI_id:vdisk_id:vdisk_name:wwpn:vdisk_UID 2:host2:0:10:vdisk10:0000000000000ACA:6005076801958001500000000000000A 2:host2:1:11:vdisk11:0000000000000ACA:6005076801958001500000000000000B 2:host2:2:12:vdisk12:0000000000000ACA:6005076801958001500000000000000C 2:host2:3:13:vdisk13:0000000000000ACA:6005076801958001500000000000000D 2:host2:4:14:vdisk14:0000000000000ACA:6005076801958001500000000000000E