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,  renayama19661...@ybb.ne.jp 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


[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


[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


Re: [Pacemaker] Remote managmenet of a cluster

2009-10-29 Thread Lars Marowsky-Bree
On 2009-10-29T14:41:10, Michael Schwartzkopff mi...@multinet.de 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] 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.netmailto: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.
inline: image001.gif___
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


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 mi...@multinet.de 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] 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
mi...@multinet.de wrote:
 Am Donnerstag 29 Oktober 2009 15:01 schrieb Lars Marowsky-Bree:
 On 2009-10-29T14:41:10, Michael Schwartzkopff mi...@multinet.de 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: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 Lars Marowsky-Bree
On 2009-10-29T15:21:18, Michael Schwartzkopff mi...@multinet.de 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] resource's start/stop not getting called

2009-10-29 Thread Lars Marowsky-Bree
On 2009-10-28T21:16:17, Shravan Mishra shravan.mis...@gmail.com 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] RFC: Compacting constraints

2009-10-29 Thread Dejan Muhamedagic
Hi,

On Thu, 29 Oct 2009 14:39 +0100, Lars Marowsky-Bree l...@suse.de
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


[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

crmEOF
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

But, when I run it, I get this:

ERROR: 3: object ocf:heartbeat:apache does not exist
ERROR: 4: object apache does not exist
ERROR: 5: object ocf:heartbeat:mysql does not exist
ERROR: 6: object mysql does not exist
ERROR: 7: object ocf:heartbeat:postgresql does not exist
ERROR: 8: object postgres does not exist

But, the files exist:

# ls -c1 /usr/lib/ocf/resource.d/heartbeat/
ldirectord
WAS6
WinPopup
Xen
Xinetd
scsi2reservation
sfex
SysInfo
tomcat
VIPArip
VirtualDomain
vmware
WAS
SAPDatabase
SAPInstance
SendArp
ServeRAID
SphinxSearchDaemon
Squid
Stateful
pgsql
pingd
portblock
Pure-FTPd
Raid1
Route
rsyncd
ManageRAID
ManageVE
mysql
mysql-proxy
nfsserver
oracle
oralsnr
ICP
IPsrcaddr
iscsi
iSCSILogicalUnit
iSCSITarget
LinuxSCSI
LVM
MailTo
db2
Delay
eDir88
Evmsd
EvmsSCC
Filesystem
ids
anything
AoEtarget
apache
AudibleAlarm
drbd
IPaddr
IPaddr2
ClusterMon
Dummy

As near as I can tell, I am following what it says in 
http://www.clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf. Anyone have any 
suggestions?

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

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

[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.
inline: image001.gif___
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 l...@suse.de
wrote:
 On 2009-10-28T21:25:25, Andrew Beekhof and...@beekhof.net 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:testnum ...

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



 crmEOF

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


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



 crmEOF

 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 

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

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



 crmEOF

 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 

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

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]
 Sent: Thursday, October 29, 2009 11:47 AM
 To: pacemaker@oss.clusterlabs.org
 Subject: Re: [Pacemaker] CRM help

 

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
rsc_location id=no-sticky-no-run rsc=safe_SVCS
  rule id=no-sticky-no-run-rule  score=-INFINITY
  expression id=no-sticky-no-run-exp attribute=crole
 operation=ne value=sticky/
  /rule
 /rsc_location
 END


Shravan

On Thu, Oct 29, 2009 at 1:57 PM, Shravan Mishra
shravan.mis...@gmail.com wrote:
 Hi guys,
 Below is a partial snippet of my config:

  =
 nodes
      node id=host_145 uname=host_145 type=normal
        instance_attributes id=nodes-host_145
          nvpair id=nodes-host_145-crole name=crole value=sticky/
        /instance_attributes
      /node
      node id=host_128 uname=host_128 type=normal
        instance_attributes id=nodes-host_128
          nvpair id=nodes-host_128-crole name=crole value=nosticky/
        /instance_attributes
      /node
    /nodes
  resources
      primitive class=ocf type=safe provider=pacemaker id=safe_SVCS/
 resources
 ===


 When I try doing :

 cibadmin -o constraints -C  -X -p  END
 rsc_location id=no-sticky-no-run rsc=safe_SVCS
  rule id=no-sticky-no-run-rule  score=-INFINITY
  expression id=no-sticky-no-run-exp attribute=crole
 operation=ne value=sticky/
  /rule
 /rsc_location
 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