1833953 Members
1566 Online
110063 Solutions
New Discussion

lan1 doesn't exist ...

 
Philip Kime
Regular Advisor

lan1 doesn't exist ...

I am cloning an 11.00 machine and need to replicate the lan configuration so that the same IPs will be assigned to the same lanX interfaces (it has to be this was for DR scripts that do things ...).

However, after cloning the machine using an ignite tape, on the new box, there is no lan1 - hpbtlan startup fails because when it looks for "lan1" in the output of lanscan, it can't find it. I have a /dev/lan1 device file but no lan1 in lanscan output. Is there a way to get lan1 back? I am a bit confused in general:

* what determines which interface is assigned to which lanX name?
* Is the btlan driver in 11.00 a unified driver like in 11i?
* Should I be looking at the /dev/lanX devices anyway since I believe that it's now the /dev/dlpi devices that matter?

PK
7 REPLIES 7
Sundar_7
Honored Contributor

Re: lan1 doesn't exist ...

Hi PK,

I can tell you my understanding - if I am wrong, I am sure our forum folks will jump in :-)

* what determines which interface is assigned to which lanX name?

I believe it is the PPA (Physical Point of attachment). Depending on how your lan cards are placed in the IO bus, the number X in lanX is assigned in a sequential manner.

* Is the btlan driver in 11.00 a unified driver like in 11i?

I dont believe so. in my RP74XX, I have both btlan3 and btlan5 drivers.

It could be that the system you are cloning to has got the LAN cards attached to the system in a different way than the source one.




Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: lan1 doesn't exist ...

I believe there is a btlan unified driver, at least for HSC lan cards. I determined this by running ioscan on my last 11.00 box.

There should be a /dev/lan1 device.

the determination of lan number seems to be a function of the system board bus.

My 11.00 box has three "cards"

One of them is a two port card.

The card is on path 8/8/1/0 and 8/8/2/0 and are lan0 and lan1 respectively.

The build in card is lan2 on path 8/16/6 and does not use the btlan driver.

I'm not sure why you are not getting optimal results.

Are you using Ignite Golden Image or make_tape_recovery then restore to transfer the image? You may need to intervene in this process and run the Ignite interface standard hardware inventory function and see what hardware is present.

Could be we have a bad lan card. That happens.

ioscan -fnC lan

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Philip Kime
Regular Advisor

Re: lan1 doesn't exist ...

Hmm - this is a make_tape_recovery cloning. It is strange that I have lan0 and lan2-lan9 which is the right number of physical holes (2x4 port cards and one built-in). This is an L2000. It seems that PPA "1" doesn't get assigned to anything because there is no "lan1" in lanscan. Any ideas appreciated.
rick jones
Honored Contributor

Re: lan1 doesn't exist ...

I suppose the btlan[3456] drivers _might_ have been unified in an 11.0 patch, but my udnerstanding is the grand btlan unification does not happen until you are on 11.11.

I'd make sure that the device you expect to be lan1 appears in ioscan.

Ignore /dev/lanN device files - for 11.0 and later they are not used for anything except perhaps a workaround for old licencing code that never migrated like it should have to DLPI ten years ago. So presence or lack of a /dev/lan1 file really doesn't mean much.

The X in lanX is determined by 1) scan order in the box and then 2) order in which the device is placed in the system. So if you start with two devices, they will get 0 and 1 depending on their order on the bus(ses). If you then add a new device it will get lan2. If you then reinstall the system from scratch, they will be assigned in bus order again, and may get different numbers.
there is no rest for the wicked yet the virtuous have no pillows
Philip Kime
Regular Advisor

Re: lan1 doesn't exist ...

Hmm - It's strange that there are the right number of PPAs but it skips lan1! I saw a thread where it explains how to alter the instance (PPA) number with ioinit -f and I think I'll try this. Presumably the instance number are arbitrary for driver operation. In ioscan, there is no lan1 and I think that's the problem - it seems to have skipped lan1 when assigning the instance IDs for some reason.
rick jones
Honored Contributor

Re: lan1 doesn't exist ...

on the clone machine, are the cards in the _very_ same slots as the machine being cloned? if not, when the "installation" was happening, it might have treated one of the NICs as "new" giving it a new instance number, and figured the one you wanted as lan1 as "missing."
there is no rest for the wicked yet the virtuous have no pillows
Philip Kime
Regular Advisor

Re: lan1 doesn't exist ...

Thanks - I need to check with who actually did this Ignite restore - I suspect the cards were not in the same places. I think I'll be doing a bit of ioinit work ...