[Pacemaker] PCS vs CRM

Martin Arrieta mail at martinarrieta.me
Tue Aug 13 13:40:53 UTC 2013


Hi all,

I'm trying to reproduce the following command with pcs without luck

crm primitive p_mysql ocf:percona:mysql \
      params config="/etc/my.cnf" pid="/var/lib/mysql/mysqld.pid"
socket="/var/run/mysqld/mysqld.sock" replication_user="repl_user" \
             replication_passwd="repluser" max_slave_lag="60"
evict_outdated_slaves="false" binary="/usr/libexec/mysqld" \
             test_user="test_user" test_passwd="testuser" \
      op monitor interval="5s" role="Master" OCF_CHECK_LEVEL="1" \
      op monitor interval="2s" role="Slave" OCF_CHECK_LEVEL="1" \
      op start interval="0" timeout="60s" \
      op stop interval="0" timeout="60s"

You can find the resource here:

https://github.com/percona/percona-pacemaker-agents/blob/master/agents/mysql_prm

And the xml of the resource  here:

http://pastebin.com/yRMV2SVj

Any help will be greatly appreciated!

Martin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130813/8b1b8055/attachment-0003.html>


More information about the Pacemaker mailing list