[DRBD-user] StandAlone state with Dual Primary Node

Zack_McFly danyfernandes3000 at yahoo.fr
Sun Jan 16 23:38:24 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi,

I have some issues using DRBD with two primary nodes and OCFS2. It worked
fine at the begenning, I was able to shares files  but now my nodes are both
StandAlone and when i'v got this when I do cat /proc/drbd (on both nodes): 

GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil at fat-tyre,
2008-11-12 16:40:33
 0: cs:StandAlone st:Primary/Unknown ds:UpToDate/DUnknown   r---
    ns:0 nr:0 dw:0 dr:686 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0

I've search on the internet and find maybe it was a split brain but I have
not find a solution.

Here is my drbd.conf : 

#/etc/drbd.conf
global {
    usage-count yes;
}
common {
  syncer { rate 10M; }
}
resource r0 {
  protocol C;
  handlers {
    pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
    pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
    local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
    outdate-peer "/usr/sbin/drbd-peer-outdater";
  }
  startup {
	become-primary-on both;
  }
  disk {
    on-io-error   detach;
  }
  net {
    		#cram-hmac-alg sha1;
                #shared-secret "my-secret";
                allow-two-primaries;
                after-sb-0pri discard-zero-changes;
                after-sb-1pri discard-secondary;
                after-sb-2pri disconnect;
  }
  syncer {
    rate 10M;
    al-extents 257;
  }
  on debian {
    device     /dev/drbd0;
    disk       /dev/sda5;
    address    192.168.1.48:7788;
    flexible-meta-disk  internal;
  }
  on debian2 {
    device    /dev/drbd0;
    disk      /dev/sda5;
    address   192.168.1.80:7788;
    meta-disk internal;
  }
}

I'm confused. Nothing has been changed. Can anyone give me a clue to fix my
problem?

Zack. 
-- 
View this message in context: http://old.nabble.com/StandAlone-state-with-Dual-Primary-Node-tp30676164p30676164.html
Sent from the DRBD - User mailing list archive at Nabble.com.




More information about the drbd-user mailing list