Fujitsu PRIMEQUEST 2000 Series Administration Manual page 319

Hide thumbs Also See for PRIMEQUEST 2000 Series:
Table of Contents

Advertisement

CHAPTER 7 PCI Card Hot Maintenance in SUSE Linux Enterprise Server 12
7.9 Removing PCI Express cards
3. Execute the higher-level application processing required before NIC removal.
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. (These operations precede deactivation of the physical interface.)
# /sbin/ifdown ethX.Y
# /sbin/vconfig rem ethX.Y
[For the interface under bonding]
If the bonding device is operating in mode 1, use the following steps to exclude SLAVE interface to be
replaced from the bonding configuration. In any other mode, removing it immediately should not cause
any problems. Confirm that the SLAVE interface is the interface currently being used for communication.
# cat /sys/class/net/bondY/bonding/active_slave
If the displayed interface name corresponds to the SLAVE interface to be removed, execute the following
command to switch to communicating now with the other SLAVE interface.
# /sbin/ifenslave -c bondY ethZ
(ethZ: bondY-configured interface not subject to 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
To remove the interfaces, including the bonding device, deactivate them collectively by executing the
following command.
# /sbin/ifdown bondY
5. Power off the PCI slot.
See 'Powering on and off PCI Express slots' in
6. After taking of all cables connected to the NIC, remove the NIC from the PCI Express slot.
7. Remove the interface configuration file.
Delete the configuration files of all the interfaces confirmed in step 1, by executing the following command.
# rm /etc/sysconfig/network/ifcfg-ethX
When deleting a bonding device, also delete the related bonding items (ifcfg-bondY files).
8. Edit the settings in the udev function rule file.
The entries of the interface assigned to the removed NIC still remain in the udev function rule file,
/etc/udev/ rules.d/70-persistent-net.rules. Leaving the entries will affect the determination of interface
names for replacement cards or added cards in the future. For this reason, delete or comment out those
entries.
The following example shows editing of the udev function rule file, /etc/udev/rules.d/70-persistent-
net.rules. (In this example, the file is edited when the eth10 interface is removed.)
[Example of descriptions in the file before editing]
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:38", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth0"
:
:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ¥
ATTR{address}=="00:0e:0c:70:c3:40", ATTR{type}=="1", ¥
KERNEL=="eth*", NAME="eth10"
"7.1.2 PCI Express card replacement procedure in
293
detail".
CA92344-0537-08

Advertisement

Table of Contents
loading

Table of Contents