1826312 Members
3768 Online
109692 Solutions
New Discussion

ioconfig file missing

 
sudhir_3
Advisor

ioconfig file missing

Hi
system is not booting properly
it is coming to single usermod
and display a message ioconfig
file is missing. what to do to
recover the system?

Please can you suggest.

sudhir
No end of technology
8 REPLIES 8
steven Burgess_2
Honored Contributor

Re: ioconfig file missing

Hi

Information on the ioconfig file

The config file is in /etc

The ioconfig file provides the mapping between information stored in device file dev_t (major number and logical unit) and the information the I/O system uses to communicate with devices (hardware paths and manager paths). At boot time ioinit reads the file and stores the information in the io_tree kernel data structure (see ioinit(1M)). The ioconfig file is created by insf at install time and is modified by insf and rmsf when devices are added or removed (see insf(1M) and rmsf(1M)). The only purpose of the ioconfig file to maintain configuration information when the system is not running. While the system is running, all accesses are made directly to the kernel io_tree structure, although any tools that change the kernel structures must also keep ioconfig consistent.

/etc is part of vg00 - therefore should be backed up in your ignite time

I would suggest booting your system from the ignite tape

> load tape
> power on machine
> at the prompt interrupt the boot procedure
> boot alternate

Hope this helps

Steve

take your time and think things through
Frank Quinteros
Advisor

Re: ioconfig file missing

Sudhir,

You say the system tries to boot and goes back to SIM. Did you make recent updates to the environment? Is it possible the kernel may be corrupted. At the single user mode (SIM) can you boot from /stand/vmunix.prev?
Need more info on this process?
Helen French
Honored Contributor

Re: ioconfig file missing

Hi Sudhir,

This error means either a curruption or missing files - /etc/ioconfig or /stand/ioconfig. These files will be checked during startup with the 'ioinit' command.

You have two options:

1) Boot in single user mode and recover the files from latest backup.

2) Boot in single user mode and issue this command to recreate the files:

# /sbin/ioinit -c

HTH,
Shiju
Life is a promise, fulfill it!

Re: ioconfig file missing

Sudhir,

As Shiju states, doing an ioinit -c is one of the options for re-creating the /etc/ioconfig file, but *BEWARE* as the file will not necessarily be recreated in the exact same way as the previous one - you could find that device files (particularly for disks and tapes) have changed. Before proceeding I would also make sure you have done a 'vgexport -p' on all your volume groups to make sure you have map files for them, as you may find yourself having to re-build them.

If your device files are truly screwed up as a result of losing the ioconfig file you may find you can't even restore from a tape (as this will need a device file itself).

Safest bet would to be...

1. run ioinit -c to rebuild ioconfig.
2. Now restore an old ioconfig file from tape -You'll have to figure out when the last good ioconfig file was backed up, I would go for a backup before the last successful reboot, unless you've changed your hardware config since...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
sudhir_3
Advisor

Re: ioconfig file missing

Hi

running ioinit -c to rebuild ioconfig did not work when I tried and I don't have backup of /etc or ignite tape than what is to be done.
any other alternate.


Thanks
sudhir
No end of technology
steven Burgess_2
Honored Contributor

Re: ioconfig file missing

Hi

Hmmm

Reload the OS from CD?

Unless anyone else has any more to add

Steve
take your time and think things through
Darrell Allen
Honored Contributor

Re: ioconfig file missing

I'm guessing this is too late to help but...

On my 11.0 systems, /stand/ioconfig and /etc/ioconfig are identical. If you have one, you can copy if to the other. You may want to boot into a recovery shell from cd to see which is missing and copy the other to it.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
sudhir_3
Advisor

Re: ioconfig file missing

Thanks to everyone for the help.I have reloaded the OS.

sudhir
No end of technology