Description of problem ====================== I created several VMware virtual machines based on the same template of RHEL server 5.5. I'd like to give these virtual machines different hostnames so that they can work in the same netwrok. I changed the hostname of my RHEL server by using the system-config-network utility (run 'setup' -> select 'Network Configuration' -> select 'Edit DNS configuration'). After I saved my new hostname and tried to reboot the system, problem happenned. The system takes 10 more minutes to startup than that before I changed the hostname. After I login the gnome desktop, it was also much slower than before... I can say that I can't use the system after I changed the hostname. I tried RHEL server 5.6, it's much better than 5.5. It still need more time to response after I changed the hostname, but that's already acceptable for me. Finally, I found the root cause. The entry '127.0.0.1 my_old_hostname' in /etc/hosts isn't up-to-date. I think many services may depend on this entry. Then I updated the /etc/hosts file manually and rebooted the system. My system can work as fast as that before I changed the hostname. Version-Release number of selected component (if applicable) ============================================================ system-config-network 1.3.99.18 in RHEL server 5.5 How reproducible ================ Always reproducible Steps to Reproduce ================== 1. Run 'setup' in terminal and select 'Network Configuration'(Or run system-config-network utility in gnome desktop environment) 2. Change hostname by the utility in step 1 3. Reboot system 4. Check /etc/hosts file Actual results ============== /etc/hosts didn't be updated, 127.0.0.1 is still mapped to the old hostname Expected results ================ /etc/hosts should be updated, 127.0.0.1 should be mapped to the new hostname Additional info =============== N/A
If I change hostname, /etc/hosts line with localhost is just appending with new hostname. No matter if there is this hostname already. After some hostname playing it can look like this: 127.0.0.1 localhost.localdomain localhost rhel5 rhel5changed rhel5 Is this desired? I would prefer the way: > remove old hostname, > add new hostname
(In reply to Branislav Blaškovič from comment #4) > If I change hostname, /etc/hosts line with localhost is just appending with > new hostname. No matter if there is this hostname already. After some > hostname playing it can look like this: > > 127.0.0.1 localhost.localdomain localhost rhel5 rhel5changed rhel5 > > Is this desired? > > I would prefer the way: > remove old hostname, > add new hostname yes. bug. will fix
Thank you. Switching to assigned.
system-config-network-1.3.99.23-1.el5
Great, now it works without duplicates. Testing on system-config-network-1.3.99.23-1.el5
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1195.html