[Pacemaker] CRM help

Johan Verrept Johan.Verrept at able.be
Thu Oct 29 15:58:39 UTC 2009


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
> 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
> 





More information about the Pacemaker mailing list