* Where and how does network device renaming happen?
@ 2009-07-24 6:43 Frank Steiner
2009-07-24 11:45 ` Kay Sievers
2009-07-24 12:07 ` Frank Steiner
0 siblings, 2 replies; 3+ messages in thread
From: Frank Steiner @ 2009-07-24 6:43 UTC (permalink / raw)
To: linux-hotplug
Hi,
somewhat related to my former mail, but it's more a general question
for understanding the renaming process.
We've one hosts that always creates a 70-persistent-net.rules file with
SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_1"
SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_0"
for it's two onboard network cards. When we remove the file and reboot the
hosts, the file gets created with the same values.
All other hosts with the same mainboard and hardware config create their
file with KERNEL="eth*", NAME="eth0" etc. I tried to understand what
/lib/udev/write_net_rules does, but I can't figure out why on this host
the script thinks that the device names eth0 and eth1 are already taken.
There are not other rules about network devices, so who is taking eth0/1
so that the script thinks it must rename the devices?
Can someone explain the renaming process a little bit? How can I debug
who is taking the devices names on this host? Is there a way to change that?
Of course I can change the rule files, but I want to understand *why* it
is created with eth_s2_0 instead of eth0.
cu,
Frank
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where and how does network device renaming happen?
2009-07-24 6:43 Where and how does network device renaming happen? Frank Steiner
@ 2009-07-24 11:45 ` Kay Sievers
2009-07-24 12:07 ` Frank Steiner
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2009-07-24 11:45 UTC (permalink / raw)
To: linux-hotplug
On Fri, Jul 24, 2009 at 08:43, Frank
Steiner<fsteiner-mail1@bio.ifi.lmu.de> wrote:
> We've one hosts that always creates a 70-persistent-net.rules file with
> SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_1"
> SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_0"
> Can someone explain the renaming process a little bit? How can I debug
> who is taking the devices names on this host? Is there a way to change that?
> Of course I can change the rule files, but I want to understand *why* it
> is created with eth_s2_0 instead of eth0.
Seems you have installed biosdevname, which you probably shouldn't if
you don't want a different namespace.
Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Where and how does network device renaming happen?
2009-07-24 6:43 Where and how does network device renaming happen? Frank Steiner
2009-07-24 11:45 ` Kay Sievers
@ 2009-07-24 12:07 ` Frank Steiner
1 sibling, 0 replies; 3+ messages in thread
From: Frank Steiner @ 2009-07-24 12:07 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote
> On Fri, Jul 24, 2009 at 08:43, Frank
> Steiner<fsteiner-mail1@bio.ifi.lmu.de> wrote:
>
>> We've one hosts that always creates a 70-persistent-net.rules file with
>> SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_1"
>> SUBSYSTEM="net",..., ATTR{type}="1", KERNEL="eth_s*", NAME="eth_s2_0"
>
>> Can someone explain the renaming process a little bit? How can I debug
>> who is taking the devices names on this host? Is there a way to change that?
>> Of course I can change the rule files, but I want to understand *why* it
>> is created with eth_s2_0 instead of eth0.
>
> Seems you have installed biosdevname, which you probably shouldn't if
> you don't want a different namespace.
That's right, it's indeed installed (comes by default in the package set
we are using). I'll remove it!
For this special host it turned out that the 70-persistent-net.rules
file specifying those strange names was transferred into the initrd,
so the devices were renamed in the initrd already, and thus, the names
the kernel was returning were eth_s2_x.
Thanks for your help!
cu,
Frank
--
Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17 Phone: +49 89 2180-4049
80333 Muenchen, Germany Fax: +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-07-24 12:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 6:43 Where and how does network device renaming happen? Frank Steiner
2009-07-24 11:45 ` Kay Sievers
2009-07-24 12:07 ` Frank Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).