Operating System - HP-UX
1834804 Members
2900 Online
110070 Solutions
New Discussion

Re: Lan monitor failover mode

 
Rajesh Shah_4
Occasional Contributor

Lan monitor failover mode

Hi,
We have RP 7420 & RP5470. I want to configure nic in failover mode.

Configuration 1 - All cards are gigabit Ethernet card.

Primary Link Aggre[Primary Switch] - gelan0 gelan1 gelan2

Standby Link [Secondary Switch] - gelan3



Configuration 2 - Primary link cards are gigabit and standby links are 100Base T card.



Primary Link [Primary Switch] - gelan0 gelan1

Standby Link [Secondary Switch] - 100base t

I need complete details how to configure this.Its not very clear in APA doc.

I have these IP details -
10.227.1.10
255.255.255.0
GW = 10.227.1.254

Thanks in Advance
8 REPLIES 8
Ivajlo Yanakiev
Respected Contributor

Re: Lan monitor failover mode

You need :
HP Auto Port Aggregation
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=J4240AA

or Service Guard that is cluster sofware

Rajesh Shah_4
Occasional Contributor

Re: Lan monitor failover mode

I had already installed HP APA. I want to know the configuration details. We are not running any MC service gaurd S/W

Rajesh
G. Vrijhoeven
Honored Contributor

Re: Lan monitor failover mode

Hi,

You could check:

http://docs.hp.com/en/J4240-90027/index.html

Regards,

Gideon
Rajesh Shah_4
Occasional Contributor

Re: Lan monitor failover mode

Hi,
I went thorugh this doc, but could not get the details information which i am looking for.

Thanks,
raj
G. Vrijhoeven
Honored Contributor

Re: Lan monitor failover mode

Hi,

first create a APA interface:
lan900 that contains gelan0 and gelan1
files:
/etc/rc.config.d/hp_apaconf
/etc/rc.config.d/hp_apaportconf
/etc/rc.config.d/netconf
check
http://docs.hp.com/en/J4240-90027/ch04s02.html
Make sure the switch supports this and is also configured.

then setup the failover interface to gelan3
http://docs.hp.com/en/J4240-90027/ch05s01.html#d0e4104

HTH,

Gideon

/etc/lanmon/lanconfig.ascii

HTH,

Gideon

Xianjie Zhang
Trusted Contributor

Re: Lan monitor failover mode

The configuration 2 is NOT supported. The standby link MUST have the same speed, i.e., 1 Gbps in your case. (There are other reasons why a gelan can not be mixed with 100bt, e.g., CKO, check-sum-offload is supported by gelan, but not 100bt.)

I think you need to reference to the users' guide.
Here is the general steps for configuration #1:
1. For the primary link aggregate, decide the aggregation/trunking mode you want to use, set the same mode for your server AND switch, the available modes are: MANUAL, FEC_AUTO, LACP_AUTO. You may want to consult with switch 's manual for corresponding configuration steps.
2. Configure the primary link aggregate. You can edit the configuration files, or you can use SAM.
3. Check the primary link aggregate is created correctly, e.g., use "lanscan -q".
4. Configure IP address on the primary link aggregate, say "ifconfig lan900 10.227.1.10 netmask 255.255.255.0". Modify /etc/netconf approapriately.
5. Make use "linkloop" between lan900 (the primary link aggregate) and gelan3 (say lan3) works fine.
6. Set the mode of lan3 to LAN_MONITOR, i.e., "lanadmin -X -p 3 LAN_MONITOR 900". Edit the /etc/rc.config.d/hp_apaportconf correspondingly if you want to preserve configuration across reboot.
7. Run "lanqueryconf"
8. Edit "/etc/lanmon/lanconfig.ascii": you should see something similar to:
=====
FAILOVER_GROUP lan901
STATIONARY_IP 10.227.1.10
STANDBY lan3 3
PRIMARY lan900 5
=====
If not, modify it.
9. Run "lanapplyconf".
10. If everything works fine, run "lanscan -q", you should see lan901. Run "netstat -in", you should see that IP is configured on lan901, NOT on lan900.

If you need a sample configuration file and could not find it in APA's doc, please let me know.

HTH,

Xianjie
Rajesh Shah_4
Occasional Contributor

Re: Lan monitor failover mode

Thanks!! please send me the sample file.I have 5 gelan [lan5 lan6 lan7 lan8 lan9] card on my RP 7420 server.
Till now I have configured -
1) /etc/rc.config.d/netconf
INTERFACE_NAME[0]=lan900
IP_ADDRESS[0]=10.49.1.2
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

2) /etc/rc.config.d/hp_apaconf
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=LB_MAC
HP_APA_GROUP_CAPABILITY[0]=900

3) /etc/rc.config.d/hp_apaportconf

