1826231 Members
2494 Online
109692 Solutions
New Discussion

lost my server host name

 
praveen..
Super Advisor

lost my server host name

hi,
I have added some more RAM in my server,
but after booting, it lost his hostname.

#hostname
unknown

please suggest what to do
7 REPLIES 7
RAC_1
Honored Contributor

Re: lost my server host name

check /etc/rc.config.d/netconf
Check /etc/hosts file
Check if start up script /sbin/init.d/hostname is in place or not.
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: lost my server host name

Hi Praveen,

You set using,

# /sbin/set_parms

Update HOSTNAME entry in /etc/rc.config.d/netconf file.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
AwadheshPandey
Honored Contributor

Re: lost my server host name

boot the server in single user mode and then use command #set_parms initial to set all the parameters.

Regards,

Awadhesh
It's kind of fun to do the impossible
Torsten.
Acclaimed Contributor

Re: lost my server host name

"but after booting, it lost his hostname"

Booted to which run-level?

The hostname is set in run-level 1, so it's not set in single user mode.

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!   
Josiah Henline
Valued Contributor

Re: lost my server host name

There could be serveral things can cause a system to boot up with an "unknown" hostname.

1.) Your /etc/rc.config.d/netconf file could be zero byts in size or not have the "HOSTNAME" varible set.

2.) The /etc/rc.config.d/netconf file is corrupt. It may have a null character. In this case you could recreate it by using the template file /usr/newconfig/etc/rc.config.d/netconf.

3.) The system may not be booting past single-user mode. Check /etc/inittab and make sure that it is set to boot past run-level 1.

4.) You may have file system problems. Make sure that all of your needed root VG file systems are mounted. Run "/bin/sh -x /sbin/init.d/net start" and look for any errors.

If at first you don't succeed, read the man page.
praveen..
Super Advisor

Re: lost my server host name

hi friends,
i will update you soon...


Thanks
praveen..
Super Advisor

Re: lost my server host name

hi friends,
I tried with
#/sbin/set_parms hostname

and set the hostname again.