网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

PacemakerandCorosync构建HA

参考文章:http://www.6tech.org/2013/03/linux-firewall-cluster-with-pacemaker-and-corosync/
系统 centos6.4-x86_64
前提 各节点服务器 1构建第三方源配置完毕;2搭建好rsync服务。
(第三方源 http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/x86_64/)
安装基本软件(各节点服务器)

创新互联公司是一家专业提供新余企业网站建设,专注与网站设计制作、网站建设成都h5网站建设、小程序制作等业务。10年已为新余众多企业、政府机构等服务。创新互联专业网站设计公司优惠进行中。

yum install -y vim git make automake gcc gcc-c++ glibc gd gd-devel glib-devel glibc-headers wget curl tar nc libcurl-devel openssl-devel zlib-devel zlib patch readline readline-devel libffi-devel curl-devel zip rsync ruby rubygems ruby-devel  htop mlocate python-dateutil redhat-rpm-config ntp

修改hosts文件,添加虚拟IP解析

vim /etc/hosts
 
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.101      vm01-centos
10.0.0.102      vm02-centos
10.0.0.103      vm03-centos

Install Pacemaker: (Do on all servers)

yum install -y pacemaker cman ccs corosync pssh crmsh

添加开机启动

chkconfig pacemaker on

Create Corosync Key: (Only do on the first server)

corosync-keygen

Set permissions on the key: (Do first server)

chown root:root /etc/corosync/authkeychmod 400 /etc/corosync/authkey

拷贝至其他节点

rsync –avh /etc/corosync/authkey root@10.0.0.101:/etc/corosync/authkeyrsync –avh /etc/corosync/authkey root@10.0.0.103:/etc/corosync/authkey

Install a base corosync config: (Do on first server)

cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf

文章标题:PacemakerandCorosync构建HA
转载来于:http://bjjierui.cn/article/ihgggi.html

其他资讯