BASP (Broadcom Advanced Server Program)
Step 0:簡介
Step 1:安裝
Step 2:設定
Step 3:SLB with 負載平衡(loading balance) +容錯(Failover/Failback)
Step 4:SLB without 容錯(fallback)
Step 5:SLB with VLAN
Step 0:簡介
BASP是由 Broadcom這幾提供的 Bonding(可以將不同的網路 port 變成同一個 port),除了提供負載平衡(load-balancing),容錯(fault-tolerance)的功能外,還能有 VLAN(Switch 的功能,主要是將實體的裝置分割成不同區塊,可以減少封包的碰撞) 的功能。
Step 1:安裝
系統預設沒有安裝這個套件,我們必須到 http://www.broadcom.com 下載.
[root@unsvr ~]# cp basplnx-6.3.1.i386.tgz /tmp [root@unsvr ~]# tar xvfz basplnx-6.3.1.i386.tgz [root@unsvr ~]# cd basplnx-6.3.1 [root@unsvr basplnx-6.3.1]# make install [root@unsvr basplnx-6.3.1]depmod –a [root@unsvr basplnx-6.3.1]insmod basp
Step 2:設定
[root@unsvr ~]# cd /etc/sysconfig/network-scripts [root@unsvr ~]# vi ifcfg-eth0 DEVICE= eth0 BOOTPROTO=static ONBOOT=yes [root@unsvr ~]# vi ifcfg-eth0 DEVICE= eth1 BOOTPROTO=static ONBOOT=yes
Step 3:SLB with 負載平衡(loading balance) +容錯(Failover/Failback)
高可用性 系統資源(例如磁碟或 IP 位址)會自動地從故障的伺服器移轉至提供服務的伺服器。這種過程稱作 錯誤移轉 (Failover)。
容錯回復 當故障的伺服器修復並且重回線上時,會自動地重新平衡叢集中的工作負載。這被稱為 錯誤回復 (Failback)。
[root@unsvr ~]# cd /etc/basp [root@unsvr basp]# cp sample/team-sample /etc/basp [root@unsvr basp]# vi team-sample TEAM_ID=0 TEAM_TYPE=0 TEAM_NAME=TeamSample # Set to 1 to enable the probe packets feature. Set to 0 or remove to # disable probe packets LIVE_LINK_ENABLE=0 # 1st physical interface in the team TEAM_PA0_NAME=eth0 TEAM_PA0_ROLE=0 # 2nd physical interface in the team TEAM_PA1_NAME=eth1 TEAM_PA1_ROLE=0 # 1st virtual interface in the team TEAM_VA0_NAME=sw0 TEAM_VA0_VLAN=0 TEAM_VA0_IP=192.2.1.10 TEAM_VA0_NETMASK=255.255.255.0 [root@unsvr basp]# /etc/init.d/basp start
or
[root@unsvr basp]# baspif /etc/basp/team-sample start [root@unsvr basp]# baspif /etc/basp/team-sample stop
Step 4:SLB without 容錯(fallback)
[root@unsvr basp]# cd /etc/basp [root@unsvr basp]# cp sample/team-sample /etc/basp [root@unsvr basp]# cp sample/team-sample /etc/basp [root@unsvr basp]# vi team-sample TEAM_TYPE=3 TEAM_NAME=TeamSample # Set to 1 to enable the probe packets feature. Set to 0 or remove to # disable probe packets LIVE_LINK_ENABLE=0 # 1st physical interface in the team TEAM_PA0_NAME=eth0 TEAM_PA0_ROLE=0 # 2nd physical interface in the team TEAM_PA1_NAME=eth1 TEAM_PA1_ROLE=0 # 1st virtual interface in the team TEAM_VA0_NAME=sw0 TEAM_VA0_VLAN=0 TEAM_VA0_IP=192.2.1.10 TEAM_VA0_NETMASK=255.255.255.0 [root@unsvr basp]# /etc/init.d/basp start
or
[root@unsvr basp]# baspif /etc/basp/team-sample start [root@unsvr basp]# baspif /etc/basp/team-sample stop
Step 5:SLB with VLAN
TBD
沒有解決問題,試試搜尋本站其他內容
One thought on “Linux – BASP”