Operating System - HP-UX
1851753 Members
1849 Online
104062 Solutions
New Discussion

Re: ifconfig: unknown error - A5506B

 
Sundar_7
Honored Contributor

ifconfig: unknown error - A5506B

I upgraded the btlan driver for my Quad port lan card (A5506B) from verion B.11.00.01 to B.11.00.02.

From SD-UX logs, the upgrade was successful. But when the system boots up, LAN configuration fails and system doenst seem to recognize the APA LinkAgg.

# swlist | grep 5506
A5506A B.11.00.02 PCI 4 PORT 100BASE-T/9000
# ioscan -fnkC lan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/0/0/0 btlan3 CLAIMED INTERFACE HP PCI 10/100Base-TX Core
/dev/diag/lan0 /dev/ether0
lan 1 0/7/0/0/4/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
/dev/diag/lan1 /dev/ether1 /dev/lan1
lan 2 0/7/0/0/5/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
/dev/diag/lan2 /dev/ether2 /dev/lan2
lan 3 0/7/0/0/6/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
/dev/diag/lan3 /dev/ether3 /dev/lan3
lan 4 0/7/0/0/7/0 btlan CLAIMED INTERFACE HP A5506B PCI 10/100Base-TX 4 port
/dev/diag/lan4 /dev/ether4 /dev/lan4
#
# /sbin/init.d/hpapa start
DLPI version is 2
/sbin/init.d/hpapa started.
Please be patient. This may take about 40 seconds.
/sbin/init.d/hpapa Completed successfully.
# # /sbin/init.d/net start
ERROR: lan100 interface: ifconfig: Unknown error
ERROR: Failed to add route entry because its interface is not
yet initialized. May need to add this route entry with
a route commad after the interface is up :
add net default: gateway A.B.C.D: Network is unreachable
#

lanscan doesnt return anything

# lanscan
#
#
# ifconfig lan100
ifconfig: no such interface
#

any inputs ?
Learn What to do ,How to do and more importantly When to do ?
9 REPLIES 9
RAC_1
Honored Contributor

Re: ifconfig: unknown error - A5506B

Let's try to isolate the problem. Do not start APA. Just /sbin/init.d/net start

Does it start??

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: ifconfig: unknown error - A5506B

Hardware is there.

There appears to be no configuration in /etc/init.d/netconf

Also, there may not be a mac address (prior post will clarify that). I'd like to see what cstm/mstm/xstm says about the card.

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
Tim D Fulford
Honored Contributor

Re: ifconfig: unknown error - A5506B

# # /sbin/init.d/net start
ERROR: lan100 interface: ifconfig: Unknown error

There are a couple of things that could be going wrong here either APA is lying when it says it started sucessfully (so lan100 is not available), APA is not configured correctly with lan0-lan4, or APA did sucessfully start but somehow lan100 is not plumbed & so net strat is failing.

try "ifconfig lan100 plunb" & see if you can manually run ifconfig it up

try disabling APA & thus lan100 & configure lan0, then lan1, etc make sure it is not a problem with /etc/rc.config.d/netconf

Tim
-
Prashant Zanwar_4
Respected Contributor

Re: ifconfig: unknown error - A5506B

A5506A is 32bit 33Mhz, A5506B is 64bit 33Mhz

Can you check which one you shall be installing.

Hope it helps

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: ifconfig: unknown error - A5506B

Check for patch PHNE_26271, this have fixes for this LAN.

hope this helps
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Sridhar Bhaskarla
Honored Contributor

Re: ifconfig: unknown error - A5506B

Sundar,

'lanscan' doesn't return anything?. What if you specify 'lanscan /stand/vmunix.prev'. If it returns something, then I suspect a reboot is waiting. I would try to fix the 'lanscan' issue first. What does your 'dmesg' say?

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Xianjie Zhang
Trusted Contributor

Re: ifconfig: unknown error - A5506B

Can you run "lanscan -q"?
Also can you post "/etc/rc.config.d/hp_apaconf" and "/etc/rc.config.d/hp_apaportconf"?
The link aggregation lan100 did not seem to be created successfully.
Your driver version seems to be very old. There is btlan patch with a fix related to APA. As others suggest, please apply the latest stable patch.
Sundar_7
Honored Contributor

Re: ifconfig: unknown error - A5506B

hmm..problem turned out to be something else.

LVs are mirrored in the order - where DISK1 is set as the primary boot disk with DISK2 as the secondary boot disk.

I did split the mirror before patching with the idea that if the patching is not successful, I will reverse-sync and roll back the patches.

When I split the mirror, the online /stand was from DISK2, not from the Primary disk DISK1.

I booted from DISK1 and installed the patches (compiled the kernel with /stand from DISK2). Now when the system is rebooted, Secondary loader loaded the /stand/vmunix from DISK1 (Old kernel) and mounted /stand from DISK2.

So, lanscan, dmesg (and some other commands) failed since the kernel image in the memory didnt match with the /stand/vmunix.

HP-APA script uses lanscan command but unfortunately doesnt do any kind of error checking :-(. So it reported "OK" during startup and when run from the command line.

- Sundar
Learn What to do ,How to do and more importantly When to do ?
Prashant Zanwar_4
Respected Contributor

Re: ifconfig: unknown error - A5506B

Seems strange work..

Well something good out of it you got to learn..hopefully..

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."