Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-10-2012, 03:28 AM   #1
Registered: May 2012
Posts: 40

Rep: Reputation: Disabled
cluster (corosync, pacemaker, drbd, mysql) lost communication between nodes

Hi all,

we have setup one cluster with two nodes.

sometimes, we loose connection between the two nodes (node 1 and node 2). When this happens, the two nodes starts both the services as masters,because they don't see each other.
is there any way to tell to one node when connection is lost, for example " see if sec_vip of mysql is up. If so, do start the service drbd but not as master, do not start mysql, and do not start sec_vip. So in such way, only one node will be the master and we wouldnt have duplicated logs on databases or lost transactions.

Thank u very much for your time!!

Old 05-10-2012, 03:53 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi and welcome to LinuxQuestions,

AFAIK that would take away the advantage of having high availability for your service. I think you should first look at why the connection gets lost. Not sure on how you can have a cluster with two nodes but if connection get lost, don't use one of them.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Old 05-10-2012, 10:09 AM   #3
LQ Newbie
Registered: May 2012
Location: Portland, OR
Posts: 1

Rep: Reputation: Disabled
Hi Ervin,

I agree with Eric; figuring out why your network is dropping is a wise idea, check the logs.

Additionally I would like to add that you should have a redundant network link, preferably in the form of a crossover cable. This will reduce the likelihood of these split brain situations. Using a recent version of Corosync you can setup redundant rings. Here is an example corosync.conf snippet to guide you in the right direction.

	interface {
		# This is the back-channel subnet, which is the primary network
		# for the totem protocol.
		ringnumber: 0
		mcastport: 5405
	interface {
		# This is the storage network, which acts as a secondary, backup
		# network for the totem protocol.
		ringnumber: 1
		mcastport: 5405
Please let us know how it works out for you, or if you have any more questions.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Corosync/Pacemaker Cluster Frustrations mpapet Linux - Server 1 05-09-2012 12:40 AM
MySQL HA-cluster with DRBD, Pacemaker and Corosync Patric.F Linux - Server 2 01-28-2012 05:27 AM
LXer: Openfiler 2.99 Active/Passive With Corosync, Pacemaker And DRBD LXer Syndicated Linux News 0 04-29-2011 09:10 AM
LXer: How To Set Up An Active/Passive PostgreSQL Cluster With Pacemaker, Corosync, And DRBD (CentOS LXer Syndicated Linux News 0 11-17-2010 08:40 AM
Device already mounted or mount point busy with CentOS/corosync/pacemaker/DRBD aschoessler Linux - Server 1 04-02-2010 08:11 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration