<div dir="ltr"><div>Hello Li<br><br></div>Maybe you have all resource in unmanaged state, because you set maintenance-mode=&quot;true&quot;</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/9 Li, Chen <span dir="ltr">&lt;<a href="mailto:chen.li@intel.com" target="_blank">chen.li@intel.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For addition,<br>
I have already tried to start resource in crm shell.<br>
Nothing happened, and there is no log in mysql.<br>
<br>
Thanks.<br>
-Chen<br>
<br>
<br>
<br>
在 2013-5-9,17:10,&quot;Li, Chen&quot; &lt;<a href="mailto:chen.li@intel.com">chen.li@intel.com</a>&lt;mailto:<a href="mailto:chen.li@intel.com">chen.li@intel.com</a>&gt;&gt; 写道:<br>
<br>
Hi list,<br>
<br>
I’m a new user to pacemaker.<br>
I’m trying to using pacemaker to set up a HA for mysql in active/slave mode.<br>
My configuration is:<br>
<br>
node api01<br>
node api02<br>
primitive p_drbd_mysql ocf:linbit:drbd \<br>
        params drbd_resource=&quot;mysql&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;180s&quot; \<br>
        op promote interval=&quot;0&quot; timeout=&quot;180s&quot; \<br>
        op demote interval=&quot;0&quot; timeout=&quot;180s&quot; \<br>
        op monitor interval=&quot;30s&quot; role=&quot;Slave&quot; \<br>
        op monitor interval=&quot;29s&quot; role=&quot;Master&quot;<br>
primitive p_fs_mysql ocf:heartbeat:Filesystem \<br>
        params device=&quot;/dev/drbd/by-res/mysql&quot; directory=&quot;/var/lib/mysql&quot; fstype=&quot;ext4&quot; options=&quot;relatime&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;60s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;180s&quot; \<br>
        op monitor interval=&quot;60s&quot; timeout=&quot;60s&quot;<br>
primitive p_ip_mysql ocf:heartbeat:IPaddr2 \<br>
        params ip=&quot;192.168.11.13&quot; cidr_netmask=&quot;16&quot; \<br>
        op monitor interval=&quot;30s&quot; \<br>
        meta is-managed=&quot;true&quot;<br>
primitive p_mysql ocf:heartbeat:mysql \<br>
        params additional_parameters=&quot;--bind-address=192.168.11.13&quot; config=&quot;/etc/mysql/my.cnf&quot; pid=&quot;/var/run/mysqld/mysqld.pid&quot; socket=&quot;/var/run/mysqld/mysqld.sock&quot; log=&quot;/var/log/mysql/mysqld.log&quot; \<br>

        op monitor interval=&quot;20s&quot; timeout=&quot;10s&quot; \<br>
        op start interval=&quot;0&quot; timeout=&quot;120s&quot; \<br>
        op stop interval=&quot;0&quot; timeout=&quot;120s&quot; \<br>
        meta is-managed=&quot;true&quot;<br>
group g_mysql p_ip_mysql p_fs_mysql p_mysql \<br>
        meta target-role=&quot;Started&quot; is-managed=&quot;true&quot;<br>
ms ms_drbd_mysql p_drbd_mysql \<br>
        meta notify=&quot;true&quot; clone-max=&quot;2&quot;<br>
colocation c_mysql_on_drbd inf: g_mysql ms_drbd_mysql:Master<br>
order o_drbd_before_mysql inf: ms_drbd_mysql:promote g_mysql:start<br>
property $id=&quot;cib-bootstrap-options&quot; \<br>
        dc-version=&quot;1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c&quot; \<br>
        cluster-infrastructure=&quot;openais&quot; \<br>
        expected-quorum-votes=&quot;2&quot; \<br>
        stonith-enabled=&quot;false&quot; \<br>
        no-quorum-policy=&quot;ignore&quot; \<br>
        maintenance-mode=&quot;true&quot; \<br>
        last-lrm-refresh=&quot;1368118902&quot; \<br>
        stop-all-resources=&quot;false&quot;<br>
<br>
<br>
<br>
But, the resource p_mysql  never start. And all resource have a “unmanaged” mark in status:<br>
<br>
crm resource status<br>
Resource Group: g_mysql<br>
     p_ip_mysql (ocf::heartbeat:IPaddr2) Started  (unmanaged)<br>
     p_fs_mysql (ocf::heartbeat:Filesystem) Started  (unmanaged)<br>
     p_mysql    (ocf::heartbeat:mysql) Stopped  (unmanaged)<br>
Master/Slave Set: ms_drbd_mysql [p_drbd_mysql] (unmanaged)<br>
     p_drbd_mysql:0     (ocf::linbit:drbd) Master  (unmanaged)<br>
     p_drbd_mysql:1     (ocf::linbit:drbd) Slave  (unmanaged)<br>
Anyone can help me ?<br>
<br>
<br>
Thanks.<br>
-chen<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>