- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- wrong hostname after reboot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 07:54 AM
03-31-2008 07:54 AM
This weekend I have reboot the 1st of our Service Guard cluster node and what happened is the following:
Once rebooted the server, it came up with a different hostname.the hostname was the same as the second cluster's node hostname.
I have changed the hostname back to the right one by issuing "hostname
But still the uname -n returns the wrong hostname.
Any idea why the hostname is wrong?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 08:12 AM
03-31-2008 08:12 AM
Re: wrong hostname after reboot
As for why it was set wrong on reboot, that's controlled in /etc/rc.config.d/netconf by the HOSTNAME variable. There are other places where the hostname is stored (e.g. /etc/hosts) so your best bet may be to run "set_parms hostname" to be sure they all get set appropriately. This requires a reboot, however.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 08:22 AM
03-31-2008 08:22 AM
Re: wrong hostname after reboot
- /etc/rc.config.d/netconf : reports the right hostname
- /etc/hosts reports all the right hostnames
- set_parms hostname : I did set it once, but after I did another reboot, it still came up with the wrong hostname.
I'm tryng to find out where the hostname get set wrong... This is a Service Guard Cluster, but I don't think it has something to do with the cluster functionality...
still looking..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 08:50 AM
03-31-2008 08:50 AM
SolutionThere are two things I would check.
First, make sure that you don't have your 'HOSTNAME' variable set in two files in '/etc/rc.config.d'. The last one source will "win". Please read the short documentation in '/etc/rc.config' for legal backup file names!
Second, make sure that you are not setting the 'NODENAME' variable when the files in '/etc/rc.config.d' are sourced by '/etc/rc.config' during startup.
An easy way to see this is to do:
# . /etc/rc.config
# set | grep -e NODENAME -e HOSTNAME
The NODENAME is used when it defined and '/sbin/init.d/hostname' runs during startup.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 09:49 AM
03-31-2008 09:49 AM
Re: wrong hostname after reboot
I saw your posts in other forums regarding this issue, and it seems to be my problem.
I'm disappointed on how rc.config handles the backup files... but the only thing I can do is accept it and take as a lesson.Good to know for the next time !!
Thanks again for your fast help!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 09:51 AM
03-31-2008 09:51 AM
Re: wrong hostname after reboot
Please go through the below URL site, before doing any things:-
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1206983975696+28353475&threadId=245584
Hope it will very help full for U.
Best of luck,
Thanks--Yaqub
HP Support!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 09:52 AM
03-31-2008 09:52 AM
Re: wrong hostname after reboot
> I'm disappointed on how rc.config handles the backup files
I would *NOT* be disappointed, only enlightened. This is documented in '/etc/rc.config': " Filenames containing [.,~#] are not sourced - they are possible names of # backup files such as file.bak, file.OLD, ~file, file~, file,v, #file etc."
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 10:05 AM
03-31-2008 10:05 AM
Re: wrong hostname after reboot
Thanks again you all !
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2008 10:06 AM
03-31-2008 10:06 AM