9
votes
Accepted
Why disable DRBD in Pacemaker cluster
Well the intention of disabling the DRBD service on the OS level is that everything is controlled by pacemaker. If two services (PCMK and your OS, for example) are trying to start / stop / promote / ...
7
votes
Accepted
corosync/pacemaker/fencing - passive/active cluster with 2 nodes
You have, let's say, 4 votes in your cluster - 2 nodes and 2 ILO-fence. Cluster can run, if >2 (3) are accesible. ILO2 is configured with only node1, so if node1 is down - the qourum is lost.
Using ...
6
votes
Accepted
Edit HA cluster config cib.xml
You're definitely correct in saying you don't want to edit the cib.xml directly.
Since you're using pcs to manage your cluster configuration, you should do it like this:
Dump the current cib to a ...
4
votes
Accepted
Linux HA Cluster: running a resource as non-root user
looking carefully at the documentation for the HA resource type ocf:heartbeat:tomcat there is an option tomcat_user , when set, tomcat will be launched as that user.
4
votes
Accepted
Possible to set the specific order of a resource in a Pacemaker group?
You can use the cibadmin utility to query the Pacemaker configuration, move the primitives around accordingly within the <group id="group-vol1"></group> tags, and then push the new config ...
4
votes
Accepted
Corosync HA preventing split-brain scenario
You are correct in the assumption that auto_tie_breaker will try to resolve a node failure in even node configs (1/1, 1/1/1/1, etc.) by "forcing" the cluster to remain connected to the correct set of ...
4
votes
Pacemaker fencing not triggered
What you're observing is the expected behavior. Just because a resource is stopped, doesn't mean the best course of action is to forcefully power-cycle the system.
You manually kill HA-Proxy, ...
4
votes
Corosync/Pacemaker/DRBD Resilience Tuning
It's a misconfigured fencing or quorum pick-up issue. It's a very typical DRBD behavior which works when it works but fails miserably with a split-brain or replicated volumes stuck in a wrong state at ...
3
votes
Accepted
Is OpenHPI optional (not mandatory) to Pacemaker
You're correct; you won't need to do anything with OpenHPI after installing in order to get a Pacemaker cluster going.
OpenHPI is a dependency of the cluster-glue package, which is a dependency of ...
3
votes
Accepted
Multi-state MySQL master/slave pacemaker resource fails to launch on cluster nodes
Solution
Thanks to the folks that investigated with me, I was able to find the solution to my problem and I do now have a working setup. If you feel brave enough, you can read the comments on the ...
3
votes
Accepted
(Pacemaker) Nginx uses primary IP address instead of virtual IP to communicate with web servers
I don't believe this is a question of instructing pacemaker to only use the virtual IP, but rather telling Nginx to only use the virtual IP.
I am no Nginx expert, but reading through their ...
3
votes
Synching Amazon EC2 Instances
Does Corosync and Pacemaker work with Ubuntu 16.04?
Yes. Ubuntu packages Corosync and Pacemaker for Xenial (16.04), which can be installed with a simple command: # apt install corosync pacemaker
...
3
votes
CentOS 7: PCS Pacemaker Corosync Active/Active HAProxy dependency
I listen on a wildcard in haproxy.cfg
bind *:443
instead of
bind myvip:443
This way haproxy resource can run all the time whether the node has VIP resource or not. If node gets a VIP, haproxy will ...
3
votes
Why disable DRBD in Pacemaker cluster
When using a cluster resource manager, any resource should be controlled by, well, the resource manager. Any resource enabled/disabled from the outside of the cluster resource manager is a potential ...
3
votes
Why disable DRBD in Pacemaker cluster
There are two answers already that detail clearly that this is a bad idea and why, but maybe some details as to how it could go wrong for you and how you can use Pacemaker to address these problems ...
3
votes
Accepted
Pacemaker - Logging the result of a ping check?
It turns out that the debug option isn't just an environment variable, it can be set on the ping resource itself, like this:
pcs resource update ping debug=1
The only downside is: the log doesn't ...
2
votes
Accepted
Can not start PostgreSQL replication resource with Corosync/Pacemaker
At the same time, PSQL should run on both of your nodes, master and slave. (Just a small note: Not sure if these terms are good to choose as node names in your setup.)
So, you have to reflect this in ...
2
votes
Accepted
How do I force IPV4 with PCS? (Pacemaker/Corosync)
Quite late but if you want that pcsd runs only in IPv4 you need to modify the file /etc/sysconfig/pcsd and replace the default (and commented)
# PCSD_BIND_ADDR='::'
for something like this :
...
2
votes
pacemaker corosync lsb resource script( Sybase database ASE server and backup server)
The results of pcs resource show ase157_res is op start timeout="20s" ?
Since it takes 30 seconds to "/etc/init.d/that_script start", timeout= must be more than that.
2
votes
Linux HA Cluster: running a resource as non-root user
Look into how to run pacemaker as another user, maker sure it is added to sudoers, configure that user to run pacemaker and tomcat. Have a look here https://access.redhat.com/documentation/en-US/...
2
votes
Accepted
crm status : 0 nodes and 0 resources configured
It seems you only have two nodes, you'd want to add this:
quorum {
provider: corosync_votequorum
expected_votes: 2
}
2
votes
crm status : 0 nodes and 0 resources configured
in totem section, you can try to add this line:
rrp_mode: none
If it still has error, try to add more this section:
quorum {
provider: corosync_votequorum
expected_votes: 3
}
2
votes
Accepted
Slow Failover in Squid Cluster
The problem was the ARP-cache / refresh interval on an intermediate firewall. After reconfiguring the failover works as intended.
2
votes
Accepted
DRBD Failed with pacemaker
You're missing quite a bit here.
First, you're going to need a master slave resource set for each of your DRBD devices.
Then, you'll probably want to to create groups of resources (fs, ip, service)...
2
votes
Accepted
Why can only see one node after reboot the primary node in a cluster with pacemaker and corosync?
Let UDP 5404 and 5405 through the firewall; those are the ports that Corosync will want to use to communicate by default.
2
votes
Accepted
Quickly find out if pacemaker/corosync has quorum/is quorate
Assuming you're using Corosync, you can use corosync-quorumtool:
# corosync-quorumtool -s
Quorum information
------------------
Date: Wed Sep 27 07:16:18 2017
Quorum provider: ...
2
votes
DRBD Status after Network fail become Primary/Unknown
When running DRBD in dual-primary any interruption to the replication network will result in a split-brain. You'll need to resolve this manually by following the steps in the user-guide here: https://...
2
votes
Accepted
Nagios/Icinga: Don't show CRITICAL for DRBD partitions on standby node
I would advise not monitoring this on the host directly. In our environment we utilize Pacemaker to automate failovers. One of the things Pacemaker does for us is moves an IP address upon failover. ...
2
votes
Nagios/Icinga: Don't show CRITICAL for DRBD partitions on standby node
In my environment, we manage multiple services running on top of drbd devices (traditional, lxc containers, docker containers, databases, ...). We use the opensvc stack (https://www.opensvc.com) which ...
2
votes
Pacemaker split-brain timing of resource start and stop
tl;dr -- get a third vote for your cluster via corosync-qdevice
The problem with the OP (I am the author of the OP) is the rather large amount of details that are not contained in the original ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
corosync × 164pacemaker × 142
high-availability × 52
cluster × 37
linux × 25
drbd × 23
ubuntu × 12
failovercluster × 10
centos × 8
failover × 7
load-balancing × 6
heartbeat × 6
debian × 5
crm × 5
linux-ha × 5
nginx × 4
mysql × 4
haproxy × 4
nfs × 4
cman × 4
networking × 3
redhat × 3
puppet × 3
centos6 × 3
mysql-replication × 3