Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and eth0 issues [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Wed Jan 30, 2013 7:58 pm    Post subject: udev and eth0 issues [SOLVED] Reply with quote

I'm assisting a former employer in managing some servers from out of state.

In a series of lessons in what NOT to do, I remotely power cycled a server (lesson 1) in order to check a permissions on a directory that was causing mail to crash. They rebooted the server a few days before, so I thought it would be fine to reboot it two days later (lesson 2). Unfortunately, I missed the udev update (lesson 3) that had been installed, so when the server came back online, it failed to start. I was able to get someone on site to swap to a backup drive, rebuilt the kernel with the DEVTMPFS flags enabled, and we were able to the machine to boot. However, now we have a eth0 issue:

It seems the hardware address for eth0 has changed. According to ifconfig, eth0 is:

Code:
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 78:2b:cb:18:77:d1  txqueuelen 1000  (Ethernet)


However, according to the DHCP server, when ever this server comes online, it gets queried with

Code:
DHCPDISCOVER from 78:2b:cb:18:77:d3 via eth0: unknown client


I have NO IDEA where this Mac address is being configured. And it disappears when the machine boots into the backup drive.

We've tried modifying (with the mac address querying DHCP) or deleting /etc/udev/rules.d/70-persistent-net.rules - neither of which has any effect.

When I allow the MAC address querying the DHCP server to take an IP address - I can then ping that IP, but I can't ssh, or do anything else (and no network services come online with that IP). All nmap revleals is that it is a DELL box, and no ports are open.

We've tried modifying, deleting, or leaving a commented version of /etc/udev/rules.d/80-net-name-slot.rules

Code:
udevadm test-builtin net_id /sys/class/net/ifname 2> /dev/null


The contents of /sys/class/net

Code:
eth0  eth1  lo  sit0



Maybe I need to modify the address in the eth0/address file of /sys/class/net ?

I've tried building the ethernet card into the kernel, but that doesn't work (Broadcom NetextremeII - my understanding is the Broadcom NetextremeII works only as a module).

I'm just totally stumped. I do have a fairly recent backup into which I am able to boot (and no data was lost, fortunately). so I can access the various partitions on the problem drive. And I've studied this thread fairly extensively, but nothing discussed seems to work (it's possible I missed something).

And as a second question - aside from rebuilding the kernel with DEVTMPFS, how do I prevent this from happening on the other gentoo servers at their site? Other than the version of udev, is there something else I need to check?

Anyway - any assistance would be GREATLY appreciated (and any mocking will also be understood).


Last edited by CM73 on Tue Feb 05, 2013 11:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21489

PostPosted: Thu Jan 31, 2013 3:08 am    Post subject: Reply with quote

When you boot into the configuration that receives an address, but offers no service, what is the output of ip addr ; ip route ; ss -an? You can have an unprivileged user in the data center run these and either relay their contents to you, or write them to persistent storage and then reboot into the backup to access the saved data.
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Thu Jan 31, 2013 2:28 pm    Post subject: Reply with quote

There is someone at the location with root access. I've asked him to get the output of those commands.

I should also mention that I have the dmesg output saved as well. I didn't see any network interfaces there either...
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Thu Jan 31, 2013 5:43 pm    Post subject: Reply with quote

So all I was able to get is the result of ipmaddr - either the other programs were not installed or he didn't know howto run them.
Code:

1:   lo
   inet  224.0.0.1
   inet6 ff02::1
2:   sit0
   inet  224.0.0.1
   inet6 ff02::1
3:   eth0
   link  33:33:00:00:00:01
   inet6 ff02::1
4:   eth1
   link  33:33:00:00:00:01
   inet6 ff02::1


I just noticed this at the end of the dmesg output:

Code:
[   31.831570] bnx2: Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.2.1 (Dec 18, 2011)
[   31.832248] bnx2 0000:02:00.0: eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem da000000, IRQ 16, node addr 78:2b:cb:18:77:d1
[   31.832858] bnx2 0000:02:00.1: eth1: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 17, node addr 78:2b:cb:18:77:d2
[   33.205815] EXT3-fs (sda3): using internal journal
[   33.348620] Adding 524284k swap on /dev/sda2.  Priority:-1 extents:1 across:524284k
[   34.820074] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"
[   34.820486] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"
[   35.983393] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"


I really appreciate the help....
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jan 31, 2013 5:47 pm    Post subject: Reply with quote

CM73 wrote:
So all I was able to get is the result of ipmaddr - either the other programs were not installed or he didn't know howto run them.
I just noticed this at the end of the dmesg output:

Code:
[   31.831570] bnx2: Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.2.1 (Dec 18, 2011)
[   31.832248] bnx2 0000:02:00.0: eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem da000000, IRQ 16, node addr 78:2b:cb:18:77:d1
[   31.832858] bnx2 0000:02:00.1: eth1: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found at mem dc000000, IRQ 17, node addr 78:2b:cb:18:77:d2
[   33.205815] EXT3-fs (sda3): using internal journal
[   33.348620] Adding 524284k swap on /dev/sda2.  Priority:-1 extents:1 across:524284k
[   34.820074] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"
[   34.820486] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"
[   35.983393] bnx2: Can't load firmware file "bnx2/bnx2-mips-09-6.2.1b.fw"


I really appreciate the help....


You could start by installing the missing firmware?

Code:

# emerge linux-firmware
$ qfile -v /lib/firmware/bnx2/bnx2-mips-09-6.2.1b.fw
sys-kernel/linux-firmware-20121225 (/lib/firmware/bnx2/bnx2-mips-09-6.2.1b.fw)
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Thu Jan 31, 2013 6:11 pm    Post subject: Reply with quote

Thanks - I didn't catch that. I'll post the results when he installs the firmware.

Out of curiosity, though... why would that *suddenly* be required when the server was working perfectly fine - reboot and all - on Wednesday and suddenly need the firmware after the world update on Friday.. The machine wasn't that out of date - maybe a two weeks or so - so I'm a bit surprised that, whatever update was done, hosed the machine.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jan 31, 2013 6:15 pm    Post subject: Reply with quote

CM73 wrote:
Thanks - I didn't catch that. I'll post the results when he installs the firmware.

Out of curiosity, though... why would that *suddenly* be required when the server was working perfectly fine - reboot and all - on Wednesday and suddenly need the firmware after the world update on Friday.. The machine wasn't that out of date - maybe a two weeks or so - so I'm a bit surprised that, whatever update was done, hosed the machine.


I have some IBM System X servers at work with the exact same card and I can't remember them ever working without the firmware. I suppose some mistake was done, perhaps --depclean removed linux-firmware.
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Thu Jan 31, 2013 6:22 pm    Post subject: Reply with quote

So I chrooted (ala the Gentoo installation guide) into the *non-bootable* drive, and installed the firmware:

Code:

>>> Installing (1 of 1) sys-kernel/linux-firmware-20120924
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *    /lib/firmware/tigon/tg3.bin
 *    /lib/firmware/tigon/tg3_tso5.bin
 *    /lib/firmware/tigon/tg3_tso.bin
 *    /lib/firmware/bnx2/bnx2-mips-09-6.2.1.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-09-6.0.17.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-06-6.0.15.fw
 *    /lib/firmware/bnx2/bnx2-mips-06-6.2.1.fw
 *    /lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw
 *    /lib/firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw
 *    /lib/firmware/bnx2x/bnx2x-e2-6.2.9.0.fw
 *    /lib/firmware/bnx2x/bnx2x-e1-6.2.9.0.fw
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * None of the installed packages claim the file(s).
 *
 * Package 'sys-kernel/linux-firmware-20120924' merged despite file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.

>>> Recording sys-kernel/linux-firmware in "world" favorites file...

 * Messages for package sys-kernel/linux-firmware-20120924:

 * Your configuration for sys-kernel/linux-firmware-20120924 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20120924 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 *
 * Detected file collision(s):
 *
 *    /lib/firmware/tigon/tg3.bin
 *    /lib/firmware/tigon/tg3_tso5.bin
 *    /lib/firmware/tigon/tg3_tso.bin
 *    /lib/firmware/bnx2/bnx2-mips-09-6.2.1.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-09ax-6.0.17.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-09-6.0.17.fw
 *    /lib/firmware/bnx2/bnx2-rv2p-06-6.0.15.fw
 *    /lib/firmware/bnx2/bnx2-mips-06-6.2.1.fw
 *    /lib/firmware/bnx2/bnx2-mips-09-6.2.1a.fw
 *    /lib/firmware/bnx2x/bnx2x-e1h-6.2.9.0.fw
 *    /lib/firmware/bnx2x/bnx2x-e2-6.2.9.0.fw
 *    /lib/firmware/bnx2x/bnx2x-e1-6.2.9.0.fw
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * None of the installed packages claim the file(s).
 *
 * Package 'sys-kernel/linux-firmware-20120924' merged despite file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.



And the results of qfile:

Code:
sys-kernel/linux-firmware-20120924 (/lib/firmware/bnx2/bnx2-mips-09-6.2.1b.fw)


So it installed in spite of some file collisions. Not sure I like the sound of that. Should I have him try the drive again?
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Fri Feb 01, 2013 1:02 am    Post subject: Reply with quote

I did a revdep-rebuild for giggles, nothing was updated.
Back to top
View user's profile Send private message
CM73
n00b
n00b


Joined: 30 Jan 2013
Posts: 10

PostPosted: Tue Feb 05, 2013 11:09 pm    Post subject: Reply with quote

So a re-emerge of the linux-firmware (even though it was already installed) did in fact solve the problem. Thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum