[Linux-HA] some small questions
lmb at suse.de
Thu Oct 6 04:31:45 MDT 2005
On 2005-10-06T11:03:37, Jan Lenaerts <wetenschapper at gmail.com> wrote:
> I've got a few small questions:
> - Why isn't there a linux-ha forum? Wouldn't that be easier, to find
You have just posted to our forum, so I don't follow what you are
talking about ;-)
> - In the primitive tag there is a class option. what are the differences
> between those classes? and when do you use witch class?
> I think there is a: ocf, lsb, heartbeat & primitive class?
No, primitive is not a class. Classes are just ocf, lsb and heartbeat.
They specify, well, the class of the resource agent referenced. "ocf"
means it is an Open Clustering Framework Resource Agent (located under
refers to a heartbeat 1.x style agent under /etc/ha.d/resource.d/<type>,
and lsb finally refers to an LSB-style init script under
Besides the location, each of them have slightly different calling
semantics; OCF RAs take name/value pairs in the environment, heartbeat
scripts get argument lists on the commandline, and LSB init scripts
finally don't take any parameters at all.
> - Also in the primitive tag there is a provider option. I've noticed it is
> always provider="heartbeat" and sometimes it ins't necessary. Why is this?
> and can there be other providers?
"provider" is only required for class="ocf", otherwise it is ignored.
RAs could be provided by several sources under /usr/lib/ocf/resource.d/,
so you need to specify the provider to tell us which one to use.
Right now, our own RAs are provided by "heartbeat", so that's why all
our examples reference that provider. However, if you were installing
site/company-specific RAs, or packaging your resource agent with your
own software, you should place them in your own sub-directory; then we
a) won't get confused, b) they won't be overwritten by eachother if
there ever is a RA of the same type by several providers...
Lars Marowsky-Brée <lmb at suse.de>
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin
"Ignorance more frequently begets confidence than does knowledge"
More information about the Linux-HA