LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-21-2010, 10:19 AM   #1
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Rep: Reputation: 0
No Network after power outage


Greetings,
I have a slackware 12.2 server. We had some really rough storms this weekend that took the power out for many hours. The UPS that it was connect to gave up the ghost and the server went down hard.

I powered up the unit and it some up fine but with no network. Ifconfig -a shows that it only knows about the lo interface. Both integrated gig ethernet ports are missing. I am not a slackware expert. Need to figure out what is needed to get it back on the network.

dmesg | grep eth0 shows nothing. Nor eth1. ifconfig eth0 returns no such device.

any help greatly appreciated.
 
Old 06-21-2010, 10:25 AM   #2
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
does your ethernet device show up in lspci ?

Last edited by rigelan; 06-21-2010 at 10:27 AM.
 
Old 06-21-2010, 10:26 AM   #3
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
This could well be a hardware issue. Since the power went down in a storm the network devices may have been hit by a surge. A lightning strike can induce a current in a network cable even without directly hitting it.
 
Old 06-21-2010, 10:29 AM   #4
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
Quote:
Originally Posted by cantab View Post
This could well be a hardware issue. Since the power went down in a storm the network devices may have been hit by a surge. A lightning strike can induce a current in a network cable even without directly hitting it.
A couple years ago, I lost my onboard ethernet device in a storm (electric power surge). I had to swap in a replacement card to get it back up and running.
 
Old 06-21-2010, 10:39 AM   #5
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
lspci -v output shows the ethernet ports.

what next ?
 
Old 06-21-2010, 10:54 AM   #6
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
I am not an expert at bringing the eth0 interface up and down, but I do know that the script that controls the interfaces is

/etc/rc.d/rc.inet1

and it uses the configuration file

/etc/rc.d/rc.inet1.conf

Seeing that the hardware is still working, maybe simply issuing a

/etc/rc.d/rc.inet1 restart

would work?
 
Old 06-21-2010, 11:07 AM   #7
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
Or perhaps the module is simply not loaded:

Does your lspci -v for the ethernet device state:

Kernel driver in use: r8169
Kernel modules: r8169

At least these are the modules that my computer uses to connect.
 
Old 06-21-2010, 11:34 AM   #8
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Tried the /etc/rc.d/rc.net1 restart. No output generated and no interface brought up. Modified rc.net1.conf to give verbose, but same result.

looked at dmesg output and saw NO ethernet interfaces. Did the lspci again and really looked at the output. both ethernet interfaces show up, but they have some ?. For example, the first one says:
01:00.0 Ehternet Conroller: Broadcom Corporation NetXtreme BCM5721 Gigabit ethernet PCI Exress (Rev 21). Subsytem: Dell known device 01eb
vital prduct data <?> Advanced error reporting <?> Virtual channel<?>
Power budgeting <?>

Both have the same ?'s. Does this mean my ethernet interfaces are fried ?
 
Old 06-21-2010, 11:57 AM   #9
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
I think lspci reports what the card itself reports to the system. Noting that we see it all means at least the card has some communication skills left. And I think the <?> just means the card isn't reporting that information. And besides my card works, I'll show you what its output looks like:

Code:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
	Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
	Flags: bus master, fast devsel, latency 0, IRQ 26
	I/O ports at ee00 [size=256]
	Memory at fdfff000 (64-bit, non-prefetchable) [size=4K]
	[virtual] Expansion ROM at fde00000 [disabled] [size=128K]
	Capabilities: [40] Power Management version 2
	Capabilities: [48] Vital Product Data
	Capabilities: [50] MSI: Enable+ Count=1/2 Maskable- 64bit+
	Capabilities: [60] Express Endpoint, MSI 00
	Capabilities: [84] Vendor Specific Information <?>
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [12c] Virtual Channel <?>
	Capabilities: [148] Device Serial Number b8-00-00-00-10-ec-81-68
	Capabilities: [154] Power Budgeting <?>
	Kernel driver in use: r8169
	Kernel modules: r8169
