Mitigating the CentOS 6.5 Network-adapter-reset Bug

(Is your server not living up to its potential? Order a server from us with promo code PACKETS for 15% off your first invoice)
 
We have confirmed that the CentOS 6.5 kernel (x86_64) has a flaw that causes some network adapters to reset, making them unavailable unless you do a system reboot. You would likely see the message "eth0: Reset adapter unexpectedly" in your system logs when this issue occurs. This bug has also been reported in the CentoOS Bug Tracker forum as early as December 2013.


To prevent this reset, add "pcie_aspm=off" to the kernel command line parameters by doing either of the following actions:

  • Using the Grubby command line tool: /sbin/grubby --args=pcie_aspm=off --update-kernel=ALL

  • Using your text editor to edit /boot/grub/grub.conf (i.e. vim /boot/grub/grub.conf) so you can add the required parameters to at least the first (default) item in the menu

Example:

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title CentOS (2.6.32-431.1.2.0.1.el6.x86_64)

        root (hd0,0)

        kernel /vmlinuz-2.6.32-431.1.2.0.1.el6.x86_64 ro root=/dev/mapper/VolGroup00-root nomodeset rd_NO_LUKS LANG=en_US.UTF-8 console=tty0 rd_NO_MD rd_LVM_LV=VolGroup00/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup00/root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet pcie_aspm=off

        initrd /initramfs-2.6.32-431.1.2.0.1.el6.x86_64.img

title CentOS (2.6.32-431.el6.x86_64)

        root (hd0,0)

        kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VolGroup00-root nomodeset rd_NO_LUKS LANG=en_US.UTF-8 console=tty0 rd_NO_MD rd_LVM_LV=VolGroup00/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup00/root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet

        initrd /initramfs-2.6.32-431.el6.x86_64.img

Reboot the system to load the kernel with the new parameters.

  • 96 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

Advanced Network Troubleshooting: Using traceroute

(Is your server's network not living up to its potential? Order a server from us with promo code...

Advanced Network Troubleshooting: Using Telnet

(Is your server's network not living up to its potential? Order a server from us with promo code...

Advanced Network Troubleshooting: Using My Traceroute (MTR)

(Is your server's network not living up to its potential? Order a server from us with promo code...

Basic Network Troubleshooting

(Is your server's network not living up to its potential? Order a server from us with promo code...

Basic Performance Analysis

(Is your server not living up to its potential? Order a server from us with promo code PACKETS...