Fujitsu 2000 SERIES Manual Do Utilizador

Página de 285
CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6 
4.3 Hot replacement of IOU 
67 
 
C122-E175-01EN 
 
Example: eth0 
grep eth0 /etc/udev/rules.d/70-persistent-net.rules 
 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥ 
ATTR{address}=="2c:d4:44:f1:44:f0", ATTR{type}=="1", ¥ 
KERNEL=="eth*", NAME="eth0" 
The ¥ at the end of a line indicates that there is no line feed. 
You can always obtain the correct hardware address from the description in etc/udev/rules.d/70- 
persistent-net.rules regardless of whether the interface is incorporated in bonding. 
Confirm the hardware address of other interfaces by repeating the operation with the same command. 
The following table lists examples of descriptions. 
TABLE 4.2 Hardware address description examples 
Interface name 
Hardware address 
Bus address 
Location 
eth0 
2c:d4:44:f1:44:f0 
0000:89:01.0 
Onboard 0 
eth1 
2c:d4:44:f1:44:f1 
0000:89:01.1 
Onboard 1 
eth2 
00:19:99:d7:36:5f 
0000:8c:00.0 
PCI#0 
... 
 
... 
... 
3.  Execute the higher-level application processing required before NIC replacement. 
Stop all access to the interface as follows. Stop the application that was confirmed in step 2 as using the 
interface, or exclude the interface from the target of use by the application. 
4.  Deactivate the NIC. 
Execute the following command to deactivate all the interfaces that you confirmed in step 2. The 
applicable command depends on whether the target interface is a single NIC interface or the SLAVE 
interface of a bonding device. 
For a single NIC interface: 
# /sbin/ifdown ethX 
If the single NIC interface has a VLAN device, you also need to remove the VLAN interface. Perform the 
following operations (before deactivating the real interface). 
# /sbin/ifdown ethX.Y 
# /sbin/vconfig rem ethX.Y 
For the SLAVE interface of a bonding device: 
If the bonding device is operating in mode 1, use the following steps to exclude safely SLAVE interface to 
be replaced from operation. In any other mode, removing it immediately should not cause any problems. 
Confirm that the SLAVE interface to be replaced is the interface currently being used for communication. 
First, confirm the interface currently being used for communication by executing the following command. 
# cat /sys/class/net/bondY/bonding/active_slave 
If the displayed interface matches the SLAVE interface being replaced, execute the following command to 
switch the current communication interface to another SLAVE interface. 
# /sbin/ifenslave -c bondY ethZ 
(ethZ: Interface that composes bondY and does not perform hot replacement) 
Finally, remove the SLAVE interface being replaced, from the bonding configuration. Immediately after 
being removed, the interface is automatically no longer used. 
# /sbin/ifenslave -d bondY ethX 
5.  Save all the interface configuration files that you checked in step 2 by executing the following command. 
udevd and configuration scripts may reference the contents of files in /etc/sysconfig/network-scripts. For 
this reason, create a save directory and save these files to the directory so that udevd and the 
configuration scripts will not reference them. 
# cd /etc/sysconfig/network-scripts 
# mkdir temp 
# mv ifcfg-ethX temp 
(following also executed for bonding configuration) 
# mv ifcfg-bondX temp