HP_APAPORT_INTERFACE_NAME[0]=lan5
HP_APAPORT_GROUP_CAPABILITY[0]=900
HP_APAPORT_PRIORITY[0]=0
HP_APAPORT_KEY[0]=
HP_APAPORT_SYSTEM_PRIORITY[0]=0
HP_APAPORT_COLLECT_MAX_DELAY[0]=
HP_APAPORT_CONFIG_MODE[0]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[1]=lan6
HP_APAPORT_GROUP_CAPABILITY[1]=900
HP_APAPORT_PRIORITY[1]=0
HP_APAPORT_KEY[1]=
HP_APAPORT_SYSTEM_PRIORITY[1]=0
HP_APAPORT_COLLECT_MAX_DELAY[1]=
HP_APAPORT_CONFIG_MODE[1]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[2]=lan7
HP_APAPORT_GROUP_CAPABILITY[2]=900
HP_APAPORT_PRIORITY[2]=0
HP_APAPORT_KEY[2]=
HP_APAPORT_SYSTEM_PRIORITY[2]=0
HP_APAPORT_COLLECT_MAX_DELAY[2]=
HP_APAPORT_CONFIG_MODE[2]=FEC_AUTO

4) lanadmin -X -p 8 LAN_MONITOR 900

5)/etc/lanmon/lanconfig.ascii

LM_RAPID_ARP off
LM_RAPID_ARP_INTERVAL 1000000
LM_RAPID_ARP_COUNT 10

FAILOVER_GROUP lan901
STATIONARY_IP 10.49.1.2
STANDBY lan8 3
PRIMARY lan900 5

6)lanapplyconf
7)lanscan -q
lanscan -q
9
901 900(7 5 6) 8
902
903
904

Instead of running lanadmin command, I want to put in /etc/rc.config.d/hp_apaportconf file.Also I want to utilize my last NIC [lan9] as a failover NIC along with Lan8 [trunk both the nic and then make as failover to lan900].

since these two NIC [lan 8 & lan9] are going to secondray switch [cisco 6509] and first 3 NICs [lan 5 lan6 lan 7] are going to primary switch [cisco 6509].

It will failover to standby NIC only when all NICs [primary -lan900] fails. Please correct me if i am not wrong.

Waiting for quick reply.

Thanks,
Raj



Xianjie Zhang
Trusted Contributor

Re: Lan monitor failover mode

Hi, Raj,

Sorry, I did not check this thread early (due to holiday and vacation). You got most of the configuration right. Here are what I would change with the configuration files:

2) /etc/rc.config.d/hp_apaconf
Adding lan901:
=========
HP_APA_INTERFACE_NAME[0]=lan900
HP_APA_LOAD_BALANCE_MODE[0]=LB_MAC
HP_APA_GROUP_CAPABILITY[0]=900

HP_APA_INTERFACE_NAME[1]=lan901
HP_APA_LOAD_BALANCE_MODE[1]=LB_MAC
HP_APA_GROUP_CAPABILITY[1]=901
========
3) /etc/rc.config.d/hp_apaportconf
Adding configuration of lan8 and lan9:
============
HP_APAPORT_INTERFACE_NAME[0]=lan5
HP_APAPORT_GROUP_CAPABILITY[0]=900
HP_APAPORT_PRIORITY[0]=0
HP_APAPORT_KEY[0]=
HP_APAPORT_SYSTEM_PRIORITY[0]=0
HP_APAPORT_COLLECT_MAX_DELAY[0]=
HP_APAPORT_CONFIG_MODE[0]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[1]=lan6
HP_APAPORT_GROUP_CAPABILITY[1]=900
HP_APAPORT_PRIORITY[1]=0
HP_APAPORT_KEY[1]=
HP_APAPORT_SYSTEM_PRIORITY[1]=0
HP_APAPORT_COLLECT_MAX_DELAY[1]=
HP_APAPORT_CONFIG_MODE[1]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[2]=lan7
HP_APAPORT_GROUP_CAPABILITY[2]=900
HP_APAPORT_PRIORITY[2]=0
HP_APAPORT_KEY[2]=
HP_APAPORT_SYSTEM_PRIORITY[2]=0
HP_APAPORT_COLLECT_MAX_DELAY[2]=
HP_APAPORT_CONFIG_MODE[2]=FEC_AUTO

HP_APAPORT_INTERFACE_NAME[3]=lan8
HP_APAPORT_GROUP_CAPABILITY[3]=901
HP_APAPORT_CONFIG_MODE[3]=FEC_AUTO


HP_APAPORT_INTERFACE_NAME[4]=lan7
HP_APAPORT_GROUP_CAPABILITY[4]=901
HP_APAPORT_CONFIG_MODE[4]=FEC_AUTO
=================

5)/etc/lanmon/lanconfig.ascii
Change lan8 to lan901:
=========
LM_RAPID_ARP off
LM_RAPID_ARP_INTERVAL 1000000
LM_RAPID_ARP_COUNT 10

FAILOVER_GROUP lan902
STATIONARY_IP 10.49.1.2
STANDBY lan901 3
PRIMARY lan900 5
=========

If you set up the switches correctly, after rebooting the machine (If you are not in production), run "lanscan -q", you should get:
lanscan -q
902 900(7 5 6) 901(8 9)
903
904

Quote: "It will failover to standby NIC only when all NICs [primary -lan900] fails. Please correct me if i am not wrong."

Yes. You are right. Only when all NICs in lan900 fails, it will failover to lan901.