APA stands for Auto Port aggregation. It is software i.e. operating system level configuration which offers NIC (Network Interface Card also referred as LAN card) redundancy. We have already breif about APA in this post , refer first paragraph.
Also read : Network bonding -teaming in Linux
Lets run down to configuration steps for APA in HPUX in failover group mode.
Step 1.
You need to have teaming software installed on your system. The Teaming (Auto PORT Aggregation) application is inbuild in HP-UX 11i V2 EOE. If not you can download it from HP software repository and install on your HPUX server.
Step 2.
Make sure your primary network interface card (NIC) is configured with proper IP address, mask and gateway. Use netstat -in command.
Lets assume we have identified lan1 as secondary NIC for our config. lan0 being the primary one.
Secondly identify your second NIC which can be used as secondary card in APA configuration (Use ioscan -fnClan command.). Make sure this card is connected to different network switch, configured with same vLan as primary on network end and is physically does not reside in same hardware module of primary NIC. This ensures high availability in case of network, switch or card hardware failure.
To confirm both cards have same network reachability (i.e. on same vlan) use below command :
where, station address is MAC (can be obtained from lanscan output) and PPA number is lan0, lan1 number. Try in both way. using MAC of primary and PPA of secondary and vice versa to make sure you have connectivity between both cards. If you get shown failed error then those two cards cant be used in APA config together.
Step 3.
Edit configuration file /etc/rc.config.d/hp_apaportconf and mention interface names (lano and lan1 in out case) like below:
Step 4.
Start APA services.
Step 5.
Now, we will create LAN configuration file which can be applied later to both NIC to make them aware they are working in group under same IP umbrella. lanqueryconf command creates ASCII file at /etc/lanmon/lanconfig.ascii
See content of this ASCII file. It has node name, polling interval (microseconds, default is 10 sec). Dead count is number of polling packets missed to consider failure and initiate failover (default is 3). Failover group is lan name which will be visible systemwide. lan900 will have our primary NIC address and lan0, lan1 will work together as lan900. IP is IP taken up by lan900. lan0 will be treated as primary NIC and lan1 as standby. Number 5,3 denotes priorities of respective NIC.
You can make changes in this file if you dont want to go with default values.
Step 6.
Above file is genrated for admin to edit if any changes required. After that, file will be checked for integrity and then can be applied to APA configuration like below :
Here lan900 is created and you APA is complete.
Step 7.
Now you can see your lan0 and lan1 are vanished from lanscan -q output and instead lan900 appeared with 0 and 1 as its members.
You can verify that lan900 will have IP address which was configured on primary NIC lan0 before configuration (in netstat -in output).
You can even test if APA failover is happening correctly. Follow this testing procedure to make sure your APA works properly. Sometimes lan900 wont appear and you need to restart your system. Rebooting system takes up new APA configuration and you will able to see lan900 in action.
If there are more than one APA configured on system then it will follow the series of lan901, lan902 and so on.
0 comments:
Post a Comment