欢迎来到天天文库
浏览记录
ID:43859798
大小:81.50 KB
页数:5页
时间:2019-10-16
《高可用负载均衡pacemakerrrdns》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1>安装pacemake3.配置corosync/etc/corosync/corosync.conf主要修改红色部分。bindnetaddr为IP网段。mcastaddr为多播地址。mcastport为多播地址端口#Pleasereadthecorosync.conf.5manualpagecompatibility:whitetanktotem{version:2secauth:offthreads:0interface{ringnumber:0bindnetaddr:10.3.211.0mcastaddr:226.94.1.1mcastport:4000ttl:1}}loggi
2、ng{fileline:offto_stderr:noto」ogfile:yesto_syslog:yeslogfile:/var/log/cluster/corosync.logdebug:offtimestamp:onlogger_subsys{subsys:AMFdebug:off}}amf{mode:disabled}4^配置pacemaker/etc/corosync/service.d/pcmk创建并修改内容为service{#LoadthePacemakerClusterResourceManagername:pacemakerver:0}5>关闭stonithermc
3、onfigurepropertystonith-enabled二false6、启动软件在两个节点启动corosync/etc/init.d/corosyncstart启动pacemaker/etc/init.d/pacemakerstart7、查看启动状态#crm_monLastupdated:ThuAug804:40:332013Lastchange:TueAug605:39:442013viacibadminondata-node4Stack:classicopenais(withplugin)CurrentDC:data-node4・partitionwithquorumVer
4、sion:1.1.8-7.el6-394e9062Nodesconfigured,2expectedvotes2Resourcesconfigured.Online:[data・node4data-node5]添加功能公共IP功能命令为ermconfigureprimitiveClusterIPocf:heartbeat:IPaddr2paramsip=192.168.3.39cidr_netmask=32opmonitorinterval=30s两台服务器吋加ermconfigurepropertyno-quorum-policy=ignore多个虚拟ipermconfigurep
5、rimitiveClusterlP2ocf:heartbeat:IPaddr3paramsip=192.168.3.40cidrnetmask=32opmonitorinterval=30s查看设置#ermconfigureshownodedata-node4nodedata-node9primitiveClusterIPocf:heartbeat:IPaddr2paramsip=,,192.168.3.39"cidr_netmask二”32”opmonitorinterval二'BOs"primitiveClusterlP2ocf:heartbeat:IPaddr3param
6、sip=n192.168.3.40"cidr_netmask二”32”opmonitorintervah'^Os"property$id="cib・bootstrap・options"dc-version="1.1.8-7.el6-394e906"cluster-infrastructure=Hclassicopenais(withplugin)"expected-quorum-votes=”2”stonith・enabled=,,falseN安装bindrpm-ivh*.rpm配置/etc/named.confoptions{directoryH/var/namecT;f
7、orwarders{10.3.211.6;};allow-query{any;};allow-transfer{any;};};zone"gluster.local"IN{typemaster;file"gluster.local";};zone"211.3.10.in-addr.arpa"IN{typemaster;file"gluster.local.rev11;};配置gluster.localcp/var/named/named」ocalhost/
此文档下载收益归作者所有