[DRBD-user] Primary on both nodes

gilberto nunes gilberto.nunes at selbetti.com.br
Thu Nov 26 17:03:12 CET 2009

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

Hi all

I have the follow set of drbd nodes:

global { usage-count no; }
common {
                rate 1000M;
resource r0 {
        protocol C;
        startup {
                wfc-timeout 15;
                degr-wfc-timeout 60;
                become-primary-on both;
        net {
                cram-hmac-alg sha1;
                shared-secret "drbd123";
                after-sb-0pri discard-zero-changes;
                after-sb-1pri discard-secondary;
                after-sb-2pri disconnect;
       on virt-00 {
                device /dev/drbd0;
                disk /dev/sda5;
                meta-disk internal;
       on virt-01 {
                device /dev/drbd0;
                disk /dev/sda7;
                meta-disk internal;

Both node are identical.

But when I restart the nodes, I get both on StandAlone:

cat /proc/drbd
version: 8.3.3 (api:88/proto:86-91)
GIT-hash: 49bfeeaf3690ad0b9afd5376feda9e9eb34a30f3 build by 
nobody at virt-01, 2009-11-25 16:09:37
 0: cs:StandAlone ro:Primary/Unknown ds:UpToDate/DUnknown   r----
    ns:0 nr:0 dw:0 dr:220 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0

The only way to return to Primary/Primary state, is running this command 
on both nodes:

drbdadm -- --overwrite-data-of-peer primary r0

It is not perfect world for me.
I need both nodes become primary on boot time...

Perhaps I miss some configuration!! I don't know..

Thanks for any help
*Gilberto Nunes Fereira*
*Selbetti Gestão de Documentos*
*Telefone: +55 (47) 3441-6004*
*Celular: +55 (47) 8861-6672*

/"Bendita a nação cujo Deus é o SENHOR!"/
*99* <><

More information about the drbd-user mailing list