{"id":225,"date":"2014-11-28T04:19:31","date_gmt":"2014-11-28T11:19:31","guid":{"rendered":"http:\/\/blog.ioflood.com\/?p=225"},"modified":"2023-08-11T17:17:10","modified_gmt":"2023-08-12T00:17:10","slug":"e1000e-nic-link-failure-x9scm-x9scl-patch-fix-for-centos","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/e1000e-nic-link-failure-x9scm-x9scl-patch-fix-for-centos\/","title":{"rendered":"e1000e NIC link failure \/ x9scm \/ x9scl \/ patch fix for Centos"},"content":{"rendered":"<div style=\"width: 417px\" class=\"wp-caption alignright\"><img decoding=\"async\" class=\"alignright\" title=\"Sixty: Horked by stibbons\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2014\/11\/437702366_cb931d03d0_nic-driver.jpg\" alt=\"nic driver photo\" width=\"407\" height=\"305\" \/><p class=\"wp-caption-text\"><small>Photo by <a href=\"http:\/\/www.flickr.com\/photos\/43038556@N00\/437702366\" target=\"_blank\" rel=\"noopener\">stibbons<\/a> <a title=\"Attribution License\" href=\"http:\/\/creativecommons.org\/licenses\/by\/2.0\/\" target=\"_blank\" rel=\"nofollow noopener\"><img decoding=\"async\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/plugins\/wp-inject\/images\/cc.png\" alt=\"Creative Commons Logo\" title=\"\"><\/a><\/small><\/p><\/div>\r\n\r\nIf you&#8217;ve had problems with the nic driver failing on x9 \/ x10 supermicro motherboards with the intel e1000e NIC, we have a fix for you. Centos 6 on X9 motherboards (x9scl \/ x9scm) seems to have the most problems, but other motherboards and OS&#8217;s are potentially affected as well.\r\n\r\nThere are a lot of suggestions floating around the internet, many are partial solutions. There are a few steps to take, each will improve reliability, but only somewhat. Doing all of the steps\u00a0together, it should be very stable, but most tutorials only tell you one or two fixes, not the complete solution. We have the complete solution for you here, that we install for every customer of ours who requests Centos.\r\n\r\nOften, you will see an error with the network, requiring you to reboot. It will happen randomly, maybe after 5 minutes, maybe after 5 hours or 5 days, but it will come. The kind of error like:\r\n<pre style=\"padding-left: 30px;\">Oct 15 14:25:24 ______ kernel: e1000e: eth0 NIC Link is Down<\/pre>\r\nIf you see this problem, then this solution is for you.\r\n\r\nFirst off, upgrade your kernel\r\n<pre style=\"padding-left: 30px;\">yum -y upgrade<\/pre>\r\nand reboot into the new kernel\r\n\r\nNext, check your existing driver version\r\n<pre style=\"padding-left: 30px;\">modinfo e1000e | grep version:<\/pre>\r\nMake a note of the current version, to make sure the upgrade worked later.\r\n\r\nNext, copy and paste the following script into a bash file using your favorite text editor (I usually prefer nano). Chmod 755 the file and run it.\r\n<pre class=\"alt2\" dir=\"ltr\"># Copyright 2014 Input Output Flood LLC\r\n# www.IOFLOOD.com -- We Love Servers\r\n# This script may be freely distributed so long as this copyright notice remains intact\r\n#\r\n# this is a pre-requisite for our nifty nic upgrade script\r\n yum -y install pciutils\r\n \r\n # update this network driver for the appropriate RHEL release and the appropriate driver (e1000e and igb supported)\r\n NIC=`lspci -nv | egrep \"e1000e$|igb$\" | sed 's\/\\tKernel driver in use: \/\/g' | sed 's\/\\tKernel modules: \/\/g' | uniq`\r\n if grep -q -i \"release 5\" \/etc\/redhat-release\r\n then\r\n   RPM=\"http:\/\/elrepo.org\/elrepo-release-5-5.el5.elrepo.noarch.rpm\"\r\n elif grep -q -i \"release 6\" \/etc\/redhat-release\r\n then\r\n   RPM=\"http:\/\/elrepo.org\/elrepo-release-6-6.el6.elrepo.noarch.rpm\"\r\n   if [[ \"$NIC\" == \"e1000e\" ]]\r\n   then\r\n     grubby --update-kernel=ALL --args=\"pcie_aspm=off e1000e.IntMode=1,1 e1000e.InterruptThrottleRate=10000,10000 acpi=ht\"\r\n   fi\r\n elif grep -q -i \"release 7\" \/etc\/redhat-release\r\n then\r\n   RPM=\"http:\/\/elrepo.org\/elrepo-release-7.0-2.el7.elrepo.noarch.rpm\"\r\n   if [[ \"$NIC\" == \"e1000e\" ]]\r\n   then\r\n     grubby --update-kernel=ALL --args=\"pcie_aspm=off e1000e.IntMode=1,1 e1000e.InterruptThrottleRate=10000,10000 acpi=ht\"\r\n   fi\r\n fi\r\n if [[ -n \"$RPM\" && -n \"$NIC\" ]] \r\n then\r\n   rpm --import http:\/\/elrepo.org\/RPM-GPG-KEY-elrepo.org\r\n   rpm -Uvh $RPM\r\n   yum -y install kmod-$NIC\r\n fi\r\n#\r\n# Copyright 2014 Input Output Flood LLC\r\n# www.IOFLOOD.com -- We Love Servers\r\n# This script may be freely distributed so long as this copyright notice remains intact<\/pre>\r\n<p class=\"alt2\" dir=\"ltr\">The above script does a few things. First off, it will install pciutils, which is needed for the other steps. Secondly, it checks your centos version because Centos 5, Centos 6, and Centos 7 require a different rpm to be downloaded. Next, it will download the correct driver for your version and for your nic. The script works with both e100e and IGB network drivers. Next, it will update your kernel flags to be appropriate for maximum stability. For e100e nics, it will enable &#8220;pcie_aspm=off&#8221; and &#8220;acpi=ht&#8221; so that the only acpi function turned on will be hyperthreading, other acpi functions will be turned off.<\/p>\r\n<p class=\"alt2\" dir=\"ltr\">After running this script, you should reboot again (to enable the new kernel flags) and then check your driver version again:<\/p>\r\n\r\n<pre style=\"padding-left: 30px;\">modinfo e1000e | grep version:<\/pre>\r\n<p class=\"alt2\" dir=\"ltr\">You should now see an updated driver version, and should now have a stable network card under Centos. Congratulations.<\/p>\r\n<p class=\"alt2\" dir=\"ltr\"><strong><\/strong><\/p>\r\n\r\n<h2 class=\"wp-block-heading\">Do you love servers?<\/h2>\r\n<p class=\"alt2\" dir=\"ltr\"><strong> <\/strong><\/p>\r\nIf you love servers like we do, we&#8217;d love to work together! IOFLOOD.com offers dedicated servers to people like you, and as part of that service, we optimize your OS installation to the latest version of your network driver to improve performance and stability. To get started today, <a href=\"https:\/\/ioflood.com\/phoenix-dedicated-servers.php\">click here to view our dedicated servers<\/a>, or email us at sales[at]ioflood.com to ask for a custom quote.\r\n<p class=\"alt2\" dir=\"ltr\"><strong>\r\n<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve had problems with the nic driver failing on x9 \/ x10 supermicro motherboards with the intel e1000e NIC, we have a fix for you. Centos 6 on X9 motherboards (x9scl \/ x9scm) seems to have the most problems, but other motherboards and OS&#8217;s are potentially affected as well. There are a lot of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":436,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,11,115,33,9,10],"tags":[],"class_list":["post-225","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-linux","category-networking","category-redhat-enterprise-linux-rhel","category-server-hardware","category-sysadmin","category-troubleshooting","cat-4-id","cat-3-id","cat-11-id","cat-115-id","cat-33-id","cat-9-id","cat-10-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":8,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":3096,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions\/3096"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/436"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}