部分服务器的安装Centos 6 以后,一开始是可以ping通的,但是过了一段时间以后,网卡就没有办法ping通了。但是通过IPMI重启以后立即又恢复了,如此往复,真的非常的蛋疼。
经过查看了一下相关的文档后发现e1000的网卡的驱动存在不兼容的问题,导致服务器在一段时间以后会有自动休眠的情况。
一些比较老一些的服务器都基本使用的是这个型号的集成网卡。
那我们如何将自动休眠的功能给disable掉呢?
[root@vps001 ~]# dmesg|grep PCIe
PCIe ASPM is disabled
编辑Grub的启动配置文件:menu.lst
vim /boot/grub/menu.lst
在Kernel后面加上:
pcie_aspm=off
例如:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg-root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-754.9.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-754.9.1.el6.x86_64 ro root=/dev/mapper/vg-root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg/swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg/root rd_NO_DM rhgb quiet pcie_aspm=off
initrd /initramfs-2.6.32-754.9.1.el6.x86_64.img
重启后问题解决!