CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6
4.3 Hot replacement of IOU
68
C122-E175-01EN
6. Delete the entries associated with the replaced NIC from the udev function rule file.
The entry to be removed is only onboard NIC for replacing IOU itself. For replacing or removing PCI
Express card, the entry to be removed is the interface corresponding to the PCI Express card.
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 a.
The following example shows editing of the udev function rule file.
Example of descriptions in the file before editing
# PCI device 0x8086:0x1521 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="2c:d4:44:f1:44:f0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x1521 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="2c:d4:44:f1:44:f1", 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 0x8086:0x1521 (igb)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="2c:d4:44:f1:44:f1", 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.
7. 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
iSCSI (NIC) on the IOU
If replace iSCSI (NIC) on the IOU, you have to take not only the same steps of ‘NIC on the IOU (including
Onboard NIC)’ but also takes below steps in step 3 of that.
1. Perform the work for suppressing access to the iSCSI connection interface.
a Confirm the state of multiple path by DM-MP (*1) or EMPD (*2).
b Use the iscsiadm command to log out from the path (iqn) through which the iSCSI card to be replaced
is routed, and disconnect the session.
Example which confirms the state of session before disconnecting:
# /sbin/iscsiadm -m session
tcp: [1] 192.168.1.64:3260,1 iqn.2000-
09.com.fujitsu:storage-system.eternus-
dx400:00001049.cm0ca0p0
tcp: [2] 192.168.2.66:3260,3 iqn.2000-
09.com.fujitsu:storage-system.eternus-
dx400:00001049.cm1ca0p0
Example which logout path going through a NIC to be replaced:
# /sbin/iscsiadm -m node -T iqn.2000-09.com.fujitsu:storage-