Operating System - HP-UX
1834374 Members
2345 Online
110066 Solutions
New Discussion

Problem whit a hostname with more than 9 letters and ServiceGuard

 
likid0
Honored Contributor

Problem whit a hostname with more than 9 letters and ServiceGuard

Hi,

I have a strange proble here, one of my servers in a cluster reboots, its original name has 9 letters, when it comes up it has only 8, i do a hostname 9lettername and a set_parms 9lettername, but the node doesnt join the cluster in the syslog i have error message saying that the 8lettername doesnt belong to the cluster and is triying to join it.

The thing is, this has been working for ages and its gone throw several reboots whitout this problem.

The only place where i find the 8 lettername is in uname -a, is there a way i can change it??

thnx!!
Windows?, no thanks
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: Problem whit a hostname with more than 9 letters and ServiceGuard

well 8 characters is the supported hostname length in HP-UX unless you have the Expansion Product for 11.23.
Having said that, it sounds like something is overwriting what you have set.
Check the /etc/hosts file, and also the netconf file, but more importantly check that there are no "backup" copies of netconf in place that may have the 8 character name.
Going over the 8 character limit is not something I would advise, and is very risky
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
A. Clay Stephenson
Acclaimed Contributor

Re: Problem whit a hostname with more than 9 letters and ServiceGuard

You violated one of the conventions that has been in place for decades and you are paying the price. It is state-of-the-art stupid to invite problems when there is no need. You know the fix; revert to a maximum 8-character hostname. The scary part about having longer than 8 character hostnames are the problems you don't (yet) know about; those could well remain (and you wouldn't know) even if you do get a fix for MC/SG.

Wild horses, orcs, trolls, or smurfs couldn't persuade me that a long than 8 character hostname is a good idea.
If it ain't broke, I can fix that.
Torsten.
Acclaimed Contributor

Re: Problem whit a hostname with more than 9 letters and ServiceGuard

You did run set_parms, did you read the messages?

It's telling you "...A simple name, or each dot (.) separated component of a domain name, must:
...
Contain no more than 8 characters per component.
..."


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: Problem whit a hostname with more than 9 letters and ServiceGuard

Shalom Daniel,

Only one solution.

Change the hostname in /etc/rc.config.d/netconf and reconfigure the cluster.

Because SG configurations are portable I recommend against the expansion kit.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
likid0
Honored Contributor

Re: Problem whit a hostname with more than 9 letters and ServiceGuard

But this has been working for 2 years more or less, its just that there is a place where something has changed in the last reboot, that its making this thing not work, i am going to ask for a reboot, and see. Because netconf and /etc/hosts also have the 9 letter thing.
Lets give it a try!!
Windows?, no thanks