Hi Andrew,<br><br>I solved the problem doing this on my DRBD configuration.<br><br>Thanks.<br><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="internal-source-marker_0.27533161409304674">resource r8 {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> handlers {</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> fence-peer "/usr/lib/drbd/crm-fence-peer.sh";</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> split-brain "/usr/lib/drbd/notify-split-brain.sh root";</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> startup {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> disk {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> fencing resource-only;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> net {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> allow-two-primaries;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> after-sb-0pri discard-zero-changes;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> after-sb-1pri discard-secondary;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> after-sb-2pri disconnect;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> syncer {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> rate 10M;</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> al-extents 257;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> on cloud10 {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> device /dev/drbd8;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> disk /dev/vg_8/lv_8;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> address <a href="http://192.168.188.10:7789">192.168.188.10:7789</a>;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> meta-disk internal;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> on cloud8 {</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> device /dev/drbd8;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> disk /dev/vg_8/lv_8;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> address <a href="http://192.168.188.8:7789">192.168.188.8:7789</a>;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> meta-disk internal;</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> }</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">}</span><br>
<br><br><div class="gmail_quote">On Thu, Jan 10, 2013 at 3:40 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Dec 16, 2012 at 2:31 PM, Felipe Gutierrez<br>
<<a href="mailto:felipe.o.gutierrez@gmail.com">felipe.o.gutierrez@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I research on the internet and I thing I should use ocf:pacemaker:ping.<br>
> And I did this, but I think it is missing some thing, because DRBD still<br>
> doesn't became primary on the secondary node.<br>
><br>
> primitive ping_gateway ocf:pacemaker:ping op monitor interval="10"<br>
> timeout="60" params host_list="10.1.1.1" multiplier="100"<br>
> clone ping_clone ping_gateway meta interleave="true"<br>
> location grupo_ping grupo_ip_drbd rule -inf: not_defined pingd or pingd lte<br>
> 0<br>
><br>
> Could someone help, please?<br>
<br>
</div>We'd need more info. Try a crm_report for the time covered by your testing.<br>
<div><div class="h5"><br>
><br>
> Thanks<br>
> Felipe<br>
><br>
><br>
> On Sat, Dec 15, 2012 at 10:46 PM, Felipe Gutierrez<br>
> <<a href="mailto:felipe.o.gutierrez@gmail.com">felipe.o.gutierrez@gmail.com</a>> wrote:<br>
>><br>
>> Hi everyone,<br>
>><br>
>> I did this configuration on my corosync(pacemaker) and my iintend was to<br>
>> failover the IP and the DRBD secondary to primary, when the master/primary<br>
>> lost connection. I was thinking if I configure the IP floating and create a<br>
>> group to it, it will carry on the DRBD to primary on the other node.<br>
>><br>
>> Does anyone have a hint?<br>
>><br>
>> Thanks in advance,<br>
>> Felipe<br>
>><br>
>><br>
>> crm configure<br>
>> primitive drbd ocf:linbit:drbd params drbd_resource="r1" op monitor<br>
>> interval="60s" role="Master" op monitor interval="59s" role="Slave"<br>
>> ms drbd_ms drbd meta master-max="1" master-node-max="1" clone-max="2"<br>
>> clone-node-max="1" notify="true"<br>
>><br>
>> primitive drbd_fs ocf:heartbeat:Filesystem params device="/dev/drbd1"<br>
>> directory="/mnt/drbd1" fstype="ext3"<br>
>> colocation fs_on_drbd inf: drbd_fs drbd_ms:Master<br>
>> order fs_after_drbd inf: drbd_ms:promote drbd_fs:start<br>
>> commit<br>
>><br>
>> primitive ClusterIP ocf:heartbeat:IPaddr2 params ip=192.168.0.80<br>
>> cidr_netmask=32 op monitor interval=30s<br>
>> location prefer-cloud11 ClusterIP 1: cloud11<br>
>><br>
>> group grupo_ip_drbd drbd_fs ClusterIP<br>
>> colocation grupo_on_drbd inf: grupo_ip_drbd drbd_ms:Master<br>
>> commit--<br>
>> --<br>
>> -- Felipe Oliveira Gutierrez<br>
>> -- <a href="mailto:Felipe.o.Gutierrez@gmail.com">Felipe.o.Gutierrez@gmail.com</a><br>
>> -- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a><br>
><br>
><br>
><br>
><br>
> --<br>
> --<br>
> -- Felipe Oliveira Gutierrez<br>
> -- <a href="mailto:Felipe.o.Gutierrez@gmail.com">Felipe.o.Gutierrez@gmail.com</a><br>
> -- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a><br>
><br>
</div></div>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><b>--<br>-- Felipe Oliveira Gutierrez<br>-- <a href="mailto:Felipe.o.Gutierrez@gmail.com" target="_blank">Felipe.o.Gutierrez@gmail.com</a><br>-- <a href="https://sites.google.com/site/lipe82/Home/diaadia" target="_blank">https://sites.google.com/site/lipe82/Home/diaadia</a></b>