N1 Provisioning Server 3.1, Blades Edition, System Administration Guide

Configuring Load Balancers in High Availability Pairs

The N1 Provisioning Server software supports high availability (HA) load balancer pairs. Configuring load balancers for high availability mode involves two steps:

ProcedureHow to create a new device type

Steps
  1. Type devtype -l |grep lb to get the ID of the device type.

    Example


    6      lb       -      -            
                   0
    7      halb             -      -            
                   0
  2. 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
  3. 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

ProcedureHow to create a high availability load balancer device

Steps
  1. To create an instance of a high availability load balancer device run

    device -c SFB10LB ha pair ID-t SFB10LB ha pair

  2. 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)
  3. 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

  4. Set the the HA load balancer pair to a state of FREE by typing

    device -s -F SFB10LB ha pair device ID