[Pacemaker] Errors When Loading OCF

Nick Khamis symack at gmail.com
Mon Sep 19 16:21:21 UTC 2011


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
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" \
        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
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
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:

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

Environemnt:
DRBD and Cluster Stack are all the latest versions downloaded and
built from source.
DRBD: version: 8.3.7
CRM: 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...

I  just noticed "dc-version", should this match "Version:
1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" returned by crm?

Finally, where is the best source of up-to-date documenation for
Cluster Glue and Resource Agents.

Thanks in Advnace,

Nick.




More information about the Pacemaker mailing list