On 11/09/2010 11:04 AM, Dan Frincu wrote:

> Don't use the mysql init script, use the one provided by the
> resource-agents package. It's OCF compliant and a lot better than the
> LSB script.
>
> Regards,
>
> Dan

Thank you Dan, but it became worst, mysql is stopped on both nodes, I 
got the following:
Resource Group: group_1
     IPaddr_192_168_56_110       (heartbeat::ocf:IPaddr):        Started 
node1
     drbddisk_2  (heartbeat:drbddisk):   Started noeud1
     Filesystem_3        (heartbeat::ocf:Filesystem):    Started noeud1
     mySql       (heartbeat::ocf:mysql): Stopped

Failed actions:
     mySql_start_0 (node=node1, call=21, rc=2): complete
----------------------------------------------------
here is a part of my cib.xml for ocf:mysql

          <primitive class="heartbeat" id="drbddisk_2" 
provider="heartbeat" type="drbddisk">
            <operations>
              <op id="drbddisk_2_mon" interval="120s" name="monitor" 
timeout="60s"/>
            </operations>
            <instance_attributes id="drbddisk_2_inst_attr">
              <attributes>
                <nvpair id="drbddisk_2_attr_1" name="1" value="r0"/>
              </attributes>
            </instance_attributes>
          </primitive>
          <primitive class="ocf" id="Filesystem_3" provider="heartbeat" 
type="Filesystem">
            <operations>
              <op id="Filesystem_3_mon" interval="120s" name="monitor" 
timeout="60s"/>
            </operations>
            <instance_attributes id="Filesystem_3_inst_attr">
              <attributes>
                <nvpair id="Filesystem_3_attr_0" name="device" 
value="/dev/drbd0"/>
                <nvpair id="Filesystem_3_attr_1" name="directory" 
value="/data"/>
                <nvpair id="Filesystem_3_attr_2" name="fstype" 
value="ext3"/>
              </attributes>
            </instance_attributes>
          </primitive>
          <primitive id="mySql" class="ocf" type="mysql" 
provider="heartbeat">
            <meta_attributes id="mySql_meta_attrs">
              <attributes>
                <nvpair id="mySql_metaattr_target_role" 
name="target_role" value="started"/>
              </attributes>
            </meta_attributes>
          </primitive>
-------------------------------------------------------------
thanks
_______________________________________________
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