我正在使用起搏器/corosync 配置集群 2 节点,我对此有一些疑问(也许是最佳实践:我远非专家)
**OS:** redhat 7.6
I configurated the cluster with those properties
- **stonith-enabled:** true
- **symmetric-cluster:** true (even if is default value i think)
and added in corosync.conf
- **wait_for_all:** 0 (i want a Node be able to start/work even if his twin is KO)
- **two_nodes:** 1
Considering the fencing:
- Using ILO of blade HP (ILO1 for Node1, ILO2 for Node2)
I read that it was sometimes a good practice to prevent a node suicide, …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用配置文件配置起搏器(我可以自动生成然后要求起搏器“重新加载”)。但是我看到的所有示例都是针对命令行命令或交互式编辑器的。(我正在运行 Ubuntu)。
命令行方法是这样的:
crm configure primitive VIP ocf:IPaddr2 params ip=10.0.2.200 nic=eth0 op monitor interval=10s
Run Code Online (Sandbox Code Playgroud)
虽然交互模式是这样的:
sudo crm configure
And then we add the res_ip resource:
crm(live)configure# primitive res_ip ocf:heartbeat:IPaddr2 params ip="102.169.122.254" cidr_netmask="24" nic="eth0"
crm(live)configure# commit
crm(live)configure# exit
Run Code Online (Sandbox Code Playgroud)
但我想要一个可以更新和重新加载的静态配置文件。类似于/etc/ha.d/haresources心跳使用的文件。有这种可能吗?
我想编辑我在 centos 6.5 上的集群配置的 pingd,因为地址不再有效,而且我的集群总是因为节点失败而切换到另一个节点。最好的方法是什么。我知道我绝不能打开直接在cib.xml 文件中。
[root@PBX1 mojo]# pcs config
Cluster Name: pbx
Corosync Nodes:
pbx1 pbx2
Pacemaker Nodes:
pbx1 pbx2
Resources:
Master: master_drbd
Meta Attrs: master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
Resource: drbd_drbd0 (class=ocf provider=linbit type=drbd)
Attributes: drbd_resource=drbd0
Operations: monitor interval=10s (drbd_drbd0-monitor-interval-10s)
Clone: Connectivity
Resource: p_ping (class=ocf provider=pacemaker type=ping)
Attributes: host_list="10.66.4.4 10.66.4.5 10.66.4.11 10.66.4.252 10.66.4.253 10.66.4.254" multiplier=1000 dampen=5s
Operations: monitor interval=1s (p_ping-monitor-interval-1s)
Group: PBX_IP
Resource: ClusPBXIP (class=ocf provider=heartbeat type=IPaddr2)
Attributes: ip=10.66.6.200 nic=bond0.2 cidr_netmask=24
Operations: monitor interval=30s (ClusPBXIP-monitor-interval-30s)
Resource: ClusNetIP (class=ocf …Run Code Online (Sandbox Code Playgroud) 我最近发布了一个关于在预算上平衡网络服务器问题的问题。这是最后的时间开始测试,所以我认为有关设置两个或两个以上的Ubuntu虚拟机在我的局域网上运行pacemaker+ corosync,以学习的基础知识,并尝试不同的CONFIGS出来。
安装corosync+后如何开始,pacemaker因为我的 LAN 中的每个 VM 都没有附加公共 IP?