[Pacemaker] Failed actions: ...not installed
Dejan Muhamedagic
dejanmm at fastmail.fm
Tue Jan 24 15:34:46 UTC 2012
Hi Attila,
On Tue, Jan 24, 2012 at 10:03:17AM +0100, Attila Megyeri wrote:
> 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.
It is better to try with ocf-tester:
Usage: ocf-tester [-Lh] -n resource_name [-o name=value]* /full/path/to/resource/agent
It will make RA do all the possible stuff and check if the
outcome is sane. The log messages will be printed to stderr (or
was it stdout?). Use -v to get more output.
Cheers,
Dejan
> Cheers,
> Attila
>
> From: Stallmann, Andreas [mailto:AStallmann at CONET.DE]
> Sent: 2012. január 24. 9:46
> To: 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
>
> ----------------------------
>
>
> _______________________________________________
> 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://bugs.clusterlabs.org
More information about the Pacemaker
mailing list