[Pacemaker] Errors When Loading OCF

Nick Khamis symack at gmail.com
Tue Sep 20 15:06:28 UTC 2011


Using the OCF Mysql works fine, however I am still having problems
with Pacemaker+DRBD:

Errors When Trying to Load:

lrmadmin[4153]: 2011/09/20_10:51:25 ERROR:
lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
message of rmetadata with function get_ret_from_msg.
ERROR: ocf:linbit:drbd: could not parse meta-data:
ERROR: ocf:linbit:drbd: no such resource agent

Warnings in Log:

Sep 20 10:51:25 mydrbd1 lrmd: [3560]: WARN: on_msg_get_metadata: empty
metadata for ocf::linbit::drbd.

/dev/drbd/by-res/r0.res
/usr/lib/ocf/resource.d/
/usr/lib/ocf/resource.d/linbit/drbd

Everything built from Source:

DRBD: version: 8.3.7
Pacemaker: 1.1.6

Thanks in Advance,

Nick


Both Exist

On Tue, Sep 20, 2011 at 3:43 AM, Dan Frincu <df.cluster at gmail.com> wrote:
> Hi,
>
> On Mon, Sep 19, 2011 at 7:21 PM, Nick Khamis <symack at gmail.com> wrote:
>> Hello Everyone,
>>
>> I have been experiencing some problems getting pacemaker going with
>> DRBD and MySQL
>>
>> The Config:
>>
>> primitive drbd_mysql ocf:linbit:drbd \
>>                    params drbd_resource="mysql" \
>>                    op monitor interval="15s"
>> ms ms_drbd_mysql drbd_mysql \
>>                    meta master-max="1" master-node-max="1" \
>>                         clone-max="2" clone-node-max="1" \
>>                         notify="true"
>> primitive fs_mysql ocf:heartbeat:Filesystem \
>>                    params device="/dev/drbd/by-res/mysql" \
>>                      directory="/var/lib/mysql" fstype="ext3"
>> primitive ip_mysql ocf:heartbeat:IPaddr2 \
>>                    params ip="192.168.2.100" nic="eth1"
>> primitive mysqld lsb:mysqld
>
> I strongly recommend an OCF compliant RA for this (such as
> https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/mysql),
> not the LSB script.
>
>> group mysql fs_mysql ip_mysql mysqld
>> colocation mysql_on_drbd \
>>                      inf: mysql ms_drbd_mysql:Master
>> order mysql_after_drbd \
>>                      inf: ms_drbd_mysql:promote mysql:start
>> property $id="cib-bootstrap-options" \
>>        no-quorum-policy="ignore" \
>>        stonith-enabled="false" \
>>        expected-quorum-votes="2" \
>
> I'm assuming you're/ve upgrading/upgraded the cluster stack from a
> previous version, the dc-version is not the one provided by 1.1.5, as
> you've mentioned below.
>
>>        dc-version="1.0.4-2ec1d189f9c23093bf9239a980534b661baf782d" \
>>        cluster-infrastructure="openais"
>>
>> The Errors:
>>
>> lrmadmin[2302]: 2011/09/19_11:41:26 ERROR:
>> lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
>> message of rmetadata with function get_ret_from_msg.
>> ERROR: ocf:linbit:drbd: could not parse meta-data:
>> ERROR: ocf:linbit:drbd: no such resource agent
>
> Check /usr/lib/ocf/resource.d/linbit directory for the presence of the
> drbd RA. If it isn't there, you might have done something wrong while
> compiling DRBD.
>
>> lrmadmin[2333]: 2011/09/19_11:41:26 ERROR:
>> lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
>> message of rmetadata with function get_ret_from_msg.
>> ERROR: lsb:mysqld: could not parse meta-data:
>> ERROR: lsb:mysqld: no such resource agent
>
> Could be mysql, not mysqld. Use a RA instead (see above).
>
>> ERROR: object mysqld does not exist
>> ERROR: object drbd_mysql does not exist
>> ERROR: syntax in primitive: master-max=1 master-node-max=1 clone-max=2
>> clone-node-max=1 notify=true
>>
>>
>> The "ERROR: syntax in primitive: master-max=1 master-node-max=1
>> clone-max=2 clone-node-max=1 notify=true" could be resolved by adding
>> a trailing backslash to:
>>
>
> You're missing the RA for DRBD, which means there can be no ms
> resource, which you can't reference in a group. The trailing backslash
> allowing this seems more of a bug, then a feature.
>
>> group mysql fs_mysql ip_mysql mysqld
>>
>> The examples found both miss the slash:
>>
>> http://www.drbd.org/docs/about/    "Adding a DRBD-backed service to
>> the cluster configuration"
>> http://www.clusterlabs.org/wiki/DRBD_MySQL_HowTo
>>
>
> As they should, the trailing backslash within the crm shell means that
> it's expecting input on the next line (not having input on the next
> line should result in an error, therefore my mention of this possibly
> being a bug).
>
>> Environemnt:
>> DRBD and Cluster Stack are all the latest versions downloaded and
>> built from source.
>> DRBD: version: 8.3.7
>> CRM: 1.1.6
>
> You mean Pacemaker 1.1.6.
>
>>
>> DRBD Meta Data: /dev/drbd0/by-res/r0.res
>> OCF RA: /usr/lib/ocf/resource.d/linbit/drbd
>> MySQL RA: /usr/lib/ocf/resource.d/heartbeat/mysql?
>> /etc/init.d/mysql starts fine...
>
> No doubt there.
>
>>
>> I  just noticed "dc-version", should this match "Version:
>> 1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" returned by crm?
>>
>
> Yes
>
>> Finally, where is the best source of up-to-date documenation for
>> Cluster Glue and Resource Agents.
>
> Documentation regarding ... installation, configuration, etc? Here's a
> couple of useful links.
>
> Resource agents
> http://www.linux-ha.org/wiki/Resource_Agents
> http://linux-ha.org/wiki/OCF_Resource_Agents
>
> Dev guide for OCF RA's
> http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html
>
> Resource agents repo
> https://github.com/ClusterLabs/resource-agents
>
> Cluster glue repo
> http://hg.linux-ha.org/glue/
>
> HTH,
> Dan
>
>>
>> Thanks in Advnace,
>>
>> Nick.
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>
>
>
>
> --
> Dan Frincu
> CCNA, RHCE
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list