Re: [Pacemaker] A function demand of the new environment.

2009-10-29 Thread renayama19661014
Hi Andrew,

> Or are you looking for the ability to do more than simply prevent
> resources from running?

Yes. 
For the realization of the function to assure the practice of the resources of 
the cluster, we use
respawn.

We found the function that it might be replaced of respawn in a road map of 
OpenAIS/Corosync.
It seems to be a function such as the simple version of the CPG service.
But, the function does not yet become clear. 
Let me discuss it again after confirming development of Corosync/OpenAIS about 
this matter.

Best Regards,
Hideo Yamauchi.


--- Andrew Beekhof  wrote:

> Apologies for the delay
> 
> On Tue, Sep 22, 2009 at 3:13 AM,   wrote:
> > Hi Andrew,
> >
> >> Ok, but I'm trying to understand why.
> >
> > Thank you.
> >
> >> What function are these daemons performing? \xA0Why do they need to keep
> >> running even when the node is in standby?
> >
> > For example, respawn can detect the abnormality of the node before becoming 
> > online by
> detecting
> > trouble in standby.
> 
> Even with respawn, the node still has to become a full cluster member
> and complete resource probing before the respawned processes can have
> any effect.
> 
> > In a sense it has the same effect to start pingd in respawn.
> 
> But we don't really encourage that anymore either.
> Certainly no-one else running openais based clusters has seemed overly
> concerned about being forced to run it as a resource.
> 
> You just have to write your rules so that the cluster produces the
> "correct" behavior when no value exists for your attribute(s).
> 
> Or are you looking for the ability to do more than simply prevent
> resources from running?
> 
> > In respawn which users made in imitation of pingd, what a function to 
> > detect in this standby
> state is
> > included in will be expected.
> >
> > Best Regards,
> > Hideo Yamauchi.
> >
> 
> ___
> 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] trying to import a constraint

2009-10-29 Thread Shravan Mishra
I just found my problem, so here it is in case someone spends a couple
of hours like me to figure out why it's not working

The culprit is -X, don't use that.

The correct command is :
cibadmin -o constraints -C  -p << END

  
  
  
 
 END


Shravan

On Thu, Oct 29, 2009 at 1:57 PM, Shravan Mishra
 wrote:
> Hi guys,
> Below is a partial snippet of my config:
>
>  =
> 
>      
>        
>          
>        
>      
>      
>        
>          
>        
>      
>    
>  
>      
> 
> ===
>
>
> When I try doing :
>
> cibadmin -o constraints -C  -X -p << END
> 
>  
>   operation="ne" value="sticky"/>
>  
> 
> END
>
> I get
>
> "Couldn't parse input from input string."
>
> What is not parseable here?
>
> Regards
> Shravan
>

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


[Pacemaker] trying to import a constraint

2009-10-29 Thread Shravan Mishra
Hi guys,
Below is a partial snippet of my config:

 =

  

  

  
  

  

  

 
  

===


When I try doing :

cibadmin -o constraints -C  -X -p << END

 
  
 

END

I get

"Couldn't parse input from input string."

What is not parseable here?

Regards
Shravan

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


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Yes, files are there. See my first post. Ran ocf-tester on mysql RA and get 
this:

/usr/lib/ocf/resource.d/heartbeat/mysql passed all tests

But, after modifying the crm Python code to uncomment one of the error 
messages, I see this:

crm(live)configure#  primitive mysql ocf:heartbeat:mysql
ERROR: could not parse meta-data for (ocf,mysql,heartbeat)
ERROR: ocf:heartbeat:mysql: no such resource agent

Why would CRM not be able to parse the meta-data while the ocf-tester script 
seems to like the RA and it's meta-data just fine?



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 12:24 PM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

have you checked the /usr/lib/ocf directory?

J.

