[Pacemaker] how to prevent auto relocation of recources to old primary?

Juha Heinanen jh at tutpro.com
Wed Mar 18 09:39:55 UTC 2009


Dominik Klein writes:

 > Sounds like you missed the order and colocation constraints. Please post
 > your configuration.

i have "order" and "colocation", but removed "location", because i
thought that by doing so, the resources will stay where they are
working.

-- juha

$ crm configure show

node $id="8df8447f-6ecf-41a7-a131-c89fd59a120d" lenny1
node $id="f13aff7b-6c94-43ac-9a24-b118e62d5325" lenny2
primitive drbd0 ocf:heartbeat:drbd \
	params drbd_resource="drbd0" \
	op monitor interval="59s" role="Master" timeout="30s" \
	op monitor interval="60s" role="Slave" timeout="30s"
primitive fs0 ocf:heartbeat:Filesystem \
	params ftype="ext3" directory="/var/lib/mysql" device="/dev/drbd0" \
	meta target-role="Started"
primitive mysql-server lsb:mysql \
	op monitor interval="10s" timeout="30s" start-delay="10s"
primitive virtual-ip ocf:heartbeat:IPaddr2 \
	params ip="192.98.102.10" broadcast="192.98.102.255" nic="eth1" cidr_netmask="24" \
	op monitor interval="21s" timeout="5s"
group mysql-group fs0 mysql-server virtual-ip
ms ms-drbd0 drbd0 \
	meta clone-max="2" notify="true" globally-unique="false" target-role="Started"
colocation mysql-group-on-ms-drbd0 inf: mysql-group ms-drbd0:Master
order ms-drbd0-before-mysql-group inf: ms-drbd0:promote mysql-group:start
property $id="cib-bootstrap-options" \
	dc-version="1.0.2-ec6b0bbee1f3aa72c4c2559997e675db6ab39160"




More information about the Pacemaker mailing list