Fujitsu 2000 SERIES 用户手册

下载
页码 285
CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6 
4.6 Hot Replacement of PCI Express Cards 
91 
 
C122-E175-01EN 
 
system information. First, confirm the bus address of the PCI Express slot that has the mounted interface 
to be replaced. 
Example: eth0 interface 
# ls -l /sys/class/net/eth0/device 
lrwxrwxrwx 1 root root 0 Sep 29 10:17 ¥ 
/sys/class/net/eth0/device 
->../../../0000:00:01.2/0000:08:00.2/0000:0b:01.0 
The ¥ at the end of a line indicates that there is no line feed. 
Excluding the rest of the directory path, check the part corresponding to the file name in the symbolic link 
destination file of the output results. In the above example, the underlined part shows the bus address. 
("0000:0b:01" in the example) 
Note 
You will use the bus address obtained here in steps 2 and 11. Record the bus address so that you can 
reference it later. 
Next, check the PCI Express slot number for this bus address. 
# grep -il 0000:0b:01 /sys/bus/pci/slots/*/address 
/sys/bus/pci/slots/20/address 
Read the output file path as shown below, and confirm the PCI Express slot number. 
/sys/bus/pci/slots/<slot number>/address 
Notes 
If the above file path is not output, it indicates that the NIC is not mounted in a PCI Express slot (e.g., 
GbE port in the IOU). 
With the PCI Express slot number confirmed here, see 
PCI Express slot 
to check the mounting location, and see also ‘
to identify the physical mounting location corresponding to the PCI 
Express slot number. You can confirm that it matches the mounting location of the operational target NIC. 
2.  Collect information about interfaces on the same NIC. 
For a NIC that has more than one interface, you will need to deactivate all the interfaces on the NIC. Use 
the following procedure to check each interface that has the same bus address as that confirmed in step 
1. Then, make a table with information including the interface name, hardware address, and bus address. 
Note 
Collect the following information even if the NIC has only one interface. 
-  Confirm the correspondence between the bus address and interface name. 
Execute the following command, and confirm the correspondence between the bus address and 
interface name. 
Example: The bus address is "0000:0b:01". 
# ls -l /sys/class/net/*/device | grep "0000:0b:01" 
lrwxrwxrwx 1 root root 0 Sep 29 10:17 ¥ 
/sys/class/net/eth0/device 
->../../../0000:00:01.2/0000:08:00.2/0000:0b:01.0 
lrwxrwxrwx 1 root root 0 Sep 29 10:17 ¥ 
/sys/class/net/eth1/device 
->../../../0000:00:01.2/0000:08:00.2/0000:0b:01.1 
The ¥ at the end of a line indicates that there is no line feed. 
The following table shows the correspondence between the bus addresses and interface names from 
the above output example. 
TABLE 4.6 Correspondence between bus addresses and interface names 
Interface name 
Hardware address 
Bus address 
Slot number 
eth0 
 
0000:0b:01.0 
20 
eth1 
 
0000:0b:01.1 
20 
... 
 
... 
... 
Note 
When recording a bus address, include the function number (number after the period). 
-  Confirm the correspondence between the interface name and hardware address. 
Execute the following command, and confirm the correspondence between the interface name and