[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.


Hello,
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;
    address    10.25.118.71:7788;
    meta-disk  internal;
  }
 
  on ipt01-node02 {
    device    /dev/drbd0;
    disk      /dev/sda6;
    address   10.25.118.72:7788;
    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">
           <operations>
             <op id="shared_storage_mon" interval="120s" name="monitor"
timeout="60s"/>
           </operations>
           <instance_attributes id="ias_shared_storage">
             <attributes>
               <nvpair id="shared_storage_attr_1" name="1"
value="sip-shared"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="shared_filesystem" class="ocf" type="Filesystem"
provider="heartbeat">
           <operations>
             <op id="shared_filesystem_mon" interval="120s"
name="monitor" timeout="60s"/>
           </operations>
           <instance_attributes id="ias_shared_filesystem">
             <attributes>
               <nvpair id="shared_filesystem_device" name="device"
value="/dev/drbd0"/>
               <nvpair id="shared_filesystem_directory" name="directory"
value="/share"/>
               <nvpair id="shared_filesystem_fstype" name="fstype"
value="ext3"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
 
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.
 
drbd-0.7.21
heartbeat-2.0.7
RedHat EL4 2.6.9
 
 
Any help would be greatly appreciated, thank you!
 
-Dan
 
-------------- 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