[Pacemaker] how to run a remote script [SOLVED]

gilberto migliavacca gbmiglia at yahoo.it
Thu Oct 29 05:26:33 EDT 2009


Hi

I solved the problem using the APACHE for the moment

I created the the apache resource and the ip resource
qith the crm command line tool

than with the crm resource start <resource_id> command
I can start (and after that stop) the apache server
on the node

there was a problem with the APACHE installation
I found the solution in the mailing list.
the apache agent fails when tried to call the

sh -c wget -O- -q -L --no-proxy --bind-address=127.0.0.1 
http://localhost:80 .....

I removed the welcome.conf that causes the problem

regards

gilberto


Andrew Beekhof wrote:
> 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)
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 





More information about the Pacemaker mailing list