[Pacemaker] Question regarding collocation

Neocox neocox at outlook.com
Sat Nov 2 12:13:24 UTC 2013


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.

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


More information about the Pacemaker mailing list