[Pacemaker] error in the pacemaker log

2009-10-28 Thread gilberto migliavacca

Hi

my first purpose is to manage an apache service
on a specific machine with IP 172.16.20.63

this is my configuration

node custdevc03.funambol.com
node custdevc04.funambol.com
node custdevc05.funambol.com
primitive res.ip.m63 ocf:heartbeat:IPsrcaddr \
params ip=172.16.20.63 \
op monitor interval=2s timeout=1s \
meta target-role=Started
primitive res.ocf.apache63 ocf:heartbeat:apache \
params configfile=/etc/httpd/conf/httpd.conf \
op monitor interval=30s timeout=10s \
meta target-role=Started
location lo.m63 res.ip.m63 inf: custdevc04.funambol.com
colocation co.apache63_on_m63 inf: res.ocf.apache63 res.ip.m63
order o.m63_before_apache63 inf: res.ip.m63 res.ocf.apache63:start
property $id=cib-bootstrap-options \
dc-version=1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 \
cluster-infrastructure=openais \
expected-quorum-votes=3 \
stonith-enabled=false


when in the crm interface I type:
crm(live)resource# list

I can see in the /var/log/messages this error

Oct 28 01:15:42 custdevc03 crm_resource: [26330]: info: Invoked: 
crm_resource -L
Oct 28 01:15:42 custdevc03 crm_resource: [26330]: ERROR: unpack_rsc_op: 
Hard error - res.ip.m63_monitor_0 failed with rc

=2: Preventing res.ip.m63 from re-starting on custdevc04.funambol.com
Oct 28 01:15:42 custdevc03 crm_resource: [26330]: ERROR: unpack_rsc_op: 
Hard error - res.ip.m63_monitor_0 failed with rc

=2: Preventing res.ip.m63 from re-starting on custdevc05.funambol.com
Oct 28 01:15:42 custdevc03 crm_resource: [26330]: ERROR: unpack_rsc_op: 
Hard error - res.ip.m63_monitor_0 failed with rc

=2: Preventing res.ip.m63 from re-starting on custdevc03.funambol.com


Obviously I cannot run command like

crm(live)resource# start res.ocf.apache63

that is my purpose


Could anyone know why I have this problem?

thanks in advance

gilberto


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] strange behaviour for ssh and eth0

2009-10-28 Thread gilberto migliavacca

Hi Dominik

How can I configure the node's ips as cluster resources?

sorry for the silly question but I'm a newbye in this field

thanks in advance

gilberto

Dominik Klein wrote:

gilberto migliavacca wrote:

Hi


I have 2 nodes and 1 node that I'm using just
to manage the cluster.

I started up the nodes and created the following
configuration :


node custdevc03.funambol.com
node custdevc04.funambol.com
node custdevc05.funambol.com
primitive res.ip.m63 ocf:heartbeat:IPaddr2 \
params ip=172.16.20.63 \
op monitor interval=2s timeout=1s
primitive res.ip.m64 ocf:heartbeat:IPaddr2 \
params ip=172.16.20.64 \
op monitor interval=2s timeout=1s
property $id=cib-bootstrap-options \
dc-version=1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 \
cluster-infrastructure=openais \
expected-quorum-votes=3 \
stonith-enabled=false


when I commit this configuration the ssh connection (on the non standard
port ) goes down and the ifconfig command doesn't show the eth0
network interface on one machine (i.e. 64)

moreover when I try to ssh again on the 64 there is a redirect on the 63.

It seems that both machine have the same ip: 63


Did you configure the node's ips as cluster resources? That might
explain the problems.

Regards
Dominik


could anyone explain this behaviour?

thanks in advance

gilberto

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] virtual IP or real IP address

2009-10-28 Thread gilberto migliavacca

Hi

I have a question. I've seen in the mailing list
a lot of example with the IPAddr/IPAddr2 resource agent

this resource agent manages the Virtual IP.

Could anybody explain me why I have to create a
virtual IP istead of using the real IP?

for instance

I have a cluster with 2 nodes and 1 tomcat on both
machines
My purpose is just to start and stop (maybe configure)
these tomcat instances.

I've created a configuration with the IPsrcaddr resource
agent I think this should manage the real IP, isn't it?

Could anybody point me in the right direction?

thanks in advance

gilberto

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] virtual IP or real IP address

2009-10-28 Thread gilberto migliavacca

Hi Tim

thanks for for your help. Now there's less fog in my brain

I'm trying

gilberto

Tim Serong wrote:
  On 10/28/2009 at 07:26 PM, gilberto migliavacca gbmig...@yahoo.it wrote: 
