Questions tagged [corosync]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
27 votes
9 answers
42k views

Alternatives to Heartbeat, Pacemaker and CoroSync?

Are there any major alternatives for automatic failover on Linux besides the typical Heartbeat/Pacemaker/CoroSync combinations? In particular, I'm setting up failover on EC2 instances, which only ...
organicveggie's user avatar
8 votes
3 answers
2k views

Why disable DRBD in Pacemaker cluster

The DRBD documentation (in section Integrating DRBD with Pacemaker clusters) recommends that DRBD should be disabled in a Pacemaker cluster: If you are employing the DRBD OCF resource agent, it is ...
rookie099's user avatar
  • 377
7 votes
1 answer
4k views

Pacemaker/corosync timeout before resource transfers

This seems like a simple question, but one I can't seem to find the answer for despite going over the pacemaker documentation multiple times. I've got corosync set up with pacemaker to share a ...
user705142's user avatar
7 votes
1 answer
14k views

MySQL: Pacemaker cannot start the failed master as a new slave?

pacemaker-1.0.12-1 corosync-1.2.7-1.1 I'm going to setup failover for MySQL replication (1 master and 1 slave) follow this guide: https://github.com/jayjanssen/Percona-Pacemaker-Resource-Agents/blob/...
quanta's user avatar
  • 51.8k
6 votes
2 answers
14k views

Secure IPTables rules for Corosync

I have two HA load balancers (hollywood and wolfman) running Corosync and Pacemaker. The eth1 interfaces are connected to the WAN, and the eth0 interfaces to the LAN, using a virtual IP as the gateway ...
jetboy's user avatar
  • 922
5 votes
2 answers
532 views

Corosync/Pacemaker/DRBD Resilience Tuning

I have a DRBD cluster and one node was switched off for a couple of days. The single node ran fine without a hiccup. When i switch it on I got into a situation where all resources got stopped and one ...
Waslap's user avatar
  • 173
5 votes
1 answer
3k views

Possible to set the specific order of a resource in a Pacemaker group?

Given the Pacemaker/Corosync resource configuration described below, is it possible to add a resource in a specific position within the resource group? The configuration is CentOS 7.2 using the RHEL-...
ewwhite's user avatar
  • 198k
5 votes
1 answer
1k views

Pacemaker error on failback with drbd

I have two nodes in my cluster with drbd+pacemaker+corosync When the first node fails, the second assumes the service and it's ok, but when we have to failback (node1 back online) it shows some errors ...
Leandro Ferreira's user avatar
5 votes
1 answer
3k views

DRBD + corosync + pacemaker - Servers won't connect after failover

I got 2 servers configured with drbd, corosync with pacemaker. It is all working fine, primary server gets secondary if it fails, and secondary gets primary. But if the 1st server comes up again ...
Jockel's user avatar
  • 51
5 votes
0 answers
5k views

Corosync unicast issue with different nets

I'm using a setup (on our staging-system) with 2 root-servers and 1 fail-over-ip. As software we use corosync and pacemaker. Corosync is configured for multicast communication via port 5405. --> ...
Rene Hellmann's user avatar
4 votes
1 answer
1k views

corosync/pacemaker/fencing - passive/active cluster with 2 nodes

I'm configuring a cluster 2 nodes with pacemaker/corosync, and I have some question about it (and maybe best practice : i'm far to be specialist) **OS:** redhat 7.6 I configurated the cluster with ...
drkmkzs's user avatar
  • 311
4 votes
1 answer
4k views

Corosync HA preventing split-brain scenario

I'm setting up a test system for self-teaching about load balancing and high availability and I'm curious about a configuration setting in Corosync and would like to know what you guys who have ...
StianM's user avatar
  • 85
4 votes
2 answers
6k views

pacemaker corosync lsb resource script( Sybase database ASE server and backup server)

