[DRBD-user] Heartbeat CRM DRBD Configuration

Dan Brummer dan.brummer at vegas.com
Fri Aug 18 22:50:59 CEST 2006

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

I'm having difficult configuring my HA to use DRBD.  I have followed all
the instructions on the LinuxHA website and got DRBD up and running.
I'm at the point where I need to create a resource in the CIB for DRBD
but I'm at a loss on how to accomplish this.  I read through the
archives and found some configs people were using to accomplish what I'm
doing but it doesn't appear to be working.
My DRBD configuration:
resource ha {
  protocol C;
  startup {
    wfc-timeout  0;
    degr-wfc-timeout 120;    # 2 minutes.
  disk {
    on-io-error   detach;
  syncer {
    rate 10M;
    group 1;
    al-extents 257;
  on ipt01-node01 {
    device     /dev/drbd0;
    disk       /dev/sda6;
    meta-disk  internal;
  on ipt01-node02 {
    device    /dev/drbd0;
    disk      /dev/sda6;
    meta-disk internal;
The resource configuration I'm trying in the CIB:
       <group id="shared_storage01">
         <primitive id="shared_storage" class="heartbeat"
type="drbddisk" provider="heartbeat">
             <op id="shared_storage_mon" interval="120s" name="monitor"
           <instance_attributes id="ias_shared_storage">
               <nvpair id="shared_storage_attr_1" name="1"
         <primitive id="shared_filesystem" class="ocf" type="Filesystem"
             <op id="shared_filesystem_mon" interval="120s"
name="monitor" timeout="60s"/>
           <instance_attributes id="ias_shared_filesystem">
               <nvpair id="shared_filesystem_device" name="device"
               <nvpair id="shared_filesystem_directory" name="directory"
               <nvpair id="shared_filesystem_fstype" name="fstype"
I'm also confused on which OCF/LSB script to use.  I copied the drbddisk
script in drbd-source/scripts to /usr/lib/ocf/resource.d/heartbeat and
/etc/ha.d/resource.d.  I'm not sure if this is the correct resource
script to use.  I have seen poeple using 'datadisk' but I do not know
where to find that at.
RedHat EL4 2.6.9
Any help would be greatly appreciated, thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060818/5ae28400/attachment.htm>

More information about the drbd-user mailing list