Hi 
 
I have a question. I've seen in the mailing list 
a lot of example with the IPAddr/IPAddr2 resource agent 
 
this resource agent manages the Virtual IP. 
 
Could anybody explain me why I have to create a 
virtual IP istead of using the real IP? 


In brief, the idea is:

- You have (say) two nodes in an HA cluster, each with its
  own unique IP address (i.e. the address you ssh to in order
  to administer that node).
- The virtual IP address is a third, different IP, which is
  managed by the IPAddr2 RA.  This is active on only one node
  at a time, and is managed by Pacemaker.
- You set up colocation/ordering constraints so that the
  IPAddr2 resource runs on the same node as an instance of
  Apache (or whatever service you're providing).
- Clients connect to that virtual IP, which can then failover to
  the other node, if the node it's running on dies.

HTH,

Tim





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] problem conntecting ssh on the nodes

2009-10-27 Thread gilberto migliavacca

Hi

I have 2 nodes and 1 node that I'm using just
to manage the cluster.

I started up the nodes and created the configuration
for the 2 nodes (e.g. with IPaddr2 and Tomcat)

Now I cannot ssh on the two managed nodes.
I'using 3 Virtual Machine VMWare with Centos.

Do you have any experience about conflit between
ssh and pacemaker?

thanks in advance

gilberto

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] strange behaviour for ssh and eth0

2009-10-27 Thread gilberto migliavacca

Hi


I have 2 nodes and 1 node that I'm using just
to manage the cluster.

I started up the nodes and created the following
configuration :


node custdevc03.funambol.com
node custdevc04.funambol.com
node custdevc05.funambol.com
primitive res.ip.m63 ocf:heartbeat:IPaddr2 \
params ip=172.16.20.63 \
op monitor interval=2s timeout=1s
primitive res.ip.m64 ocf:heartbeat:IPaddr2 \
params ip=172.16.20.64 \
op monitor interval=2s timeout=1s
property $id=cib-bootstrap-options \
dc-version=1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 \
cluster-infrastructure=openais \
expected-quorum-votes=3 \
stonith-enabled=false


when I commit this configuration the ssh connection (on the non standard 
port ) goes down and the ifconfig command doesn't show the eth0

network interface on one machine (i.e. 64)

moreover when I try to ssh again on the 64 there is a redirect on the 63.

It seems that both machine have the same ip: 63

could anyone explain this behaviour?

thanks in advance

gilberto

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] cannot start/stop apache from the manager node

2009-10-27 Thread gilberto migliavacca

Hi Michael

Sorry, but was is machine63? You have custdevc03, 04 and 05. Did you 
mean: The machine that run resource res.ip.m63?


--- YES


my purpose is to have 3 apaches on 3 machines

and I'd like to start/stop manually one of them.


have I to assign a Vritual IP? (I've seen that IPaddr2/IPaddr work
on the virtual IP)?

can I use the real IP with a different resource agent (e.g. IPsrcaddr)?


thanks

gilberto




Michael Schwartzkopff wrote:

Am Dienstag, 27. Oktober 2009 14:55:42 schrieb gilberto migliavacca:

Hi

I have 2 nodes and 1 node that I'm using just
to manage the cluster.

I started up the nodes and created the following
configuration :

node custdevc03.funambol.com
node custdevc04.funambol.com
node custdevc05.funambol.com
primitive res.ip.m63 ocf:heartbeat:IPaddr2 \
 params ip=172.16.20.63 \
 op monitor interval=2s timeout=1s
primitive res.ocf.apache63 ocf:heartbeat:apache \
 params configfile=/etc/httpd/conf/httpd.conf \
 op monitor interval=30s timeout=10s \
 meta target-role=Started
location lo.m63 res.ip.m63 -inf: custdevc04.funambol.com
colocation co.apache63_on_m63 -inf: res.ocf.apache63 res.ip.m63
order o.m63_before_apache63 inf: res.ip.m63 res.ocf.apache63:start
property $id=cib-bootstrap-options \
 dc-version=1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 \
 cluster-infrastructure=openais \
 expected-quorum-votes=3 \
 stonith-enabled=false



the problem is that I cannot manage the apache instance
on the machine 63.


Sorry, but was is machine63? You have custdevc03, 04 and 05. Did you mean: 
The machine that run resource res.ip.m63?


Then why did yor *forbid* to run both resources on the same machine with
*-inf* points in the colocation?


When I run
- crm(live)resource# start res.ocf.apache63
Nothing happen on the 63 machine, the apache service is down