I'm trying to create a lsb resource with pcs on rhel7.2 The "sybase" script is about Sybase Database ASE Server and Backup Server Startup & Stop & Restart $ status script Before [...
Arthur Cheng's user avatar
4 votes
1 answer
1k views

Relation between Heartbeat and Corosync on openSUSE

I'm moving a Heartbeat + Pacemaker setup to openSUSE 12.1. It turns out that Heartbeat isn't supported on this platform anymore, and therefore it is not available from the official repos. Switching ...
Szymon Jednac's user avatar
4 votes
1 answer
1k views

Add MySQL as a resource to pacemaker

I am trying to enable fail over strategy using pacemaker on a mysql Master-Master replication on two virtual machine running openSUSE 12 created by VritualBox. I managed to complete the mysql dual-...
mrz's user avatar
  • 237
4 votes
1 answer
2k views

Start at boot time Corosync 2.X + Pacemaker 1.1 cluster (Debian Wheezy)

I can't find a way to start cluster (corosync+pacemaker) at boot time in Debian I have updated a 2 node cluster with the following configuration on both nodes: Debian Wheezy 7.7 Corosync v2.3.4 ...
Danilo7's user avatar
  • 101
4 votes
3 answers
4k views

Pacemaker corosync 2-node with a 3rd for quorum

I'm having trouble figuring out how to configure a 2-node setup with a third simpler one for quorum. It seems to think all the nodes have the capability to act as a full fallback node, when I only I ...
Martti's user avatar
  • 41
4 votes
1 answer
686 views

Pacemaker cluster does not cleanly failover DRBD-resource (but does so manually)

I had to upgrade a cluster from Ubuntu 16.04. It did work fine on 18.04 and 20.04 but now on 22.04 it does not failover the DRBD-device. Putting the resource into maintenance mode and performing a ...
Stefan Mueller's user avatar
4 votes
0 answers
3k views

Pacemaker ocf:heartbeat:IPaddr on different subnets

I'm trying to add a Pacemaker virtual IP address; with it, the gateway, and the two VMs it serves on different subnets. I've only done this before with all IPs on the same subnet, and I need some help....
jetboy's user avatar
  • 922
3 votes
1 answer
15k views

Is it possible to configure pacemaker with a configuration file?

I'm trying to configure pacemaker with a config file (that I can automatically generate and then ask pacemaker to "reload"). But all the examples that I see are for command-line commands or the ...
moomima's user avatar
  • 497
3 votes
2 answers
296 views

Pacemaker - Logging the result of a ping check?

I read this page and the next: https://clusterlabs.org/pacemaker/doc/deprecated/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_moving_resources_due_to_connectivity_changes.html And it explains how to ...
KdgDev's user avatar
  • 293
3 votes
1 answer
1k views

(Pacemaker) Nginx uses primary IP address instead of virtual IP to communicate with web servers

I have set up a two-node cluster (active/passive) with Corosync/Pacemaker and nginx as a reverse proxy. OS is RHEL7 and the machine has only one network interface at the moment. I configured two ...
Litame's user avatar
  • 43
3 votes
1 answer
5k views

Multi-state MySQL master/slave pacemaker resource fails to launch on cluster nodes

Setup I'm setting up an HA cluster for a web application using two physical servers in a Corosync/Pacemaker managed cluster. After finding out I was heading the wrong way, I decided to use heartbeat'...
Habovh's user avatar
  • 271
3 votes
1 answer
5k views

Corosync/Pacemaker + Haproxy Failed Actions: insufficient privileges

I setup a Corosync/Pacemaker cluster + HAproxy using the following guide on Ubuntu 14.04 LTS: http://www.sebastien-han.fr/blog/2012/04/15/active-passive-failover-cluster-on-a-mysql-galera-cluster-with-...
invulnarable27's user avatar
3 votes
1 answer
5k views

How do I set the pacemaker cluster name with pcs?

I'm running two pacemaker clusters on the corosync stack on CentOS 7 with all packages up to date with the distro release/updates packages. Both clusters shows no cluster name with the command pcs ...
MattBianco's user avatar
3 votes
1 answer
15k views

