- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- linux booing problem "setting hostname failed"
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
04-09-2006 12:26 AM
04-09-2006 12:26 AM
linux booing problem "setting hostname failed"
i have this problem inspite the server was running ok
at the booting procedure it hangs up with ""setting hostname failed" error message
pleas i need help
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 01:55 AM
04-09-2006 01:55 AM
Re: linux booing problem "setting hostname failed"
Check /etc/sysconfig/network
That is where the hostname is to be set.
You will need to boot off a Linux rescue cd or intervene at the console in the boot process.
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
04-09-2006 01:58 AM
04-09-2006 01:58 AM
Re: linux booing problem "setting hostname failed"
what operating system do you use?
Do you know if there was some change in configuration files?
Can you boot into runlevel 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 02:17 AM
04-09-2006 02:17 AM
Re: linux booing problem "setting hostname failed"
i change nothing in the configuration files in the same time i have the HOSTNAME="server Name" at the network file at /etc/sysconfig
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 03:04 AM
04-09-2006 03:04 AM
Re: linux booing problem "setting hostname failed"
locate the line:
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
right before it insert a line like this:
HOSTNAME="server name"
where server name is the name of you server.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 04:18 AM
04-09-2006 04:18 AM
Re: linux booing problem "setting hostname failed"
this file is read only file and i did try to change it but am not succeeding
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 04:56 AM
04-09-2006 04:56 AM
Re: linux booing problem "setting hostname failed"
i did all the options of moving renaming and changing of permition but am not succeeding to write to the file
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 05:19 AM
04-09-2006 05:19 AM
Re: linux booing problem "setting hostname failed"
This will boot you into rescue mode.Where you'll be able to edit this file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 06:02 AM
04-09-2006 06:02 AM
Re: linux booing problem "setting hostname failed"
i did all that and i could edit the file but i could not write
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 06:43 AM
04-09-2006 06:43 AM
Re: linux booing problem "setting hostname failed"
If it's file system do:
mount -o remount,rw /mountpoint
where mounpoint is where the partition mounted.
if it's only the file-how do you edit it?
the system should be mounted read/write when you boot into rescue environment...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 07:00 AM
04-09-2006 07:00 AM
Re: linux booing problem "setting hostname failed"
it is only the file, am editing the file using vi editor but inspite i have -rwxr-xr-x
permition i couldnot do :wq it gives me that the file is read only, when i get a copy from the file i with another name i could edit and write to the file with the new name but i couldnot copy it back or over write the file rc.sysinit it is telling me that this operation is not permited "mv -f rc.sysinit.old rc.sysinit" to over write the file after making the modification on rc.sysinit.old
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 07:32 AM
04-09-2006 07:32 AM
Re: linux booing problem "setting hostname failed"
:wq!
after you did the changes of course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 07:39 AM
04-09-2006 07:39 AM
Re: linux booing problem "setting hostname failed"
i did befor but i face the same problem
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 07:49 AM
04-09-2006 07:49 AM
Re: linux booing problem "setting hostname failed"
lsattr /etc/rc.sysinit
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2006 11:15 AM
04-09-2006 11:15 AM
Re: linux booing problem "setting hostname failed"
Also, what is the exact line you have in '/etc/sysconfig/network' ? You've made sure it's a nice quoted string, with no spaces?
Also, the dumb question, when you're trying to modify these files, you are doing it as root aren't you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 01:29 AM
04-10-2006 01:29 AM
Re: linux booing problem "setting hostname failed"
/: drwxr-xr-x root root
/etc: drwxr-xr-x root root
/etc/sysconfig: drwxr-xr-x root root
/etc/sysconfig/network: -rw-r--r-- root root
/etc/rc.d/rc.sysinit: -rwxr-xr-x root root
Some init scripts won't read a file or directory with other permissions.
On my system (FC3) /etc/rc.sysinit is linked to /etc/rc.d/rc.sysinit. If yours is linked, you should check the permissions of the file in /etc/rc.d, not the link in /etc.
You also need root-level permissions to edit any of these files. If you're not in runlevel 1, you need to log in as root or use "sudo vi (filename)" to edit them.