Available: python-2.7.5-90.el7.x86_64 (updates)
Available: python3-3.6.8-17.el7.i686 (base)
Available: python3-3.6.8-18.el7.i686 (updates)
Available: python34-3.4.10-4.el6.i686 (epel)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@node1 ~]# yum install epel-release -y
[root@node1 ~]# yum clean all
[root@node1 ~]# yum makecache
[root@node1 ~]# systemctl start pcsd.service
[root@node1 ~]# systemctl enable pcsd.service
两节点上修改用户hacluster的密码(用户已经固定不可以改变)
[root@node1 ~]# passwd hacluster
注册pcs集群主机(默认注册使用用户名hacluster,和密码)
[root@node1 ~]# pcs cluster auth node1 node2 ##设置注册那个集群节点
[root@node1 ~]# pcs cluster setup --name mycluster node1 node2 --force
Destroying cluster on nodes: node1, node2...
node1: Stopping Cluster (pacemaker)...
node2: Stopping Cluster (pacemaker)...
node1: Successfully destroyed cluster
node2: Successfully destroyed cluster
Sending 'pacemaker_remote authkey' to 'node1', 'node2'
node1: successful distribution of the file 'pacemaker_remote authkey'
node2: successful distribution of the file 'pacemaker_remote authkey'
Sending cluster config files to the nodes...
Synchronizing pcsd certificates on nodes node1, node2...
Restarting pcsd on the nodes in order to reload the certificates...
接下来就在某个节点上已经生成来corosync配置文件:
[root@node1 corosync]# ls
corosync.conf corosync.conf.example corosync.conf.example.udpu corosync.xml.example uidgid.d
可以看到已经生成了corosync.conf配置文件
[root@node1 corosync]# pwd
分区 Corosync+pacemaker+DRBD+mysql实现高可用(ha)的mysql集群 的第 2 页
文档被以下合辑收录
评论