8.
Use the
lanapplyconf
command to build the failover group, and check it with the
nwmgr
-S apa
and
netstat -in
commands:
# lanapplyconf
Reading ASCII file /etc/lanmon/lanconfig.ascii
Creating Fail-Over Group lan900
# nwmgr -S apa
Class Mode Load Speed- Members
Instance Balancing Duplex
======== =========== ========= ==================== =======
lan900 LAN_MONITOR LB_HS 100 Mbps Full Duplex 1,2
lan901 Not_Enabled LB_MAC 0 Mbps
lan902 Not_Enabled LB_MAC 0 Mbps
lan903 Not_Enabled LB_MAC 0 Mbps
lan904 Not_Enabled LB_MAC 0 Mbps
# netstat -in
Name Mtu Network Address Ipkts Opkts
lan0 1500 191.1.1.0 191.1.1.1 1794 1173
lo0 4136 127.0.0.0 127.0.0.1 390 390
lan900 1500 192.1.1.0 192.1.1.153 0 0
NOTE:
If
lanapplyconf
encounters an invalid failover group, it stops reading the
/etc/
lanmon/lanconfig.ascii
file. Any failover groups created prior to this error are
unaffected.
9.
The failover group is now operational. A reboot will restart the failover group as long as
the
/etc/lanmon/lanconfig.ascii
file is intact and the port or link aggregation has
an IP address in
/etc/rc.config.d/netconf
that matches the failover group's Stationary
IP entry in
/etc/lanmon/lanconfig.ascii
.
If
lan1
fails,
lan2
becomes the active port. Similarly, if the failover group consists of two link
aggregates, failover from the active link aggregate to the standby link aggregate occurs only
when all ports in the link aggregate failed. However, the examples in the next section show how
proactive failover gives you greater control of the failover.
Proactive failover examples
Proactive failover relies on measuring and calculating efficiency. The efficiency of a link aggregate
or individual port in a failover group is affected by the following:
•
The number of ports in each member of the failover group
•
The effective throughput of the switch or router to which the failover group members are
connected
The following examples show how each affects the proactive failover operation.
Example 1
You want to configure a failover group (
lan902
) for proactive failover. You decide that failover
group consists of two link aggregates:
lan900
and
lan901
. The
lan900
aggregate consists of
ports 1, 2, and 3; the
lan901
aggregate consists of ports 4 and 5. Ports 1, 2, 3, 4, and 5 have speeds
of 100 Mb/s. In addition, you want the link aggregate with the most operational ports at any
point in time to be the active link in the failover group.
NOTE:
You can apply the methodology in this example to failover groups consisting of any
number of link aggregates and ports.
To configure the failover group for proactive failover, do the following:
1.
Determine network efficiency.
In this example, you assign both
lan900
and
lan901
a cost of 1.
102
Configuring HP APA by editing files