9.9 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.
Procedure
Step 1 Open the command terminal on the OS.
Step 2 Query the slots IDs of the NVMe PCIe SSDs.
Run the following commands:
cd /sys/bus/pci/slots
ll
Information similar to Figure 9-31 is displayed.
Figure 9-31 Slot IDs
Step 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
5288 V3 Server
User Guide
9 Common Operations
Issue 26 (2018-11-19) Copyright © Huawei Technologies Co., Ltd. 271