~ubuntu-server-dev/ubuntu/vivid/pacemaker/1.1.12

« back to all changes in this revision

Viewing changes to doc/Pacemaker_Explained/en-US/Ap-Install.xml

  • Committer: Package Import Robot
  • Author(s): Martin Loschwitz
  • Date: 2012-04-17 11:46:52 UTC
  • mto: (1.3.3) (2.1.20 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20120417114652-b7s0mviz2uo636wa
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
  <appendix id="ap-install">
2
2
    <title>Installation</title>
3
3
    <section id="s-install-stack">
4
 
      <title>Choosing a Cluster Stack</title>
 
4
      <title>Choosing a <indexterm significance="preferred"><primary>Cluster Stack</primary><secondary>choosing one</secondary></indexterm>Cluster Stack</title>
5
5
      <para>Ultimately the choice of cluster stack is a personal decision that must be made in the context of you or your company's needs and strategic direction. Pacemaker currently functions equally well with both stacks.</para>
6
 
      <para>Here are some factors that may influence the decision</para>
7
 
      <itemizedlist>
 
6
      <para>Here are some factors that may influence the decision:
 
7
      <itemizedlist spacing="compact">
8
8
        <listitem>
9
9
          <para>SUSE/Novell, Red Hat and Oracle are all putting their collective weight behind the Corosync cluster stack.</para>
10
10
        </listitem>
11
11
        <listitem>
12
 
          <para>Corosync is an OSI Certified implementation of an industry standard (the Service Availability Forum Application Interface Specification).</para>
 
12
          <para><indexterm significance="preferred"><primary>Cluster Stack</primary><secondary>Corosync</secondary></indexterm>
 
13
            <indexterm significance="preferred"><primary>Corosync</primary></indexterm>Corosync is an OSI Certified implementation of an industry standard (the Service Availability Forum Application Interface Specification).</para>
13
14
        </listitem>
14
15
        <listitem>
15
 
          <para>Using Corosync gives your applications access to the following additional cluster services</para>
16
 
          <itemizedlist>
 
16
          <para>Using Corosync gives your applications access to the following additional cluster services
 
17
          <itemizedlist spacing="compact">
17
18
            <listitem><para>
18
19
              checkpoint service
19
20
            </para></listitem>
21
22
              distributed locking service
22
23
            </para></listitem>
23
24
            <listitem><para>
24
 
              extended virtual synchrony service
 
25
              extended virtual synchronization service
25
26
            </para></listitem>
26
27
            <listitem><para>
27
28
              cluster closed process group service
28
29
            </para></listitem>
29
 
          </itemizedlist>
 
30
          </itemizedlist></para>
30
31
        </listitem>
31
32
        <listitem>
32
33
          <para>It is likely that Pacemaker, at some point in the future, will make use of some of these additional services not provided by Heartbeat</para>
33
34
        </listitem>
34
35
        <listitem>
35
 
          <para>To date, Pacemaker has received less real-world testing on Corosync than it has on Heartbeat.</para>
 
36
          <para>To date, Pacemaker has received less real-world testing on Corosync than it has on 
 
37
            <indexterm significance="preferred"><primary>Cluster Stack</primary><secondary>Heartbeat</secondary></indexterm>
 
38
            <indexterm significance="preferred"><primary>Heartbeat</primary></indexterm>Heartbeat.</para>
36
39
        </listitem>
37
 
      </itemizedlist>
 
40
      </itemizedlist></para>
38
41
    </section>
39
42
    <section id="s-install-enable">
40
43
      <title>Enabling Pacemaker</title>
41
44
      <section id="s-install-enable-ais">
42
45
        <title>For Corosync</title>
43
 
        <para>The Corosync configuration is normally located in <filename>/etc/corosync/corosync.conf</filename> and an example for a machine with an address of 1.2.3.4 in a cluster communicating on port 1234 (without peer authentication and message encryption) is shown below.</para>
 
46
        <para>The Corosync configuration is normally located in <filename>/etc/corosync/corosync.conf</filename> and an example for a machine with an address of <literal>1.2.3.4</literal> in a cluster communicating on port 1234 (without peer authentication and message encryption) is shown below.</para>
44
47
        <example>
45
48
          <title>An example Corosync configuration file</title>
46
 
          <programlisting>
47
 
  totem {
 
49
          <programlisting>totem {
48
50
      version: 2
49
51
      secauth: off
50
52
      threads: 0
66
68
        </programlisting>
67
69
          </example>
68
70
        <para>The logging should be mostly obvious and the amf section refers to the Availability Management Framework and is not covered in this document.</para>
69
 
        <para>The interesting part of the configuration is the totem section. This is where we define the how the node can communicate with the rest of the cluster and what protocol version and options (including encryption<footnote>
 
71
        <para>The interesting part of the configuration is the totem section. This is where we define how the node can communicate with the rest of the cluster and what protocol version and options (including encryption<footnote>
70
72
            <para>Please consult the <ulink url="http://www.corosync.org/">Corosync website</ulink> and documentation for details on enabling encryption and peer authentication for the cluster.</para>
71
73
          </footnote>) it should use. Beginners are encouraged to use the values shown and modify the interface section based on their network. </para>
72
 
        <para>It is also possible to configure Corosync for an IPv6 based environment. Simply configure bindnetaddr and mcastaddr with their IPv6 equivalents. Eg </para>
 
74
        <para>It is also possible to configure Corosync for an IPv6 based environment. Simply configure <literal>bindnetaddr</literal> and <literal>mcastaddr</literal> with their IPv6 equivalents, eg. </para>
73
75
        <example>
74
76
          <title>Example options for an IPv6 environment</title>
75
 
          <programlisting>
76
 
  bindnetaddr: fec0::1:a800:4ff:fe00:20 
 
77
          <programlisting>bindnetaddr: fec0::1:a800:4ff:fe00:20 
77
78
  mcastaddr: ff05::1
78
79
          </programlisting>
79
80
        </example>
80
81
        <para>To tell Corosync to use the Pacemaker cluster manager, add the following fragment to a functional Corosync configuration and restart the cluster.</para>
81
82
        <example>
82
83
          <title>Configuration fragment for enabling Pacemaker under Corosync</title>
83
 
          <programlisting>
84
 
  aisexec {
 
84
          <programlisting>aisexec {
85
85
    user:  root
86
86
    group: root
87
 
  }
88
 
  service {
 
87
}
 
88
service {
89
89
    name: pacemaker
90
90
    ver: 0
91
 
  }
 
91
}
92
92
          </programlisting>
93
93
        </example>
94
 
        <para>The cluster needs to be run as root so that its child processes (the lrmd in particular) have sufficient privileges to perform the actions requested of it. After-all, a cluster manager that can't add an IP address or start apache is of little use.</para>
 
94
        <para>The cluster needs to be run as root so that its child processes (the <literal>lrmd</literal> in particular) have sufficient privileges to perform the actions requested of it. After all, a cluster manager that can't add an IP address or start apache is of little use.</para>
95
95
        <para>The second directive is the one that actually instructs the cluster to run Pacemaker.</para>
96
96
      </section>
97
97
      <section id="s-install-enable-heartbeat">
98
98
        <title>For Heartbeat</title>
99
 
        <para>Add the following to a functional <filename>ha.cf</filename> configuration file and restart Heartbeat</para>
 
99
        <para>Add the following to a functional <filename>ha.cf</filename> configuration file and restart Heartbeat:</para>
100
100
        <example>
101
101
          <title>Configuration fragment for enabling Pacemaker under Heartbeat</title>
102
 
          <programlisting>
103
 
  crm respawn
 
102
          <programlisting>crm respawn
104
103
          </programlisting>
105
104
        </example>
106
105
      </section>