LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2012, 03:59 PM   #1
ydlinux
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled

Hello

I am setting up a 2 node SAN using pacemaker/drbd/iscsi on ubuntu. Everything works as expected when a power outage test is performed.
My issue is that when a network outage test is performed on one or both machines (cable pull or power off switch), drbd will be standalone on both nodes when connected again. I have set parameters in drbd (v8.3)to automatically resolve split brain as but no combination has worked I am currently using:

after-sb-0pri discard-least-changes;
after-sb-1pri concensus;
after-sb-2pri call-pri-lost-after-sb;


In case it matters the play by play is as such:
all services fine ->network interruption
both nodes claim all resources as they have no knowledge of the other
->network connection re-established:
one node takes over all resources, drbd is up on the primary/standalone (i believe it is always the machine that was previously primary). other node is secondary/standalone.

How can I get drbd within pacemaker to connect making the drbd with most/newest changes the primary, forcing the secondary to discard data and connect?




other info -crm configure show:
node ubun1 \
attributes standby="off"
node ubun2 \
attributes standby="off"
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="192.168.3.5" cidr_netmask="32" nic="eth1:0" \
op monitor interval="30s"
primitive DataFS ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/datamount" fstype="ext4"
primitive drbd_data ocf:linbit:drbd \
params drbd_resource="data" \
op monitor interval="15s"
primitive iscsi lsb:iscsitarget
group g_services DataFS ClusterIP iscsi
ms ms_drbd_data drbd_data \
meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation c_g_services_on_drbd_data inf: g_services ms_drbd_data:Master
order o_g_servicesafter_drbd_data inf: ms_drbd_dataromote g_services:start
property $id="cib-bootstrap-options" \
dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"

Anyone?
More simply put my question would be "How can I get pacemaker to decide a primary based on DRBD freshness"
Failing that, can anyone suggest any further resources to help

Last edited by colucix; 08-23-2012 at 04:09 PM. Reason: Back to ZRL after deleting answer posted by mistake by another member
 
  


Reply



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
pacemaker with drbd and lvm anilcliff Linux - Server 0 07-13-2012 12:53 PM
[SOLVED] DRBD + Pacemaker Problem hesisaboury Linux - Server 2 06-05-2012 07:48 AM
Trouble with pacemaker, drbd and nfs rsciw Linux - Server 0 03-16-2012 06:21 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 PM.

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