In the last couple of months, two web servers went wrong after one was completed. Problem: the client cannot access the web application because it is slow. Environment: OS: CentOS5.3, CentOS5.4, 64Bit NIC: broadcomconfigurationnetxtremeiibcm5709 default drive bnx2: 1.9.6 after a problem occurs, find the var/log/message and other logs. No exception is found. Yes
In the last couple of months, two web servers went wrong after one was completed.
Symptom
The client cannot access the web application immediately after it is slow.
Environment: OS: CentOS5.3, CentOS5.4, 64Bit NIC: Broadcom Corporation NetXtreme II BCM5709 default drive bnx2: 1.9.6
When a problem occurs, the var, log, and message logs cannot be found. I think there may be a problem with the network card. At night, I changed the network port and implemented bonding to solve the problem. However, the problem persists after a while.
Finally, ask the person you know. It turns out to be a built-in centos driver. The following is a solution:
Solution:
Solution 1: when the system starts kernel loading, the ACPI power management system is disabled to modify the corresponding Grub. conf boot program configuration file: (this solution has never been tried, because it is an online production environment, or it is more worried about unreliable)
Vim/boot/grub. conf
Title CentOS (2.6.18-194. el5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-194.el5 ro root =/dev/VolGroup00/LogVol00 acpi = off # kernel boot line last added acpi = off
Initrd/initrd-2.6.18-194.el5.img
Solution 2: remove the built-in NIC Driver and manually install and update the NIC Driver. (Finally, select this solution to repair the effect to be observed in the future ...)
1. First confirm the current driver version:
Modinfo bnx2 # Or ethtool-I eth0 to view the firmware version
Filename:/lib/modules/2.6.18-194. el5/kernel/drivers/net/bnx2.ko
Version: 1.9.6
License: GPL
-------------------
Ethtool-I eth0
Driver: bnx2
Version: 2.0.2
Firmware-version: bc 4.6.4
Bus-info:. 0
2, download the latest NIC Driver: http://www.broadcom.com/support/ethernet_nic/netxtremeii.php
3. install the update driver:
Unzip linux-6.0.53.zip # unzip the driver which includes source code and rpm packages
Cd Server/Linxu/Driver
Rpm-ivh netxtreme2-6.0.53-1.src.rpm # decompressed package source code
1: netxtreme2 ####################################### #### [100%]
Cd/usr/src/RedHat/SPECS/
Rpmbuild-bb netxtreme2.spec # recreate the rpm package for the production system
Cd ../RPMS/x86_64/
Rpm-ivh netxtreme2-6.0.53-1.x86_64.rpm # Install NIC Driver
4. NIC Driver switch:
Rmmod bnx2
Modprobe bnx2
Note: Normally, the network will be interrupted and the network will be automatically restored after reloading is completed. If an exception occurs, the server may need to be restarted to reload the new NIC Driver.
5. Verify the current driver version after the update:
Modinfo bnx2 # Or ethtool-I eth0 to view the firmware version
Filename:/lib/modules/2.6.18-194. el5/updates/bnx2.ko
Version: 2.0.18c
License: GPL
Ethtool-I eth0
Driver: bnx2
Version: 2.0.18c
Firmware-version: bc 4.6.4
Bus-info:. 0
After the NIC is upgraded, you can only view the effect after the driver is upgraded.