Pacemaker and Corosync 构建HA
发表于:2025-02-01 作者:千家信息网编辑
千家信息网最后更新 2025年02月01日,参考文章:http://www.6tech.org/2013/03/linux-firewall-cluster-with-pacemaker-and-corosync/系统 centos6.4-x8
千家信息网最后更新 2025年02月01日Pacemaker and Corosync 构建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/)
安装基本软件(各节点服务器)
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.localdomain610.0.0.101 vm01-centos10.0.0.102 vm02-centos10.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
节点
服务
服务器
第三方
前提
拷贝
文件
文章
系统
软件
建好
参考
配置
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
泛互联网高科技指的是哪些行业
阿里巴巴的首席网络安全专家
安全日志审计服务器报价
金华软件开发定制服务
软件开发的能做游戏外挂吗
数据库的数据独立与硬盘区别
软件开发风险规避方案
舒兰市政法委网络安全
分布式数据库原理
华为网络技术实训报告
卡池软件开发
网络安全审查办法中的审查对象为
dos防护服务器
中国移动网络技术研究所李晨
南京数字化智慧工地软件开发
电脑如何恢复数据库数据
xp系统不信任服务器安全证书
lol新服务器什么时候开
云海麒麟服务器管理
服务器备份与恢复数据
网络技术中ap是什么意思
充钱提示此服务器不安全
嵌入式qt软件开发
eclipse连接sql数据库
初中生国家网络安全手抄报
服务器下发数据
计算机软件开发大脑音乐
湖州小程序软件开发
四级数据库工程师考大题吗
江西利剑软件开发有限公司