Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an active/passive high availability cluster with pacemaker+split brain. After split brain condition I use automatic split-brain recovery to recover my systems.

The problem is that since file system resource is managed by CRM it is not mounted after split brain recovery. Nothing is mounted after split brain recovery!

It seems I should use stonith devices, but my boss ask me to solve it without any extra device! How can I notify the split brain situation to pacemaker so it will remount the file system resource?

EDIT: my crm config

node drbd3
node drbd4
primitive apache ocf:heartbeat:apache \
        params configfile="/etc/apache2/apache2.conf" httpd="/usr/sbin/apache2" \
        op monitor interval="5s"
primitive drbd_disk ocf:linbit:drbd \
        params drbd_resource="r0" \
        op monitor interval="15s"
primitive fs_drbd ocf:heartbeat:Filesystem \
        params device="/dev/drbd/by-res/r0" directory="/mnt" fstype="ext4"
primitive ip1 ocf:heartbeat:IPaddr2 \
        params ip="" nic="eth0"
group group1 ip1 apache
ms ms_drbd drbd_disk \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation mnt_on_master inf: fs_drbd ms_drbd:Master
order apache_after_ip inf: ip1:start apache:start
order mount_after_drbd inf: ms_drbd:promote fs_drbd:start
property $id="cib-bootstrap-options" \
        dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \

and my drdb config:

global { usage-count no; }
common { syncer { rate 100M; } }
resource r0 {
        protocol C;
        startup {
                wfc-timeout  1;
                degr-wfc-timeout 1;
#       disk{
#               fencing resource-only;
#       }
        handlers {
                #split-brain "/usr/lib/drbd/ root";
#                fence-peer "/usr/lib/drbd/";
#                after-resync-target "/usr/lib/drbd/";


        net {
                cram-hmac-alg sha1;
                shared-secret "test";
               # allow-two-primaries;
                after-sb-0pri discard-zero-changes;
                after-sb-1pri discard-secondary;
                after-sb-2pri call-pri-lost-after-sb;
        on drbd3 {
                device /dev/drbd0;
                disk /dev/sda1;
                meta-disk internal;
        on drbd4 {
                device /dev/drbd0;
                disk /dev/sda1;
                meta-disk internal;
#include "drbd.d/global_common.conf";
#include "drbd.d/*.res";
share|improve this question
Your recovery is done by drbd - right? Do you have monitoring active? Can you post your cluster-config? – Nils Jun 24 '11 at 19:01
up vote 1 down vote accepted

For the above scenario you can add the following lines to /etc/rc.local which will resolve the issue -

#drbdadm secondary resource-name<resource> 
#drbdadm disconnect resource-name<resource>
#drbdadm -- --discard-my-data connect resource-name<resource>

Add the above commands to NODE-1[primary/Active node] /etc/rc.local file

drbdadm connect resource-name<resource>

Add the above command to NODE-2[Secondary/Passive node] /etc/rc.local file

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.