Sophie

Sophie

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

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>H.2. A Simple Configuration</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="ap-samples.html" title="Appendix H. Sample Configurations" /><link rel="prev" href="ap-samples.html" title="Appendix H. Sample Configurations" /><link rel="next" href="s-sample-advanced.html" title="H.3. An Advanced Configuration" /></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="ap-samples.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="s-sample-advanced.html"><strong>Next</strong></a></li></ul><div class="section" title="H.2. A Simple Configuration"><div class="titlepage"><div><div><h2 class="title" id="s-sample-simple">H.2. A Simple Configuration</h2></div></div></div><div class="example" id="id2593964"><div class="example-contents"><pre class="programlisting">

  &lt;cib admin_epoch="0" epoch="1" num_updates="0" have-quorum="false" validate-with="pacemaker-1.0"&gt;
    &lt;configuration&gt;
      &lt;crm_config&gt;
        &lt;nvpair id="option-1" name="symmetric-cluster" value="true"/&gt;
        &lt;nvpair id="option-2" name="no-quorum-policy" value="stop"/&gt;
      &lt;/crm_config&gt;
      &lt;op_defaults&gt;
        &lt;nvpair id="op-default-1" name="timeout" value="30s"/&gt;
      &lt;/op_defaults&gt;
      &lt;rsc_defaults&gt;
        &lt;nvpair id="rsc-default-1" name="resource-stickiness" value="100"/&gt;
        &lt;nvpair id="rsc-default-2" name="migration-threshold" value="10"/&gt;
      &lt;/rsc_defaults&gt;
      &lt;nodes&gt;
       &lt;node id="xxx" uname="c001n01" type="normal"/&gt;
       &lt;node id="yyy" uname="c001n02" type="normal"/&gt;
      &lt;/nodes&gt;
      &lt;resources&gt;
        &lt;primitive id="myAddr" class="ocf" provider="heartbeat" type="IPaddr"&gt;
          &lt;operations&gt;
           &lt;op id="myAddr-monitor" name="monitor" interval="300s"/&gt;
          &lt;/operations&gt;
          &lt;instance_attributes&gt;
             &lt;nvpair name="ip" value="10.0.200.30"/&gt;
          &lt;/instance_attributes&gt;
        &lt;/primitive&gt;
      &lt;/resources&gt;
      &lt;constraints&gt;
       &lt;rsc_location id="myAddr-prefer" rsc="myAddr" node="c001n01" score="INFINITY"/&gt;
      &lt;/constraints&gt;
    &lt;/configuration&gt;
    &lt;status/&gt;
  &lt;/cib&gt;
</pre></div><h6>Example H.2. 2 nodes, some cluster options and a resource</h6></div><br class="example-break" /><div class="para">
			In this example, we have one resource (an IP address) that we check every five minutes and will run on host c001n01 until either the resource fails 10 times or the host shuts down.
		</div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="ap-samples.html"><strong>Prev</strong>Appendix H. Sample Configurations</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-sample-advanced.html"><strong>Next</strong>H.3. An Advanced Configuration</a></li></ul></body></html>