Operating System - HP-UX
1832861 Members
2940 Online
110048 Solutions
New Discussion

APA and LAN monitor configuration problem: set_config_mode: failed, errno is 34

 
SOLVED
Go to solution
Olga_1
Regular Advisor

APA and LAN monitor configuration problem: set_config_mode: failed, errno is 34

Hello,

I configured APA: lano and lan2 are grouped into lan900 and configured using FEC_AUTO mode and lan900 and lan1 are grouped into lan901 for failover using LAN Monitor.

When I reboot the server I get the following in rc.log:

Configure HP AUTO-PORT AGGREGATION interfaces
Output from "/sbin/rc2.d/S337hpapa start":
----------------------------
/sbin/rc2.d/S337hpapa started.
Please be patient. This may take about 20 seconds.
HP_APA_MAX_LINKAGGS = 50
HP_APA_DEFAULT_PORT_MODE = MANUAL
/usr/sbin/hp_apa_util -S 0 FEC_AUTO
/usr/sbin/lanadmin -X -g 0 900 900
New Group Capability = 900
/usr/sbin/hp_apa_util -S 2 FEC_AUTO
/usr/sbin/lanadmin -X -g 2 900 900
New Group Capability = 900
/usr/sbin/hp_apa_util -S 900 LAN_MONITOR
ERROR: set_config_mode: failed, errno is 34
/usr/sbin/lanadmin -X -g 900 901 900
New Group Capability = 901
/usr/sbin/lanadmin -X -t 900 5 900
New Port Priority = 5
/usr/sbin/hp_apa_util -S 1 LAN_MONITOR
/usr/sbin/lanadmin -X -g 1 901 900
New Group Capability = 901
/usr/sbin/lanadmin -X -t 1 3 900
New Port Priority = 3
lan900
/usr/sbin/lanadmin -X -l LB_MAC 900
New Load Balancing = 2
/usr/sbin/lanadmin -X -g 900 900 900
New Group Capability = 900
Reading ASCII file /etc/lanmon/lanconfig.ascii
WARNING: Failed link-level connectivity checks for ports in Fail-Over Group 901.
For more information, see nettl log messages for HP_APA.
Creating Fail-Over Group lan901
Updated binary file /etc/lanmon/lanconfig

/sbin/rc2.d/S337hpapa Completed with failures.
"/sbin/rc2.d/S337hpapa start" FAILED
3 REPLIES 3
Ketan Kotak
Advisor
Solution

Re: APA and LAN monitor configuration problem: set_config_mode: failed, errno is 34

Hi,

[1]
You don't need to set the Mode for Link Aggs.
So, the line in config file that sets the Mode of 900 to LAN_MONITOR is not needed, you can remove it. This causes you to see errno 34.

[2]
After system boots up completely, do you see the configuration as intended? I guess so! But you are just worried about this errno 34. Is that right?

[3]
The warning of failed link-level connectivity may be seen as link agg 900 - which is FEC_AUTO mode linkagg, may not have been completely created as auto negotiation may take a while. But this is just a warning to let you remind to check connectivity after the system boots up completely.

Hope this clarifies..
Let me know if you have further questions.
+ Ketan Kotak
Olga_1
Regular Advisor

Re: APA and LAN monitor configuration problem: set_config_mode: failed, errno is 34

Thank you very much, Ketan.
[1]
Please confirm that this is how hp_apaportconf file should look like:
Should I comment out
GROUP_CAPABILITY and PRIORITY for lan901 as well.

HP_APAPORT_INTERFACE_NAME[0]=lan0
HP_APAPORT_GROUP_CAPABILITY[0]=900
HP_APAPORT_CONFIG_MODE[0]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[1]=lan2
HP_APAPORT_GROUP_CAPABILITY[1]=900
HP_APAPORT_CONFIG_MODE[1]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[3]=lan900
#HP_APAPORT_CONFIG_MODE[3]=LAN_MONITOR
HP_APAPORT_GROUP_CAPABILITY[3]=901
HP_APAPORT_PRIORITY[3]=5

HP_APAPORT_INTERFACE_NAME[4]=lan1
#HP_APAPORT_CONFIG_MODE[4]=LAN_MONITOR
HP_APAPORT_GROUP_CAPABILITY[4]=901
HP_APAPORT_PRIORITY[4]=3

[2]
lanscan -q
3
4
901 900(0 2) 1

Thanks again for your help.
Ketan Kotak
Advisor

Re: APA and LAN monitor configuration problem: set_config_mode: failed, errno is 34

Hi,

You may want to change the following:
HP_APAPORT_INTERFACE_NAME[3]=lan900
HP_APAPORT_GROUP_CAPABILITY[3]=900
HP_APAPORT_PRIORITY[3]=5

HP_APAPORT_INTERFACE_NAME[4]=lan1
#HP_APAPORT_CONFIG_MODE[4]=LAN_MONITOR
HP_APAPORT_GROUP_CAPABILITY[4]=901
HP_APAPORT_PRIORITY[4]=3

TO the following:
HP_APAPORT_INTERFACE_NAME[3]=lan900
HP_APAPORT_GROUP_CAPABILITY[3]=900
HP_APAPORT_PRIORITY[3]=5

HP_APAPORT_INTERFACE_NAME[4]=lan1
HP_APAPORT_CONFIG_MODE[4]=LAN_MONITOR
HP_APAPORT_PRIORITY[4]=3

This will yield the intended configuration without any errors!!

GroupCap of lan0, lan2 and lan900 should match as you want lan0 and lan2 to "JOIN" lan900.

All Link Aggs are in LAN_MONITOR and cannot be changed in that sense.
lan1 should be set to LM since it has to be added to create lan901.
Setting GC to 901, 900, and 1 does not matter for creating LM FOG.

Thanks and regards,
+ Ketan Kotak