lsvdiskhostmap

You can use the lsvdiskhostmap command to list the VDisk to host mapping.

Syntax

Read syntax diagramSkip visual syntax diagram>>- svcinfo -- -- lsvdiskhostmap -- --+----------+-- ----------->
                                      '- -nohdr -'

>--+-----------------------+-- --+- vdisk_id ---+--------------><
   '- -delim -- delimiter -'     '- vdisk_name -'

Parameters

-nohdr
By default, headings are displayed for each column of data (in a concise style view), and each item of data (in a detailed style view). Using the -nohdr parameter will suppress the display of these headings.
Note: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.
-delim delimiter
By default in a concise view, all columns of data are space separated. The width of each column is set to the maximum possible width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed the data is separated from the header by a space. Using the -delim parameter will override this behavior. Valid input for the -delim parameter is a one byte character. If, for example, you entered -delim : a colon will be used to separate all items of data in a concise view (for example, the spacing of columns does not occur) and in a detailed view the data is separated from its header by a colon.
vdisk_id | vdisk_name
Specifies the virtual disk in terms of its ID or name. The SAN Volume Controller returns a list of all the hosts to which this virtual disk is mapped and the SCSI ID by which the virtual disk is mapped.

Description

This command returns a list of host IDs and names. These hosts have the specified virtual disk mapped to them, that is, the virtual disk is visible to these hosts. The SCSI LUN ID is also shown. The SCSI LUN ID is the ID by which the virtual disk is being presented to the host.

Determining the host that a VDisk is mapped to: List the hosts that this VDisk is mapped, by issuing the following command:
svcinfo lsvdiskhostmap <vdiskname/id>
where <vdiskname/id> is the name or ID of the VDisk. A list is displayed. Look for the host name or ID to determine which host this VDisk is mapped to. If no data is returned, the VDisk is not mapped to any hosts.

Possible failures

Examples

The concise invocation example

svcinfo lsvdiskhostmap -delim : 3   

The concise resulting output

id:name:SCSI_id:host_id:host_name:wwpn:vdisk_UID
3:vdisk3:0:2:host2:0000000000100ABC:60050768018A00015000000000000003

(C) Copyright International Business Machines Corporation 2003, 2004