[Pacemaker] Managing resources - classes

Eliot Gable egable at broadvox.net
Wed May 27 13:03:17 UTC 2009


crm(live)# ra
crm(live)ra# classes
heartbeat
ocf / pacemaker heartbeat
lsb
stonith

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

Direct: 216-373-4808
Fax: 216-373-4657
egable at broadvox.net<mailto:egable at broadvox.net>

[cid:image001.gif at 01C9DEA9.F95D2440]
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.

From: acl1978 [mailto:acl1978 at bol.com.br]
Sent: Wednesday, May 27, 2009 9:00 AM
To: pacemaker at oss.clusterlabs.org
Subject: Re: [Pacemaker] Managing resources - classes


Hi Eliot,



thanks for your quick answer.

I have already read all links you have mentioned. I am studying this a lot and making some progress.

But the thing is: I think there is something strange because, as I mentioned, crm ra classes shows nothing. Is this normal?



The only resource I got runnig was a failovre IP one. To get this I created a primitive with

primitive failover-ip ocf:heartbeat:IPaddr \
params ip="172.27.17.210" \
op monitor interval="10s"

and it is working fine.

I would like to have a shell script monitored by Pacemaker. But I have not found a way to do it yet.



thanks again,

Alan





Em 27/05/2009 09:42, Eliot Gable < egable at broadvox.net > escreveu:

http://clusterlabs.org/wiki/Documentation
First, read this (probably ten times or so, since it won’t make complete sense and you will miss various details the first couple of times):
http://clusterlabs.org/mediawiki/images/f/fb/Configuration_Explained.pdf
Then, if you want to use the CLI, read this:
http://clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf
Or check out any other links on that main documentation site.
I strongly recommend you start out learning with the XML CIB and then, if you want, move to the CLI. Everything makes much more sense if you understand the XML stuff. However, keep in mind that there is a steep learning curve to all of this. I have been working with it 3-4 days a week for over a month now, and there are still some things I don’t fully understand. By “working with it” I mean I have written 3 resource agents, one of which is a 800+ line Master/Slave RA, and a 600+ line XML CIB using every form of primitive, clones, master/slave resources, groups, location constraints, co-location constraints, all forms of rules, etc. So, when I say that I’ve done all that and I _still_ don’t fully understand everything about this system, that should give you some idea just how much there is to learn. Don’t expect to have it mastered in a couple of days.
Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

Direct: 216-373-4808
Fax: 216-373-4657
egable at broadvox.net<http://mce_host/compose?to=egable@broadvox.net>

[cid:image002.jpg at 01C9DEA9.F95D2440]
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.
From: acl1978 [mailto:acl1978 at bol.com.br]
Sent: Wednesday, May 27, 2009 8:14 AM
To: pacemaker at oss.clusterlabs.org
Subject: [Pacemaker] Managing resources - classes


Hi All,



I am new in Pacemaker and having some problems with it.

My task is to configure heartbeat with two nodes and make one shell script managed by it (or by pacemaker). The fact is: Pacemaker needs to manage this shell script and make it run again if it sttoped.

I have installed heartbeat and Pacemaker and it seems that they are correctly installed. At least I can see that both nodes are configured and with a online status (crm status). But something strange is happening when I try crm ra classes command. Nothing is showed. I dont know if some configuration is missing. Is ther any problem with it? How can I have a list of classes?

In addition, how colud be a primitive to manage this shell script?

I would be grateful even if you point me some books, tutorials, manuals, etc... I have searched a lot but could not find very good information about it.



Thanks,

Alan

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


________________________________
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090527/3befc997/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2308 bytes
Desc: image001.gif
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090527/3befc997/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 470 bytes
Desc: image002.jpg
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20090527/3befc997/attachment-0004.jpg>


More information about the Pacemaker mailing list