Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > fd1445e4ec50ea0254985a386bb83a07 > files > 293

pacemaker-doc-1.1.1-1.fc13.i686.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>5.3. Properties</title><link rel="stylesheet" href="./Common_Content/css/default.css" type="text/css" /><meta name="generator" content="publican 1.6" /><meta name="package" content="Pacemaker-Pacemaker_Explained-1.1-en-US-1-0" /><link rel="home" href="index.html" title="Configuration Explained" /><link rel="up" href="ch-resources.html" title="Chapter 5. Cluster Resources" /><link rel="prev" href="s-resource-heartbeat.html" title="5.2.3. Legacy Heartbeat" /><link rel="next" href="s-resource-options.html" title="5.4. Resource Options" /></head><body class=""><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="s-resource-heartbeat.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="s-resource-options.html"><strong>Next</strong></a></li></ul><div class="section" title="5.3. Properties"><div class="titlepage"><div><div><h2 class="title" id="s-resource-properties">5.3. Properties</h2></div></div></div><div class="para">
			These values tell the cluster which script to use for the resource, where to find that script and what standards it conforms to.
		</div><div class="table" id="id2937859"><div class="table-contents"><table summary="Properties of a Primitive Resource" border="1"><colgroup><col width="50%" /><col width="50%" /></colgroup><thead><tr><th>
							Field
						</th><th>
							Description
						</th></tr></thead><tbody><tr><td>
							id
						</td><td>
							Your name for the resource
						</td></tr><tr><td>
							class
						</td><td>
							The standard the script conforms to. Allowed values: heartbeat, lsb, ocf, stonith
						</td></tr><tr><td>
							type
						</td><td>
							The name of the Resource Agent you wish to use. eg. IPaddr or Filesystem
						</td></tr><tr><td>
							provider
						</td><td>
							The OCF spec allows multiple vendors to supply the same ResourceAgent. To use the OCF resource agents supplied with Heartbeat, you should specify heartbeat here.
						</td></tr></tbody></table></div><h6>Table 5.1. Properties of a Primitive Resource</h6></div><br class="table-break" /><div class="para">
			Resource definitions can be queried with the crm_resource tool. For example
		</div><pre class="screen"><code class="command">crm_resource --resource Email --query-xml</code>
</pre><div class="para">
			might produce
		</div><div class="example" id="id2794726"><div class="example-contents"><pre class="programlisting">
  &lt;primitive id="Email" class="lsb" type="exim"/&gt;
</pre></div><h6>Example 5.1. An example LSB resource</h6></div><br class="example-break" /><div class="note"><h2>Note</h2><div class="para">
				One of the main drawbacks to LSB resources is that they do not allow any parameters
			</div></div><div class="para">
			or, for an OCF resource:
		</div><div class="example" id="id2743888"><div class="example-contents"><pre class="programlisting">

  &lt;primitive id="Public-IP" class="ocf" type="IPaddr" provider="heartbeat"&gt;
     &lt;instance_attributes id="params-public-ip"&gt;
        &lt;nvpair id="public-ip-addr" name="ip" value="1.2.3.4"/&gt;
     &lt;/instance_attributes&gt;
  &lt;/primitive&gt;
</pre></div><h6>Example 5.2. An example OCF resource</h6></div><br class="example-break" /><div class="para">
			or, finally for the equivalent legacy Heartbeat resource:
		</div><div class="example" id="id2743908"><div class="example-contents"><pre class="programlisting">

  &lt;primitive id="Public-IP-legacy" class="heartbeat" type="IPaddr"&gt;
     &lt;instance_attributes id="params-public-ip-legacy"&gt;
        &lt;nvpair id="public-ip-addr-legacy" name="1" value="1.2.3.4"/&gt;
     &lt;/instance_attributes&gt;
  &lt;/primitive&gt;
</pre></div><h6>Example 5.3. An example Heartbeat resource</h6></div><br class="example-break" /><div class="note"><h2>Note</h2><div class="para">
				Heartbeat resources take only ordered and unnamed parameters. The supplied name therefor indicates the order in which they are passed to the script. Only single digit values are allowed.
			</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="s-resource-heartbeat.html"><strong>Prev</strong>5.2.3. Legacy Heartbeat</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="s-resource-options.html"><strong>Next</strong>5.4. Resource Options</a></li></ul></body></html>