1843584 Members
3018 Online
110222 Solutions
New Discussion

/sbin/ioinit -c

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

/sbin/ioinit -c

We have been testing a SAN with various configurations. Each time we would adjust the LUNS and/or switch configuration and reboot, the instance numbers for the device files would increment. I started with disk device files at c4t0d0 but by the time we were done they had grown to c19t0d0 etc...

I know this isn't really a problem, but it's a housekeeping issue with me and I wanted to clean everything up. This is just a test system for now, so no big deal if I mess it up.

I renamed /stand/ioconfig and /etc/ioconfig and then rebooted. During the boot process when prompted by ioinitrc, I had it go ahead and recreate the ioconfig file from the kernel.

Everything is clean and working fine, but I've noticed that telnet no longer worked. I was able to fix it by doing insf -e.

I guess I'm more concerned because it appears that some of the drivers appear to be missing when I run the parse_ioconfig utility.

Is there a way to put them back or should I just reboot from the old ioconfig, I still have the file saved.

Thanks in advance,
Tim
3 REPLIES 3
avsrini
Trusted Contributor

Re: /sbin/ioinit -c

Hi Tim,
You seemed to be messed up the system. As this is a test system, you can play with. you are lucky, to have access to test systems.

You would have just removed the /dev/dsk/* files other than root disk's device file and booted into single user mode and ran insf -e. This would have recreated the device files.

I suggest you restore the /stand/ioconfig file from your backup and reboot the machine. ioinit will recreate the device files and /etc/ioconfig file.

Your problem may be, some instance no's are missing in your /stand/ioconfig file and so no device files are created.


Srini.
Be on top.
Rajeev  Shukla
Honored Contributor

Re: /sbin/ioinit -c

Do the following things..
restore the /stand/ioconfig and /etc/ioconfig back reboot the system and the do use rmsf -d sdisk this will remove the device files for all the devices associated with "sdisk" driver and then do then use insf to install the required device files for current disks.
Have a look at man pages of rmsf and insf for more confidence.

Cheers
Rajeev
Dietmar Konermann
Honored Contributor
Solution

Re: /sbin/ioinit -c

Hi, Tim!

Don't care about your "missing drivers" in ioconfig. The freshly created file should be fine... the drivers are only recorded there to track dynamically assigned major numbers. Please note that there may be also drivers listed, that are no longer in the kernel.

So, as long as you observe no other problems, all should be fine.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)