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 / ...
user avatar
  • 5,062
7 votes
Accepted

Is it possible to configure pacemaker with a configuration file?

Definitely. Create a configuration file (named 'cib.txt', in our example) with the same syntax you've used in your example commands: primitive VIP ocf:heartbeat:IPaddr2 params ip=10.0.2.200 nic=eth0 \...
user avatar
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 ...
user avatar
  • 8,723
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 ...
user avatar
4 votes
Accepted

Pacemaker error on failback with drbd

res_exportfs_export2_stop_0 on xx.xx.xx.1 'unknown error' (1): call=47, status=Timed Out, last-rc-change='Tue Mar 31 12:53:04 2015', queued=0ms, exec=20003ms Shows that your res_exportfs2 resources ...
user avatar
  • 1,110
4 votes
Accepted

Clustered Apache 2.4 LoadBalancer displays no content on /balancer-manager

You have add balancer-manager handler in same virtualhost where you have configured load balancer. Also need you need to exclude location with "ProxyPass /balancer-manager !". Please see the below ...
user avatar
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 ...
user avatar
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.
user avatar
  • 276
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, ...
user avatar
  • 1,110
3 votes

Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges

I think the problem is in the init script, it does not respect the LSB spec. If you look at the function haproxy_stop, in file /etc/init.d/haproxy: haproxy_stop() { if [ ! -f $PIDFILE ] ; then ...
user avatar
3 votes

How do I set the pacemaker cluster name with pcs?

In the sources of pcs-0.9.115-32.el7 the getClusterName function is implemented: def getClusterName(): if is_rhel6(): try: dom = parse(settings.cluster_conf_file) ...
user avatar
3 votes

multicast address use in corosync

You don't have to use multicast on corosync. You may use unicast to do your job. This can be done by using something like this in /etc/corosync/corosync.conf for a two-member cluster: compatibility: ...
user avatar
  • 478
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 ...
user avatar
  • 271
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 ...
user avatar
  • 1,110
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 ...
user avatar
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 ...
user avatar
3 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 ...
user avatar
  • 5,062
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 ...
user avatar
  • 13.4k
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 ...
user avatar
  • 43.2k
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 ...
user avatar
  • 6,961
2 votes
Accepted

Corosync and Pacemaker deployment

You do need to run them on the DB hosts as well as they are required to manage the resources (which are the database instances in your case). I assume that you could also create "remote resources" and ...
user avatar
2 votes
Accepted

Corosync 2.3.3: Unable to enable cipher

You have exchanged the values ​​of the options, you must use: crypto_cipher: aes256 crypto_hash: sha1 instead of crypto_cipher: sha1 crypto_hash: aes256
user avatar
2 votes
Accepted

corosync pacemaker crm status show DC : none and offline

In my configuration I use bindnetaddr with the ip address for each host. For example: node1: bindnetaddr: 192.168.1.101 node2: bindnetaddr: 192.168.1.102 Edit: bindnetaddr his is normally the ...
user avatar
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 : ...
user avatar
  • 322
2 votes

Monitoring pacemaker with url trigger external agent

You can configuring Notifications via External-Agent adding external script to process cluster changes. For example configure ClusterMon to execute an external-agent: primitive ClusterMon ocf:...
user avatar
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 ...
user avatar
  • 5,463
2 votes

pacemaker corosynce 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.
user avatar
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 }
user avatar
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 }
user avatar
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/...
user avatar
  • 1,813

Only top scored, non community-wiki answers of a minimum length are eligible