Centos7 加入群集

#在新节点主机上安装软件包
yum install pcs fence-agents-all corosync pacemaker resource-agents -y
#配置防火墙
firewall-cmd --add-service=high-availability --permanent
firewall-cmd --reload
#配置节点主机名<pcname3>
hostnamectl set-hostname pcname3

 

#在管理节点主机上添加新节点<pcname3>
pcs cluster node add pcname3

 

 

#在新节点主机<pcname3>上启动群集
pcs cluster start --all

#查看群集状态
pcs status

posted @ 2023-02-23 11:04  cansin  阅读(6)  评论(0编辑  收藏  举报