multicast address use in corosync

I'm wondering about the purpose of the multicast address in the corosync messaging software : Since we have to bind each net interface with an IP address and a specific port, and each ring communicate ...
Kuruwan's user avatar
  • 121
3 votes
1 answer
375 views

Corosync-Pacemaker no split brain

I'm trying to set up a cluster of two nodes using CentOS 7, Corosync, Pacemaker and pcsd. I can migrate resources manually from one node to another, but if I turn off primary node (by unplugging the ...
user46170's user avatar
3 votes
1 answer
16k views

2 corosync nodes not online together (one offline, one online)

I am currently trying to set up corosync based on this tutorial: http://www.howtoforge.com/how-to-set-up-an-active-passive-postgresql-cluster-with-pacemaker-corosync-and-drbd-centos-5.5-p3 However, ...
mokalovesoulmate's user avatar
3 votes
1 answer
2k views

corosync binding to 127.0.0.1 instead of correct interface

I have the following problem when trying to implement a two-node failover cluster, using Hetzner as the hosting provider. my corosync.conf is as follows: # Please read the corosync.conf.5 manual ...
thanasisk's user avatar
  • 961
3 votes
1 answer
884 views

In a Pacemaker cluster, is there any way to set start-failure-is-fatal on a per resource basis?

I've got it set cluster-wide currently, but I'd really like it to be set to 'true' by default and false for only my Slave DRBD resource. Using Pacemaker 1.1.12 and Corosync 1.4.8.
javanix's user avatar
  • 247
3 votes
1 answer
2k views

Corosync dynamically add node

I have been experimenting with Pacemaker & Corosync for a HA setup. I installed it on two Ubuntu 14.04 Linode's and after a lot of back and forth on outdated config examples and tutorials, managed ...
Wildex999's user avatar
3 votes
1 answer
3k views

DRBD resources not coming back online - Pacemaker + Corosync

I am using DRBD for replication. For testing purpose I am using 2 VMs. I have noticed that if I disconnect network interface on a node then it moves to standalone, and after I reconnect it does not go ...
bakasan's user avatar
  • 103
3 votes
0 answers
378 views

crm_mon -E does not run the external-agent on Debian Jessie

Setup I'm currently having a working 2-nodes HA cluster using Pacemaker+Corosync. My nodes are running on Debian 8 (Jessie). Now I would be able to get notified when changes occur in the cluster (...
Habovh's user avatar
  • 271
3 votes
1 answer
2k views

NFS failover fails with stale file handles while migrating resources

Running into a bit of a problem here , I set up two servers ( Centos 6 ) with Glusterfs and a shared directory between them, I have moved the nfs directory to the shared Gluster folder and have ...
Roncioiu's user avatar
3 votes
1 answer
498 views

Pacemaker between Centos 5 and Centos 6

I'm having some troubles when configuring pacemaker+corosync between Centos 5 and Centos 6. Here is ouput of crm_mon: On node1: Last updated: Sun Jul 21 19:02:21 2013 Last change: Sun Jul 21 18:14:...
cuonglm's user avatar
  • 2,396
2 votes
1 answer
7k views

Edit HA cluster config cib.xml

I want to edit pingd of my cluster config living on centos 6.5 because the addresses are no longer valid and my cluster always switching to the other node because of the failed nodes.What is the best ...
aleksei stukov's user avatar
2 votes
2 answers
2k views

Linux HA Cluster: running a resource as non-root user

i'm have successfully setup the HA cluster using pacemaker and corosync on centos7, and i've also been able to add and start resources. one of the resources is an instance of tomcat, and in the ...
ksm's user avatar
  • 276
2 votes
2 answers
2k views

CentOS 7: PCS Pacemaker Corosync Active/Active HAProxy dependency

I am trying to setup PCS for HAProxy on CentOS7 in an active/active configuration. I've done active/active before, but I am not familiar with constraints and dependency groups. So far so good: 2 ...
namezero's user avatar
  • 181
