高可用负载均衡pacemaker+rrdns

上传人:第*** 文档编号:32828744 上传时间:2018-02-12 格式:DOCX 页数:5 大小:18.81KB
返回 下载 相关 举报
高可用负载均衡pacemaker+rrdns_第1页
第1页 / 共5页
高可用负载均衡pacemaker+rrdns_第2页
第2页 / 共5页
高可用负载均衡pacemaker+rrdns_第3页
第3页 / 共5页
高可用负载均衡pacemaker+rrdns_第4页
第4页 / 共5页
高可用负载均衡pacemaker+rrdns_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《高可用负载均衡pacemaker+rrdns》由会员分享,可在线阅读,更多相关《高可用负载均衡pacemaker+rrdns(5页珍藏版)》请在金锄头文库上搜索。

1、1、安装 pacemake rpm ivh *.rpm2、安装 crmshrpm ivh *.rpm3、配置 corosync/etc/corosync/ corosync.conf 主要修改红色部分。bindnetaddr 为 IP 网段。mcastaddr 为多播地址。mcastport 为多播地址端口# Please read the corosync.conf.5 manual pagecompatibility: whitetanktotem version: 2secauth: offthreads: 0interface ringnumber: 0bindnetaddr: 10.

2、3.211.0mcastaddr: 226.94.1.1mcastport: 4000ttl: 1logging fileline: offto_stderr: noto_logfile: yesto_syslog: yeslogfile: /var/log/cluster/corosync.logdebug: offtimestamp: onlogger_subsys subsys: AMFdebug: offamf mode: disabled4、 配置 pacemaker/etc/corosync/service.d/pcmk 创建并修改内容为service # Load the Pac

3、emaker Cluster Resource Managername: pacemakerver: 05、关闭 stonithcrm configure property stonith-enabled=false6、 启动软件在两个节点启动 corosync/etc/init.d/corosync start启动 pacemaker/etc/init.d/pacemaker start7、查看启动状态#crm_monLast updated: Thu Aug 8 04:40:33 2013Last change: Tue Aug 6 05:39:44 2013 via cibadmin o

4、n data-node4Stack: classic openais (with plugin)Current DC: data-node4 - partition with quorumVersion: 1.1.8-7.el6-394e9062 Nodes configured, 2 expected votes2 Resources configured.Online: data-node4 data-node5 添加功能公共 IP 功能命令为crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 params ip=192.168.

5、3.39 cidr_netmask=32 op monitor interval=30s两台服务器时加crm configure property no-quorum-policy=ignore多个虚拟 ipcrm configure primitive ClusterIP2 ocf:heartbeat:IPaddr3 params ip=192.168.3.40 cidr_netmask=32 op monitor interval=30s查看设置# crm configure shownode data-node4node data-node9primitive ClusterIP ocf

6、:heartbeat:IPaddr2 params ip=192.168.3.39 cidr_netmask=32 op monitor interval=30sprimitive ClusterIP2 ocf:heartbeat:IPaddr3 params ip=192.168.3.40 cidr_netmask=32 op monitor interval=30sproperty $id=cib-bootstrap-options dc-version=1.1.8-7.el6-394e906 cluster-infrastructure=classic openais (with plu

7、gin) expected-quorum-votes=2 stonith-enabled=false 安装 bindrpm ivh *.rpm配置 /etc/named.confoptions directory /var/named;forwarders 10.3.211.6;allow-query any; ;allow-transfer any;zone gluster.local IN type master;file gluster.local;zone 211.3.10.in-addr.arpa IN type master;file gluster.local.rev;配置 gl

8、uster.localcp /var/named/named.localhost /var/named/gluster.local$TTL 10 IN SOA gluster.local. (10 ; serial10 ; refresh10 ; retry10 ; expire10 ) ; minimum IN NS gluster.local. IN A 10.3.211.6 IN A 10.3.211.7配置 gluster.local.revcp /var/named/gluster.local /var/named/gluster.local.revvi /var/named/glu

9、ster.local.rev$TTL 10 IN SOA rname.invalid. (10 ; serial10 ; refresh10 ; retry10 ; expire10 ) ; minimum; IN NS gluster.local.6 IN PTR gluster.local.7 IN PTR gluster.local.重启服务/etc/init.d/named restart验证结果rootdata-node4 # ping gluster.local返回结果:PING gluster.local (192.168.3.39) 56(84) bytes of data.6

10、4 bytes from gluster.local (192.168.3.39): icmp_seq=1 ttl=64 time=0.007 ms64 bytes from gluster.local (192.168.3.39): icmp_seq=2 ttl=64 time=0.007 ms再次 ping gluster.Localrootdata-node4 # ping gluster.localPING gluster.local (192.168.3.40) 56(84) bytes of data.64 bytes from gluster.local (192.168.3.4

11、0): icmp_seq=1 ttl=64 time=0.156 ms64 bytes from gluster.local (192.168.3.40): icmp_seq=2 ttl=64 time=0.130 ms关闭 data-node5rootdata-node4 # ping gluster.local返回结果:PING gluster.local (192.168.3.39) 56(84) bytes of data.64 bytes from gluster.local (192.168.3.39): icmp_seq=1 ttl=64 time=0.007 ms64 byte

12、s from gluster.local (192.168.3.39): icmp_seq=2 ttl=64 time=0.007 ms再次 ping gluster.Localrootdata-node4 # ping gluster.localPING gluster.local (192.168.3.40) 56(84) bytes of data.64 bytes from gluster.local (192.168.3.40): icmp_seq=1 ttl=64 time=0.156 ms64 bytes from gluster.local (192.168.3.40): icmp_seq=2 ttl=64 time=0.130 ms

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 工程造价

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号