global {
    usage-count no;
}

common {
  syncer { rate 10M; }
}

resource r0 {
  protocol C;

  handlers {
    pri-on-incon-degr "echo o > /proc/sysrq-trigger ; reboot -f";
    pri-lost-after-sb "echo o > /proc/sysrq-trigger ; reboot -f";
    local-io-error "echo o > /proc/sysrq-trigger ; reboot -f";
    outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater";
  }

  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
    fencing resource-only;
  }

  net {
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

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

  on drbd1 {
    device     /dev/stor0;
    disk       /dev/hdc3;
    address    10.172.19.121:7788;
    meta-disk  /dev/hdc1[0];
  }

  on drbd2 {
    device     /dev/stor0;
    disk       /dev/hdc3;
    address    10.172.19.122:7788;
    meta-disk  /dev/hdc1[0];
  }
}

resource r1 {
  protocol C;

  handlers {
    pri-on-incon-degr "echo o > /proc/sysrq-trigger ; reboot -f";
    pri-lost-after-sb "echo o > /proc/sysrq-trigger ; reboot -f";
    local-io-error "echo o > /proc/sysrq-trigger ; reboot -f";
    outdate-peer "/usr/sbin/drbd-peer-outdater";
  }

  startup {
    degr-wfc-timeout 120;    # 2 minutes.
  }

  disk {
    on-io-error   detach;
  }

  net {
    after-sb-0pri disconnect;
    after-sb-1pri disconnect;
    after-sb-2pri disconnect;
    rr-conflict disconnect;
  }

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

  on drbd1 {
    device     /dev/stor1;
    disk       /dev/hdc4;
    address    10.172.19.121:7789;
    meta-disk  /dev/hdc2[0];
  }

  on drbd2 {
    device     /dev/stor1;
    disk       /dev/hdc4;
    address    10.172.19.122:7789;
    meta-disk  /dev/hdc2[0];
  }
}
