1821808 Members
3294 Online
109638 Solutions
New Discussion юеВ

APA and LAN Monitor

 
tclee
Occasional Advisor

APA and LAN Monitor

I have configure APA and failover using LAN Monitor. I am using the edit command way.
The configuration are as follows;
hp_apaconf
HP_APA_START_LA_PPA=900
HP_APA_DEFAULT_PORT_MODE=MANUAL
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=LB_MAC
HP_APA_MANUAL_LA[0]="2,4"

hp_apaportconf
HP_APAPORT_INTERFACE_NAME[0]=lan2
HP_APAPORT_CONFIG_MODE[0]=LAN_MONITOR
HP_APAPORT_INTERFACE_NAME[1]=lan4
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR

I run lanqueryconf -s , lancheckconf and finally lanapplyconf - all is OK

When I run lanscan -q , I see lan900 tag with 2,4.

I manage to get the lan900 activated and ssh into the server after using /sbin/init.d/hplm stop/start, /sbin/init.d/hpapa stop/start.

I was unable to see the lan900 after i rebooted the system. Can any one give me advise
10 REPLIES 10
Sameer_Nirmal
Honored Contributor

Re: APA and LAN Monitor

Did you add the lan900 in the netconf file?
Do you see lan900 in lanscan -q after reboot?
tclee
Occasional Advisor

Re: APA and LAN Monitor

I did put lan900 in /etc/rc.config.d/netconf and after the reboot lan900 is down and I cannot remotely login to the server which is the default production lan. I am using the console to login.

As to the above configuration is it correct so far.

Pls advise! thanks!!
Sameer_Nirmal
Honored Contributor

Re: APA and LAN Monitor

Oh my bad.

You should put lan2 which might be Primary Lan as per lanconfig.ascii file in the netconf and NOT lan900.

The configurations above looks ok. If you want to simulate the whole network configuration as if it occures during startup, you can try from console login following start the apa start the hplm and then start net and reverse for stoping them.

Also ensure you set the lan cards speed in their resepective conf file. i.e card with btlan driver , set the speed in hpbtlanconf file
tclee
Occasional Advisor

Re: APA and LAN Monitor

I have tried putting the default lan as lan2. The system did start up and when doing a netstat -nr I see lan 2 i/o lan900 and lan900 aggregate is down.

With lan2 in netconf, it is like a standalone lan not failover or APA.

I could not understand why the lan900 could not be form after reboot. I did not see anything from dmesg or syslog?
tclee
Occasional Advisor

Re: APA and LAN Monitor

I forget to mentioned. My system has been hardened, Does it makes a different? Sorry forget to mentioned earlier.
Ketan Kotak
Advisor

Re: APA and LAN Monitor

Hi,

Several points:

[1]
Looks like you want to have a Fail-Over group (FOG for short) lan900 with two ports lan2 and lan4.
For FOG, you need to edit the config file /etc/lanmon/lanconfig.ascii.

Can you please send what is in that file?

[2]
before you run lanqueryconf -s, did you configure IP address on the intended Primary port? Did you check the lanconfig.ascii file if it was created with your intended configuration?

[3]
If you want lan900 to be a FOG with lan2 and lan4, you may not want to put [0] entries in hp_apaconf file.

Will check again.
Thanks and regards,
+ Ketan Kotak
tclee
Occasional Advisor

Re: APA and LAN Monitor


In lanconfig.ascii
FAILOVER_GROUP lan900
STATIONARY_IP 1x.xx.xx.xxx
PRIMARY lan2 5
STANDBY lan4 3

In /etc/rc.config/netconf
INTERFACE_NAME[0]=lan2
IP_ADDRESS[0]=1x.xx.xx.xxx
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=1x.xx.xx.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0

I have replaced x with the actual number.

Have I make the correct entry for FOG as you have pointed out.
Ketan Kotak
Advisor

Re: APA and LAN Monitor

Yes, You have it right.
Some more points:
[1] Do you still have those entry [0] for lan900 in hp_apaconf file? That may be removed and you can try restarting HP-APA by:
# /usr/sbin/hplm stop
# /usr/sbin/hpapa stop
# /usr/sbin/hpapa start
# /usr/sbin/hplm start

[2] You may want to check if the NODE_NAME in lanconfig.ascii file is correct or not.

[3] Which OS version & APA version you have on your system? You can check by:
# uname -a
# swlist | grep Auto-Port
# what /stand/vmunix | grep -i -e hp_apa -e lacp -e vmunix

[4] Is there any error reported by hplm/hpapa scripts during bootup? You can see rc.log file and search for these two scripts and copy-paste its output.

[5] If you restart APA as shown in [1] above, pl. save the output of that and send that too. It may help understand the problem you have.

Thanks and regards.
tclee
Occasional Advisor

Re: APA and LAN Monitor

Ketan,

Thanks you very much, the configuration works and after a reboot the APA and FOG is visible when I do a netstat -i, lanscan -q
tclee
Occasional Advisor

Re: APA and LAN Monitor

From the Help of the forum member I was able to speed up my troubleshooting and resolve the problem. Thanks to all the contributing members. Each deserve the highest commendation.