- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nodename greater than 8 charecters --error
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
Discussions
Discussions
Discussions
Forums
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
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
тАО11-10-2003 08:29 AM
тАО11-10-2003 08:29 AM
Welcome to unknown...
The nodename fails on boot with this error...
Nodename must be less than9 characters
EXIT CODE: 1
"/sbin/rc1.d/S320hostname start" FAILED
How do I fix this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 08:33 AM
тАО11-10-2003 08:33 AM
Re: nodename greater than 8 charecters --error
HP-UX does not like haveing the nodename greater than 8 characters longs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 08:34 AM
тАО11-10-2003 08:34 AM
Re: nodename greater than 8 charecters --error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 08:35 AM
тАО11-10-2003 08:35 AM
Re: nodename greater than 8 charecters --error
If there is no way around it I will have to...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 08:44 AM
тАО11-10-2003 08:44 AM
Re: nodename greater than 8 charecters --error
Although HP supports hostnames up to 63 characters, using >8 will break commands such as uname & services such as UUCP.
In fact all S320hostname runs is
uname -S
to set the hostname.
Try the command manually
uname -S host_longer_than_8
and see what error message you get back.
Won't cause any major problems, but lots of irritating ones like you've found.
Try to convince mgmnt to change the name to <= 8 chars & all will be well again.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 08:57 AM
тАО11-10-2003 08:57 AM
Re: nodename greater than 8 charecters --error
You must change the hostname entry in /etc/rc.config.d/ to less than 8 characters.
hostname=jerusalem is not acceptable
hostname=hebron is acceptable
hostname=hebron.juf.net is acceptable.
After making the change, best to restart the machine. Watich out for typos.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 09:16 AM
тАО11-10-2003 09:16 AM
Solutionuname -n
is the UUCP hostname which is a mandatory 8 characters. From the man page for uname:
"Many types of networking services are supported on HP-UX, each of
which uses a separately assigned system name and naming convention.
To ensure predictable system behavior, it is essential that system
names (also called host names or node names) be assigned in such a
manner that they do not create conflicts when the various networking
facilities interact with each other."
In other words, UUCP and TCP/IP (and a bunch of others) will define naming rules. HOWEVER, there is a workaround. The file /etc/rc.config.d/netconf has the entry for UUCP hostname:
HOSTNAME="yoda"
However, when the system starts, there is a test (unfortunately NEVER documented except in the start script: /sbin/init.d/hostname) for the variable NODENAME which, if set, will be the uname -n or UUCP name. So if you change /etc/rc.config.d/netconf to read something like this:
HOSTNAME="yodamaster"
NODENAME="yoda"
then HP-UX will be quite happy. Your hostname for TCP/IP networking will be 10 characters long (or whatever you need) but the UUCP name will an acceptable 8 characters. Note also in the start script, there is specific code to strip out dotted notation for hostname so:
HOSTNAME="yodamaster.obiwan.com"
will produce a hostname of "yodamaster". And also note that the /etc/hosts file is used to provide additional names, both simple and fully qualified. Be sure to include the short NODENAME as well as the long name and always use files then DNS for name resolution. So you can indeed have a truly awful name like:
HOSTNAME="sdfgtyuwnmbuior678rjk"
as long as you set NODENAME to an 8 character shortname like "sdfgtyuw" which is much easier to remember. ;-)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 06:28 AM
тАО11-11-2003 06:28 AM