lsvdiskhostmap

Use the lsvdiskhostmap command to list the VDisk to the host mapping. These hosts have the specified virtual disk mapped to them; the virtual disk is visible to these hosts.

Syntax

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

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

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-delim delimiter
(Optional) 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. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a one-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
vdisk_id | vdisk_name
(Required) Specifies the ID or name of the virtual disk. The cluster displays 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 displays 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 displayed. The SCSI LUN ID is the ID by which the virtual disk is recognized by the host.

Determining the host that a VDisk is mapped to: List the hosts that this VDisk is mapped to, by issuing the following command:

svcinfo lsvdiskhostmap vdisk_id | vdisk_name

where vdisk_id | vdisk_name 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 displayed, the VDisk is not mapped to any hosts.

An invocation example

svcinfo lsvdiskhostmap bbb

The resulting output

id     name    SCSI_id   host_id   host_name    vdisk_UID
200    bbb     0         9         mchost13     600507680197014B00000000000002A0
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.