CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6
4.6 Hot Replacement of PCI Express Cards
95
C122-E175-01EN
Confirm that a new hardware address is defined for the bus address. Also confirm that the assigned
interface name is the same as that before the NIC replacement.
Also confirm that the relevant entries in the above-described table were automatically added to the udev
function rule file, /etc/udev/rules.d/70-persistent-net.rules.
Note
The correspondence between the bus address and interface name may be different from that before NIC
replacement. In such cases, just proceed with the work. This is explained in step 13.
13. Deactivate each newly created interface.
The interfaces created for the replacement NIC may be active because power is on to the PCI Express
slot. In such cases, you need to deactivate them before changing the interface configuration file.
Execute the following command for all the interface names confirmed in step 11.
Example: eth0
# /sbin/ifconfig eth0 down
14. Confirm the correspondence between the interface names before and after the NIC replacement.
From the interface information created before and after the NIC replacement in steps 2 and 11, confirm
the correspondence between the interface names before replacement and the new interface names.
a Confirm the correspondence between the bus address and interface name on each line in the table
created in step 2.
b Likewise, confirm the correspondence between the bus addresses and interface names in the table
created in step 11.
c Match the interface names to the same bus addresses before and after the NIC replacement.
d In the table created in step 11, enter values corresponding to the interface names before and after the
NIC replacement.
TABLE 4.9 Example of entered values corresponding to the interface names before and after NIC replacement
Interface name
After replacement
(-> Before replacement)
Hardware address
Bus address
Slot number
eth1 (-> eth0)
00:0e:0c:70:c3:40
0000:0b:01.0
20
eth0 (-> eth1)
00:0e:0c:70:c3:41
0000:0b:01.1
20
...
...
...
...
15. If an interface name is switched before and after the NIC replacement, make the interface name
correspond to the same bus address as before the NIC replacement by using the following procedure.
Note
Confirm that the interface name is the same before and after the NIC replacement. Then, proceed to step
15.
a Power off the PCI Express slot again.
Repeat the process done in step 5 to power off the PCI Express slot.
b Correct the interface name that is not the same before and after the NIC replacement in the entries of
the udev function rule file, /etc/udev/rules.d/70-persistent-net.rules. Make the interface name the
same as before the NIC replacement.
[Example of descriptions in the file before editing]
# PCI device 0x****:0x**** (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:40", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth1"
# PCI device 0x****:0x**** (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:41", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth0"
:
:
The ¥ at the end of a line indicates that there is no line feed.
[Example of descriptions in the file after editing]
(eth1, the name after replacement, has been corrected to eth0, the name before replacement.)
# PCI device 0x****:0x**** (e1000)