[Pacemaker] DRBD secondary to primary when primary lost connection

Andrew Beekhof andrew at beekhof.net
Thu Jan 10 00:40:08 EST 2013


On Sun, Dec 16, 2012 at 2:31 PM, Felipe Gutierrez
<felipe.o.gutierrez at gmail.com> wrote:
> Hi,
>
> I research on the internet and I thing I should use ocf:pacemaker:ping.
> And I did this, but I think it is missing some thing, because DRBD still
> doesn't became primary on the secondary node.
>
> primitive ping_gateway ocf:pacemaker:ping op monitor interval="10"
> timeout="60" params host_list="10.1.1.1" multiplier="100"
> clone ping_clone ping_gateway meta interleave="true"
> location grupo_ping grupo_ip_drbd rule -inf: not_defined pingd or pingd lte
> 0
>
> Could someone help, please?

We'd need more info. Try a crm_report for the time covered by your testing.

>
> Thanks
> Felipe
>
>
> On Sat, Dec 15, 2012 at 10:46 PM, Felipe Gutierrez
> <felipe.o.gutierrez at gmail.com> wrote:
>>
>> Hi everyone,
>>
>> I did this configuration on my corosync(pacemaker) and my iintend was to
>> failover the IP and the DRBD secondary to primary, when the master/primary
>> lost connection. I was thinking if I configure the IP floating and create a
>> group to it, it will carry on the DRBD to primary on the other node.
>>
>> Does anyone have a hint?
>>
>> Thanks in advance,
>> Felipe
>>
>>
>> crm configure
>> primitive drbd ocf:linbit:drbd params drbd_resource="r1" op monitor
>> interval="60s" role="Master" op monitor interval="59s" role="Slave"
>> ms drbd_ms drbd meta master-max="1" master-node-max="1" clone-max="2"
>> clone-node-max="1" notify="true"
>>
>> primitive drbd_fs ocf:heartbeat:Filesystem params device="/dev/drbd1"
>> directory="/mnt/drbd1" fstype="ext3"
>> colocation fs_on_drbd inf: drbd_fs drbd_ms:Master
>> order fs_after_drbd inf: drbd_ms:promote drbd_fs:start
>> commit
>>
>> primitive ClusterIP ocf:heartbeat:IPaddr2 params ip=192.168.0.80
>> cidr_netmask=32 op monitor interval=30s
>> location prefer-cloud11 ClusterIP 1: cloud11
>>
>> group grupo_ip_drbd drbd_fs ClusterIP
>> colocation grupo_on_drbd inf: grupo_ip_drbd drbd_ms:Master
>> commit--
>> --
>> -- Felipe Oliveira Gutierrez
>> -- Felipe.o.Gutierrez at gmail.com
>> -- https://sites.google.com/site/lipe82/Home/diaadia
>
>
>
>
> --
> --
> -- Felipe Oliveira Gutierrez
> -- Felipe.o.Gutierrez at gmail.com
> -- https://sites.google.com/site/lipe82/Home/diaadia
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>




More information about the Pacemaker mailing list