Operating System - HP-UX
1819825 Members
3142 Online
109607 Solutions
New Discussion юеВ

Re: Problem recreating /etc/ioconfig with the new instance number

 
SOLVED
Go to solution
LoC_1
Frequent Advisor

Problem recreating /etc/ioconfig with the new instance number

Hi all

11.11
Gbit cards

The lan cards were swaped from one slot to another.

The lan has changed from lan1 and lan2 to lan3 and lan4
lan1 is now lan3
lan2 is now lan4

Normally this can be corrected by rebuilding the /ect/ioconfig and remap the instance number.

My problem is that when issueing the command
#ioinit -f -r
I get the following error:
Instance number 1 already exists for a given class.
Tried
recreated the /etc/ioconfig with ionit -c..OK
rmsf -k -H (hardware path of original device path
rmsf -a /dev/lan1
rmsc -a /dev/dlpi1

Same problem. What am I missing to remove instance 1 from previous slot to re-assign the instance number to the new slot of the nic card

Thanks

9 REPLIES 9
Senthil Kumar .A_1
Honored Contributor

Re: Problem recreating /etc/ioconfig with the new instance number

Hi LoC,

Please check your lanscan output, if I'm right intance 1 for class 1 would already be assigned to a different card. If so, you can't change the instance number on the fly when the machine is running, You need to make some manupulations related to ioconfig file and rescan the lan cards while booting, that is before the other card gets hold of the instance number "1".

Here is a good link, though it was meant for Hardisk instance number changes , it should be good enough to lan cards aswell..

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1003262

Please check for the inputs by "Cesarato" in the above link,

Please update this thread ,if it solves the problem..

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Problem recreating /etc/ioconfig with the new instance number

In the above response it is "class lan" not "class 1".

regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
LoC_1
Frequent Advisor

Re: Problem recreating /etc/ioconfig with the new instance number

Lanscan and ioscan does not show any instance number 1 for lan.
The original lan1 had instance 1 and now has instance 3.

Some special file still has instance 1 for lan, but its not present in ioscan or lanscan.
Senthil Kumar .A_1
Honored Contributor

Re: Problem recreating /etc/ioconfig with the new instance number

Hi again,

One more thing ,for the remap to succeed, u need to have the infile ready some where in / mount,, could be in /etc.. so that when it asks you restore the ioconfig file u can fire the command..

ioinit -f -r

ur steps would be,
1) create the infile, store it in say, /etc
2) follow Cesarato instruction in the above link i have given u in first response,
3) restore ioconfig, by issuing

ioinit -f /etc/ -r

and I think u should have done with it...


regards,
Senthil.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Problem recreating /etc/ioconfig with the new instance number

Have u tried , rebooting after performing rmsf on the lan device files.

Its better before performing the offbeat solutions.

Regards,
Senthil.

P.S : can u attach the output of your "ioscan -fn" , it will give us good idea on future course of action.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
LoC_1
Frequent Advisor

Re: Problem recreating /etc/ioconfig with the new instance number

Thanks Senthill ,

I have tried all that already.

I cannot reboot at this time but it looks like the Cesarato as you mentioned above should work by removing /etc/ioconfig and /stand/ioconfig.
It may be a while before I can boot.

Thanks again.

Louis
Mani K
Occasional Advisor

Re: Problem recreating /etc/ioconfig with the new instance number

this is out of path..

by the way , what is ? what dows it contain?

what will happen if we run insf -e?

thanks...
Never Say Can't.........................
Senthil Kumar .A_1
Honored Contributor
Solution

Re: Problem recreating /etc/ioconfig with the new instance number

Hi Mani,

Do not panic, infile is way you can customize the instance number that gets assigned to the H/W devices. For instance the system assignes a intance number to a hardware in the order it scans, that can be controlled to some extent by creating a and recreating a ioconfig file as we prefer.

This mettod is extensively used in MCSG , where I would want all the machine to recognize the disks that are shared with the same instance and device file name.

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
LoC_1
Frequent Advisor

Re: Problem recreating /etc/ioconfig with the new instance number

Thank all