/usr/sbin/crm is a python script. Inspecting the code, it appears to be 
hardcoded:

    ocf_root = os.getenv("/usr/lib/ocf")
    if not ocf_root:
        ocf_root = "/usr/lib/ocf"
    dir = ocf_root + "/resource.d"

Thus, you should make sure the directory is present, contains the appropriate 
resources, and is readable and executable by root.


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

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

[cid:image001.gif@01C9DEC6.6AB2E690]
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:acl1...@bol.com.br]
Sent: Wednesday, May 27, 2009 12:21 PM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] Managing resources - classes


Hum.... I see.

Any ideia of how(where) to configure CRM to know where resource agents are?


Em 27/05/2009 10:21, Eliot Gable < ega...@broadvox.net > escreveu:

Yes, I was showing you what should be there.
These items are stored in /usr/lib/ocf/resource.d/ for me on CentOS 5.2. It 
means your CRM does not know where your resource agents are kept, which means 
your configuration is probably screwed up (it’s pointed to the wrong directory) 
or you are just missing the files.
Eliot Gable
Senior Engineer
1228 Euclid Ave, Suite 390
Cleveland, OH 44115

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

[http://mce_host/compose/cid:image001.gif@01C9DEAC.80CF4BE0]
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:acl1...@bol.com.br]
Sent: Wednesday, May 27, 2009 9:19 AM
To: pacemaker@oss.clusterlabs.org
Subject: Re: [Pacemaker] Managing resources - classes


I did that but no class is listed.

crm(live)# ra
crm(live)ra# classes

crm(live)ra#





This is the problem.







Em 27/05/2009 10:03, Eliot Gable < ega...@broadvox.net > escreveu:

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
ega...@broadvox.net<http://mce_host/compose?to=ega...@broadvox.net>

[http://mce_host/compose/cid:image001.gif@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:acl1...@bol.com.br]
Sent: Wednesday, May 27, 2009 9:00 AM
To: pacemaker@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 < ega...@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
ega...@broadvox.net<http://mce_host/compose?to=ega...@broadvox.net>

[http://mce_host/compose/cid:image002.jpg@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:acl1...@bol.com.br]
Sent: Wednesday, May 27, 2009 8:14 AM
To: pacemaker@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.
________________________________


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

<<inline: image001.gif>>

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

Reply via email to