On Thu, 2009-10-29 at 12:06 -0400, Eliot Gable wrote:
> Actually, that was a bad example because it is called 'pgsql', but I get it 
> for all of them:
>
> ERROR: ocf:heartbeat:apache: no such resource agent
> ERROR: ocf:heartbeat:mysql: no such resource agent
> ERROR: ocf:heartbeat:pgsql: no such resource agent
> ERROR: ocf:heartbeat:pingd: no such resource agent
>
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 12:02 PM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
>
> ERROR: ocf:heartbeat:postgresql: no such resource agent
>
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
>
> The documentation clearly shows doing it the way I first posted.
>
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
>
> Nevermind. I had a leading 'configure' statement by itself.
>
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
>
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
>
>
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
>
>
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
>

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
have you checked the /usr/lib/ocf directory?

J.

On Thu, 2009-10-29 at 12:06 -0400, Eliot Gable wrote:
> Actually, that was a bad example because it is called 'pgsql', but I get it 
> for all of them:
> 
> ERROR: ocf:heartbeat:apache: no such resource agent
> ERROR: ocf:heartbeat:mysql: no such resource agent
> ERROR: ocf:heartbeat:pgsql: no such resource agent
> ERROR: ocf:heartbeat:pingd: no such resource agent
> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 12:02 PM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
> 
> ERROR: ocf:heartbeat:postgresql: no such resource agent
> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verrept [mailto:johan.verr...@able.be]
> Sent: Thursday, October 29, 2009 11:42 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> 
> If you use scripted input to crm, use full command lines:
> 
> CRM < 
> configure erase
> configure clone apache ocf:heartbeat:apache params...
> 
> etc
> 
> J.
> 
> 
> On Thu, 2009-10-29 at 11:38 -0400, Eliot Gable wrote:
> > In the past, I have always done things by man

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Actually, that was a bad example because it is called 'pgsql', but I get it for 
all of them:

ERROR: ocf:heartbeat:apache: no such resource agent
ERROR: ocf:heartbeat:mysql: no such resource agent
ERROR: ocf:heartbeat:pgsql: no such resource agent
ERROR: ocf:heartbeat:pingd: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 12:02 PM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, I figured out I need to change the clone to primitive to define the thing 
first and then reference the primitive using the clone command. I now no longer 
get the object does not exist message, but it now says it cannot find the 
resource agent:

ERROR: ocf:heartbeat:postgresql: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:52 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
h

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
On Thu, 2009-10-29 at 12:02 -0400, Eliot Gable wrote:
> Ok, I figured out I need to change the clone to primitive to define the thing 
> first and then reference the primitive using the clone command. I now no 
> longer get the object does not exist message, but it now says it cannot find 
> the resource agent:
> 
> ERROR: ocf:heartbeat:postgresql: no such resource agent

ocf:heartbeat:pgsql

J.

> 
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:52 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verrept [mailto:johan.verr...@able.be]
> Sent: Thursday, October 29, 2009 11:42 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> 
> If you use scripted input to crm, use full command lines:
> 
> CRM < 
> configure erase
> configure clone apache ocf:heartbeat:apache params...
> 
> etc
> 
> J.
> 
> 
> On Thu, 2009-10-29 at 11:38 -0400, Eliot Gable wrote:
> > In the past, I have always done things by manually creating a CIB XML
> > file and then importing it. But, to save time, I thought I would try
> > CRM. So, I made this script:
> >
> >
> >
> > #!/bin/bash
> >
> >
> >
> > crm< >
> > configure
> >
> >  erase
> >
> > clone apache ocf:heartbeat:apache params
> > configfile=/etc/httpd/httpd.conf
> >
> >  monitor apache 1s:5s
> >
> >  clone mysql ocf:heartbeat:mysql
> >
> >  monitor mysql 1s:5s
> >
> >  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> >
> >  monitor postgres 1s:5s
> >
> > EOF
> >
> 
> >
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed and/or returned if you are not the intended and proper recipient.
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Ok, I figured out I need to change the clone to primitive to define the thing 
first and then reference the primitive using the clone command. I now no longer 
get the object does not exist message, but it now says it cannot find the 
resource agent:

ERROR: ocf:heartbeat:postgresql: no such resource agent



Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:52 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

