資源描述:
《高可用負(fù)載均衡pacemakerrrdns》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、1>安裝pacemake3.配置corosync/etc/corosync/corosync.conf主要修改紅色部分。bindnetaddr為IP網(wǎng)段。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創(chuàng)建并修改內(nèi)容為service{#LoadthePacemakerClusterResourceManagername:pacemakerver:0}5>關(guān)閉stonithermc
3、onfigurepropertystonith-enabled二false6、啟動軟件在兩個(gè)節(jié)點(diǎn)啟動corosync/etc/init.d/corosyncstart啟動pacemaker/etc/init.d/pacemakerstart7、查看啟動狀態(tài)#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兩臺服務(wù)器吋加ermconfigurepropertyno-quorum-policy=ignore多個(gè)虛擬ipermconfigurep
5、rimitiveClusterlP2ocf:heartbeat:IPaddr3paramsip=192.168.3.40cidrnetmask=32opmonitorinterval=30s查看設(shè)置#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/