LVS双机热备和负载均衡一体化安装方法(2)

如果您使用硬件设备作网关,如有需要,则请相应调整的硬件参数,例如,CISCO路由器的
预设ARP缓存时间是14400秒(4小时),如果您不想修改此参数,那就肯定需要手动刷新了。
CISCO 路由器用于操作 arp cache 的相关命令可参考如下:
router# show arp
router# clear arp-cache

────────────────────────────────────────────────────────────────────────────────
LVS
────────────────────────────────────────────────────────────────────────────────
Official Site:

Ref:


# yum install ipvsadm;

注意: 在本案例中,因为双机热备需要两边node完全相同的配置,因此所有命令都同时
适用于两台node主机,除了 heartbeat配置配置文档/etc/ha.d/ha.cf有点稍微不同之外,
其他配置也完全相同。

────────────────────────────────────────────────────────────────────────────────
Linux-HA:注意最新版本(heartbeat 3)作了相当大的改动
────────────────────────────────────────────────────────────────────────────────

Heartbeat 3 的组成
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Heartbeat 3 按模块拆分为三个子项目,提供了一个名为 cluster-glue 的组件, 专用于
Local Resource Manager 的管理。即heartbeat + cluster-glue + resouce-agent三部分:
(1) hearbeat集群心跳, 负责维护集群各节点的信息以及它们之前通信;
(2) cluster-glue相当于一个中间层,可将heartbeat和crm(pacemaker)联系起来,包括LRM和STONITH;
(3) resource-agent各种资源的ocf脚本,这些脚本将被LRM调用从而实现各种资源启动、停止、监控等;



In post-2.1.4 releases, Linux-HA code is packaged in three different sub-projects:
  * Heartbeat:
  * Cluster Glue:
  * Resource Agents:


Pacemaker supports three types of Resource Agents:
  * LSB Resource Agents:
  * OCF Resource Agents:
  * legacy Heartbeat Resource Agents:

Mercurial Repositories:


################################################################################
RHEL6/CentOS6 (Heartbeat3: heartbeat + cluster-glue + resouce-agent)
################################################################################
REF:
Fedora/


# rpm -Uvh
# yum search heartbeat;
# yum install heartbeat;

────────────────────────────────────────────────────────────────────────────────
Install ldirectord:
────────────────────────────────────────────────────────────────────────────────
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Note: RHEL6 only added ldirectord to RHN Satellite server in a separate channel.
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

ldirector (Linux Director Daemon) is a background process computer program used
to monitor and administer real servers in the Linux Virtual Server (LVS) cluster.


********************************************************************************
Download: (Need non-free support login )
********************************************************************************
wget
wget
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

# vi /etc/yum.repos.d/slinux.repo;#(same as centos6, not include ldirectord)
--------------------------------------------------------------------------------
[scientific-linux]
name=Scientific Linux
#baseurl=http://ftp.scientificlinux.org/linux/scientific/6/x86_64/os/
baseurl=http://ftp.scientificlinux.org/linux/scientific/6/i386/os/
enabled=0
--------------------------------------------------------------------------------
Note: this is not working, here is only for recoding the RedHat dirty things !



https://github.com/ClusterLabs/resource-agents

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/7eef666ebd6390530c60ae5a13268b4d.html