2 votes
1 answer
3k views

Corosync on EC2 multiple subnets

I'm working on a HA solution for apache/mysql and i'm going the DRBD with pacemaker and corosync route... I seem to be having an issue with getting my corosync service to see the other server. I'm ...
Stephen Sotelo's user avatar
2 votes
1 answer
901 views

Synching Amazon EC2 Instances

I want to user Corosync and Pacemaker to sync between two servers, the servers are, two (or more) EC2 instances, with Ubuntu 16.04 installed on them. I was doing that following this article, but I'm ...
ibr's user avatar
  • 191
2 votes
2 answers
18k views

corosync pacemaker crm status show DC : none and offline

i'm new to corosync and pacemaker and try to build cluster by using vm node1 & node2. here is the /etc/corosync/corosync.conf # Please read the corosync.conf.5 manual page compatibility: ...
hkguile's user avatar
  • 398
2 votes
1 answer
1k views

Pacemaker location constraints on resources apparently not obeyed

I have a Pacemaker setup with two STONITH resources. They have location constraints that crm configure show lists as follows: location loc_stonith_node1 stonith_node1 rule -inf: #id eq node1 location ...
rookie09's user avatar
  • 653
2 votes
1 answer
5k views

Quickly find out if pacemaker/corosync has quorum/is quorate

In a shell script, we currently call /usr/sbin/pcs status cluster and then grep -qE for 'Current DC:.*partition with quorum' to find out if the cluster is fine. I would like to know if there is a ...
MattBianco's user avatar
2 votes
1 answer
840 views

Slow Failover in Squid Cluster

I created a cluster with Corosync/Pacemaker. In the cluster i've configured two resources, a virtual IP and Squid. There are 2 nodes in the cluster working on Debian 8. crm_status displays, both ...
Cpt.Captain's user avatar
2 votes
2 answers
9k views

DRBD Failed with pacemaker

I'm new with Pacemaker and DRBD but I have to configure them together. I created 2 drbd resources : Drbdwww and DrbdMysql But when I use drbd_mon I have the following errors : Stack: corosync ...
anakin.wow's user avatar
2 votes
1 answer
4k views

Can not start PostgreSQL replication resource with Corosync/Pacemaker

I'm setting up a PostgreSQL replication on two servers (CentOS 6.5) with HA by Corosync/Pacemaker. My software info: postgresql91-9.1.19-1PGDG.rhel6.x86_64 postgresql91-server-9.1.19-1PGDG.rhel6....
cuongnv23's user avatar
  • 230
2 votes
1 answer
1k views

Corosync 2.3.3: Unable to enable cipher

I'm trying to set up a new pacemaker/corosync stack of 2 machines. I was using it before with corosync1, but on Ubuntu 14.04 I've got corosync 2.3.3 OK - I said, and tried to use this version of ...
Lisek's user avatar
  • 309
2 votes
2 answers
527 views

NFS Server - Corosync, DRBD & Pacemaker

I have 2 HA NFS server (Ubuntu with CoroSync, Pacemaker & DRBD). Everything is working beautifully with one small issue. If I kill an NFS it fails over seamlessly (NICE!) As the killed node is ...
Matt Neubauer's user avatar
2 votes
1 answer
869 views

PCSD simple Master/Slave will not fail master over

I am trying to write a trivial pacemaker Master/Slave system. I created an agent, it's metadata follows: elm_meta_data() { cat <<EOF <?xml version="1.0"?> <!DOCTYPE ...
Steve's user avatar
  • 131
2 votes
1 answer
3k views

Pacemaker/Corosync resource cleanup causes restart on Ubuntu (any version)

I'm having an issue with a pacemaker/corosync (2 node) cluster on Ubuntu (12.04 / 14.04 / 16.04 and 18.04) and couldn't find anyone else describing this issue. There are two ressources: res_ip (...
pToker's user avatar
  • 51