You probably also want to monitor even if pacemaker thinks this is
supposed to be stopped.

        op monitor interval=11s timeout=20s role=Stopped


I added this:

primitive mysql-percona lsb:mysql \
        op start enabled="false" interval="0" \
        op stop enabled="false" interval="0" \
        op monitor enabled="true" timeout="20s" interval="10s" \
op monitor enabled="true" timeout="20s" interval="11s" role="Stopped" \ meta migration-threshold="2" failure-timeout="30s" is-managed="false"

However after a reboot of NODE2, the resource stays at:

 Clone Set: CLONE-percona [mysql-percona] (unmanaged)
     mysql-percona:0    (lsb:mysql):    Started NODE1(unmanaged)
     Stopped: [ mysql-percona:1 ]

But mysql is running:

[root@NODE2~]# /etc/init.d/mysql status
MySQL (Percona XtraDB Cluster) running (2619)              [  OK  ]
[root@NODE2~]# echo $?
0

.. hmm beeing confused :/


crm_mon reflects what is in the cib.  If no-one re-populates the cib
with the current state of the world, what it shows will be stale.

How can I force this ?

Regards,
Robert

--
--
Robert

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to