LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 03-30-2006, 06:24 AM   #1
helmsman
LQ Newbie
 
Registered: Mar 2006
Location: Westcoast of Sweden
Distribution: Ubuntu, suse and fedora
Posts: 4

Rep: Reputation: 0
interface problems after cloning


hi.

I have a problem with interfaces after cloning a disk.

First i have a number of identical machines. (Dell 350)

I installed OpenSuse 10.0 (OSS).
Configured and working with the serices I need.

Take a ghost with symantec ghost v8.2 in raw mode.
(That way it handles ext3 fs without examning)

Clone another host with the ghost image.

The clone host boots up and works fine, except for the interface eth0.

It is suddenly named as eth2 and 3. (I have 2 ifīs in every machine)

Question:

How do I get eth0 to be just eth0 ?
Where di I go wrong ?

Why ?
I need the if naming to be the same in every host due to extensive scripting.
That is I automate a lot in the hosts to adopt them to unik situastions after cloning.

Does anyone have any idé as to what might be a solution ?

Thanks. Helmsman.
 
Old 04-02-2006, 01:26 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,388
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Do you have anything in your ethernet configuration scripts that is tied to the ethernet MAC address? That is one of the only things found in most PC's that is guaranteed to be unique, and is sometimes used as the lookup key in DCHP assigned addresses. Sorry not to have a specific suggestion; just fishing in the area that seems to be germain to the problem.

--- rod.
 
Old 04-03-2006, 10:15 AM   #3
helmsman
LQ Newbie
 
Registered: Mar 2006
Location: Westcoast of Sweden
Distribution: Ubuntu, suse and fedora
Posts: 4

Original Poster
Rep: Reputation: 0
Hello.

No, the only thing I have in my ethernet config script that suggest anything is "device=eth0".
That isnīt the same I know, it only says "this script is for eth0" not what interface that is.

I seem to remember have seeing something like: MAC=XX:XX:XX:XX:XX:XX.
in older config scripts, could that be what you are suggesting ?

In Suse as of ver 10 they name the config script after the mac-address of the relevant interface. (ifcfg-eth-id-xx:xx:xx:xx:xx:xx)
How is it solved if I canīt do that ?

If there is a way to do that it would solve my problem.

Do you (as I do) suspect that hotplug has something to do with it.
(actually the coldplug feature of hotplug)

Yours Helmsman.
 
Old 04-03-2006, 12:55 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,388
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Quote:
I seem to remember have seeing something like: MAC=XX:XX:XX:XX:XX:XX.
in older config scripts, could that be what you are suggesting ?

In Suse as of ver 10 they name the config script after the mac-address of the relevant interface. (ifcfg-eth-id-xx:xx:xx:xx:xx:xx)
How is it solved if I canīt do that ?
Okay, I think that pretty much pinpoints the problem. Without having the scripts available to read, I'm thinking the problem arises something like this:

- init script reserves eth0 for an interface with MAC 'XX:XX:XX:XX:XX:XX'
- no such MAC hardware is found
- same problem with eth1,
- but, there is a hardware interface found, with a different MAC;
- so, a network configuration for eth2 is created
- repeat for eth3.

Without actually seeing the network setup scripts, I can't really guess at how to remedy things. Perhaps you can post them, or perhaps someone has already solved this problem, or has an intimate knowledge of the Suse networking setup system.

--- rod.
 
Old 03-26-2007, 07:08 AM   #5
helmsman
LQ Newbie
 
Registered: Mar 2006
Location: Westcoast of Sweden
Distribution: Ubuntu, suse and fedora
Posts: 4

Original Poster
Rep: Reputation: 0
Problem solved

Hello, backagain.

Yes it's correct.
How do you avoid this ?
Well, SUSE uses udev to bind some modul to the specific hardware.
The trick therefore would be to tell udev *not* to do this.
After some searching iīve found it. (see below)

You have to do two things:

First itīs a good idea to rename the interface(s) in yast to something else then "eth-MACaddress. (eth0, eth1....)
You donīt have to this but its common praxis.

Second, this you have to do, in file "/etc/sysconfig/network/config" set the variable "USE_PERSISTENT_NAMES=yes" to "USE_PERSISTENT_NAMES=no"

This results in SUSE *not* binding the interface to a specific hardware interface.
Thus ghost or clones will work as independent installations.

This is poorley documented.
Point of improvement, SUSE. (nudge, nudge) ;-)

I have tried this with Symantecs ghost, and cloning in VMWare 5.5 and 6.0 beta.
Works fine.
With VMWare donīt forget to run "/usr/bin/vmware-controls.pl" to install the daemon part of vmware tools. (improves functionality a lot)

Have a nice summer/Helmsman

Last edited by helmsman; 03-26-2007 at 07:14 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cloning problems: systemimager ?? dereko Linux - Software 2 06-29-2006 07:23 AM
Problems after cloning with Acronis swampthing Linux - Hardware 0 08-17-2004 07:02 AM
dual boot, problems with ghost cloning afrodocter Linux - Hardware 2 08-02-2004 09:04 PM
Problems with eth0 interface boris89 Linux - Networking 1 04-17-2004 09:52 AM
problems with eth0 interface serji Linux - Networking 12 07-19-2003 06:53 AM


All times are GMT -5. The time now is 08:48 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