No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


5288 V3 Server V100R003 User Guide 26

This document describes the features, appearance, and technical specifications of the 5288 V3 server, and how to install, power on, and power off the 5288 V3 server, connect cables, and install an operating system (OS) for it.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying the Mapping Between NVMe PCIe SSD Drive Letters, Slot IDs, and Bus IDs in Linux

Querying the Mapping Between NVMe PCIe SSD Drive Letters, Slot IDs, and Bus IDs in Linux

Query the mapping between NVMe PCIe SSD drive letters, slot IDs, and bus IDs in Linux before removing NVMe PCIe SSDs.


  1. Open the command terminal on the OS.
  2. Query the slots IDs of the NVMe PCIe SSDs.

    Run the following commands:

    cd /sys/bus/pci/slots


    Information similar to Figure 9-31 is displayed.

    Figure 9-31 Slot IDs

  3. Query the bus IDs based on the slots IDs.

    Run the following command to query the bus ID of a NVMe PCIe SSD:

    cat /sys/bus/pci/slots/$slot/address

    In the command, $slot indicates the slot ID, which is obtained in Figure 9-31.

    Figure 9-32 Bus IDs that map to slot IDs

    As shown in Figure 9-32, the bus ID of the NVMe PCIe SSD in slot 8 is 0000:81:00.

  4. Query information about the NVMe PCIe SSD drive letters.

    For example, to query information about the NVMe PCIe SSDs in /sys/class/block/, run the following command:

    ls -l /sys/class/block/

    Information similar to Figure 9-32 is displayed.

    Figure 9-33 Mapping between NVMe PCIe SSD drive letters, PCIe bus IDs, and 80 IDs

  5. Obtain the mapping between slot IDs and SSD drive letters based on the mapping between the slot IDs and bus IDs.

    For example, as shown in Figure 9-33, drive letter nvme0n1 maps to bus ID 0000:81:00.0.

    According to the information obtained in Figure 9-32, bus ID 0000:81:00 maps to slot ID 8.

    Therefore, drive letter nvme0n1 maps to slot ID 8.


    The slot IDs queried in 2 should be consistent with the slot IDs (4 to 7) marked on the server. If they are not, get them from the 80 IDs obtained in 4. For example, "02.0" in 80 ID 0000:80:02.0 indicates the slot number.

Updated: 2018-11-26

Document ID: EDOC1000080031

Views: 125238

Downloads: 2333

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next