[Pacemaker] Failed actions: ...not installed

Stallmann, Andreas AStallmann at CONET.DE
Tue Jan 24 12:21:43 UTC 2012


Hi Attila,

the strange thing is: Running it from shell works just fine:

/usr/lib/ocf/resource.d/heartbeat # ./mysql monitor
mysql[21716]: INFO: MySQL is not running

/usr/lib/ocf/resource.d/heartbeat # ./mysql start
mysql[21771]: INFO: MySQL is not running
mysql[21771]: INFO: MySQL is not running
mysql[21771]: DEBUG: MySQL monitor succeeded
mysql[21771]: INFO: MySQL started

usr/lib/ocf/resource.d/heartbeat # ./mysql monitor
mysql[22142]: DEBUG: MySQL monitor succeeded

/usr/lib/ocf/resource.d/heartbeat # echo $?
0

/usr/lib/ocf/resource.d/heartbeat # ps -ef | grep mysql
root     21855     1  0 13:17 pts/0    00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --datadir=/var/lib/mysql --user=mysql

usr/lib/ocf/resource.d/heartbeat # ./mysql stop
mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...
mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...
mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...
mysql[24557]: INFO: MySQL is not running
mysql[24557]: INFO: MySQL is not running
mysql[24557]: INFO: MySQL stopped

/usr/lib/ocf/resource.d/heartbeat # echo $?
0

/usr/lib/ocf/resource.d/heartbeat # ./mysql monitor
mysql[24816]: INFO: MySQL is not running

Any further ideas?

Thank you so far,

Andreas


Von: Attila Megyeri [mailto:amegyeri at minerva-soft.com]
Gesendet: Dienstag, 24. Januar 2012 10:03
An: The Pacemaker cluster resource manager
Betreff: Re: [Pacemaker] Failed actions: ...not installed

Hi Andreas,

I would give it a try from shell.
Set all required environment variables, such as (as in your cib)

export OCF_ROOT=/usr/lib/ocf
export OCF_RESKEY_binary="/usr/bin/mysqld_safe"
export OCF_RESKEY_config="/etc/mysql/my.cnf"
export OCF_RESKEY_datadir="/var/lib/mysql"
export OCF_RESKEY_user="mysql"
export OCF_RESKEY_pid="/var/run/mysqld/mysqld.pid"
export OCF_RESKEY_socket="/var/run/mysqld/mysqld.sock"
….

and then execute the RA from its local directory. (e.g. ./mysql monitor or ./mysql start )
You may see why it fails, or add some logging into the RA itself.

Cheers,
Attila

From: Stallmann, Andreas [mailto:AStallmann at CONET.DE]<mailto:[mailto:AStallmann at CONET.DE]>
Sent: 2012. január 24. 9:46
To: pacemaker at oss.clusterlabs.org<mailto:pacemaker at oss.clusterlabs.org>
Subject: [Pacemaker] Failed actions: ...not installed

Hi there,

What does the following error mean:

Failed actions:
    p_mysql:1_start_0 (node=int-ipfuie-mgmt02, call=15, rc=5, status=complete): not installed
    p_mysql:0_start_0 (node=int-ipfuie-mgmt01, call=15, rc=5, status=complete): not installed

The resource script “mysql” IS installed, it’s where all the other scripts are:

/usr/lib/ocf/resource.d/heartbeat # ls -lh mysql
-rwxr-xr-x 1 root root 43K Jan 23 16:36 mysql

There’s nothing (at least nothing obvious) in /var/log/messages, that reveals any further information.

Here’s my configuration (for the primitive and for the M/S setup):

primitive p_mysql ocf:heartbeat:mysql \
        params config="/etc/my.cnf" pid="/var/run/mysql/mysql.pid" socket="/var/run/mysql/mysql.sock" replication_user="repl" replication_passwd="blafasel" max_slave_lag="15" evict_outdated_slaves="false" binary="/usr/bin/mysqld_safe" test_user="root" test_passwd="blafasel" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="300s" \
        op monitor interval="5s" role="Master" timeout="30s" OCF_CHECK_LEVEL="1" \
        op monitor interval="2s" role="Slave" timeout="30s" OCF_CHECK_LEVEL="1"
primitive pingy_res ocf:pacemaker:ping \
        params dampen="5s" multiplier="1000" host_list="10.30.0.41 10.30.0.42 10.30.0.1" \
        op monitor interval="15s" timeout="20s" \
        op start interval="0" timeout="60s"
ms ms_MySQL p_mysql \
        meta master-max="1" master-node-max="1" clone-max="2" notify="true" target-role="Started"

Any ideas on how to get this running?

Thanks,

Andreas




----------------------------
CONET Solutions GmbH, Theodor-Heuss-Allee 19, 53773 Hennef.
Registergericht/Registration Court: Amtsgericht Siegburg (HRB Nr. 9136)
Geschäftsführer/Managing Director: Anke Höfer

 ----------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120124/03faf246/attachment.htm>


More information about the Pacemaker mailing list