Skip to main content

3.2.10 Checking the Usage Status of I/O Devices


3.2.10 Checking the Usage Status of I/O Devices
Use the ldm list-io command to check the I/O devices configured in logical domains in a physical partition.
# ldm list-io [-l] [-p] [bus | device | pf-name]
# ldm list-io -d pf-name
  1. -l

    Displays the details such as the relationship between the root complex and the PCIe direct I/O device.
  2. -p

    Displays information in parseable format, such as in the script.
  3. -d pf-name

    Displays the list of information regarding the specified physical functions.
  4. bus, device, and pf-name
    These are, respectively, the PCIe bus, the direct I/O-assignable device, and the PCIe SR-IOV physical function.
The following example displays the usage status of I/O devices in logical domains.
For PCIe devices that support the SR-IOV function, "PF" is indicated in the [TYPE] column.
For devices that create or use a virtual function of the SR-IOV, "VF" is indicated in the [TYPE] column.
# ldm list-io
NAME TYPE BUS DOMAIN STATUS
---- ---- --- ------ ------

PCIE0 BUS PCIE0 primary IOV
PCIE1 BUS PCIE1 primary IOV
PCIE2 BUS PCIE2 primary IOV
PCIE3 BUS PCIE3 primary IOV
PCIE4 BUS PCIE4 primary IOV
PCIE5 BUS PCIE5 primary IOV
PCIE6 BUS PCIE6 primary IOV
PCIE7 BUS PCIE7 primary IOV
(Omitted)
/BB0/PCI6 PCIE PCIE6 primary EMP
/BB0/PCI9 PCIE PCIE7 primary EMP
/BB0/PCI10 PCIE PCIE7 primary EMP
/BB0/PCI0/IOVNET.PF0 PF PCIE1 primary
/BB0/PCI0/IOVNET.PF1 PF PCIE1 primary
/BB0/CMUL/NET0/IOVNET.PF0 PF PCIE0 primary
/BB0/CMUL/NET0/IOVNET.PF1 PF PCIE0 primary
/BB0/CMUL/NET2/IOVNET.PF1 PF PCIE4 primary
/BB0/CMUL/NET2/IOVNET.PF0 PF PCIE4 primary
/BB0/PCI0/IOVNET.PF0.VF0 VF PCIE1 iodom00
/BB0/PCI0/IOVNET.PF0.VF1 VF PCIE1 iodom01
/BB0/PCI0/IOVNET.PF0.VF2 VF PCIE1 iodom02
To confirm the details, such as the relationship between the root complex and the PCIe direct I/O device, execute the command with the -l option specified.
The following example displays the usage status of I/O devices in logical domains.
  1. Logical domain to which the PCIe card is assigned
    The name displayed in the [DOMAIN] column of the slot (the line whose [NAME] column displays "/BBx/PCIx") of the maintenance target PCIe card indicates the logical domain to which the PCIe card is assigned.
  2. Logical domain to which the PCIe root complex that the PCIe card belongs to is assigned
    "PCIEx," which is displayed in the [BUS] column that was confirmed above, is the name of the PCIe root complex to which the PCIe card belongs. The [DOMAIN] column displays a name for the same PCIe root complex (on the line whose [NAME] column displays "PCIEx"). The name is a logical domain name. That PCIe root complex to which the PCIe card belongs is assigned to the logical domain.
# ldm list-io -l
NAME TYPE BUS DOMAIN STATUS
---- ---- --- ------ ------

PCIE0 BUS PCIE0 primary IOV
[pci@8000]
PCIE1 BUS PCIE1 primary IOV
[pci@8100]
PCIE2 BUS PCIE2 primary IOV
[pci@8200]
PCIE3 BUS PCIE3 rootdom IOV
[pci@8300]
PCIE4 BUS PCIE4 primary IOV
[pci@8400]
PCIE5 BUS PCIE5 primary IOV
[pci@8500]
PCIE6 BUS PCIE6 rootdom IOV
[pci@8600]
PCIE7 BUS PCIE7 primary IOV
[pci@8700]
/BB0/CMUL/NET0 PCIE PCIE0 primary OCC
[pci@8000/pci@4/pci@0/pci@9]
network@0
network@0,1
/BB0/CMUL/SASHBA PCIE PCIE0 primary OCC
[pci@8000/pci@4/pci@0/pci@0]
scsi@0/iport@f/disk@w50000393a82368b2,0
scsi@0/iport@f/smp@w500000e0e06d03bf
scsi@0/iport@f/enclosure@w500000e0e06d03bd,0
scsi@0/iport@v0
/BB0/PCI0 PCIE PCIE1 primary OCC
[pci@8100/pci@4/pci@0/pci@0]
/BB0/PCI3 PCIE PCIE2 primary EMP
[pci@8200/pci@4/pci@0/pci@0]
/BB0/PCI4 PCIE PCIE2 iodom1 OCC
[pci@8200/pci@4/pci@0/pci@8]
/BB0/PCI7 PCIE PCIE3 rootdom EMP
[pci@8300/pci@4/pci@0/pci@0]
/BB0/PCI8 PCIE PCIE3 rootdom EMP
[pci@8300/pci@4/pci@0/pci@8]
/BB0/CMUL/NET2 PCIE PCIE4 primary OCC
[pci@8400/pci@4/pci@0/pci@a]
network@0
network@0,1