<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>My DRBD
configuration:</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>resource ha
{<BR> protocol C;<BR> startup {<BR>
wfc-timeout 0;<BR> degr-wfc-timeout
120; # 2 minutes.<BR> }<BR> disk
{<BR> on-io-error detach;<BR>
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2> syncer
{<BR> rate 10M;<BR> group
1;<BR> al-extents 257;<BR> }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2> on
ipt01-node01 {<BR> device
/dev/drbd0;<BR> disk
/dev/sda6;<BR> address
10.25.118.71:7788;<BR> meta-disk internal;<BR>
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2> on
ipt01-node02 {<BR> device
/dev/drbd0;<BR> disk
/dev/sda6;<BR> address
10.25.118.72:7788;<BR> meta-disk internal;<BR>
}<BR>}</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>The resource
configuration I'm trying in the CIB:</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006></SPAN><SPAN class=724464420-18082006><FONT
face=Arial size=2> <group
id="shared_storage01"></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2> <primitive
id="shared_storage" class="heartbeat" type="drbddisk"
provider="heartbeat"></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<operations></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<op id="shared_storage_mon" interval="120s" name="monitor"
timeout="60s"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</operations></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<instance_attributes id="ias_shared_storage"></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<nvpair id="shared_storage_attr_1" name="1"
value="sip-shared"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</instance_attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</primitive></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2> <primitive
id="shared_filesystem" class="ocf" type="Filesystem"
provider="heartbeat"></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<operations></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<op id="shared_filesystem_mon" interval="120s" name="monitor"
timeout="60s"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</operations></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<instance_attributes id="ias_shared_filesystem"></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<nvpair id="shared_filesystem_device" name="device"
value="/dev/drbd0"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<nvpair id="shared_filesystem_directory" name="directory"
value="/share"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
<nvpair id="shared_filesystem_fstype" name="fstype"
value="ext3"/></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</instance_attributes></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>
</primitive></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2> </group></FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>drbd-0.7.21</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>heartbeat-2.0.7</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>RedHat EL4
2.6.9</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial size=2>Any help would be
greatly appreciated, thank you!</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2>-Dan</FONT></SPAN></DIV>
<DIV><SPAN class=724464420-18082006><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>