Pacemaker搭建集群

来源:互联网 发布:君知其难也的其意思 编辑:程序博客网 时间:2024/06/01 08:16

实验环境:
redhat6.5:
server1.example.com 172.25.80.1(node1)
server2.example.com 172.25.80.2(node2)
实验前提:
(因为之前有使用luci图形管理工具搭建高可用集群,所以在做本次实验之前确保这三个服务关闭并且不能开机子、自启动)
:::chkconfig cman off
:::chkconfig modclusterd off
:::chkconfig ricci off
:::/etc/init.d/ricci stop
:::/etc/init.d/modclusterd stop
:::/etc/init.d/cman
1、安装pacemaker
:::yum install -y pacemaker
2、编辑配置文件
:::cd /etc/corosync/
:::cp corosync.conf.example corosync.conf
:::vim corosync.conf
(修改)
这里写图片描述
(添加)
这里写图片描述
3、启动服务
:::/etc/init.d/corosync start
4、安装工具
(工具可以在pkgs.org这个网站下载)
:::yum install -y crmsh pass
5、测试
这里写图片描述
注:以上步鄹需要在两个节点操作

0 0
原创粉丝点击