Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 5:10 PM, Reindl Harald wrote: > >>> dmaned - it is enough to enter the MAC at one place >>> it does not matter that you have to look at udev and ifcfg >>> the point is you do NOT need to put the MAC in both >> >> And my point is that once the machine has booted and created

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 4:36 PM, Reindl Harald wrote: > > dmaned - it is enough to enter the MAC at one place > it does not matter that you have to look at udev and ifcfg > the point is you do NOT need to put the MAC in both And my point is that once the machine has booted and created the udev ru

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 4:26 PM, Reindl Harald wrote: > > and explain someone that it does not matter if you have to edit one > or two files is plain stupid - why do you not put the MAC in 50 > config files, well no need for it, but if you have fun do it, there > is also no need for do it in two f

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 3:52 PM, Reindl Harald wrote: > I don't understand how you create that udev entry before you need it >>> >>> easy if you know the MAC address >> >> Do you mean you make the change in a virtual system image before >> copying/changing the virtual MACs? Or in a script t

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 3:14 PM, Reindl Harald wrote: > >>> you do not understand what i have said >>> >>> the race between kernel enumeration and udev is the reason >>> why it is unpredictable, do not use the kernel names on machines >>> with more than one interfaces and NOTHING will fuckup your

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 2:55 PM, Reindl Harald wrote: > >> You still have to deal with at least one file, and if you can fix one >> it's not that much harder to fix two. Almost all of our machines >> (virtual and real) have multiple interfaces. > > so what - why should i edit 2 files if one is e

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 2:34 PM, Reindl Harald wrote: > >>> well, that is why you should remove any reference to the MAC address >>> from "ifcfg-eth*" to have "70-persistent-net.rules" as single instance >>> for this assignment >> >> Or make them match > > why would someone want the need to edit t

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread m . roth
Natxo Asenjo wrote: > hi, > > On Fri, Feb 15, 2013 at 8:34 PM, wrote: > >> Here's another question: you're building it via kickstart - are you >> getting the hostname via dhcp? >> >> We've got a perl script to create a ks file dynamically, depending on >> what option we want (server, desktop, etc

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Natxo Asenjo
hi, On Fri, Feb 15, 2013 at 8:34 PM, wrote: > Here's another question: you're building it via kickstart - are you > getting the hostname via dhcp? > > We've got a perl script to create a ks file dynamically, depending on what > option we want (server, desktop, etc), and we get the name via dhcp

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 2:24 PM, Reindl Harald wrote: > > well, that is why you should remove any reference to the MAC address > from "ifcfg-eth*" to have "70-persistent-net.rules" as single instance > for this assignment Or make them match. In either case I am somewhat nervous about depending o

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 2:09 PM, wrote: >> >> Oh, and if you're changing the MAC, don't forget, as of CentOS 6, to edit >> /etc/udev/rules.d/70-persistent-net.rules. If you don't, you're hosed. > > That has not been my experience? We have a bunch of mini-itx machines with > realtek cards in them

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread me
On Fri, 15 Feb 2013, m.r...@5-cent.us wrote: > Robert Moskowitz wrote: >> >> On 02/15/2013 01:35 PM, Les Mikesell wrote: >>> On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz >>> wrote: And when you edit ifcfg-eth0 what command restarts the interface? >>> ifdown eth0 >>> ifup eth0 >>> >>> I

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
On 02/15/2013 02:34 PM, m.r...@5-cent.us wrote: > Robert Moskowitz wrote: >> I goofed again after a rebuild from a kickstart so had to rename yet >> again, see below: >> >> On 02/14/2013 01:13 PM, Digimer wrote: >>> On 02/14/2013 01:11 PM, Robert Moskowitz wrote: I need to change the host nam

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread m . roth
SilverTip257 wrote: > On Fri, Feb 15, 2013 at 1:35 PM, Les Mikesell > wrote: >> On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz >> wrote: >> >> > And when you edit ifcfg-eth0 what command restarts the interface? >> > I generally throw in the following to ifcfg-___ just to be safe: > NM_CONTROL

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread m . roth
Robert Moskowitz wrote: > > On 02/15/2013 01:35 PM, Les Mikesell wrote: >> On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz >> wrote: >>> And when you edit ifcfg-eth0 what command restarts the interface? >> ifdown eth0 >> ifup eth0 >> >> If you are changing related routes or the MAC address, do

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread m . roth
Robert Moskowitz wrote: > I goofed again after a rebuild from a kickstart so had to rename yet > again, see below: > > On 02/14/2013 01:13 PM, Digimer wrote: >> On 02/14/2013 01:11 PM, Robert Moskowitz wrote: >>> I need to change the host name on a test server, and in the past when I >>> used hostn

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
On 02/15/2013 02:02 PM, Reindl Harald wrote: > > Am 15.02.2013 19:58, schrieb Les Mikesell: >> On Fri, Feb 15, 2013 at 12:49 PM, Reindl Harald >> wrote: > And when you edit ifcfg-eth0 what command restarts the interface? ifdown eth0 ifup eth0 >>> oh yeah do this in a ssh session >>

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread SilverTip257
On Fri, Feb 15, 2013 at 1:35 PM, Les Mikesell wrote: > On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz > wrote: > > > > > And when you edit ifcfg-eth0 what command restarts the interface? > > I generally throw in the following to ifcfg-___ just to be safe: NM_CONTROLLED="no" > ifdown eth0

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
On 02/15/2013 01:35 PM, Les Mikesell wrote: > On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz > wrote: >> And when you edit ifcfg-eth0 what command restarts the interface? > ifdown eth0 > ifup eth0 > > If you are changing related routes or the MAC address, do the down > before the change so t

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz wrote: > > And when you edit ifcfg-eth0 what command restarts the interface? ifdown eth0 ifup eth0 If you are changing related routes or the MAC address, do the down before the change so the right values are seen. If you change something that

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
On 02/15/2013 01:12 PM, Les Mikesell wrote: > On Fri, Feb 15, 2013 at 12:04 PM, Robert Moskowitz > wrote: I goofed again after a rebuild from a kickstart so had to rename yet again, see below: On 02/14/2013 01:13 PM, Digimer wrote: > On 02/14/2013 01:11 PM, Robert Moskowi

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 12:04 PM, Robert Moskowitz wrote: > >>> I goofed again after a rebuild from a kickstart so had to rename yet >>> again, see below: >>> >>> On 02/14/2013 01:13 PM, Digimer wrote: On 02/14/2013 01:11 PM, Robert Moskowitz wrote: > > I need to change the host

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
On 02/15/2013 12:46 PM, Les Mikesell wrote: > On Fri, Feb 15, 2013 at 11:27 AM, Robert Moskowitz > wrote: >> I goofed again after a rebuild from a kickstart so had to rename yet >> again, see below: >> >> On 02/14/2013 01:13 PM, Digimer wrote: >>> On 02/14/2013 01:11 PM, Robert Moskowitz wrote:

Re: [CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Les Mikesell
On Fri, Feb 15, 2013 at 11:27 AM, Robert Moskowitz wrote: > I goofed again after a rebuild from a kickstart so had to rename yet > again, see below: > > On 02/14/2013 01:13 PM, Digimer wrote: >> On 02/14/2013 01:11 PM, Robert Moskowitz wrote: >>> I need to change the host name on a test server, an

[CentOS] More on Re: Really changing the hostname

2013-02-15 Thread Robert Moskowitz
I goofed again after a rebuild from a kickstart so had to rename yet again, see below: On 02/14/2013 01:13 PM, Digimer wrote: > On 02/14/2013 01:11 PM, Robert Moskowitz wrote: >> I need to change the host name on a test server, and in the past when I >> used hostname to change the hostname, it di