From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Steiner Date: Fri, 24 Jul 2009 12:07:53 +0000 Subject: Re: Where and how does network device renaming happen? Message-Id: <4A69A419.50209@bio.ifi.lmu.de> List-Id: References: <4A6957FF.3000107@bio.ifi.lmu.de> In-Reply-To: <4A6957FF.3000107@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote > On Fri, Jul 24, 2009 at 08:43, Frank > Steiner 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. *