Pacemaker and Corosync 构建HA
2015-07-19 02:57
232 查看
参考文章: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/) 安装基本软件(各节点服务器)
修改hosts文件,添加虚拟IP解析
Install Pacemaker: (Do on all servers)
添加开机启动
Create Corosync Key: (Only do on the first server)
Set permissions on the key: (Do first server)
拷贝至其他节点
Install a base corosync config: (Do on first server)
系统 centos6.4-x86_64
前提 各节点服务器 1构建第三方源配置完毕;2搭建好rsync服务。
(第三方源 http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/x86_64/) 安装基本软件(各节点服务器)
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 |
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 |
yum install -y pacemaker cman ccs corosync pssh crmsh |
chkconfig pacemaker on |
corosync-keygen |
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 |
cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf
相关文章推荐
- [Leetcode 237, Easy] Delete Node in a Linked List
- pacemaker操作
- mydumper多线程备份还原mysql
- XtraBackup 无锁表InnoDB备份-增量备份工具-安装
- mysql-主主服务器同步搭建-半同步方式
- Karhunen-Loeve Transform (KLT) 原理及PCA应用
- MySQL show
- rpmbuild 简单参数解释
- XEN linux虚拟机配置实例
- linux增加loop设备上限
- 几个帅气的linux命令
- iptables 基本说明
- SELinux管理与配置
- xinetd-ftpd 访问控制例子
- Google开源网页加速工具Page Speed
- Creating your own JavaScript Library
- 记录一个坑爹的问题
- linux tr命令详解
- cpanm perl模块自动安装
- [Linux C]双色球计算程序