___
Pacemaker mailing list
Pacemaker@oss.clus

Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept
Ah. you could also try this:

primitive apacheserver ocf:heartbeat:apache params
configfile=/etc/httpd/httpd.conf
clone apache apacheserver meta clone-max="2"

No guarantees this is 100% correct (i didn't try) but you should get the
idea of what is wrong.

Anyway, if you are creating a script for an existing configuration, try
"crm configure show"

J.

On Thu, 2009-10-29 at 11:51 -0400, Eliot Gable wrote:
> Ok, that still does not work. When I run the script, it just sits there and 
> does nothing (does not even return me to the prompt). When I hit CTRL-C to 
> try to terminate it, it just gives me the same errors I was getting before 
> about ocf:heartbeat:apache and etc not existing. But I have to keep hitting 
> CTRL-C for each line until it gives me all errors and then it exits.
> 
> The documentation clearly shows doing it the way I first posted.
> 
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:48 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> Nevermind. I had a leading 'configure' statement by itself.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Eliot Gable [mailto:ega...@broadvox.com]
> Sent: Thursday, October 29, 2009 11:47 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> That just results in syntax errors on every line.
> 
> Eliot Gable
> Senior Engineer
> 1228 Euclid Ave, Suite 390
> Cleveland, OH 44115
> 
> Direct: 216-373-4808
> Fax: 216-373-4657
> ega...@broadvox.net
> 
> 
> CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it 
> are confidential and are intended solely for the use of the individual or 
> entity to whom it is addressed. If you are not the intended recipient, please 
> call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.
> 
> 
> -Original Message-
> From: Johan Verrept [mailto:johan.verr...@able.be]
> Sent: Thursday, October 29, 2009 11:42 AM
> To: pacemaker@oss.clusterlabs.org
> Subject: Re: [Pacemaker] CRM help
> 
> 
> If you use scripted input to crm, use full command lines:
> 
> CRM < 
> configure erase
> configure clone apache ocf:heartbeat:apache params...
> 
> etc
> 
> J.
> 
> 
> On Thu, 2009-10-29 at 11:38 -0400, Eliot Gable wrote:
> > In the past, I have always done things by manually creating a CIB XML
> > file and then importing it. But, to save time, I thought I would try
> > CRM. So, I made this script:
> >
> >
> >
> > #!/bin/bash
> >
> >
> >
> > crm< >
> > configure
> >
> >  erase
> >
> > clone apache ocf:heartbeat:apache params
> > configfile=/etc/httpd/httpd.conf
> >
> >  monitor apache 1s:5s
> >
> >  clone mysql ocf:heartbeat:mysql
> >
> >  monitor mysql 1s:5s
> >
> >  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> >
> >  monitor postgres 1s:5s
> >
> > EOF
> >
> 
> >
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed and/or returned if you are not the intended and proper recipient.
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed and/or returned if you are not the intended and proper recipient.
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
> be destroyed and/or returned if you are not the intended and proper recipient.
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>

Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Ok, that still does not work. When I run the script, it just sits there and 
does nothing (does not even return me to the prompt). When I hit CTRL-C to try 
to terminate it, it just gives me the same errors I was getting before about 
ocf:heartbeat:apache and etc not existing. But I have to keep hitting CTRL-C 
for each line until it gives me all errors and then it exits.

The documentation clearly shows doing it the way I first posted.


Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
Nevermind. I had a leading 'configure' statement by itself.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Eliot Gable [mailto:ega...@broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help

That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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


Re: [Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
That just results in syntax errors on every line.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net


CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.


-Original Message-
From: Johan Verrept [mailto:johan.verr...@able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
>
>
>
> #!/bin/bash
>
>
>
> crm<
> configure
>
>  erase
>
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
>
>  monitor apache 1s:5s
>
>  clone mysql ocf:heartbeat:mysql
>
>  monitor mysql 1s:5s
>
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
>
>  monitor postgres 1s:5s
>
> EOF
>

>


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

CONFIDENTIAL.  This e-mail and any attached files are confidential and should 
be destroyed and/or returned if you are not the intended and proper recipient.

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


Re: [Pacemaker] Cluster Test Suite: Bad News

2009-10-29 Thread Dejan Muhamedagic
Hi,

On Wed, 28 Oct 2009 20:33 +0100, "Lars Marowsky-Bree" 
wrote:
> On 2009-10-28T21:25:25, Andrew Beekhof  wrote:
> 
> > > ./CTSlab.py --at-boot 1 --nodes 'mysqlha1 mysqlha2' --stack ais
> > > --syslog-facility local6 --schema pacemaker-1.0 --logfile 
> > > /var/log/messages
> > > --stonith 1 --standby 1 --fencing 1 --stonith-type ssh --once 1
> > >
> > > it seems there's a problem with openais but i'm not sure about the
> > > significance of these cts results;
> > > after cts finished, my crm on both nodes was not reachable (but openais 
> > > was
> > > running)
> > >
> > > any hints or comments are very much appreciated.
> > >
> > > here my CTS:BadNews filtered for one node only:
> > 
> > yeah, um, please dont do that.
> > makes it near impossible to diagnose the problem.
> > best just just compress and attach the /var/log/messages from the test
> > host and tell us which test to look at.
> 
> Even better, hb_report can extract the logs for a specific CTS run.
> Makes for a great bugzilla attachment. ;-)

Yes, just use hb_report -f cts: ...

Thanks,

Dejan

> 
> Regards,
> Lars
> 
> -- 
> Architect Storage/HA, OPS Engineering, Novell, Inc.
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


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


Re: [Pacemaker] CRM help

2009-10-29 Thread Johan Verrept

If you use scripted input to crm, use full command lines:

CRM < In the past, I have always done things by manually creating a CIB XML
> file and then importing it. But, to save time, I thought I would try
> CRM. So, I made this script:
> 
>  
> 
> #!/bin/bash
> 
>  
> 
> crm< 
> configure
> 
>  erase
> 
> clone apache ocf:heartbeat:apache params
> configfile=/etc/httpd/httpd.conf
> 
>  monitor apache 1s:5s
> 
>  clone mysql ocf:heartbeat:mysql
> 
>  monitor mysql 1s:5s
> 
>  clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl
> 
>  monitor postgres 1s:5s
> 
> EOF
> 

> 


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


[Pacemaker] CRM help

2009-10-29 Thread Eliot Gable
In the past, I have always done things by manually creating a CIB XML file and 
then importing it. But, to save time, I thought I would try CRM. So, I made 
this script:

#!/bin/bash

crm

[cid:image001.gif@01CA588C.4C9D1870]
CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.



CONFIDENTIAL. This e-mail and any attached files are confidential and should be 
destroyed and/or returned if you are not the intended and proper recipient.
<>___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] RFC: Compacting constraints

2009-10-29 Thread Dejan Muhamedagic
Hi,

On Thu, 29 Oct 2009 14:39 +0100, "Lars Marowsky-Bree" 
wrote:
> Hi all,
> 
> I have a pretty common use case - 4-16 nodes with OCFS2 etc, hosting a
> ton of Xen/KVM guests.
> 
> Compacting the OCFS2 setup was pretty easy -
> http://www.advogato.org/person/lmb/diary.html?start=104 - and that part
> seems short enough. 
> 
> For each guest, I need an order and collocation constraint with the base
> resources, which becomes complex and lengthy very quickly. Just to
> illustrate my point:
> 
> colocation dummy1-c inf: base-clone dummy1
> colocation dummy10-c inf: base-clone dummy10
> colocation dummy11-c inf: base-clone dummy11
> colocation dummy12-c inf: base-clone dummy12
> colocation dummy13-c inf: base-clone dummy13
> colocation dummy14-c inf: base-clone dummy14
> colocation dummy15-c inf: base-clone dummy15
> colocation dummy16-c inf: base-clone dummy16
> colocation dummy17-c inf: base-clone dummy17
> colocation dummy18-c inf: base-clone dummy18
> colocation dummy19-c inf: base-clone dummy19
> colocation dummy2-c inf: base-clone dummy2
> colocation dummy3-c inf: base-clone dummy3
> colocation dummy4-c inf: base-clone dummy4
> colocation dummy5-c inf: base-clone dummy5
> colocation dummy6-c inf: base-clone dummy6
> colocation dummy7-c inf: base-clone dummy7
> colocation dummy8-c inf: base-clone dummy8
> colocation dummy9-c inf: base-clone dummy9
> order dummy1-o 0: base-clone dummy1
> order dummy10-o 0: base-clone dummy10
> order dummy11-o 0: base-clone dummy11
> order dummy12-o 0: base-clone dummy12
> order dummy13-o 0: base-clone dummy13
> order dummy14-o 0: base-clone dummy14
> order dummy15-o 0: base-clone dummy15
> order dummy16-o 0: base-clone dummy16
> order dummy17-o 0: base-clone dummy17
> order dummy18-o 0: base-clone dummy18
> order dummy19-o 0: base-clone dummy19
> order dummy2-o 0: base-clone dummy2
> order dummy3-o 0: base-clone dummy3
> order dummy4-o 0: base-clone dummy4
> order dummy5-o 0: base-clone dummy5
> order dummy6-o 0: base-clone dummy6
> order dummy7-o 0: base-clone dummy7
> order dummy8-o 0: base-clone dummy8
> order dummy9-o 0: base-clone dummy9
> 
> 
> There's a bunch of open issues (resource_sets not supporting score="0",
> the crm shell not supporting resource_sets at all),

That's on the todo list, I've even started working on it, but then had
an issue with funny way resource sets are constructed in CIB. We had a
discussion about that last year.

> but I'd even more
> prefer if I didn't have to have both the order and collocation
> constraints.
> 
> Could we introduce an "conjoin" dependency which merges both? I don't
> much care whether this is done at the XML/CIB level, or at the shell
> level (detect duplication and merge for the shell syntax - the advantage
> would be that none of the other CIB consumers would need to be taught
> about it); it should allow, of course, to specify both the ordering and
> collocation scores.
> 
> So, I'd imagine that the above could be represented in the shell syntax
> as:
> 
> conjoin dummies-dep base-clone {dummy1, dummy2, dummy3, ...} \
>   meta score_collocation=infinity score_order=0

There are no shell constructs which are rendered as two or more CIB
elements. I guess that this should be possible, but really can't say
until I take a thorough look at the implementation. BTW, I guess that
there are other CIB phrases which are commonly in use.

Thanks,

Dejan

> This would be an extremely desirable usability improvement, IMNSHO. I
> welcome your feedback.
> 
> 
> Regards,
> Lars
> 
> -- 
> Architect Storage/HA, OPS Engineering, Novell, Inc.
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
> 
> 
> ___
> Pacemaker mailing list
> Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker

-- 
http://www.fastmail.fm - Send your email first class


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


Re: [Pacemaker] resource's start/stop not getting called

2009-10-29 Thread Lars Marowsky-Bree
On 2009-10-28T21:16:17, Shravan Mishra  wrote:

> crm_attribute -t crm_config -n stonith-enabled -v false

Remember to not use any shared storage in this environment.

BTW, if you had configured the primitive resource via the CRM shell,
you'd have gotten this info message on the first attempt ;-)


Regards,
Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


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


Re: [Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Lars Marowsky-Bree
On 2009-10-29T15:21:18, Michael Schwartzkopff  wrote:

> > > I haven't been able to find too much documentation about the managenemt
> > > of a cluster from a remote machine by CLI (crm subshell or cibadmin). Any
> > > hint for me where I can find more information about the stuff?
> > You mean remote connection to the cluster, or ssh in?
> Both. I did not find any detailed explanation.

Well, if you want to ssh in, there's the
http://wiki.clusterlabs.org/mediawiki/images/f/f2/Crm_fencing.pdf
document for the shell, and the whole Pacemaker documentation?


Regards,
Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


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


Re: [Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Michael Schwartzkopff
Am Donnerstag 29 Oktober 2009 15:29 schrieb Andrew Beekhof:
> There is
>   
> http://www.clusterlabs.org/doc/pacemaker-explained/ch-advanced-options.html
>#s-remote-connection
>
> But you need to be running code from no older than last week.

Thanks. That is was I was looking for. I will try it with the lastest code.

Greetings,

Michael. 

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


Re: [Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Andrew Beekhof
There is
   
http://www.clusterlabs.org/doc/pacemaker-explained/ch-advanced-options.html#s-remote-connection

But you need to be running code from no older than last week.

On Thu, Oct 29, 2009 at 4:21 PM, Michael Schwartzkopff
 wrote:
> Am Donnerstag 29 Oktober 2009 15:01 schrieb Lars Marowsky-Bree:
>> On 2009-10-29T14:41:10, Michael Schwartzkopff  wrote:
>> > Hi,
>> >
>> > I haven't been able to find too much documentation about the managenemt
>> > of a cluster from a remote machine by CLI (crm subshell or cibadmin). Any
>> > hint for me where I can find more information about the stuff?
>>
>> You mean remote connection to the cluster, or ssh in?
>>
>>
>> Regards,
>>     Lars
>
> Both. I did not find any detailed explanation.
>
> Thanks for your fast reply.
>
> ___
> 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] Remote managmenet of a cluster

2009-10-29 Thread Michael Schwartzkopff
Am Donnerstag 29 Oktober 2009 15:01 schrieb Lars Marowsky-Bree:
> On 2009-10-29T14:41:10, Michael Schwartzkopff  wrote:
> > Hi,
> >
> > I haven't been able to find too much documentation about the managenemt
> > of a cluster from a remote machine by CLI (crm subshell or cibadmin). Any
> > hint for me where I can find more information about the stuff?
>
> You mean remote connection to the cluster, or ssh in?
>
>
> Regards,
> Lars

Both. I did not find any detailed explanation.

Thanks for your fast reply.

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


Re: [Pacemaker] Pacemaker Build Issues on CentOS 5.3 64-bit

2009-10-29 Thread Johan Verrept
On Thu, 2009-10-29 at 10:00 -0400, Eliot Gable wrote:

> Once I modify configure.ac to remove this flag and regenerate
> everything, 

you could have used:

./configure --disable-fatal-warnings

> I run into linking errors because the Makefile LIBS= line tells
> Pacemaker to use /usr/lib and /lib64 instead of /usr/lib64 and /lib64.
> I tried to fix this in configure.ac, but I’m not really an expert when
> it comes to manipulating configure.ac files, so I couldn’t get it to
> work. Instead, I find myself manually modifying nearly every Makefile
> that gets generated to make it use /usr/lib64 instead of /usr/lib. 

have you tried:

./configure --libdir=/usr/lib64 

or

./configure LDFLAGS=-L/usr/lib64

J.


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


[Pacemaker] Pacemaker Build Issues on CentOS 5.3 64-bit

2009-10-29 Thread Eliot Gable
When building Pacemaker (1-0-78e8ab00359a) on CentOS 5.3 64-bit, I run into all 
sorts of errors. First, the compiler flag '-Werror' is enabled. On CentOS 5.3, 
gcc issues a warning when you drop a const qualifier on a pointer, which 
Pacemaker code seems to do all over the place (why does it do that, btw? It 
breaks good coding practices); so gcc terminates compilation of Pacemaker when 
encountering these issues.

Once I modify configure.ac to remove this flag and regenerate everything, I run 
into linking errors because the Makefile LIBS= line tells Pacemaker to use 
/usr/lib and /lib64 instead of /usr/lib64 and /lib64. I tried to fix this in 
configure.ac, but I'm not really an expert when it comes to manipulating 
configure.ac files, so I couldn't get it to work. Instead, I find myself 
manually modifying nearly every Makefile that gets generated to make it use 
/usr/lib64 instead of /usr/lib.

If someone could fix these issues quickly, it would save everyone using CentOS 
lots of time and headache trying to make this work. :) I would be more than 
happy to test any modifications for anyone willing to try to fix it.

Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
ega...@broadvox.net

[cid:image001.gif@01CA587D.C02C5E90]
CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are 
confidential and are intended solely for the use of the individual or entity to 
whom it is addressed. If you are not the intended recipient, please call me 
immediately.  BROADVOX is a registered trademark of Broadvox, LLC.



CONFIDENTIAL. This e-mail and any attached files are confidential and should be 
destroyed and/or returned if you are not the intended and proper recipient.
<>___
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker


Re: [Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Lars Marowsky-Bree
On 2009-10-29T14:41:10, Michael Schwartzkopff  wrote:

> Hi,
> 
> I haven't been able to find too much documentation about the managenemt of a 
> cluster from a remote machine by CLI (crm subshell or cibadmin). Any hint for 
> me where I can find more information about the stuff?

You mean remote connection to the cluster, or ssh in?


Regards,
Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


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


[Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Michael Schwartzkopff
Hi,

I haven't been able to find too much documentation about the managenemt of a 
cluster from a remote machine by CLI (crm subshell or cibadmin). Any hint for 
me where I can find more information about the stuff?

I only found a thread on the mailing list indicating that the remote 
management is not in a very good shape right now. Is this impression correct? 
Any good howto?

Thanks,

Michael.

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


[Pacemaker] RFC: Compacting constraints

2009-10-29 Thread Lars Marowsky-Bree
Hi all,

I have a pretty common use case - 4-16 nodes with OCFS2 etc, hosting a
ton of Xen/KVM guests.

Compacting the OCFS2 setup was pretty easy -
http://www.advogato.org/person/lmb/diary.html?start=104 - and that part
seems short enough. 

For each guest, I need an order and collocation constraint with the base
resources, which becomes complex and lengthy very quickly. Just to
illustrate my point:

colocation dummy1-c inf: base-clone dummy1
colocation dummy10-c inf: base-clone dummy10
colocation dummy11-c inf: base-clone dummy11
colocation dummy12-c inf: base-clone dummy12
colocation dummy13-c inf: base-clone dummy13
colocation dummy14-c inf: base-clone dummy14
colocation dummy15-c inf: base-clone dummy15
colocation dummy16-c inf: base-clone dummy16
colocation dummy17-c inf: base-clone dummy17
colocation dummy18-c inf: base-clone dummy18
colocation dummy19-c inf: base-clone dummy19
colocation dummy2-c inf: base-clone dummy2
colocation dummy3-c inf: base-clone dummy3
colocation dummy4-c inf: base-clone dummy4
colocation dummy5-c inf: base-clone dummy5
colocation dummy6-c inf: base-clone dummy6
colocation dummy7-c inf: base-clone dummy7
colocation dummy8-c inf: base-clone dummy8
colocation dummy9-c inf: base-clone dummy9
order dummy1-o 0: base-clone dummy1
order dummy10-o 0: base-clone dummy10
order dummy11-o 0: base-clone dummy11
order dummy12-o 0: base-clone dummy12
order dummy13-o 0: base-clone dummy13
order dummy14-o 0: base-clone dummy14
order dummy15-o 0: base-clone dummy15
order dummy16-o 0: base-clone dummy16
order dummy17-o 0: base-clone dummy17
order dummy18-o 0: base-clone dummy18
order dummy19-o 0: base-clone dummy19
order dummy2-o 0: base-clone dummy2
order dummy3-o 0: base-clone dummy3
order dummy4-o 0: base-clone dummy4
order dummy5-o 0: base-clone dummy5
order dummy6-o 0: base-clone dummy6
order dummy7-o 0: base-clone dummy7
order dummy8-o 0: base-clone dummy8
order dummy9-o 0: base-clone dummy9


There's a bunch of open issues (resource_sets not supporting score="0",
the crm shell not supporting resource_sets at all), but I'd even more
prefer if I didn't have to have both the order and collocation
constraints.

Could we introduce an "conjoin" dependency which merges both? I don't
much care whether this is done at the XML/CIB level, or at the shell
level (detect duplication and merge for the shell syntax - the advantage
would be that none of the other CIB consumers would need to be taught
about it); it should allow, of course, to specify both the ordering and
collocation scores.

So, I'd imagine that the above could be represented in the shell syntax
as:

conjoin dummies-dep base-clone {dummy1, dummy2, dummy3, ...} \
meta score_collocation=infinity score_order=0


This would be an extremely desirable usability improvement, IMNSHO. I
welcome your feedback.


Regards,
Lars

-- 
Architect Storage/HA, OPS Engineering, Novell, Inc.
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde


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


Re: [Pacemaker] A function demand of the new environment.

2009-10-29 Thread Andrew Beekhof
Apologies for the delay

On Tue, Sep 22, 2009 at 3:13 AM,   wrote:
> Hi Andrew,
>
>> Ok, but I'm trying to understand why.
>
> Thank you.
>
>> What function are these daemons performing?  Why do they need to keep
>> running even when the node is in standby?
>
> For example, respawn can detect the abnormality of the node before becoming 
> online by detecting
> trouble in standby.

Even with respawn, the node still has to become a full cluster member
and complete resource probing before the respawned processes can have
any effect.

> In a sense it has the same effect to start pingd in respawn.

But we don't really encourage that anymore either.
Certainly no-one else running openais based clusters has seemed overly
concerned about being forced to run it as a resource.

You just have to write your rules so that the cluster produces the
"correct" behavior when no value exists for your attribute(s).

Or are you looking for the ability to do more than simply prevent
resources from running?

> In respawn which users made in imitation of pingd, what a function to detect 
> in this standby state is
> included in will be expected.
>
> Best Regards,
> Hideo Yamauchi.
>

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


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

2009-10-29 Thread gilberto migliavacca

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  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
 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@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] server lockup failures

2009-10-29 Thread Andrew Beekhof
On Thu, Oct 29, 2009 at 12:51 AM, Bernd Schubert
 wrote:
> On Wednesday 28 October 2009, Andrew Beekhof wrote:
>> On Wed, Oct 28, 2009 at 2:44 PM, Bernd Schubert
>>
>>  wrote:
>> > On Wednesday 28 October 2009, Andrew Beekhof wrote:
>> >> On Wed, Oct 28, 2009 at 1:05 PM, Bernd Schubert
>> >>
>> >>  wrote:
>> >> > Hello,
>> >> >
>> >> > I think there is a severe server failure pacemaker doesn't detect.
>> >> > Over night a Lustre server failed in shrink_icache_memory() and
>> >> > probably it had a lock on dcache_lock. Now this is a global filesystem
>> >> > lock and when a filesystem fails while this is locked, any IO on this
>> >> > system just hangs.
>> >>
>> >> And the FS in question was / so Pacemaker basically hung?
>> >
>> > I couldn't login any more, but my guess is 'yes it hung'. But no, it was
>> > not the root (/) FS. But if any FS crashes while it holds dcache_lock,
>> > any other filesystem will hang as well.
>>
>> oooh
>>
>> > There is nothing we can do about that except of
>> > rewriting the linux vfs ;) My question is just what can we do to get
>> > Pacemaker fixed to stonith that node.
>>
>> Hmmm.  Was this an openais or heartbeat based cluster?
>> If all the processes hung I'd have expected it to drop out of the
>> membership list and get shot by the new DC...
>
> Heartbeat based, I still didn't have the time to look into openais.

I guess heartbeat wasn't hung then... otherwise it would have stopped
sending "i'm here" packets (and dropped out of the membership list).

> But I can
> test on my virtual machines during the next days. Since I have a good idea how
> to lock a node using dcache_lock, it also should be easily reproducible for me
> :)

That would be handy.
I'd be interested to know what each Pacemaker process was up to at the time.

Oh, were you logging to a file or syslog?  That might have some impact.

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