these are my questions
- did I take all the steps correctly?

Depends on what you want to do.


- is my confoguration correct?

Depends on what you want to do.


- Have I to remove the start up script in the /etc/init.d?

No. Just be sure that it is NOT called during the system start.


- How can I check the log of the pacemaker in order to understand the
issue?
Read the logs /var/log/syslog or /var/log/messages. grep for  
res.ocf.apache63 and search for ERROR.





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] how to run a remote script

2009-10-26 Thread gilberto migliavacca

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

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?

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


gilberto




Hi,

On Thu, Oct 22, 2009 at 06:54:29PM +0200, gilberto migliavacca wrote:

Hi

I need a step behind now

I installed a java stand alone process with its onw start and stop scripts
on the 2 nodes and my purpose is to start/stop these services using
pacemaker

how can I create the myapp resource agent on the nodes, somthing
like the ocf:heartbeat:tomcat?


You've got all needed information here
http://www.linux-ha.org/ResourceAgent and some shell scripting
skill. Try either LSB or OCF (preferably the latter if you want
to contribute the script).

Thanks,

Dejan


thanks in advance

gilberto



Schmidt, Torsten wrote:

Hi Gilberto,

take a look at the tomcat ocf-script:

start 'crm'
to to 'ra' and do:
crm(live)ra# meta tomcat ocf

here you see the parameters (required and optional)

implement the tomcat as primitive resource dependend on a cluster-ip (IPaddr2)

like this:
primitive res.ocf.tomct ocf:heartbeat:tomcat \
   params name=value ...\
   op monitor interval=30s timeout=10s

primitive res.ip.tomcat ocf:heartbeat:IPaddr2 \
   params ip=ip-address nic=eth0 cidr_netmask=22 \
   op monitor interval=2s timeout=1s

then bind this two together as a colocation and tell pacemaker the order, how 
to start + stop:

colocation co.res.ocf.tomcat_on_res.ip.tomcat inf: res.ocf.tomcat res.ip.tomcat
order o.res.ip.tomcat_before_res.ocf.tomcat inf: res.ip.tomcat 
res.ocf.tomcat:start

and look at the documentation on http://clusterlabs.org/wiki/Documentation


Mit freundlichen Grüßen / with kind regards

Torsten Schmidt

-Ursprüngliche Nachricht-
Von: gilberto migliavacca [mailto:gbmig...@yahoo.it] Gesendet:
Donnerstag, 22. Oktober 2009 15:55
An: pacemaker@oss.clusterlabs.org
Betreff: [Pacemaker] how to run a remote script

Hi

I'm a newbie of Pacemaker and I'm working for Funambol company 
(www.funambol.com). I'm evaluating how to support a cluster solution for our 
product.

I understood how to create a my own configuration with some monitoring commands.
I found it in the main documentation, for instance for apache service

now, I installed a Apache-Tomcat web container on the 2 nodes and my purpose is 
to start/stop these services

I don't understand if I can set this information in the configuration of 
Pacemaker.

could anybody give me some hints?

thanks in advance

gilberto





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker




___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] how to run a remote script

2009-10-22 Thread gilberto migliavacca

Hi

I'm a newbie of Pacemaker and I'm working for Funambol company 
(www.funambol.com). I'm evaluating how to support a cluster solution

for our product.

I understood how to create a my own configuration with some
monitoring commands.
I found it in the main documentation, for instance for apache service

now, I installed a Apache-Tomcat web container on the 2 nodes and
my purpose is to start/stop these services

I don't understand if I can set this information in the configuration
of Pacemaker.

could anybody give me some hints?

thanks in advance

gilberto





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] how to run a remote script

2009-10-22 Thread gilberto migliavacca

Hi Schmidt

I'll try, thanks for the info

gilberto

Schmidt, Torsten wrote:

Hi Gilberto,

take a look at the tomcat ocf-script:

start 'crm'
to to 'ra' and do:
crm(live)ra# meta tomcat ocf 


here you see the parameters (required and optional)

implement the tomcat as primitive resource dependend on a cluster-ip (IPaddr2)

like this:
primitive res.ocf.tomct ocf:heartbeat:tomcat \
params name=value ...\
op monitor interval=30s timeout=10s

primitive res.ip.tomcat ocf:heartbeat:IPaddr2 \
params ip=ip-address nic=eth0 cidr_netmask=22 \
op monitor interval=2s timeout=1s

then bind this two together as a colocation and tell pacemaker the order, how 
to start + stop:

