1833007 Members
3022 Online
110048 Solutions
New Discussion

rc.config not exist

 
SOLVED
Go to solution
Vishu
Trusted Contributor

rc.config not exist

hi friends,
i hv one HP-UX 10.20 R class server. the problem is due to the fault in UPS the server reboots automatically. and when it reboots it goes in Single user mode by saying that no /etc/inittab exist.
then, after i created a new inittab file and provide some required entries in it. and reboot the server with run level 3. the server boots, but it shows that no rc.config and rc.config.d file exists in /etc.
so, server boots but unable to load drivers of lan, nfs config etc. and when "the system is ready" message comes, no login prompt appears.
As i m not so much familiar with HP-UX administration, plz help me in getting out of this problem.

Thnx
5 REPLIES 5
Matti_Kurkela
Honored Contributor

Re: rc.config not exist

/etc/rc.config.d is a directory that contains a lot of very important configuration files. For example, the network configuration (IP addresses) are stored in /etc/rc.config.d/netconf.

The lack of the login prompt suggests that you did not put an entry for a console getty into your re-built /etc/inittab, or that you made a mistake with it.

I hope you have good backups. If your backup system cannot restore the files directly to your server (this is likely because your server is in a *very* broken state now), try to restore them to a temporary location on another server and then use whatever methods you have available to move them to this server.

The /usr/newconfig directory tree should contain copies of most configuration files... in their "factory default" form. If you don't have backups of the configuration files available, you could use these to reconstruct your configuration. The problem is, you would need someone that is *very* familiar with both HP-UX in general and this system in particular to successfully reconstruct all the configuration files.

Try to find out why those files have vanished: has someone with root access made a mistake or is your system disk failing?

MK
MK
skt_skt
Honored Contributor

Re: rc.config not exist

probabaly some might have deleted files frm /etc by mistake and those files are normally used during system startup. Compare with another 10.20 server find the missing files.
you can make use of
/usr/newconfig/etc if there is no backup available.

try /sbin/set_parms to reconfigure the network.
Vishu
Trusted Contributor

Re: rc.config not exist

hi,
i hv one more R class server. can i used its root or system backup on the faulty server. if it is so, then can u plz tell me the command to take the system backup and restore in HP-UX.

thnx
Vishu
Trusted Contributor

Re: rc.config not exist

hi masters,
plz help on this. still waiting for solutions. is the backup of any other server work on it. if yes, plz tell how to take system backup.

tnx
James R. Ferguson
Acclaimed Contributor
Solution

Re: rc.config not exist

Hi Vishu:

One wonders what other files and/or directories you might be missing.

You could try copying '/sbin/init.d' along with '/sbin/rc?.d' from your working server to your mangled one:

# cd /sbin && tar -cvf /tmp/sbin_archive init.d rc?.d

# cd /etc && tar -cvf /tmp/etc_archive rc.config.d

FTP (or rcp) these tarballs to your defunct server and do:

# cd /sbin && tar -xvf /tmp/sbin_archive
# cd /etc && tar -xvf /tmp/etc_archive

Then try rebooting.

You could also take a complete Ignite recovery image of vg00 on your "good" server and use it to rebuild your defunct one.

# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

On your defunct server, boot from the tape thus created.

Regards!

...JRF...