The N1 Provisioning Server software supports high availability (HA) load balancer pairs. Configuring load balancers for high availability mode involves two steps:
Creating a new device type
Creating a load balancer high availability pair
Type devtype -l |grep lb to get the ID of the device type.
Example
6 lb - - 0 7 halb - - 0 |
To create a device type for a high availability load balancer pair run:
devtype -c -n SFB10LB-ha-pair "SFB10LB HA Pair" -b -q none
Output example:
Added SFB10LB ha pair, id 25013 |
Set the HAL class for the device type you just created by running
devtype -s SFB10LB ha pair ID-H com.terraspring.drivers.sun.HighAvailabilitySFB10LB
To create an instance of a high availability load balancer device run
device -c SFB10LB ha pair ID-t SFB10LB ha pair
To get a list of available load balancers run
device -l | grep lb
Example output:
50103 - FREE - lb:sunfireb10n-299-blade (sunw sunfireb10n) 50115 - FREE - lb:sunfireb10n-299-blade (sunw sunfireb10n) |
Set the parent for two available load balancer device IDs by running
device -s -P SFB10LB ha pair ID SFB10LB device ID
Example:
device -s -P 50103
device -s -P SFB10LB ha pair ID lSFB10LB ha pair device ID
Example:
device -s -P 50115
Set the the HA load balancer pair to a state of FREE by typing
device -s -F SFB10LB ha pair device ID