[Pacemaker] how to run a remote script

Andrew Beekhof andrew at beekhof.net
Wed Oct 28 20:15:20 UTC 2009


On Mon, Oct 26, 2009 at 12:11 PM, gilberto migliavacca
<gbmiglia at yahoo.it> wrote:
> Hi Dejan
>
> unfortunately I cannot find a solution about my problem
> in the docs.
> My concern is about the steps I have to take, maybe it's
> not completly clear to me the entore process, sorry but this
> is the first time for me;
> could you please confirm the following procedure? thanks in advance
>
> 1) I have a 1 machine as cluster manager ("machine A")
> I have 2 Apache-Tomcat web container on the 2 nodes
> ("machine B" and "machine C");
>
> 2) all the cluster management tools are installed on
> the 3 machines
>
> 3) I'd like to start/stop tomcat from the "machine A" so
> that I open the "crm" command line on "machine A"

you can run the crm command from any cluster machine.

> 4) I create and edit the configuration "my-conf" with
> the following instructions:
>
> 4.1) primitive res.ocf.tomct ocf:heartbeat:tomcat ...
>
> 4.2) primitive res.ip.tomcat ocf:heartbeat:IPaddr2 ...
>
> 4.3) Have I to set the colocation in the configuration?

If you want them to run on the same machine, then yes.

>
> 5)?? this is my problem ... which command I have to run
> from the "machine A" in order to start/stop the tomcat service
> on the

they should start by default - unless you told them not to.
what state is your cluster in?  (try crm_mon)




More information about the Pacemaker mailing list