[Pacemaker] Question regarding collocation

Neocox neocox at outlook.com
Sat Nov 2 14:23:11 UTC 2013


Thanks! It works now :) 

 

From: emmanuel segura [mailto:emi2fast at gmail.com] 
Sent: sábado, 2 de noviembre de 2013 14:31
To: The Pacemaker cluster resource manager; The Pacemaker cluster resource
manager
Subject: Re: [Pacemaker] Question regarding collocation

 

your order constrain it should be 

order PSQL_ORDER inf: PSQL_DISK_MS:promote PSQL:start

 

2013/11/2 Neocox <neocox at outlook.com <mailto:neocox at outlook.com> >

Hi!

 

I have Corosync + Pacemaker installed on my Debian wheezy:

root at rasp02:~# dpkg -s pacemaker | grep ^Version

Version: 1.1.7-1

root at rasp02:~# dpkg -s corosync | grep ^Version

Version: 1.4.2-3

 

And although I think that I have correctly configured resource collocation,
the resource PSQL_APP (PostgreSQL app)  is trying to start on node disctinc
that the node that has other resources (IP and filesystem), how is it
possible?

Resource Group: PSQL

     PSQL_FS    (ocf::heartbeat:Filesystem):    Started rasp01

     PSQL_IP    (ocf::heartbeat:IPaddr2):       Started rasp01

     PSQL_APP   (lsb:postgresql):       Started rasp02 (unmanaged) FAILED

My configuration is, at the bottom are collocation and order definitions.

primitive PSQL_APP lsb:postgresql \

        op monitor interval="30" timeout="60" \

        op start interval="0" timeout="60" \

        op stop interval="0" timeout="60" \

        meta target-role="Stopped"

primitive PSQL_DISK ocf:linbit:drbd \

        params drbd_resource="PSQL_DISK" \

        op monitor interval="15s"

primitive PSQL_FS ocf:heartbeat:Filesystem \

        params device="/dev/drbd/by-res/PSQL_DISK" directory="/db"
fstype="ext3"

primitive PSQL_IP ocf:heartbeat:IPaddr2 \

        params ip="192.168.1.191" nic="wlan0" \

        op monitor interval="10s" \

        meta is-managed="true"

group PSQL PSQL_FS PSQL_IP PSQL_APP \

        meta target-role="Stopped"

ms PSQL_DISK_MS PSQL_DISK \

        meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"

location cli-prefer-PSQL PSQL \

        rule $id="cli-prefer-rule-PSQL" inf: #uname eq rasp02

colocation PSQL_COLOCATION inf: PSQL PSQL_DISK_MS:Master

order PSQL_ORDER inf: PSQL_DISK_MS:promote PSQL_IP PSQL_FS PSQL_APP

 

 

Thanks in advance!

 

Neocox.


_______________________________________________
Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
<mailto: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




-- 
esta es mi vida e me la vivo hasta que dios quiera 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20131102/a27c9c24/attachment.htm>


More information about the Pacemaker mailing list