Advanced Server Features
71
Startup Scripts
1
basp
This script is intended to be installed in /etc/rc.d/init.d directory. After copying the
script, run “chkconfig --add basp”. This script will be executed at runlevel 2, 3, 4 and
5. When basp runs, it will search the /etc/basp directory to list all the files with “team-
” prefix, and then it will invoke the “baspteam” script to add or delete the teams. It is
normal, for each “team-*” file in /etc/basp, to represent 1 team.
2
baspteam
This script is called by basp to add or delete a team. To install, create “/etc/basp”
directory and copy this script over.
To manually add a team, type:
baspteam team-sample add
To delete a team, type:
baspteam team-sample del
Note that “team-sample” is the config script.
3
team-sample
This script contains an SLB team configuration with three NICs: eth0, eth1 and eth2.
The team name is “TeamSample”. All three NICs are primary. One virtual interface is
also created for this team and the name of the virtual interface is “sw0”. “sw0” is the
device that ifconfig should be run against to set up the IP address. No VLAN is
enabled in the script.
This script and “team-gec” are intended to be customized. Refer to the configuration
scripts section for details. This script should be copied to /etc/basp directory and retain
the “team-” prefix.
4
team-gec
This configuration script creates a GEC team with 3 network interfaces: eth0, eth1
and eth2. The team name is “TeamGEC”. All 3 NICs are primary. One virtual interface
is added to the team with the name “sw0” and no VLAN is enabled.
This script and the “team-sample” script are intended to be customized. Refer to the
configuration scripts section for details. This script should be copied to /etc/basp
directory and retain the “team-” prefix.
NOTE:
Starting the team is only required for the first time. Teams will be started
automatically in subsequent reboots.
NOTE:
Forming multiple teams is possible by copying the sample files into “/etc/
basp/” and modifying this file as described in the sample file. The files must
have unique filenames. Name the files “team-xxx” where “xxx” is a unique
identifier for the team.
NOTE:
To create more that one virtual interface (VLAN) for each team, refer to
the respective description section in the sample files.