It doesn't look like it shows kernel modules in use. Try
modprobe r8169 (At least that's the module my card uses)

Edit: The broadcom netXtreme should use the tg3 module
http://ja.broadcom.com/support/ether...aq_drivers.php

Last edited by rigelan; 06-21-2010 at 12:02 PM.
 
Old 06-21-2010, 01:57 PM   #10
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
/sbin/modprobe -n -v tg3 generates the following message:
FATAL: module tg3 not found.

Looked around a bit and in /usr/src/linux-2.6.27.31/drivers/net found tg3.c and tg3.h.

The ethernet interfaces were working just fine prior to this outage. Maybe the module got corrupted ?
 
Old 06-21-2010, 02:35 PM   #11
rwcooper
Member
 
Registered: Mar 2006
Posts: 45

Rep: Reputation: 15
Hi,

Have you looked for /lib/modules/2.6.27.31-smp/kernel/drivers/net/tg3.ko or /lib/modules/2.6.27.31/kernel/drivers/net/tg3.ko depending on which kernel you are using?

Have you tried insmod?

Randy
 
Old 06-21-2010, 03:00 PM   #12
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
/lib/modules/2.6.27.31-smp/kernel/drivers/net as well as
/lib/modules/2.6.27.31/kernel/drivers/net have tg3.ko.

When I modprobe I get an error. Haven tries insmod.
 
Old 06-21-2010, 03:37 PM   #13
rwcooper
Member
 
Registered: Mar 2006
Posts: 45

Rep: Reputation: 15
Hi,

I haven't used modprobe in a long time, but did you try /sbin/modprobe -n -v tg3.ko

Randy
 
Old 06-21-2010, 03:42 PM   #14
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 172

Rep: Reputation: 19
If you need to reinstall the module packages, download (this looks like slackware 12.2 with the more recent kernel patch)

http://carroll.cac.psu.edu/pub/linux....31-i486-1.tgz

or

http://carroll.cac.psu.edu/pub/linux...smp-i686-2.tgz

and then as root
Code:
upgradepkg --reinstall kernel-modules-2.6.27.31-i486-1.tgz
upgradepkg --reinstall kernel-modules-smp-2.6.27.31_smp-i686-2.tgz
If the files were corrupt, this will replace them with a non corrupt version. If the files were fine, this of course won't do anything.
 
Old 06-22-2010, 09:23 AM   #15
ksukat
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Solved!

Well,
When reading the modprobe man page for the fifth time, I noticed that modprobe would look in /lib/modules/'uname -r' for the modules. When I ran uname -r, I noticed that it returned 2.6.27.7 (I think, I am pulling this from my memory). Well when I looked in /boot, vmlinuz was a link to vmlinuz-generic-smp-2.6.27.31-smp. Since I only had this one boot image listed in lilo, I don't know how that happened.

I created a new link to the vmlinuz-generic-smp-2.6.27.31-smp. I create a new link to vmlinuz-huge-smp-2.6.27.31-smp. Modified lilo.conf and then did lilo.

Rebooted. Selected the first new link and it gave a panic. Rebooted and selected the second (huge) And the system booted fine. Ehternet interfaces up and running and configured.

The vmlinuz-generic-smp-2.6.27.31-smp must have been corrupted and an earlier image booted. Not sure how A 2.6.27.7 image was booted. But it is up an running and now I have some breathing room.

Have to say this has been pretty weird.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
power outage blackmamba11 Linux - Server 1 12-03-2007 11:51 AM
Network card problem after power outage robrecc Slackware 13 06-11-2006 12:12 AM
PC network changed after power outage Trio3b Linux - Networking 0 11-29-2005 02:19 AM
power outage jbzy3000 Linux - General 2 02-24-2005 09:11 PM
Power Outage notslim General 30 08-28-2003 03:47 AM


All times are GMT -5. The time now is 09:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration