Displays the mapping between physical, logical, and virtual devices.
lsmap { -vadapter ServerVirtualAdapter | -plc PhysicalLocationCode | -all } [ -type BackingDeviceType | -net | -npiv] [ -field FieldNames ] [ -fmt Delimiter ]
lsmap -ams { -vtd PagingDevice | -all } [ -type BackingDeviceType ] [ -field FieldNames ] [ -fmt Delimiter ]
The lsmap command displays the mapping between virtual host adapters and the physical devices they are backed to. Given an adapter name (ServerVirtualAdapter) or physical location code (PhysicalLocationCode) of a server virtual adapter, the device name of each connected virtual target device (child devices), its logical unit number, backing device(s) and the backing devices physical location code is displayed. If the -net flag is specified the supplied device must be a virtual server Ethernet adapter.
The -fmt flag divides the output by a user-specified delimiter/character (delimiter). The delimiter can be any non-white space character. This format is provided to facilitate scripting.
The -type flag limits the types of backing devices displayed to the user-specified list, BackingDeviceType. With the exception of the net type, any combination of device types may be specified. The net type cannot be combined with any other type.
The -npiv flag is used to display the server binding information between the virtual fibre channel and the physical fibre channel adapter. It is also used to display client adapter attributes that are being sent to the server adapter.
Field | Description |
---|---|
SVSA | Server Virtual SCSI Adaper |
Physloc | Physical Location Code |
VTD | Virtual Target Device |
LUN | Logical Unit Number |
SVEA | Server Virtual Ethernet Adapter |
SEA | Shared Ethernet Adapter |
Return code | Description |
---|---|
11 | No VTDs associated with device |
12 | No SEAs associated with device |
15 | Specified device is not a server virtual SCSI adapter |
16 | Specified device is not a server virtual Ethernet adapter |
17 | Specified device in not in the AVAILABLE state |
63 | Specified device is not a virtual fibre channel adapter on a server logical partition. |
lsmap -vadapter vhost2The system displays a message similar to the following:
SVSA Physloc Client Partition ID ------------ -------------------------------------------- ------------------ vhost0 U9111.520.10004BA-V1-C2 0x00000004 VTD vtscsi0 Status Available LUN 0x8100000000000000 Backing device vtd0-1 Physloc VTD vtscsi1 LUN 0x8200000000000000 Backing device vtd0-2 Physloc VTD vtscsi2 Status Available LUN 0x8300000000000000 Backing device hdisk2 Physloc U787A.001.0397658-P1-T16-L5-L0
lsmap -vadapter ent4 -netThe system displays a message similar to the following:
SVEA Physloc ------ -------------------------------------------- ent4 P2-I1/E1 SEA ent5 Backing device ent1 Status Available Physloc P2-I4/E1
lsmap -vadapter ent5 -fmt ":"The system displays a message similar to the following:
ent5:ent8:ent2
lsmap -all -type disk lvThe system displays a message similar to the following:
SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost0 U9117.570.10D1B0E-V4-C3 0x00000000 VTD vtscsi0 Status Available LUN 0x8100000000000000 Backing device hdisk0 Physloc U7879.001.DQD0KN7-P1-T12-L3-L0 VTD vtscsi2 Status Available LUN 0x8200000000000000 Backing device lv04 Physloc SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost1 U9117.570.10D1B0E-V4-C4 0x00000000 VTD vtscsi1 Status Available LUN 0x8100000000000000 Backing device lv03 Physloc
lsmap -all -npivThe system displays a message similar to the following:
Name Physloc ClntID ClntName ClntOS ====== ====================== ===== ========== ===== vfchost0 U8203.E4A.HV40026-V1-C12 1 HV-40026 AIX Status:NOT_LOGGED_IN FC name:fcs0 FC loc code:U789C.001.0607088-P1-C5-T1 Ports logged in:3 Flags:1 <not_mapped, not_connected> VFC client name: VFC client DRC: