[DRBD-user] su

James Miller jimm at simutronics.com
Tue Jul 17 22:52:31 CEST 2007

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


Hello everyone,

I'm VERY new to DRBD and I was looking to get some feedback on my drbd.conf
configuration.  I have a 2 server cluster, I'm using 0.8.3 since it supports
active/active and the underlying file system is OCFS2.  The config I have
below works; but, I'm sure it could be better.  So, I was hoping some of you
with a similar setup could comment on my active/active configuration and
offer suggestions which would make it better, more resilient, in the event
of a system failure (and to help prevent split brain issues when
recovering).


#
# drbd.conf example
skip {
}

global {
    usage-count no;
}

common {
  syncer { rate 7M; }
}

resource usr-archive {
  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 {
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
  }

  net {
    allow-two-primaries;
    cram-hmac-alg "sha1";
    shared-secret "xxxxxxxxxxxxxxx";
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

  syncer {
    rate 7M;
    al-extents 257;
  }

  on bob {
    device     /dev/drbd0;
    disk       /dev/archive-games/archive;
    address    209.16.216.xxx:7788;
    flexible-meta-disk  internal;
  }

  on harry {
    device    /dev/drbd0;
    disk      /dev/archive-games/archive;
    address   209.16.216.xxx:7788;
    meta-disk internal;
  }
}

resource "usr-games" {
  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 {
    degr-wfc-timeout  ;  ## 2 minutes.
  }
  disk {
    on-io-error detach;
  }
  net {
    allow-two-primaries;
    cram-hmac-alg "sha1";
    shared-secret "xxxxxxxxxxxxxxxx";
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }
  syncer {
    rate 7M;
    al-extents 257;
  }

  on bob {
    device      /dev/drbd1;
    disk        /dev/archive-games/games;
    address     209.16.216.xxx:7789;
    meta-disk   internal;
  }

  on harry {
    device     /dev/drbd1;
    disk       /dev/archive-games/games;
    address    209.16.216.xxx:7789;
    meta-disk   internal;
  }
}




Thanks,
Jim





More information about the drbd-user mailing list