群集组件安装
群集节点准备
2创建VIP资源
3创建Web/Apache资源
4配置约束
5群集测试
群集组件和节点的准备我在另一张博客中已经介绍,可以参考
https://blog.csdn.net/qq_45714272/article/details/106017375
[root@rs1 corosync]# crm_verify -L -V ## 检查配置有无错误
禁用stonish
[root@rs1 corosync]# pcs property set stonith-enabled=false
2.创建vip资源
[root@rs1 corosync]# pcs resource create VirtualIP
ocf💓IPaddr2 ip=192.168.43.100 cidr_netmask=24 op monitor
interval=30s
创建VIP资源如果不生效,只要禁用掉stonish设备即可
pcs property set stonith-enabled=false
[root@rs1 ~]# pcs resource create VirtualIP ocf💓IPaddr2 ip=192.1