colocation co.res.ocf.tomcat_on_res.ip.tomcat inf: res.ocf.tomcat res.ip.tomcat
order o.res.ip.tomcat_before_res.ocf.tomcat inf: res.ip.tomcat 
res.ocf.tomcat:start

and look at the documentation on http://clusterlabs.org/wiki/Documentation


Mit freundlichen Grüßen / with kind regards

Torsten Schmidt

-Ursprüngliche Nachricht-
Von: gilberto migliavacca [mailto:gbmig...@yahoo.it] 
Gesendet: Donnerstag, 22. Oktober 2009 15:55

An: pacemaker@oss.clusterlabs.org
Betreff: [Pacemaker] how to run a remote script

Hi

I'm a newbie of Pacemaker and I'm working for Funambol company 
(www.funambol.com). I'm evaluating how to support a cluster solution for our 
product.

I understood how to create a my own configuration with some monitoring commands.
I found it in the main documentation, for instance for apache service

now, I installed a Apache-Tomcat web container on the 2 nodes and my purpose is 
to start/stop these services

I don't understand if I can set this information in the configuration of 
Pacemaker.

could anybody give me some hints?

thanks in advance

gilberto





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

  



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] how to run a remote script

2009-10-22 Thread gilberto migliavacca

Hi

I need a step behind now

I installed a java stand alone process with its onw start and stop scripts
on the 2 nodes and my purpose is to start/stop these services using 
pacemaker


how can I create the myapp resource agent on the nodes, somthing like 
the ocf:heartbeat:tomcat?


thanks in advance

gilberto



Schmidt, Torsten wrote:

Hi Gilberto,

take a look at the tomcat ocf-script:

start 'crm'
to to 'ra' and do:
crm(live)ra# meta tomcat ocf 


here you see the parameters (required and optional)

implement the tomcat as primitive resource dependend on a cluster-ip (IPaddr2)

like this:
primitive res.ocf.tomct ocf:heartbeat:tomcat \
params name=value ...\
op monitor interval=30s timeout=10s

primitive res.ip.tomcat ocf:heartbeat:IPaddr2 \
params ip=ip-address nic=eth0 cidr_netmask=22 \
op monitor interval=2s timeout=1s

then bind this two together as a colocation and tell pacemaker the order, how 
to start + stop:

colocation co.res.ocf.tomcat_on_res.ip.tomcat inf: res.ocf.tomcat res.ip.tomcat
order o.res.ip.tomcat_before_res.ocf.tomcat inf: res.ip.tomcat 
res.ocf.tomcat:start

and look at the documentation on http://clusterlabs.org/wiki/Documentation


Mit freundlichen Grüßen / with kind regards

Torsten Schmidt

-Ursprüngliche Nachricht-
Von: gilberto migliavacca [mailto:gbmig...@yahoo.it] 
Gesendet: Donnerstag, 22. Oktober 2009 15:55

An: pacemaker@oss.clusterlabs.org
Betreff: [Pacemaker] how to run a remote script

Hi

I'm a newbie of Pacemaker and I'm working for Funambol company 
(www.funambol.com). I'm evaluating how to support a cluster solution for our 
product.

I understood how to create a my own configuration with some monitoring commands.
I found it in the main documentation, for instance for apache service

now, I installed a Apache-Tomcat web container on the 2 nodes and my purpose is 
to start/stop these services

I don't understand if I can set this information in the configuration of 
Pacemaker.

could anybody give me some hints?

thanks in advance

gilberto





___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

  



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


[Pacemaker] Can I edit apache configuration file using pacemaker?

2009-10-22 Thread gilberto migliavacca

Hi

I have this problem and I'd like to know if I can solve
it using pacemaker

I have 2 nodes with apache + modjk  + tomcat on both nodes,
moreover the modjk components point to the tomcat on both nodes
in this way the configuration (worker.properties) file of the modjk
keeps the information about the tomcat on the 2 nodes.

something like:

apache   apache
modjk     modjk
  \ /
\ /
tomcat-- / \-- tomcat
  
I'd like to understand if I can modify the modjk configuration

file (worker.properties) using some pacemaker commands

in this way I can
- deactivate a node (modifying the modjk and launching a graceful 
command to apache

- wait until the node finishes up all the active session
- apply a patch on the node
- restart the node

all the steps about start/stop I understood I can do it with
pacemaker, my problem is about the file modification.

Can I edit the modjk configuration  file (worker.properties)
using some pacemaker commands?

thanks in advance ... sorry for this complicated question

regards

gilberto



___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker