Fujitsu 2000 SERIES Server User Manual


 
CHAPTER 4 PCI Card Hot Maintenance in Red Hat Enterprise Linux 6
4.6 Hot Replacement of PCI Express Cards
93
C122-E175-01EN
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 for safety purposes on the SLAVE
interface to be replaced to exclude it 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. Power off the PCI Express slot.
- For the partition with Dynamic Reconfiguration utility installed
Execute /opt/FJSVdp-util/sbin/dp rm pcie<slot number> command on the shell of OS.
The PCI Express card is disabled and has become to be ready for removal. The LED goes out.
Example: Making the PCI Express slot with PCI Express slot number 20 power off
# /opt/FJSVdp-util/sbin/dp rm pcie20
This operation concurrently removes the device associated with the relevant adapter from the system.
- For the partition without Dynamic Reconfiguration utility installed
Confirm that the /sys/bus/pci/slots directory contains a directory for the target slot information, which
will be referenced and otherwise used. Below, the slot number confirmed in step 1 is shown at <slot
number> in the directory path in the following format, where the directory is the operational target.
/sys/bus/pci/slots/<slot number>
To disable a PCI Express card and make it ready for removal, write "0" to the "power" file in the
directory corresponding to the target slot. The LED goes out. The interface (ethX) is removed at the
same time.
# echo 0 > /sys/bus/pci/slots/<slot number>/power
6. Save the interface configuration file.
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
7. Physically replace the NIC by using 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 1 to 7 ofOperation for Hot replacement of PCI
Express card by Maintenance Wizardin 4.6.2 PCI Express card replacement procedure in detail”.
8. Delete the entries associated with the replaced NIC from the udev function rule file.
Each entry for the new NIC is automatically added to the udev function rule file, /etc/udev/rules.d/70-
persistent-net.rules, when the NIC is detected. However, the entries of a NIC are not automatically