CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6
4.6 Hot Replacement of PCI Express Cards
94
C122-E175-01EN
deleted even if the NIC is removed. Leaving the entries of the removed NIC may have the following
impact.
- The interface names defined in the entries of the removed NIC cannot be assigned to the replacement
NIC or an added NIC.
For this reason, delete or comment out the entries of the removed NIC from the udev function rule file.
a Confirm the correspondence between the interface name and hardware address in the table created
in step 2.
b Edit the udev function rule file, /etc/udev/rules.d/70-persistent-net.rules, to delete or comment out the
entry lines of all the interface names and hardware addresses confirmed in the above step 1.
The following example shows editing of the udev function rule file.
[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:38", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth0"
# PCI device 0x****:0x**** (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:39", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth1"
:
:
The ¥ at the end of a line indicates that there is no line feed.
[Example of descriptions in the file after editing]
(In the example, eth0 was deleted, and eth1 is commented out.)
# PCI device 0x****:0x**** (e1000)
# SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:39", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth1"
:
:
The ¥ at the end of a line indicates that there is no line feed.
Do this editing for all the interfaces listed in the table created in step 2.
9. Reflect the edited rules in udev.
udevd reads the rules described in the rule file at its start time and then retains the rules in memory.
Simply changing the rule file does not mean the changed rules are reflected. Take action as follows to
reflect the new rules in udev.
# udevadm control -–reload-rules
10. Power on the PCI Express slot.
See ‘Powering on and off PCI Express slots’ in “4.6.2 PCI Express card replacement procedure in detail”.
11. Check whether there is an error in added FC card by MMB Maintenance Wizard.
This step is performed by the field engineer in charge of your system.
For details on the operation of replacement, see step 8 to 11 of ‘Operation for Hot replacement of PCI
Express card by Maintenance Wizard’ in “4.6.2 PCI Express card replacement procedure in detail”.
12. Collect the information associated with an interface on the replacement NIC.
An interface (ethX) is created for the replacement NIC at the power-on time. Make a table with
information about each interface created for the replacement NIC. Such information includes the interface
name, hardware address, and bus address. Use the bus address confirmed in step 1 and the same
procedure as in step 2.
TABLE 4.8 Example of interface information about the replacement NIC
Interface name
Hardware address
Bus address
Slot number
eth1
00:0e:0c:70:c3:40
0000:0b:01.0
20
eth0
00:0e:0c:70:c3:41
0000:0b:01.1
20
...
...
...
...