[Pacemaker] CRM help

Eliot Gable egable at broadvox.com
Thu Oct 29 16:06:19 UTC 2009


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
egable at 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:egable at broadvox.com]
Sent: Thursday, October 29, 2009 12:02 PM
To: pacemaker at 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
egable at 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:egable at broadvox.com]
Sent: Thursday, October 29, 2009 11:52 AM
To: pacemaker at 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
egable at 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:egable at broadvox.com]
Sent: Thursday, October 29, 2009 11:48 AM
To: pacemaker at 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
egable at 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:egable at broadvox.com]
Sent: Thursday, October 29, 2009 11:47 AM
To: pacemaker at 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
egable at 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.Verrept at able.be]
Sent: Thursday, October 29, 2009 11:42 AM
To: pacemaker at oss.clusterlabs.org
Subject: Re: [Pacemaker] CRM help


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

CRM <<EOF

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<<EOF
>
> 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 at 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 at 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 at 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 at 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 at 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.




More information about the Pacemaker mailing list