I cannot seem to get my 2 cluster setup to work they way I want it do, or
believe I think it should.
Issues I have so far are:
First, whenever one of the two cluster nodes goes off-line (forcing them to
do so during testing, but shutdown or stopping openais), then I restart
openais on the cluster that I rebooted or stopped openais on, the resources
restart on the same active node.  This cannot happen.  I was under the
impression the global variable "resource stickiness" was supposed to be keep
this from happening, I've tried both 0 and INFINITY.  I must not be
understanding something correctly.  But, its important to me to not have the
resources restart at all if they are already happily running.

Second, if I stop openais on the Active node, the resources do not migrate. 
I can see this using LCMC even before I try it.  When I stop openais, I can
see in LCMC that the resources will not migrate, but if I try it anyway,
there is an option in the Resource Group to "Remove Migration Constraint". 
What is the migration constraint it is removing, and how can I remove it
permanently to make resources migrate like they should?

Using Sles11 SP1 HA.

crm config
node fse0-pre1 \
        attributes standby="off"
node fse0-pre2 \
        attributes standby="off"
primitive drbd_nfs ocf:linbit:drbd \
        params drbd_resource="fse0-drbd" \
        op start interval="0" timeout="240" \
        op stop interval="0" timeout="100" \
        op monitor interval="15s"
primitive fs_nfs ocf:heartbeat:Filesystem \
        params device="/dev/drbd0" directory="/pub" fstype="ext3" \
        op start interval="0" timeout="60" \
        op stop interval="0" timeout="120" \
        meta target-role="started"
primitive ip1 ocf:heartbeat:IPaddr2 \
        params ip="10.10.11.201" nic="bond0" \
        op monitor interval="5s" \
        meta target-role="started"
primitive ip1arp ocf:heartbeat:SendArp \
        params ip="10.10.11.201" nic="bond0" \
        meta target-role="started"
primitive mysql ocf:heartbeat:mysql \
        params binary="/usr/local/mysql/bin/mysqld_safe"
config="/etc/my.cnf" datadir="/usr/local/mysql-data"
socket="/var/run/mysql/mysql.sock" pid="/var/run/mysql/mysqld.pid" \
        op start interval="0" timeout="120" \
        op stop interval="0" timeout="120" \
        op monitor interval="60" timeout="30" depth="0" \
        meta target-role="started"
primitive nfs lsb:nfsserver \
        meta target-role="started"
primitive stonith_fse0-pre1 stonith:external/ipmi \
        params hostname="fse0-pre1" ipaddr="10.10.11.103" userid="root"
passwd="reverse" interface="lanplus" \
        op start interval="0" timeout="20" \
        op stop interval="0" timeout="60" \
        op monitor interval="900" timeout="1200" \
        meta target-role="Started"
primitive stonith_fse0-pre2 stonith:external/ipmi \
        params hostname="fse0-pre2" ipaddr="10.10.11.104" userid="root"
passwd="reverse" interface="lanplus" \
        op start interval="0" timeout="20" \
        op stop interval="0" timeout="60" \
        op monitor interval="900" timeout="1200" \
        meta target-role="Started"
group HAServices ip1 ip1arp fs_nfs nfs mysql \
        meta target-role="started"
ms ms_drbd_nfs drbd_nfs \
        meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
location stonith_fse0-pre1_loc stonith_fse0-pre1 -inf: fse0-pre1
location stonith_fse0-pre2_loc stonith_fse0-pre2 -inf: fse0-pre2
colocation ms-drbd-nfs-with-haservices inf: ms_drbd_nfs:Master HAServices
order ip-before-ms-drbd-nfs inf: ip1:start ms_drbd_nfs:promote
order ms-drbd-nfs-before-fs-nfs inf: ms_drbd_nfs:promote fs_nfs:start
order ms-drbd-nfs-before-mysql inf: ms_drbd_nfs:promote mysql:start
property $id="cib-bootstrap-options" \
        expected-quorum-votes="2" \
        dc-version="1.1.2-2e096a41a5f9e184a1c1537c82c6da1093698eb5" \
        no-quorum-policy="ignore" \
        cluster-infrastructure="openais"
rsc_defaults $id="rsc-options" \
        resource-stickiness="INFINITY"

-- 
View this message in context: 
http://old.nabble.com/Packemaker-resource-migration-issue-tp32662493p32662493.html
Sent from the Linux-HA mailing list archive at Nabble.com.

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to