diff --git a/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot index c8dc2aeef3..9000daba69 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot @@ -1,341 +1,341 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:26\n" +"PO-Revision-Date: 2010-12-21T11:01:26\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Configuration Recap" msgstr "" #. Tag: title #, no-c-format msgid "Final Cluster Configuration" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" -"        op monitor interval="30s"\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive rsa-fencing stonith::external/ibmrsa \\\n" -"        params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" -"        op monitor interval="60s"\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone Fencing rsa-fencing \n" "clone WebFSClone WebFS\n" "clone WebIP ClusterIP  \\\n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "clone WebSiteClone WebSite\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" "colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" "colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSiteClone WebIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" "order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" "order apache-after-ip inf: WebIP WebSiteClone\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" "        stonith-enabled=”true” \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Node List" msgstr "" #. Tag: para #, no-c-format msgid "The list of cluster nodes is automatically populated by the cluster." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "node pcmk-1\n" "node pcmk-2\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Cluster Options" msgstr "" #. Tag: para #, no-c-format msgid "This is where the cluster automatically stores some information about the cluster" msgstr "" #. Tag: para #, no-c-format msgid "dc-version - the version (including upstream source-code hash) of Pacemaker used on the DC" msgstr "" #. Tag: para #, no-c-format msgid "cluster-infrastructure - the cluster infrastructure being used (heartbeat or openais)" msgstr "" #. Tag: para #, no-c-format msgid "expected-quorum-votes - the maximum number of nodes expected to be part of the cluster" msgstr "" #. Tag: para #, no-c-format msgid "and where the admin can set options that control the way the cluster operates" msgstr "" #. Tag: para #, no-c-format msgid "stonith-enabled=true - Make use of STONITH" msgstr "" #. Tag: para #, no-c-format msgid "no-quorum-policy=ignore - Ignore loss of quorum and continue to host resources." msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" "        stonith-enabled=”true” \\\n" -"        no-quorum-policy="ignore"\n" +"        no-quorum-policy=\"ignore\"\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Resources" msgstr "" #. Tag: title #, no-c-format msgid "Default Options" msgstr "" #. Tag: para #, no-c-format msgid "Here we configure cluster options that apply to every resource." msgstr "" #. Tag: para #, no-c-format msgid "resource-stickiness - Specify the aversion to moving resources to other machines" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"rsc_defaults $id="rsc-options" \\\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Fencing" msgstr "" #. Tag: para #, no-c-format msgid "TODO: Add text here" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive rsa-fencing stonith::external/ibmrsa \\\n" -"        params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" -"        op monitor interval="60s"\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" "clone Fencing rsa-fencing\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Service Address" msgstr "" #. Tag: para #, no-c-format msgid "Users of the services provided by the cluster require an unchanging address with which to access it. Additionally, we cloned the address so it will be active on both nodes. An iptables rule (created as part of the resource agent) is used to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster that we want two instances of the clone (one “request bucket” for each node) and that if one node fails, then the remaining node should hold both." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" -"        op monitor interval="30s"\n" +"        op monitor interval=\"30s\"\n" "clone WebIP ClusterIP  \n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "" msgstr "" #. Tag: para #, no-c-format msgid "TODO: The RA should check for globally-unique=true when cloned" msgstr "" #. Tag: title #, no-c-format msgid "Distributed lock manager" msgstr "" #. Tag: para #, no-c-format msgid "Cluster filesystems like GFS2 require a lock manager. This service starts the daemon that provides user-space applications (such as the GFS2 daemon) with access to the in-kernel lock manager. Since we need it to be available on all nodes in the cluster, we have it cloned." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true\n" +"        meta interleave=\"true\n" "" msgstr "" #. Tag: para #, no-c-format msgid "TODO: Confirm interleave is no longer needed" msgstr "" #. Tag: title #, no-c-format msgid "GFS control daemon" msgstr "" #. Tag: para #, no-c-format msgid "GFS2 also needs a user-space/kernel bridge that runs on every node. So here we have another clone, however this time we must also specify that it can only run on machines that are also running the DLM (colocation constraint) and that it can only be started after the DLM is running (order constraint). Additionally, the gfs-control clone should only care about the DLM instances it is paired with, so we need to set the interleave option." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" "" msgstr "" #. Tag: title #, no-c-format msgid "DRBD - Shared Storage" msgstr "" #. Tag: para #, no-c-format msgid "Here we define the DRBD service and specify which DRBD resource (from drbd.conf) it should manage. We make it a master/slave resource and, in order to have an active/active setup, allow both instances to be promoted by specifying master-max=2. We also set the notify option so that the cluster will tell DRBD agent when it’s peer changes state." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Cluster Filesystem" msgstr "" #. Tag: para #, no-c-format msgid "The cluster filesystem ensures that files are read and written correctly. We need to specify the block device (provided by DRBD), where we want it mounted and that we are using GFS2. Again it is a clone because it is intended to be active on both nodes. The additional constraints ensure that it can only be started on nodes with active gfs-control and drbd instances." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "clone WebFSClone WebFS\n" "colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" "colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Apache" msgstr "" #. Tag: para #, no-c-format msgid "Lastly we have the actual service, Apache. We need only tell the cluster where to find it’s main configuration file and restrict it to running on nodes that have the required filesystem mounted and the IP address active." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "clone WebSiteClone WebSite\n" "colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" "colocation website-with-ip inf: WebSiteClone WebIP\n" "order apache-after-ip inf: WebIP WebSiteClone\n" "order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot index 40d33efa9c..01254bd911 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot @@ -1,101 +1,101 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:26\n" +"PO-Revision-Date: 2010-12-21T11:01:26\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Sample Corosync.conf" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "# Please read the Corosync.conf.5 manual page\n" "compatibility: whitetank\n" "\n" "aisexec {\n" "        # Run as root - this is necessary to be able to manage resources with Pacemaker\n" "        user:        root\n" "        group:        root\n" "}\n" "\n" "service {\n" "        # Load the Pacemaker Cluster Resource Manager\n" "        ver:       0\n" "        name:      pacemaker\n" "        use_mgmtd: no\n" "        use_logd:  no\n" "}\n" "\n" "totem {\n" "        version: 2\n" "\n" "        # How long before declaring a token lost (ms)\n" "        token:          5000\n" "\n" "        # How many token retransmits before forming a new configuration\n" "        token_retransmits_before_loss_const: 10\n" "\n" "        # How long to wait for join messages in the membership protocol (ms)\n" "        join:           1000\n" "\n" "        # How long to wait for consensus to be achieved before starting a new\n" "        # round of membership configuration (ms)\n" -"        consensus:      2500\n" +"        consensus:      6000\n" "\n" "        # Turn off the virtual synchrony filter\n" "        vsftype:        none\n" "\n" "        # Number of messages that may be sent by one processor on receipt of the token\n" "        max_messages:   20\n" "\n" "        # Stagger sending the node join messages by 1..send_join ms\n" "        send_join: 45\n" "\n" "        # Limit generated nodeids to 31-bits (positive signed integers)\n" "        clear_node_high_bit: yes\n" "\n" "        # Disable encryption\n" "        secauth:        off\n" "\n" "        # How many threads to use for encryption/decryption\n" "        threads:           0\n" "\n" "        # Optionally assign a fixed node id (integer)\n" "        # nodeid:         1234\n" "\n" "        interface {\n" "                ringnumber: 0\n" "\n" "                # The following values need to be set based on your environment\n" "                bindnetaddr: 192.168.122.0\n" "                mcastaddr: 226.94.1.1\n" "                mcastport: 4000\n" "        }\n" "}\n" "\n" "logging {\n" "        debug: off\n" "        fileline: off\n" "        to_syslog: yes\n" "        to_stderr: off\n" "        syslog_facility: daemon\n" "        timestamp: on\n" "}\n" "\n" "amf {\n" "        mode: disabled\n" "}\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ap-Reading.pot b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot index 5bd05f0b58..00f5286b94 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Reading.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot @@ -1,54 +1,54 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:26\n" +"PO-Revision-Date: 2010-12-21T11:01:26\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Further Reading" msgstr "" #. Tag: para #, no-c-format msgid "Project Website" msgstr "" #. Tag: para #, no-c-format msgid "http://www.clusterlabs.org" msgstr "" #. Tag: para #, no-c-format msgid "Cluster Commands" msgstr "" #. Tag: para #, no-c-format msgid "A comprehensive guide to cluster commands has been written by Novell and can be found at:" msgstr "" #. Tag: para #, no-c-format msgid "http://www.novell.com/documentation/sles11/book_sleha/index.html?page=/documentation/sles11/book_sleha/data/book_sleha.html" msgstr "" #. Tag: para #, no-c-format msgid "Corosync" msgstr "" #. Tag: para #, no-c-format msgid "http://www.corosync.org" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Author_Group.pot b/doc/Clusters_from_Scratch/pot/Author_Group.pot index d88c25fa0c..716df800eb 100644 --- a/doc/Clusters_from_Scratch/pot/Author_Group.pot +++ b/doc/Clusters_from_Scratch/pot/Author_Group.pot @@ -1,29 +1,49 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:26\n" +"PO-Revision-Date: 2010-12-21T11:01:26\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: firstname #, no-c-format msgid "Andrew" msgstr "" #. Tag: surname #, no-c-format msgid "Beekhof" msgstr "" #. Tag: orgname #, no-c-format msgid "Red Hat" msgstr "" +#. Tag: contrib +#, no-c-format +msgid "Primary author" +msgstr "" + +#. Tag: firstname +#, no-c-format +msgid "Raoul" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Scarazzini" +msgstr "" + +#. Tag: contrib +#, no-c-format +msgid "Italian translation" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Book_Info.pot b/doc/Clusters_from_Scratch/pot/Book_Info.pot index 3be1253028..4af2b80f71 100644 --- a/doc/Clusters_from_Scratch/pot/Book_Info.pot +++ b/doc/Clusters_from_Scratch/pot/Book_Info.pot @@ -1,74 +1,74 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:26\n" +"PO-Revision-Date: 2010-12-21T11:01:26\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Clusters from Scratch" msgstr "" #. Tag: subtitle #, no-c-format msgid "Creating Active/Passive and Active/Active Clusters on Fedora" msgstr "" #. Tag: productname #, no-c-format msgid "Pacemaker" msgstr "" #. Tag: para #, no-c-format msgid "The purpose of this document is to provide a start-to-finish guide to building an example active/passive cluster with Pacemaker and show how it can be converted to an active/active one." msgstr "" #. Tag: para #, no-c-format msgid "The example cluster will use:" msgstr "" #. Tag: para #, no-c-format msgid "&DISTRO; &DISTRO_VERSION; as the host operating system" msgstr "" #. Tag: para #, no-c-format msgid "Corosync to provide messaging and membership services," msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker to perform resource management," msgstr "" #. Tag: para #, no-c-format msgid "DRBD as a cost-effective alternative to shared storage," msgstr "" #. Tag: para #, no-c-format msgid "GFS2 as the cluster filesystem (in active/active mode)" msgstr "" #. Tag: para #, no-c-format msgid "The crm shell for displaying the configuration and making changes" msgstr "" #. Tag: para #, no-c-format msgid "Given the graphical nature of the Fedora install process, a number of screenshots are included. However the guide is primarily composed of commands, the reasons for executing them and their expected outputs." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot b/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot index e3b20a59af..beb1d28039 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot @@ -1,852 +1,852 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Conversion to Active/Active" msgstr "" #. Tag: title #, no-c-format msgid "Requirements" msgstr "" #. Tag: para #, no-c-format msgid "The primary requirement for an Active/Active cluster is that the data required for your services are available, simultaneously, on both machines. Pacemaker makes no requirement on how this is achieved, you could use a SAN if you had one available, however since DRBD supports multiple Primaries, we can also use that." msgstr "" #. Tag: para #, no-c-format msgid "The only hitch is that we need to use a cluster-aware filesystem (and the one we used earlier with DRBD, ext4, is not one of those). Both OCFS2 and GFS2 are supported, however here we will use GFS2 which comes with &DISTRO; &DISTRO_VERSION; ." msgstr "" #. Tag: title #, no-c-format msgid "Install a Cluster Filesystem - GFS2" msgstr "" #. Tag: para #, no-c-format msgid "The first thing to do is install gfs2-utils on each machine." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# yum install -y gfs2-utils gfs-pcmk\n" "Setting up Install Process\n" "Resolving Dependencies\n" -"--> Running transaction check\n" -"---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" -"--> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"--> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"--> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"--> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"--> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"--> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" -"---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated\n" -"--> Running transaction check\n" -"---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated\n" -"---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" -"---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated\n" -"--> Finished Dependency Resolution\n" +"--> Running transaction check\n" +"---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Running transaction check\n" +"---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "===========================================================================================\n" " Package                Arch               Version                   Repository        Size\n" "===========================================================================================\n" "Installing:\n" " gfs-pcmk               x86_64             3.0.5-2.fc12              custom           101 k\n" " gfs2-utils             x86_64             3.0.5-2.fc12              custom           208 k\n" "Installing for dependencies:\n" " clusterlib             x86_64             3.0.5-2.fc12              custom            65 k\n" " dlm-pcmk               x86_64             3.0.5-2.fc12              custom            93 k\n" " openaislib             x86_64             1.1.0-1.fc12              fedora            76 k\n" "\n" "Transaction Summary\n" "===========================================================================================\n" "Install       5 Package(s)\n" "Upgrade       0 Package(s)\n" "\n" "Total download size: 541 k\n" "Downloading Packages:\n" "(1/5): clusterlib-3.0.5-2.fc12.x86_64.rpm                                |  65 kB     00:00\n" "(2/5): dlm-pcmk-3.0.5-2.fc12.x86_64.rpm                                  |  93 kB     00:00\n" "(3/5): gfs-pcmk-3.0.5-2.fc12.x86_64.rpm                                  | 101 kB     00:00\n" "(4/5): gfs2-utils-3.0.5-2.fc12.x86_64.rpm                                | 208 kB     00:00\n" "(5/5): openaislib-1.1.0-1.fc12.x86_64.rpm                                |  76 kB     00:00\n" "-------------------------------------------------------------------------------------------\n" "Total                                                           992 kB/s | 541 kB     00:00\n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Finished Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" "  Installing     : clusterlib-3.0.5-2.fc12.x86_64                                       1/5 \n" "  Installing     : openaislib-1.1.0-1.fc12.x86_64                                       2/5 \n" "  Installing     : dlm-pcmk-3.0.5-2.fc12.x86_64                                         3/5 \n" "  Installing     : gfs-pcmk-3.0.5-2.fc12.x86_64                                         4/5 \n" "  Installing     : gfs2-utils-3.0.5-2.fc12.x86_64                                       5/5 \n" "\n" "Installed:\n" "  gfs-pcmk.x86_64 0:3.0.5-2.fc12                    gfs2-utils.x86_64 0:3.0.5-2.fc12\n" "\n" "Dependency Installed:\n" "  clusterlib.x86_64 0:3.0.5-2.fc12   dlm-pcmk.x86_64 0:3.0.5-2.fc12 \n" "  openaislib.x86_64 0:1.1.0-1.fc12  \n" "\n" "Complete!\n" "[root@pcmk-1 x86_64]#\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Setup Pacemaker-GFS2 Integration" msgstr "" #. Tag: para #, no-c-format msgid "GFS2 needs two services to be running, the first is the user-space interface to the kernel’s distributed lock manager (DLM). The DLM is used to co-ordinate which node(s) can access a given file (and when) and integrates with Pacemaker to obtain node membership The list of nodes the cluster considers to be available information and fencing capabilities." msgstr "" #. Tag: para #, no-c-format msgid "The second service is GFS2’s own control daemon which also integrates with Pacemaker to obtain node membership data." msgstr "" #. Tag: title #, no-c-format msgid "Add the DLM service" msgstr "" #. Tag: para #, no-c-format msgid "The DLM control daemon needs to run on all active cluster nodes, so we will use the shells interactive mode to create a cloned resource." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new stack-glue\n" "INFO: stack-glue shadow CIB created\n" "crm(stack-glue)# configure primitive dlm ocf:pacemaker:controld op monitor interval=120s\n" "crm(stack-glue)# configure clone dlm-clone dlm meta interleave=true\n" "crm(stack-glue)# configure show xml\n" "crm(stack-glue)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4"\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -" op monitor interval="120s"\n" +" op monitor interval=\"120s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone dlm-clone dlm \\\n" -" meta interleave="true"\n" +" meta interleave=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "" msgstr "" #. Tag: para #, no-c-format msgid "TODO: Explain the meaning of the interleave option" msgstr "" #. Tag: para #, no-c-format msgid "Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(stack-glue)# cib commit stack-glue\n" -"INFO: commited 'stack-glue' shadow CIB to the cluster\n" +"INFO: commited 'stack-glue' shadow CIB to the cluster\n" "crm(stack-glue)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Sep  3 20:49:54 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "5 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "Clone Set: dlm-clone\n" " Started: [ pcmk-2 pcmk-1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Add the GFS2 service" msgstr "" #. Tag: para #, no-c-format msgid "Once the DLM is active, we can add the GFS2 control daemon." msgstr "" #. Tag: para #, no-c-format msgid "Use the crm shell to create the gfs-control cluster resource:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new gfs-glue --force\n" "INFO: gfs-glue shadow CIB created\n" -"crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args="-g 0" op monitor interval=120s\n" +"crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args=\"-g 0\" op monitor interval=120s\n" "crm(gfs-glue)# configure clone gfs-clone gfs-control meta interleave=true\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Now ensure Pacemaker only starts the gfs-control service on nodes that also have a copy of the dlm service (created above) already running" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone\n" "crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone\n" "" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(gfs-glue)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4"\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" " params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -" op monitor interval="120s"\n" +" op monitor interval=\"120s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -" meta interleave="true"\n" +" meta interleave=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "crm(gfs-glue)# cib commit gfs-glue\n" -"INFO: commited 'gfs-glue' shadow CIB to the cluster\n" +"INFO: commited 'gfs-glue' shadow CIB to the cluster\n" "crm(gfs-glue)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Sep  3 20:49:54 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "6 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "Clone Set: dlm-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "Clone Set: gfs-clone\n" " Started: [ pcmk-2 pcmk-1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-1\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Create a GFS2 Filesystem" msgstr "" #. Tag: title #, no-c-format msgid "Preparation" msgstr "" #. Tag: para #, no-c-format msgid "Before we do anything to the existing partition, we need to make sure it is unmounted. We do this by tell the cluster to stop the WebFS resource. This will ensure that other resources (in our case, Apache) using WebFS are not only stopped, but stopped in the correct order." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Sep  3 15:18:06 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "6 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "Clone Set: dlm-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "Clone Set: gfs-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Note that both Apache and WebFS have been stopped." msgstr "" #. Tag: title #, no-c-format msgid "Create and Populate an GFS2 Partition" msgstr "" #. Tag: para #, no-c-format msgid "Now that the cluster stack and integration pieces are running smoothly, we can create an GFS2 partition." msgstr "" #. Tag: para #, no-c-format msgid "This will erase all previous content stored on the DRBD device. Ensure you have a copy of any important data." msgstr "" #. Tag: para #, no-c-format msgid "We need to specify a number of additional parameters when creating a GFS2 partition." msgstr "" #. Tag: para #, no-c-format msgid "First we must use the -p option to specify that we want to use the the Kernel’s DLM. Next we use -j to indicate that it should reserve enough space for two journals (one per node accessing the filesystem)." msgstr "" #. Tag: para #, no-c-format msgid "Lastly, we use -t to specify the lock table name. The format for this field is clustername:fsname. For the fsname, we just need to pick something unique and descriptive and since we haven’t specified a clustername yet, we will use the default (pcmk)." msgstr "" #. Tag: para #, no-c-format msgid "To specify an alternate name for the cluster, locate the service section containing “name: pacemaker” in corosync.conf and insert the following line anywhere inside the block:" msgstr "" #. Tag: para #, no-c-format msgid "clustername: myname" msgstr "" #. Tag: para #, no-c-format msgid "Do this on each node in the cluster and be sure to restart them before continuing." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1\n" "[root@pcmk-1 ~]# mkfs.gfs2 -t pcmk:web -p lock_dlm -j 2 /dev/vdb \n" "This will destroy any data on /dev/vdb.\n" "It appears to contain: data\n" "\n" "Are you sure you want to proceed? [y/n] y\n" "\n" "Device:                    /dev/vdb\n" "Blocksize:                 4096\n" "Device Size                1.00 GB (131072 blocks)\n" "Filesystem Size:           1.00 GB (131070 blocks)\n" "Journals:                  2\n" "Resource Groups:           2\n" -"Locking Protocol:          "lock_dlm"\n" -"Lock Table:                "pcmk:web"\n" +"Locking Protocol:          \"lock_dlm\"\n" +"Lock Table:                \"pcmk:web\"\n" "UUID:                      6B776F46-177B-BAF8-2C2B-292C0E078613\n" "\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Then (re)populate the new filesystem with data (web pages). For now we’ll create another variation on our home page." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" -"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" -"<html>\n" -"<body>My Test Site - GFS2</body>\n" -"</html>\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - GFS2</body>\n" +"</html>\n" "END\n" "[root@pcmk-1 ~]# umount /dev/drbd1\n" "[root@pcmk-1 ~]# drbdadm verify wwwdata\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Reconfigure the Cluster for GFS2" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new GFS2\n" "INFO: GFS2 shadow CIB created\n" "crm(GFS2)# configure delete WebFS\n" -"crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Now that we’ve recreated the resource, we also need to recreate all the constraints that used it. This is because the shell will automatically remove any constraints that referenced WebFS." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(GFS2)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" "crm(GFS2)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "crm(GFS2)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "crm(GFS2)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" "crm(GFS2)# configure colocation WebFS-with-gfs-control INFINITY: WebFS gfs-clone\n" "crm(GFS2)# configure order start-WebFS-after-gfs-control mandatory: gfs-clone WebFS\n" "crm(GFS2)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -" params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +" params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(GFS2)# cib commit GFS2\n" -"INFO: commited 'GFS2' shadow CIB to the cluster\n" +"INFO: commited 'GFS2' shadow CIB to the cluster\n" "crm(GFS2)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Sep  3 20:49:54 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "6 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "Clone Set: dlm-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "Clone Set: gfs-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Reconfigure Pacemaker for Active/Active" msgstr "" #. Tag: para #, no-c-format msgid "Almost everything is in place. Recent versions of DRBD are capable of operating in Primary/Primary mode and the filesystem we’re using is cluster aware. All we need to do now is reconfigure the cluster to take advantage of this." msgstr "" #. Tag: para #, no-c-format msgid "This will involve a number of changes, so we’ll again use interactive mode." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "[root@pcmk-1 ~]# cib new active\n" " " msgstr "" #. Tag: para #, no-c-format msgid "There’s no point making the services active on both locations if we can’t reach them, so lets first clone the IP address. Cloned IPaddr2 resources use an iptables rule to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster how many instances of the clone we want (one “request bucket” for each node) and that if all other nodes fail, then the remaining node should hold all of them. Otherwise the requests would be simply discarded." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# configure clone WebIP ClusterIP  \\\n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now we must tell the ClusterIP how to decide which requests are processed by which hosts. To do this we must specify the clusterip_hash parameter." msgstr "" #. Tag: para #, no-c-format msgid "Open the ClusterIP resource" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# configure edit  ClusterIP" msgstr "" #. Tag: para #, no-c-format msgid "And add the following to the params line" msgstr "" #. Tag: screen #, no-c-format -msgid "clusterip_hash="sourceip"" +msgid "clusterip_hash=\"sourceip\"" msgstr "" #. Tag: para #, no-c-format msgid "So that the complete definition looks like:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" -"        params ip="192.168.122.101" cidr_netmask="32" clusterip_hash="sourceip" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" clusterip_hash=\"sourceip\" \\\n" +"        op monitor interval=\"30s\"\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Here is the full transcript" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm \n" "crm(live)# cib new active\n" "INFO: active shadow CIB created\n" "crm(active)# configure clone WebIP ClusterIP  \\\n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "crm(active)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" -"        op monitor interval="30s"\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone WebIP ClusterIP \\\n" " meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSite WebIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: WebIP WebSite\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Notice how any constraints that referenced ClusterIP have been updated to use WebIP instead. This is an additional benefit of using the crm shell." msgstr "" #. Tag: para #, no-c-format msgid "Next we need to convert the filesystem and Apache resources into clones. Again, the shell will automatically update any relevant constraints." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(active)# configure clone WebFSClone WebFS\n" "crm(active)# configure clone WebSiteClone WebSite\n" " " msgstr "" #. Tag: para #, no-c-format msgid "The last step is to tell the cluster that it is now allowed to promote both instances to be Primary (aka. Master)." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(active)# configure edit WebDataClone\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Change master-max to 2" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(active)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" -"        op monitor interval="30s"\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone WebFSClone WebFS\n" "clone WebIP ClusterIP  \\\n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "clone WebSiteClone WebSite\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" "colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" "colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSiteClone WebIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" "order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" "order apache-after-ip inf: WebIP WebSiteClone\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" " " msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(active)# cib commit active\n" -"INFO: commited 'active' shadow CIB to the cluster\n" +"INFO: commited 'active' shadow CIB to the cluster\n" "crm(active)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Sep  3 21:37:27 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "6 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 pcmk-2 ]\n" "Clone Set: dlm-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "Clone Set: gfs-clone\n" "        Started: [ pcmk-2 pcmk-1 ]\n" "Clone Set: WebIP\n" " Started: [ pcmk-1 pcmk-2 ]\n" "Clone Set: WebFSClone\n" " Started: [ pcmk-1 pcmk-2 ]\n" "Clone Set: WebSiteClone\n" " Started: [ pcmk-1 pcmk-2 ]\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Testing Recovery" msgstr "" #. Tag: para #, no-c-format msgid "TODO: Put one node into standby to demonstrate failover" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot index b64e1278a3..6fe8efa690 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot @@ -1,502 +1,502 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Creating an Active/Passive Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Exploring the Existing Configuration" msgstr "" #. Tag: para #, no-c-format msgid "When Pacemaker starts up, it automatically records the number and details of the nodes in the cluster as well as which stack is being used and the version of Pacemaker being used." msgstr "" #. Tag: para #, no-c-format msgid "This is what the base configuration should look like." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "For those that are not of afraid of XML, you can see the raw configuration by appending “xml” to the previous command." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# crm configure show xml\n" -"<?xml version="1.0" ?>\n" -"<cib admin_epoch="0" crm_feature_set="3.0.1" dc-uuid="pcmk-1" epoch="13" have-quorum="1" num_updates="7" validate-with="pacemaker-1.0">\n" -"  <configuration>\n" -"    <crm_config>\n" -"      <cluster_property_set id="cib-bootstrap-options">\n" -"        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7"/>\n" -"        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>\n" -"        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/>\n" -"      </cluster_property_set>\n" -"    </crm_config>\n" -"    <rsc_defaults/>\n" -"    <op_defaults/>\n" -"    <nodes>\n" -"      <node id="pcmk-1" type="normal" uname="pcmk-1"/>\n" -"      <node id="pcmk-2" type="normal" uname="pcmk-2"/>\n" -"    </nodes>\n" -"    <resources/>\n" -"    <constraints/>\n" -"  </configuration>\n" -"</cib>\n" +"<?xml version=\"1.0\" ?>\n" +"<cib admin_epoch=\"0\" crm_feature_set=\"3.0.1\" dc-uuid=\"pcmk-1\" epoch=\"13\" have-quorum=\"1\" num_updates=\"7\" validate-with=\"pacemaker-1.0\">\n" +"  <configuration>\n" +"    <crm_config>\n" +"      <cluster_property_set id=\"cib-bootstrap-options\">\n" +"        <nvpair id=\"cib-bootstrap-options-dc-version\" name=\"dc-version\" value=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-cluster-infrastructure\" name=\"cluster-infrastructure\" value=\"openais\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-expected-quorum-votes\" name=\"expected-quorum-votes\" value=\"2\"/>\n" +"      </cluster_property_set>\n" +"    </crm_config>\n" +"    <rsc_defaults/>\n" +"    <op_defaults/>\n" +"    <nodes>\n" +"      <node id=\"pcmk-1\" type=\"normal\" uname=\"pcmk-1\"/>\n" +"      <node id=\"pcmk-2\" type=\"normal\" uname=\"pcmk-2\"/>\n" +"    </nodes>\n" +"    <resources/>\n" +"    <constraints/>\n" +"  </configuration>\n" +"</cib>\n" "" msgstr "" #. Tag: para #, no-c-format msgid "The last XML you’ll see in this document" msgstr "" #. Tag: para #, no-c-format msgid "Before we make any changes, its a good idea to check the validity of the configuration." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm_verify -L\n" "crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" "crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" "crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" "Errors found during check: config not valid\n" "  -V may provide more details\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "As you can see, the tool has found some errors." msgstr "" #. Tag: para #, no-c-format msgid "In order to guarantee the safety of your data If the data is corrupt, there is little point in continuing to make it available , Pacemaker ships with STONITH A common node fencing mechanism. Used to ensure data integrity by powering off “bad” nodes. enabled. However it also knows when no STONITH configuration has been supplied and reports this as a problem (since the cluster would not be able to make progress if a situation requiring node fencing arose)." msgstr "" #. Tag: para #, no-c-format msgid "For now, we will disable this feature and configure it later in the Configuring STONITH section. It is important to note that the use of STONITH is highly encouraged, turning it off tells the cluster to simply pretend that failed nodes are safely powered off. Some vendors will even refuse to support clusters that have it disabled." msgstr "" #. Tag: para #, no-c-format msgid "To disable STONITH, we set the stonith-enabled cluster option to false." msgstr "" #. Tag: para #, no-c-format msgid "crm configure property stonith-enabled=false" msgstr "" #. Tag: para #, no-c-format msgid "crm_verify -L" msgstr "" #. Tag: para #, no-c-format msgid "With the new cluster option set, the configuration is now valid." msgstr "" #. Tag: title #, no-c-format msgid "Adding a Resource" msgstr "" #. Tag: para #, no-c-format msgid "The first thing we should do is configure an IP address. Regardless of where the cluster service(s) are running, we need a consistent address to contact them on. Here I will choose and add 192.168.122.101 as the floating address, give it the imaginative name ClusterIP and tell the cluster to check that its running every 30 seconds." msgstr "" #. Tag: para #, no-c-format msgid "The chosen address must not be one already associated with a physical node" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" "        params ip=192.168.122.101 cidr_netmask=32 \\ \n" "        op monitor interval=30s\n" "" msgstr "" #. Tag: para #, no-c-format msgid "The other important piece of information here is ocf:heartbeat:IPaddr2. This tells Pacemaker three things about the resource you want to add. The first field, ocf, is the standard to which the resource script conforms to and where to find it. The second field is specific to OCF resources and tells the cluster which namespace to find the resource script in, in this case heartbeat. The last field indicates the name of the resource script." msgstr "" #. Tag: para #, no-c-format msgid "To obtain a list of the available resource classes, run" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm ra classes\n" "heartbeat\n" "lsb\n" "ocf / heartbeat pacemaker\n" "stonith\n" "" msgstr "" #. Tag: para #, no-c-format msgid "To then find all the OCF resource agents provided by Pacemaker and Heartbeat, run" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm ra list ocf pacemaker\n" "ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld\n" "ping           pingd          \n" "[root@pcmk-1 ~]# crm ra list ocf heartbeat\n" "AoEtarget              AudibleAlarm           ClusterMon             Delay\n" "Dummy                  EvmsSCC                Evmsd                  Filesystem\n" "ICP                    IPaddr                 IPaddr2                IPsrcaddr\n" "LVM                    LinuxSCSI              MailTo                 ManageRAID\n" "ManageVE               Pure-FTPd              Raid1                  Route\n" "SAPDatabase            SAPInstance            SendArp                ServeRAID\n" "SphinxSearchDaemon     Squid                  Stateful               SysInfo\n" "VIPArip                VirtualDomain          WAS                    WAS6\n" "WinPopup               Xen                    Xinetd                 anything\n" "apache                 db2                    drbd                   eDir88\n" "iSCSILogicalUnit       iSCSITarget            ids                    iscsi\n" "ldirectord             mysql                  mysql-proxy            nfsserver\n" "oracle                 oralsnr                pgsql                  pingd\n" "portblock              rsyncd                 scsi2reservation       sfex\n" "tomcat                 vmware                 \n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Now verify that the IP resource has been added and display the cluster’s status to see that it is now active." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -" params ip="192.168.122.101" cidr_netmask="32" \\\n" -" op monitor interval="30s"\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" +" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +" op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 15:23:48 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Perform a Failover" msgstr "" #. Tag: para #, no-c-format msgid "Being a high-availability cluster, we should test failover of our new resource before moving on." msgstr "" #. Tag: para #, no-c-format msgid "First, find the node on which the IP address is running." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm resource status ClusterIP\n" "resource ClusterIP is running on: pcmk-1\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Shut down Corosync on that machine." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" "Stopping Corosync Cluster Engine (corosync): [ OK ]\n" "Waiting for services to unload: [ OK ]\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Once Corosync is no longer running, go to the other node and check the cluster status with crm_mon." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 15:27:35 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition WITHOUT quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-2 ]\n" "OFFLINE: [ pcmk-1 ]\n" "" msgstr "" #. Tag: para #, no-c-format msgid "There are three things to notice about the cluster’s current state. The first is that, as expected, pcmk-1 is now offline. However we can also see that ClusterIP isn’t running anywhere!" msgstr "" #. Tag: title #, no-c-format msgid "Quorum and Two-Node Clusters" msgstr "" #. Tag: para #, no-c-format msgid "This is because the cluster no longer has quorum, as can be seen by the text “partition WITHOUT quorum” (emphasised green) in the output above. In order to reduce the possibility of data corruption, Pacemaker’s default behavior is to stop all resources if the cluster does not have quorum." msgstr "" #. Tag: para #, no-c-format msgid "A cluster is said to have quorum when more than half the known or expected nodes are online, or for the mathematically inclined, whenever the following equation is true:" msgstr "" #. Tag: para #, no-c-format -msgid "total_nodes - 1 < 2 * active_nodes" +msgid "total_nodes - 1 < 2 * active_nodes" msgstr "" #. Tag: para #, no-c-format msgid "Therefore a two-node cluster only has quorum when both nodes are running, which is no longer the case for our cluster. This would normally make the creation of a two-node cluster pointless Actually some would argue that two-node clusters are always pointless, but that is an argument for another time. , however it is possible to control how Pacemaker behaves when quorum is lost. In particular, we can tell the cluster to simply ignore quorum altogether." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure property no-quorum-policy=ignore\n" "[root@pcmk-1 ~]# crm configure show \n" "node pcmk-1\n" "node pcmk-2\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "After a few moments, the cluster will start the IP address on the remaining node. Note that the cluster still does not have quorum." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 15:30:18 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition WITHOUT quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "Online: [ pcmk-2 ]\n" "OFFLINE: [ pcmk-1 ]\n" "\n" "ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Now simulate node recovery by restarting the cluster stack on pcmk-1 and check the cluster’s status." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# /etc/init.d/corosync start\n" "Starting Corosync Cluster Engine (corosync): [ OK ] \n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 15:32:13 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Here we see something that some may consider surprising, the IP is back running at its original location!" msgstr "" #. Tag: title #, no-c-format msgid "Prevent Resources from Moving after Recovery" msgstr "" #. Tag: para #, no-c-format msgid "In some circumstances it is highly desirable to prevent healthy resources from being moved around the cluster. Move resources almost always requires a period of downtime and for complex services like Oracle databases, this period can be quite long." msgstr "" #. Tag: para #, no-c-format msgid "To address this, Pacemaker has the concept of resource stickiness which controls how much a service prefers to stay running where it is. You may like to think of it as the “cost” of any downtime. By default, Pacemaker assumes there is zero cost associated with moving resources and will do so to achieve “optimal It should be noted that Pacemaker’s definition of optimal may not always agree with that of a human’s. The order in which Pacemaker processes lists of resources and nodes create implicit preferences (required in order to create a stabile solution) in situations where the administrator had not explicitly specified some. ” resource placement. We can specify a different stickiness for every resource, but it is often sufficient to change the default." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm configure rsc_defaults resource-stickiness=100\n" "[root@pcmk-2 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -" resource-stickiness="100"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +" resource-stickiness=\"100\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "If we now retry the failover test, we see that as expected ClusterIP still moves to pcmk-2 when pcmk-1 is taken offline." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" "Stopping Corosync Cluster Engine (corosync):               [  OK  ]\n" "Waiting for services to unload:                            [  OK  ]\n" "[root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1\n" "============\n" "Last updated: Fri Aug 28 15:39:38 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition WITHOUT quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-2 ]\n" "OFFLINE: [ pcmk-1 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "" msgstr "" #. Tag: para #, no-c-format msgid "However when we bring pcmk-1 back online, ClusterIP now remains running on pcmk-2." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# /etc/init.d/corosync start\n" "Starting Corosync Cluster Engine (corosync): [ OK ]\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 15:41:23 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "1 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Apache.pot b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot index 6efcc489d9..940736fd88 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Apache.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot @@ -1,566 +1,566 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Apache - Adding More Services" msgstr "" #. Tag: para #, no-c-format msgid "Now that we have a basic but functional active/passive two-node cluster, we’re ready to add some real services. We’re going to start with Apache because its a feature of many clusters and relatively simple to configure." msgstr "" #. Tag: title #, no-c-format msgid "Installation" msgstr "" #. Tag: para #, no-c-format msgid "Before continuing, we need to make sure Apache is installed on both hosts." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@ppcmk-1 ~]# yum install -y httpd\n" "Setting up Install Process\n" "Resolving Dependencies\n" -"--> Running transaction check\n" -"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n" -"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n" -"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n" -"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n" -"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" -"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" -"--> Running transaction check\n" -"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n" -"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n" -"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n" -"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n" -"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n" -"--> Finished Dependency Resolution\n" +"--> Running transaction check\n" +"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Running transaction check\n" +"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "=======================================================================================\n" " Package               Arch             Version                Repository         Size\n" "=======================================================================================\n" "Installing:\n" " httpd               x86_64           2.2.13-2.fc12            rawhide           735 k\n" "Installing for dependencies:\n" " apr                 x86_64           1.3.9-2.fc12             rawhide           117 k\n" " apr-util            x86_64           1.3.9-2.fc12             rawhide            84 k\n" " apr-util-ldap       x86_64           1.3.9-2.fc12             rawhide            15 k\n" " httpd-tools         x86_64           2.2.13-2.fc12            rawhide            63 k\n" " mailcap             noarch           2.1.30-1.fc12            rawhide            25 k\n" "\n" "Transaction Summary\n" "=======================================================================================\n" "Install       6 Package(s)\n" "Upgrade       0 Package(s)\n" "\n" "Total download size: 1.0 M\n" "Downloading Packages:\n" "(1/6): apr-1.3.9-2.fc12.x86_64.rpm                                   | 117 kB     00:00     \n" "(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm                             |  84 kB     00:00     \n" "(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm                         |  15 kB     00:00     \n" "(4/6): httpd-2.2.13-2.fc12.x86_64.rpm                               | 735 kB     00:00     \n" "(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm                         |  63 kB     00:00     \n" "(6/6): mailcap-2.1.30-1.fc12.noarch.rpm                             |  25 kB     00:00     \n" "----------------------------------------------------------------------------------------\n" "Total                                                       875 kB/s | 1.0 MB     00:01     \n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Finished Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" "  Installing     : apr-1.3.9-2.fc12.x86_64                                         1/6 \n" "  Installing     : apr-util-1.3.9-2.fc12.x86_64                                     2/6 \n" "  Installing     : apr-util-ldap-1.3.9-2.fc12.x86_64                               3/6 \n" "  Installing     : httpd-tools-2.2.13-2.fc12.x86_64                                 4/6 \n" "  Installing     : mailcap-2.1.30-1.fc12.noarch                                     5/6 \n" "  Installing     : httpd-2.2.13-2.fc12.x86_64                                       6/6 \n" "\n" "Installed:\n" "  httpd.x86_64 0:2.2.13-2.fc12                                                         \n" "\n" "Dependency Installed:\n" "  apr.x86_64 0:1.3.9-2.fc12            apr-util.x86_64 0:1.3.9-2.fc12\n" "  apr-util-ldap.x86_64 0:1.3.9-2.fc12  httpd-tools.x86_64 0:2.2.13-2.fc12\n" "  mailcap.noarch 0:2.1.30-1.fc12  \n" "\n" "Complete!\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Also, we need the wget tool in order for the cluster to be able to check the status of the Apache server." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# yum install -y wget\n" "Setting up Install Process\n" "Resolving Dependencies\n" -"--> Running transaction check\n" -"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n" -"--> Finished Dependency Resolution\n" +"--> Running transaction check\n" +"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "===========================================================================================\n" " Package        Arch             Version                      Repository               Size\n" "===========================================================================================\n" "Installing:\n" " wget         x86_64          1.11.4-5.fc12                   rawhide                393 k\n" "\n" "Transaction Summary\n" "===========================================================================================\n" "Install       1 Package(s)\n" "Upgrade       0 Package(s)\n" "\n" "Total download size: 393 k\n" "Downloading Packages:\n" "wget-1.11.4-5.fc12.x86_64.rpm                                            | 393 kB     00:00     \n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Finished Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" "  Installing     : wget-1.11.4-5.fc12.x86_64                                            1/1 \n" "\n" "Installed:\n" "  wget.x86_64 0:1.11.4-5.fc12\n" "\n" "Complete!\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Preparation" msgstr "" #. Tag: para #, no-c-format msgid "First we need to create a page for Apache to serve up. On Fedora the default Apache docroot is /var/www/html, so we’ll create an index file there." msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html\n" -" <html>\n" -" <body>My Test Site - pcmk-1</body>\n" -" </html>\n" +"[root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-1</body>\n" +" </html>\n" " END\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "For the moment, we will simplify things by serving up only a static site and manually sync the data between the two nodes. So run the command again on pcmk-2." msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html\n" -" <html>\n" -" <body>My Test Site - pcmk-2</body>\n" -" </html>\n" +"[root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-2</body>\n" +" </html>\n" " END\n" "[root@pcmk-2 ~]#\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Enable the Apache status URL" msgstr "" #. Tag: para #, no-c-format msgid "In order to monitor the health of your Apache instance, and recover it if it fails, the resource agent used by Pacemaker assumes the server-status URL is available. Look for the following in /etc/httpd/conf/httpd.conf and make sure it is not disabled or commented out:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"<Location /server-status>\n" +"<Location /server-status>\n" " SetHandler server-status\n" " Order deny,allow\n" " Deny from all\n" " Allow from 127.0.0.1\n" -"</Location>\n" +"</Location>\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Update the Configuration" msgstr "" #. Tag: para #, no-c-format msgid "At this point, Apache is ready to go, all that needs to be done is to add it to the cluster. Lets call the resource WebSite. We need to use an OCF script called apache in the heartbeat namespace Compare the key used here ocf:heartbeat:apache with the one we used earlier for the IP address: ocf:heartbeat:IPaddr2 , the only required parameter is the path to the main Apache configuration file and we’ll tell the cluster to check once a minute that apache is still running." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -" params configfile="/etc/httpd/conf/httpd.conf" \\\n" -" op monitor interval="1min"\n" +" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +" op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "After a short delay, we should see the cluster start apache" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 16:12:49 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "2 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Wait a moment, the WebSite resource isn’t running on the same host as our IP address!" msgstr "" #. Tag: title #, no-c-format msgid "Ensuring Resources Run on the Same Host" msgstr "" #. Tag: para #, no-c-format msgid "To reduce the load on any one machine, Pacemaker will generally try to spread the configured resources across the cluster nodes. However we can tell the cluster that two resources are related and need to run on the same host (or not at all). Here we instruct the cluster that WebSite can only run on the host that ClusterIP is active on. If ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "colocation website-with-ip inf: WebSite ClusterIP\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 16:14:34 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "2 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Controlling Resource Start/Stop Ordering" msgstr "" #. Tag: para #, no-c-format msgid "When Apache starts, it binds to the available IP addresses. It doesn’t know about any addresses we add afterwards, so not only do they need to run on the same node, but we need to make sure ClusterIP is already active before we start WebSite. We do this by adding an ordering constraint. We need to give it a name (chose something descriptive like apache-after-ip), indicate that its mandatory (so that any recovery for ClusterIP will also trigger recovery of WebSite) and list the two resources in the order we need them to start." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure order apache-after-ip mandatory: ClusterIP WebSite\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order apache-after-ip inf: ClusterIP WebSite\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Specifying a Preferred Location" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker does not rely on any sort of hardware symmetry between nodes, so it may well be that one machine is more powerful than the other. In such cases it makes sense to host the resources there if it is available. To do this we create a location constraint. Again we give it a descriptive name (prefer-pcmk-1), specify the resource we want to run there (WebSite), how badly we’d like it to run there (we’ll use 50 for now, but in a two-node situation almost any value above 0 will do) and the host’s name." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure location prefer-pcmk-1 WebSite 50: pcmk-1\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 16:17:35 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "2 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Wait a minute, the resources are still on pcmk-2!" msgstr "" #. Tag: para #, no-c-format msgid "Even though we now prefer pcmk-1 over pcmk-2, that preference is (intentionally) less than the resource stickiness (how much we preferred not to have unnecessary downtime)." msgstr "" #. Tag: para #, no-c-format msgid "To see the current placement scores, you can use a tool called ptest" msgstr "" #. Tag: para #, no-c-format msgid "ptest -sL" msgstr "" #. Tag: para #, no-c-format msgid "Include output" msgstr "" #. Tag: para #, no-c-format msgid "There is a way to force them to move though..." msgstr "" #. Tag: title #, no-c-format msgid "Manually Moving Resources Around the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "There are always times when an administrator needs to override the cluster and force resources to move to a specific location. Underneath we use location constraints like the one we created above, happily you don’t need to care. Just provide the name of the resource and the intended location, we’ll do the rest." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm resource move WebSite pcmk-1\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 16:19:24 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "2 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" "Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n" "For the curious, we can see the effect of this command by examining the configuration\n" "crm configure show\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "location cli-prefer-WebSite WebSite \\\n" -" rule $id="cli-prefer-rule-WebSite" inf: #uname eq pcmk-1\n" +" rule $id=\"cli-prefer-rule-WebSite\" inf: #uname eq pcmk-1\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Highlighted is the automated constraint used to move the resources to pcmk-1" msgstr "" #. Tag: title #, no-c-format msgid "Giving Control Back to the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "Once we’ve finished whatever activity that required us to move the resources to pcmk-1, in our case nothing, we can then allow the cluster to resume normal operation with the unmove command. Since we previously configured a default stickiness, the resources will remain on pcmk-1." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm resource unmove WebSite\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" -"        expected-quorum-votes="2" \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" -"        resource-stickiness="100"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Note that the automated constraint is now gone. If we check the cluster status, we can also see that as expected the resources are still active on pcmk-1." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Fri Aug 28 16:20:53 2009\n" "Stack: openais\n" "Current DC: pcmk-2 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "2 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" " ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" " WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Installation.pot b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot index b78c0f3db0..d7ea09d8a2 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Installation.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot @@ -1,986 +1,986 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Installation" msgstr "" #. Tag: title #, no-c-format msgid "OS Installation" msgstr "" #. Tag: para #, no-c-format msgid "Detailed instructions for installing Fedora are available at http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/ in a number of languages. The abbreviated version is as follows..." msgstr "" #. Tag: para #, no-c-format msgid "Point your browser to http://fedoraproject.org/en/get-fedora-all, locate the Install Media section and download the install DVD that matches your hardware." msgstr "" #. Tag: para #, no-c-format msgid "Burn the disk image to a DVD http://docs.fedoraproject.org/readme-burning-isos/en-US.html and boot from it. Or use the image to boot a virtual machine as I have done here. After clicking through the welcome screen, select your language and keyboard layout http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Welcome" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Good choice" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Storage Devices" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Storage Devices" msgstr "" #. Tag: para #, no-c-format msgid "Assign your machine a host name. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-networkconfig-fedora.html I happen to control the clusterlabs.org domain name, so I will use that here." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Hostname" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Choose a hostname" msgstr "" #. Tag: para #, no-c-format msgid "You will then be prompted to indicate the machine’s physical location and to supply a root password. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-account_configuration.html " msgstr "" #. Tag: para #, no-c-format -msgid "Now select where you want Fedora installed. http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html As I don’t care about any existing data, I will accept the default and allow Fedora to use the complete drive. However I want to reserve some space for DRBD, so I'll check the Review and modify partitioning layout box." +msgid "Now select where you want Fedora installed. http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html As I don’t care about any existing data, I will accept the default and allow Fedora to use the complete drive. However I want to reserve some space for DRBD, so I'll check the Review and modify partitioning layout box." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Installation Type" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Choose an installation type" msgstr "" #. Tag: para #, no-c-format -msgid "By default, Fedora will give all the space to the / (aka. root) partition. Wel'll take some back so we can use DRBD." +msgid "By default, Fedora will give all the space to the / (aka. root) partition. Wel'll take some back so we can use DRBD." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Default Partitioning" msgstr "" #. Tag: para #, no-c-format msgid "The finalized partition layout should look something like the diagram below." msgstr "" #. Tag: para #, no-c-format msgid "If you plan on following the DRBD or GFS2 portions of this guide, you should reserve at least 1Gb of space on each machine from which to create a shared volume." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Customize Partitioning" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Create a partition to use (later) for website data" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Bootloader" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Unless you have a strong reason not to, accept the default bootloader location" msgstr "" #. Tag: para #, no-c-format -msgid "Next choose which software should be installed. Change the selection to Web Server since we plan on using Apache. Don't enable updates yet, we'll do that (and install any extra software we need) later. After you click next, Fedora will begin installing." +msgid "Next choose which software should be installed. Change the selection to Web Server since we plan on using Apache. Don't enable updates yet, we'll do that (and install any extra software we need) later. After you click next, Fedora will begin installing." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Software" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Software selection" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Installing" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Go grab something to drink, this may take a while" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Installation Complete" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Stage 1, completed" msgstr "" #. Tag: para #, no-c-format msgid "Once the node reboots, follow the on screen instructions http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/ch-firstboot.html to create a system user and configure the time." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - First Boot" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Create Non-privileged User" msgstr "" #. Tag: caption #, no-c-format -msgid "Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon" +msgid "Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon" msgstr "" #. Tag: para #, no-c-format msgid "It is highly recommended to enable NTP on your cluster nodes. Doing so ensures all nodes agree on the current time and makes reading log files significantly easier." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Date and Time" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Enable NTP to keep the times on all your nodes consistent" msgstr "" #. Tag: para #, no-c-format msgid "Click through the next screens until you reach the login window. Click on the user you created and supply the password you indicated earlier." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Customize Networking" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Click here to configure networking" msgstr "" #. Tag: para #, no-c-format msgid "Do not accept the default network settings. Cluster machines should never obtain an ip address via DHCP. Here I will use the internal addresses for the clusterlab.org network." msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Specify Network Preferences" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Specify network settings for your machine, never choose DHCP" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Activate Networking" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Click the big green button to activate your changes" msgstr "" #. Tag: title #, no-c-format msgid "Fedora Installation - Bring up the Terminal" msgstr "" #. Tag: caption #, no-c-format msgid "Fedora Installation: Down to business, fire up the command line" msgstr "" #. Tag: para #, no-c-format msgid "That was the last screenshot, from here on in we’re going to be working from the terminal." msgstr "" #. Tag: title #, no-c-format msgid "Cluster Software Installation" msgstr "" #. Tag: para #, no-c-format -msgid "Go to the terminal window you just opened and switch to the super user (aka. "root") account with the su command. You will need to supply the password you entered earlier during the installation process." +msgid "Go to the terminal window you just opened and switch to the super user (aka. \"root\") account with the su command. You will need to supply the password you entered earlier during the installation process." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[beekhof@pcmk-1 ~]$ su -\n" "Password:\n" "[root@pcmk-1 ~]#\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Note that the username (the text before the @ symbol) now indicates we’re running as the super user “root”." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# ip addr\n" -"1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n" +"1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n" " link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n" " inet 127.0.0.1/8 scope host lo\n" " inet6 ::1/128 scope host \n" " valid_lft forever preferred_lft forever\n" -"2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n" +"2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n" " link/ether 00:0c:29:6f:e1:58 brd ff:ff:ff:ff:ff:ff\n" " inet 192.168.9.41/24 brd 192.168.9.255 scope global eth0\n" " inet6 ::20c:29ff:fe6f:e158/64 scope global dynamic \n" " valid_lft 2591667sec preferred_lft 604467sec\n" " inet6 2002:57ae:43fc:0:20c:29ff:fe6f:e158/64 scope global dynamic \n" " valid_lft 2591990sec preferred_lft 604790sec\n" " inet6 fe80::20c:29ff:fe6f:e158/64 scope link \n" " valid_lft forever preferred_lft forever\n" "[root@pcmk-1 ~]# ping -c 1 www.google.com\n" "PING www.l.google.com (74.125.39.99) 56(84) bytes of data.\n" "64 bytes from fx-in-f99.1e100.net (74.125.39.99): icmp_seq=1 ttl=56 time=16.7 ms\n" "\n" "--- www.l.google.com ping statistics ---\n" "1 packets transmitted, 1 received, 0% packet loss, time 20ms\n" "rtt min/avg/max/mdev = 16.713/16.713/16.713/0.000 ms\n" "[root@pcmk-1 ~]# /sbin/chkconfig network on\n" "[root@pcmk-1 ~]# \n" " " msgstr "" #. Tag: title #, no-c-format msgid "Security Shortcuts" msgstr "" #. Tag: para #, no-c-format msgid "To simplify this guide and focus on the aspects directly connected to clustering, we will now disable the machine’s firewall and SELinux installation. Both of these actions create significant security issues and should not be performed on machines that will be exposed to the outside world." msgstr "" #. Tag: para #, no-c-format msgid "TODO: Create an Appendix that deals with (at least) re-enabling the firewall." msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# sed -i.bak "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" "[root@pcmk-1 ~]# /sbin/chkconfig --del iptables\n" "[root@pcmk-1 ~]# service iptables stop\n" "iptables: Flushing firewall rules: [ OK ]\n" "iptables: Setting chains to policy ACCEPT: filter [ OK ]\n" "iptables: Unloading modules: [ OK ]\n" " " msgstr "" #. Tag: para #, no-c-format msgid "You will need to reboot for the SELinux changes to take effect. Otherwise you will see something like this when you start corosync:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync "getattr" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" -"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync "getattr" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Install the Cluster Software" msgstr "" #. Tag: para #, no-c-format msgid "Since version 12, Fedora comes with recent versions of everything you need, so simply fire up the shell and run:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora.repo\n" -"[root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora-updates.repo\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora.repo\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora-updates.repo\n" "[root@pcmk-1 ~]# yum install -y pacemaker corosync\n" "Loaded plugins: presto, refresh-packagekit\n" "fedora/metalink | 22 kB 00:00 \n" "fedora-debuginfo/metalink | 16 kB 00:00 \n" "fedora-debuginfo | 3.2 kB 00:00 \n" "fedora-debuginfo/primary_db | 1.4 MB 00:04 \n" "fedora-source/metalink | 22 kB 00:00 \n" "fedora-source | 3.2 kB 00:00 \n" "fedora-source/primary_db | 3.0 MB 00:05 \n" "updates/metalink | 26 kB 00:00 \n" "updates | 2.6 kB 00:00 \n" "updates/primary_db | 1.1 kB 00:00 \n" "updates-debuginfo/metalink | 18 kB 00:00 \n" "updates-debuginfo | 2.6 kB 00:00 \n" "updates-debuginfo/primary_db | 1.1 kB 00:00 \n" "updates-source/metalink | 25 kB 00:00 \n" "updates-source | 2.6 kB 00:00 \n" "updates-source/primary_db | 1.1 kB 00:00 \n" "Setting up Install Process\n" "Resolving Dependencies\n" -"--> Running transaction check\n" -"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" -"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" -"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" -"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" -"--> Running transaction check\n" -"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" -"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" -"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" -"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" -"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" -"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" -"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" -"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" -"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" -"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" -"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" -"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" -"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" -"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" -"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" -"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" -"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" -"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" -"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" -"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" -"--> Running transaction check\n" -"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" -"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" -"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" -"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" -"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" -"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" -"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" -"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" -"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" -"--> Running transaction check\n" -"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" -"--> Finished Dependency Resolution\n" +"--> Running transaction check\n" +"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" +"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" +"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" +"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" +"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" +"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" +"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" +"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" +"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" +"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" +"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" +"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" +"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" +"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" +"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" +"--> Running transaction check\n" +"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" " " msgstr "" #. Tag: screen #, no-c-format msgid "\n" "==========================================================================================\n" " Package Arch Version Repository Size\n" "==========================================================================================\n" "Installing:\n" " corosync x86_64 1.2.1-1.fc13 fedora 136 k\n" " pacemaker x86_64 1.1.1-1.fc13 fedora 543 k\n" "Installing for dependencies:\n" " OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k\n" " PyXML x86_64 0.8.4-17.fc13 fedora 906 k\n" " cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k\n" " cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k\n" " corosynclib x86_64 1.2.1-1.fc13 fedora 145 k\n" " heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k\n" " heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k\n" " libesmtp x86_64 1.0.4-12.fc12 fedora 54 k\n" " libibverbs x86_64 1.1.3-4.fc13 fedora 42 k\n" " libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k\n" " libnet x86_64 1.1.4-3.fc12 fedora 49 k\n" " librdmacm x86_64 1.0.10-2.fc13 fedora 22 k\n" " lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k\n" " net-snmp x86_64 1:5.5-12.fc13 fedora 295 k\n" " net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M\n" " openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k\n" " pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k\n" " perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k\n" " resource-agents x86_64 3.0.10-1.fc13 fedora 357 k\n" "\n" "Transaction Summary\n" "=========================================================================================\n" "Install 21 Package(s)\n" "Upgrade 0 Package(s)\n" "\n" "Total download size: 5.7 M\n" "Installed size: 20 M\n" "Downloading Packages:\n" "Setting up and reading Presto delta metadata\n" "updates-testing/prestodelta | 164 kB 00:00 \n" "fedora/prestodelta | 150 B 00:00 \n" "Processing delta metadata\n" "Package(s) data still to download: 5.7 M\n" "(1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 \n" "(2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 \n" "(3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 \n" "(4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 \n" "(5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 \n" "(6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 \n" "(7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 \n" "(8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 \n" "(9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 \n" "(10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 \n" "(11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 \n" "(12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 \n" "(13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 \n" "(14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 \n" "(15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 \n" "(16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 \n" "(17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 \n" "(18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 \n" "(19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 \n" "(20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 \n" "(21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 \n" "----------------------------------------------------------------------------------------\n" "Total 539 kB/s | 5.7 MB 00:10 \n" "warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY\n" "fedora/gpgkey | 3.2 kB 00:00 ... \n" -"Importing GPG key 0xE8E40FDE "Fedora (13) <fedora@fedoraproject.org%gt;" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" +"Importing GPG key 0xE8E40FDE \"Fedora (13) <fedora@fedoraproject.org%gt;\" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" " " msgstr "" #. Tag: screen #, no-c-format msgid "\n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" " Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 \n" " Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 \n" " Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 \n" " Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 \n" " Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 \n" " Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 \n" " Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 \n" " Installing : corosync-1.2.1-1.fc13.x86_64 8/21 \n" " Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 \n" " Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 \n" " Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 \n" " Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 \n" " Installing : libnet-1.1.4-3.fc12.x86_64 13/21 \n" " Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 \n" " Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 \n" " Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 \n" " Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 \n" " Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 \n" " Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 \n" " Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 \n" " Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 \n" "\n" "Installed:\n" " corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 \n" "\n" "Dependency Installed:\n" " OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 \n" " PyXML.x86_64 0:0.8.4-17.fc13 \n" " cluster-glue.x86_64 0:1.0.2-1.fc13 \n" " cluster-glue-libs.x86_64 0:1.0.2-1.fc13 \n" " corosynclib.x86_64 0:1.2.1-1.fc13 \n" " heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" " heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" " libesmtp.x86_64 0:1.0.4-12.fc12 \n" " libibverbs.x86_64 0:1.1.3-4.fc13 \n" " libmlx4.x86_64 0:1.0.1-5.fc13 \n" " libnet.x86_64 0:1.1.4-3.fc12 \n" " librdmacm.x86_64 0:1.0.10-2.fc13 \n" " lm_sensors-libs.x86_64 0:3.1.2-2.fc13 \n" " net-snmp.x86_64 1:5.5-12.fc13 \n" " net-snmp-libs.x86_64 1:5.5-12.fc13 \n" " openhpi-libs.x86_64 0:2.14.1-3.fc13 \n" " pacemaker-libs.x86_64 0:1.1.1-1.fc13 \n" " perl-TimeDate.noarch 1:1.20-1.fc13 \n" " resource-agents.x86_64 0:3.0.10-1.fc13 \n" "\n" "Complete!\n" "[root@pcmk-1 ~]# \n" " " msgstr "" #. Tag: title #, no-c-format msgid "Before You Continue" msgstr "" #. Tag: para #, no-c-format msgid "Repeat the Installation steps so that you have 2 Fedora nodes with the cluster software installed." msgstr "" #. Tag: para #, no-c-format msgid "For the purposes of this document, the additional node is called pcmk-2 with address 192.168.122.42." msgstr "" #. Tag: title #, no-c-format msgid "Setup" msgstr "" #. Tag: title #, no-c-format msgid "Finalize Networking" msgstr "" #. Tag: para #, no-c-format msgid "Confirm that you can communicate with the two new nodes:" msgstr "" #. Tag: title #, no-c-format msgid "Verify Connectivity by IP address" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" " ping -c 3 192.168.122.102\n" "[root@pcmk-1 ~]# ping -c 3 192.168.122.102\n" "PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data.\n" "64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms\n" "64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms\n" "64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms\n" "\n" "--- 192.168.122.102 ping statistics ---\n" "3 packets transmitted, 3 received, 0% packet loss, time 2000ms\n" "rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now we need to make sure we can communicate with the machines by their name. If you have a DNS server, add additional entries for the three machines. Otherwise, you’ll need to add the machines to /etc/hosts . Below are the entries for my cluster nodes:" msgstr "" #. Tag: title #, no-c-format msgid "Set up /etc/hosts entries" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" " grep pcmk /etc/hosts\n" "[root@pcmk-1 ~]# grep pcmk /etc/hosts\n" "192.168.122.101 pcmk-1.clusterlabs.org pcmk-1\n" "192.168.122.102 pcmk-2.clusterlabs.org pcmk-2\n" " " msgstr "" #. Tag: para #, no-c-format msgid "We can now verify the setup by again using ping:" msgstr "" #. Tag: title #, no-c-format msgid "Verify Connectivity by Hostname" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" " ping -c 3 pcmk-2\n" "[root@pcmk-1 ~]# ping -c 3 pcmk-2\n" "PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data.\n" "64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms\n" "64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms\n" "64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms\n" "\n" "--- pcmk-2.clusterlabs.org ping statistics ---\n" "3 packets transmitted, 3 received, 0% packet loss, time 2001ms\n" "rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Configure SSH" msgstr "" #. Tag: para #, no-c-format msgid "SSH is a convenient and secure way to copy files and perform commands remotely. For the purposes of this guide, we will create a key without a password (using the -N “” option) so that we can perform remote actions without being prompted." msgstr "" #. Tag: para #, no-c-format msgid "Unprotected SSH keys, those without a password, are not recommended for servers exposed to the outside world." msgstr "" #. Tag: para #, no-c-format msgid "Create a new key and allow anyone with that key to log in:" msgstr "" #. Tag: title #, no-c-format msgid "Creating and Activating a new SSH Key" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ""\n" +"[root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N \"\"\n" "Generating public/private dsa key pair.\n" "Your identification has been saved in /root/.ssh/id_dsa.\n" "Your public key has been saved in /root/.ssh/id_dsa.pub.\n" "The key fingerprint is:\n" "91:09:5c:82:5a:6a:50:08:4e:b2:0c:62:de:cc:74:44 root@pcmk-1.clusterlabs.org\n" "\n" -"The key's randomart image is:\n" +"The key's randomart image is:\n" "+--[ DSA 1024]----+\n" "|==.ooEo.. |\n" "|X O + .o o |\n" "| * A + |\n" "| + . |\n" "| . S |\n" "| |\n" "| |\n" "| |\n" "| |\n" "+-----------------+\n" "[root@pcmk-1 ~]# cp .ssh/id_dsa.pub .ssh/authorized_keys\n" "[root@pcmk-1 ~]#\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Install the key on the other nodes and test that you can now run commands remotely, without being prompted" msgstr "" #. Tag: title #, no-c-format msgid "Installing the SSH Key on Another Host" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" "[root@pcmk-1 ~]# scp -r .ssh pcmk-2:\n" -"The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" +"The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" "RSA key fingerprint is b1:2b:55:93:f1:d9:52:2b:0f:f2:8a:4e:ae:c6:7c:9a.\n" "Are you sure you want to continue connecting (yes/no)? yes\n" -"Warning: Permanently added 'pcmk-2,192.168.122.102' (RSA) to the list of known hosts.\n" -"root@pcmk-2's password: \n" +"Warning: Permanently added 'pcmk-2,192.168.122.102' (RSA) to the list of known hosts.\n" +"root@pcmk-2's password: \n" "id_dsa.pub 100% 616 0.6KB/s 00:00 \n" "id_dsa 100% 672 0.7KB/s 00:00 \n" "known_hosts 100% 400 0.4KB/s 00:00 \n" "authorized_keys 100% 616 0.6KB/s 00:00 \n" "[root@pcmk-1 ~]# ssh pcmk-2 -- uname -n\n" "pcmk-2\n" "[root@pcmk-1 ~]#\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Short Node Names" msgstr "" #. Tag: para #, no-c-format msgid "During installation, we filled in the machine’s fully qualifier domain name (FQDN) which can be rather long when it appears in cluster logs and status output. See for yourself how the machine identifies itself:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# uname -n\n" "pcmk-1.clusterlabs.org\n" "[root@pcmk-1 ~]# dnsdomainname \n" "clusterlabs.org\n" " " msgstr "" #. Tag: para #, no-c-format msgid "The output from the second command is fine, but we really don’t need the domain name included in the basic host details. To address this, we need to update /etc/sysconfig/network. This is what it should look like before we start." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" "NETWORKING=yes\n" "HOSTNAME=pcmk-1.clusterlabs.org\n" "GATEWAY=192.168.122.1\n" " " msgstr "" #. Tag: para #, no-c-format msgid "All we need to do now is strip off the domain name portion, which is stored elsewhere anyway." msgstr "" #. Tag: screen #, no-c-format -msgid "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" +msgid "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" msgstr "" #. Tag: para #, no-c-format msgid "Now confirm the change was successful. The revised file contents should look something like this." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" "NETWORKING=yes\n" "HOSTNAME=pcmk-1\n" "GATEWAY=192.168.122.1\n" " " msgstr "" #. Tag: para #, no-c-format msgid "However we’re not finished. The machine wont normally see the shortened host name until about it reboots, but we can force it to update." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# source /etc/sysconfig/network\n" "[root@pcmk-1 ~]# hostname $HOSTNAME\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now check the machine is using the correct names" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# uname -n\n" "pcmk-1\n" "[root@pcmk-1 ~]# dnsdomainname \n" "clusterlabs.org\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now repeat on pcmk-2." msgstr "" #. Tag: title #, no-c-format msgid "Configuring Corosync" msgstr "" #. Tag: para #, no-c-format msgid "Choose a port number and multi-cast http://en.wikipedia.org/wiki/Multicast address. http://en.wikipedia.org/wiki/Multicast_address " msgstr "" #. Tag: para #, no-c-format msgid "Be sure that the values you chose do not conflict with any existing clusters you might have. For advice on choosing a multi-cast address, see http://www.29west.com/docs/THPM/multicast-address-assignment.html " msgstr "" #. Tag: para #, no-c-format msgid "For this document, I have chosen port 4000 and used 226.94.1.1 as the multi-cast address." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# export ais_port=4000\n" "[root@pcmk-1 ~]# export ais_mcast=226.94.1.1\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Next we automatically determine the hosts address. By not using the full address, we make the configuration suitable to be copied to other nodes." msgstr "" #. Tag: screen #, no-c-format -msgid "[root@pcmk-1 ~]# export ais_addr=`ip addr | grep "inet " | tail -n 1 | awk '{print $4}' | sed s/255/0/`" +msgid "[root@pcmk-1 ~]# export ais_addr=`ip addr | grep \"inet \" | tail -n 1 | awk '{print $4}' | sed s/255/0/`" msgstr "" #. Tag: para #, no-c-format msgid "Display and verify the configuration options" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# env | grep ais_\n" "ais_mcast=226.94.1.1\n" "ais_port=4000\n" "ais_addr=192.168.122.0\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Once you’re happy with the chosen values, update the Corosync configuration" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf\n" -"[root@pcmk-1 ~]# sed -i.bak "s/.*mcastaddr:.*/mcastaddr:\\ $ais_mcast/g" /etc/corosync/corosync.conf\n" -"[root@pcmk-1 ~]# sed -i.bak "s/.*mcastport:.*/mcastport:\\ $ais_port/g" /etc/corosync/corosync.conf\n" -"[root@pcmk-1 ~]# sed -i.bak "s/.*bindnetaddr:.*/bindnetaddr:\\ $ais_addr/g" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastaddr:.*/mcastaddr:\\ $ais_mcast/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastport:.*/mcastport:\\ $ais_port/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*bindnetaddr:.*/bindnetaddr:\\ $ais_addr/g\" /etc/corosync/corosync.conf\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Finally, tell Corosync to start Pacemaker" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk\n" +"[root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk\n" "service {\n" " # Load the Pacemaker Cluster Resource Manager\n" " name: pacemaker\n" " ver: 0\n" "}\n" "END\n" " " msgstr "" #. Tag: para #, no-c-format msgid "The final configuration should look something like the sample in the appendix." msgstr "" #. Tag: title #, no-c-format msgid "Propagate the Configuration" msgstr "" #. Tag: para #, no-c-format msgid "Now we need to copy the changes so far to the other node:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done\n" "corosync.conf 100% 1528 1.5KB/s 00:00\n" "hosts 100% 281 0.3KB/s 00:00\n" "[root@pcmk-1 ~]#\n" " " msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Intro.pot b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot index 14fa8a7afa..6507b25169 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Intro.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot @@ -1,269 +1,269 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Read-Me-First" msgstr "" #. Tag: title #, no-c-format msgid "The Scope of this Document" msgstr "" #. Tag: para #, no-c-format msgid "The purpose of this document is to definitively explain the concepts used to configure Pacemaker. To achieve this best, it will focus exclusively on the XML syntax used to configure the CIB." msgstr "" #. Tag: para #, no-c-format msgid "For those that are allergic to XML, Pacemaker comes with a cluster shell and a Python based GUI exists, however these tools will not be covered at all in this document It is hoped however, that having understood the concepts explained here, that the functionality of these tools will also be more readily understood. , precisely because they hide the XML." msgstr "" #. Tag: para #, no-c-format msgid "Additionally, this document is NOT a step-by-step how-to guide for configuring a specific clustering scenario. Although such guides exist, the purpose of this document is to provide an understanding of the building blocks that can be used to construct any type of Pacemaker cluster." msgstr "" #. Tag: title #, no-c-format msgid "What Is Pacemaker?" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker is a cluster resource manager. It achieves maximum availability for your cluster services (aka. resources) by detecting and recovering from node and resource-level failures by making use of the messaging and membership capabilities provided by your preferred cluster infrastructure (either Corosync or Heartbeat)." msgstr "" #. Tag: para #, no-c-format -msgid "Pacemaker's key features include:" +msgid "Pacemaker's key features include:" msgstr "" #. Tag: para #, no-c-format msgid "Detection and recovery of node and service-level failures" msgstr "" #. Tag: para #, no-c-format msgid "Storage agnostic, no requirement for shared storage" msgstr "" #. Tag: para #, no-c-format msgid "Resource agnostic, anything that can be scripted can be clustered" msgstr "" #. Tag: para #, no-c-format msgid "Supports STONITH for ensuring data integrity" msgstr "" #. Tag: para #, no-c-format msgid "Supports large and small clusters" msgstr "" #. Tag: para #, no-c-format msgid "Supports both quorate and resource driven clusters" msgstr "" #. Tag: para #, no-c-format msgid "Supports practically any redundancy configuration" msgstr "" #. Tag: para #, no-c-format msgid "Automatically replicated configuration that can be updated from any node" msgstr "" #. Tag: para #, no-c-format msgid "Ability to specify cluster-wide service ordering, colocation and anti-colocation" msgstr "" #. Tag: para #, no-c-format msgid "Support for advanced services type" msgstr "" #. Tag: para #, no-c-format msgid "Clones: for services which need to be active on multiple nodes" msgstr "" #. Tag: para #, no-c-format msgid "Multi-state: for services with multiple modes (eg. master/slave, primary/secondary)" msgstr "" #. Tag: para #, no-c-format msgid "Unified, scriptable, cluster shell" msgstr "" #. Tag: title #, no-c-format msgid "Types of Pacemaker Clusters" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker makes no assumptions about your environment, this allows it to support practically any redundancy configuration including Active/Active, Active/Passive, N+1, N+M, N-to-1 and N-to-N." msgstr "" #. Tag: title #, no-c-format msgid "Active/Passive Redundancy" msgstr "" #. Tag: caption #, no-c-format msgid "Two-node Active/Passive clusters using Pacemaker and DRBD are a cost-effective solution for many High Availability situations." msgstr "" #. Tag: title #, no-c-format msgid "Shared Failover" msgstr "" #. Tag: caption #, no-c-format msgid "By supporting many nodes, Pacemaker can dramatically reduce hardware costs by allowing several active/passive clusters to be combined and share a common backup node" msgstr "" #. Tag: title #, no-c-format msgid "N to N Redundancy" msgstr "" #. Tag: caption #, no-c-format msgid "When shared storage is available, every node can potentially be used for failover. Pacemaker can even run multiple copies of services to spread out the workload." msgstr "" #. Tag: title #, no-c-format msgid "Pacemaker Architecture" msgstr "" #. Tag: para #, no-c-format msgid "At the highest level, the cluster is made up of three pieces:" msgstr "" #. Tag: para #, no-c-format msgid "Core cluster infrastructure providing messaging and membership functionality (illustrated in red)" msgstr "" #. Tag: para #, no-c-format msgid "Non-cluster aware components (illustrated in blue). In a Pacemaker cluster, these pieces include not only the scripts that knows how to start, stop and monitor resources, but also a local daemon that masks the differences between the different standards these scripts implement." msgstr "" #. Tag: para #, no-c-format msgid "A brain (illustrated in green) that processes and reacts to events from the cluster (nodes leaving or joining) and resources (eg. monitor failures) as well as configuration changes from the administrator. In response to all of these events, Pacemaker will compute the ideal state of the cluster and plot a path to achieve it. This may include moving resources, stopping nodes and even forcing them offline with remote power switches." msgstr "" #. Tag: title #, no-c-format msgid "Conceptual Stack Overview" msgstr "" #. Tag: caption #, no-c-format msgid "Conceptual overview of the cluster stack" msgstr "" #. Tag: para #, no-c-format -msgid "When combined with Corosync, Pacemaker also supports popular open source cluster filesystems Even though Pacemaker also supports Heartbeat, the filesystems need to use the stack for messaging and membership and Corosync seems to be what they're standardizing on. Technically it would be possible for them to support Heartbeat as well, however there seems little interest in this. Due to recent standardization within the cluster filesystem community, they make use of a common distributed lock manager which makes use of Corosync for its messaging capabilities and Pacemaker for its membership (which nodes are up/down) and fencing services." +msgid "When combined with Corosync, Pacemaker also supports popular open source cluster filesystems Even though Pacemaker also supports Heartbeat, the filesystems need to use the stack for messaging and membership and Corosync seems to be what they're standardizing on. Technically it would be possible for them to support Heartbeat as well, however there seems little interest in this. Due to recent standardization within the cluster filesystem community, they make use of a common distributed lock manager which makes use of Corosync for its messaging capabilities and Pacemaker for its membership (which nodes are up/down) and fencing services." msgstr "" #. Tag: title #, no-c-format msgid "The Pacemaker Stack" msgstr "" #. Tag: caption #, no-c-format msgid "The Pacemaker stack when running on Corosync" msgstr "" #. Tag: title #, no-c-format msgid "Internal Components" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker itself is composed of four key components (illustrated below in the same color scheme as the previous diagram):" msgstr "" #. Tag: para #, no-c-format msgid "CIB (aka. Cluster Information Base)" msgstr "" #. Tag: para #, no-c-format msgid "CRMd (aka. Cluster Resource Management daemon)" msgstr "" #. Tag: para #, no-c-format msgid "PEngine (aka. PE or Policy Engine)" msgstr "" #. Tag: para #, no-c-format msgid "STONITHd" msgstr "" #. Tag: caption #, no-c-format msgid "Subsystems of a Pacemaker cluster running on Corosync" msgstr "" #. Tag: para #, no-c-format -msgid "The CIB uses XML to represent both the cluster's configuration and current state of all resources in the cluster. The contents of the CIB are automatically kept in sync across the entire cluster and are used by the PEngine to compute the ideal state of the cluster and how it should be achieved." +msgid "The CIB uses XML to represent both the cluster's configuration and current state of all resources in the cluster. The contents of the CIB are automatically kept in sync across the entire cluster and are used by the PEngine to compute the ideal state of the cluster and how it should be achieved." msgstr "" #. Tag: para #, no-c-format msgid "This list of instructions is then fed to the DC (Designated Co-ordinator). Pacemaker centralizes all cluster decision making by electing one of the CRMd instances to act as a master. Should the elected CRMd process, or the node it is on, fail... a new one is quickly established." msgstr "" #. Tag: para #, no-c-format -msgid "The DC carries out the PEngine's instructions in the required order by passing them to either the LRMd (Local Resource Management daemon) or CRMd peers on other nodes via the cluster messaging infrastructure (which in turn passes them on to their LRMd process)." +msgid "The DC carries out the PEngine's instructions in the required order by passing them to either the LRMd (Local Resource Management daemon) or CRMd peers on other nodes via the cluster messaging infrastructure (which in turn passes them on to their LRMd process)." msgstr "" #. Tag: para #, no-c-format msgid "The peer nodes all report the results of their operations back to the DC and based on the expected and actual results, will either execute any actions that needed to wait for the previous one to complete, or abort processing and ask the PEngine to recalculate the ideal cluster state based on the unexpected results." msgstr "" #. Tag: para #, no-c-format msgid "In some cases, it may be necessary to power off nodes in order to protect shared data or complete resource recovery. For this Pacemaker comes with STONITHd. STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and is usually implemented with a remote power switch. In Pacemaker, STONITH devices are modeled as resources (and configured in the CIB) to enable them to be easily monitored for failure, however STONITHd takes care of understanding the STONITH topology such that its clients simply request a node be fenced and it does the rest." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot index 5ca07253fe..d59501adff 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot @@ -1,655 +1,655 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Replicated Storage with DRBD" msgstr "" #. Tag: para #, no-c-format msgid "Even if you’re serving up static websites, having to manually synchronize the contents of that website to all the machines in the cluster is not ideal. For dynamic websites, such as a wiki, its not even an option. Not everyone care afford network-attached storage but somehow the data needs to be kept in sync. Enter DRBD which can be thought of as network based RAID-1. See http://www.drbd.org/ for more details." msgstr "" #. Tag: title #, no-c-format msgid "Install the DRBD Packages" msgstr "" #. Tag: para #, no-c-format msgid "Since its inclusion in the upstream 2.6.33 kernel, everything needed to use DRBD ships with &DISTRO; &DISTRO_VERSION;. All you need to do is install it:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# yum install -y drbd-pacemaker\n" "Loaded plugins: presto, refresh-packagekit\n" "Setting up Install Process\n" "Resolving Dependencies\n" -"--> Running transaction check\n" -"---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" -"--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" -"--> Running transaction check\n" -"---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" -"--> Finished Dependency Resolution\n" +"--> Running transaction check\n" +"---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" "\n" "Dependencies Resolved\n" "\n" "=================================================================================\n" " Package Arch Version Repository Size\n" "=================================================================================\n" "Installing:\n" " drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" "Installing for dependencies:\n" " drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" "\n" "Transaction Summary\n" "=================================================================================\n" "Install 2 Package(s)\n" "Upgrade 0 Package(s)\n" "\n" "Total download size: 184 k\n" "Installed size: 427 k\n" "Downloading Packages:\n" "Setting up and reading Presto delta metadata\n" "fedora/prestodelta | 1.7 kB 00:00 \n" "Processing delta metadata\n" "Package(s) data still to download: 184 k\n" "(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" "(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" "---------------------------------------------------------------------------------\n" "Total 45 kB/s | 184 kB 00:04 \n" "Running rpm_check_debug\n" "Running Transaction Test\n" "Transaction Test Succeeded\n" "Running Transaction\n" " Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" " Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" "\n" "Installed:\n" " drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" "\n" "Dependency Installed:\n" " drbd-utils.x86_64 0:8.3.7-2.fc13 \n" "\n" "Complete!\n" "[root@pcmk-1 ~]#\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Configure DRBD" msgstr "" #. Tag: para #, no-c-format msgid "Before we configure DRBD, we need to set aside some disk for it to use." msgstr "" #. Tag: title #, no-c-format msgid "Create A Partition for DRBD" msgstr "" #. Tag: para #, no-c-format msgid "If you have more than 1Gb free, feel free to use it. For this guide however, 1Gb is plenty of space for a single html file and sufficient for later holding the GFS2 metadata." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" -"  Logical volume "drbd-demo" created\n" +"  Logical volume \"drbd-demo\" created\n" "[root@pcmk-1 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Repeat this on the second node, be sure to use the same size partition." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-2 ~]# lvs\n" "  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  lv_root VolGroup -wi-ao   7.30G                                      \n" "  lv_swap VolGroup -wi-ao 500.00M                                      \n" "[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" -"  Logical volume "drbd-demo" created\n" +"  Logical volume \"drbd-demo\" created\n" "[root@pcmk-2 ~]# lvs\n" "  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" "  drbd-demo VolGroup -wi-a- 1.00G                                      \n" "  lv_root   VolGroup -wi-ao   7.30G                                      \n" "  lv_swap   VolGroup -wi-ao 500.00M\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Write the DRBD Config" msgstr "" #. Tag: para #, no-c-format msgid "There is no series of commands for build a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf" msgstr "" #. Tag: para #, no-c-format msgid "Detailed information on the directives used in this configuration (and other alternatives) is available from http://www.drbd.org/users-guide/ch-configure.html" msgstr "" #. Tag: para #, no-c-format msgid "Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "global { \n" "  usage-count yes; \n" "}\n" "common {\n" "  protocol C;\n" "}\n" "resource wwwdata {\n" "  meta-disk internal;\n" "  device    /dev/drbd1;\n" "  syncer {\n" "    verify-alg sha1;\n" "  }\n" "  net { \n" "    allow-two-primaries; \n" "  }\n" "  on pcmk-1 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.101:7789; \n" "  }\n" "  on \n" "pcmk-2 {\n" "    disk      /dev/mapper/VolGroup-drbd--demo;\n" "    address   192.168.122.102:7789; \n" "  }\n" "}\n" " " msgstr "" #. Tag: para #, no-c-format msgid "TODO: Explain the reason for the allow-two-primaries option" msgstr "" #. Tag: title #, no-c-format msgid "Initialize and Load DRBD" msgstr "" #. Tag: para #, no-c-format msgid "With the configuration in place, we can now perform the DRBD initialization" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" "md_offset 12578816\n" "al_offset 12546048\n" "bm_offset 12541952\n" "\n" "Found some data \n" -" ==> This might destroy existing data! <==\n" +" ==> This might destroy existing data! <==\n" "\n" "Do you want to proceed?\n" -"[need to type 'yes' to confirm] yes\n" +"[need to type 'yes' to confirm] yes\n" "\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now load the DRBD kernel module and confirm that everything is sane" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# modprobe drbd\n" "[root@pcmk-1 ~]# drbdadm up wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" "[root@pcmk-1 ~]# \n" "\n" "Repeat on the second node\n" "drbdadm --force create-md wwwdata \n" "modprobe drbd\n" "drbdadm up wwwdata\n" "cat /proc/drbd\n" "[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" "Writing meta data...\n" "initializing activity log\n" "NOT initialized bitmap\n" "New drbd meta data block successfully created.\n" "success\n" "[root@pcmk-2 ~]# modprobe drbd\n" "WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" "[root@pcmk-2 ~]# drbdadm up wwwdata\n" "[root@pcmk-2 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" "\n" " 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" "    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now we need to tell DRBD which set of data to use. Since both sides contain garbage, we can run the following on pcmk-1:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" "    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" -"        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" +"        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" "        finish: 0:00:37 speed: 240 (240) K/sec\n" "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.3.6 (api:88/proto:86-90)\n" "GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" " 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" "    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" " " msgstr "" #. Tag: para #, no-c-format msgid "pcmk-1 is now in the Primary state which allows it to be written to. Which means its a good point at which to create a filesystem and populate it with some data to serve up via our WebSite resource." msgstr "" #. Tag: title #, no-c-format msgid "Populate DRBD with Data" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" "mke2fs 1.41.4 (27-Jan-2009)\n" "Filesystem label=\n" "OS type: Linux\n" "Block size=1024 (log=0)\n" "Fragment size=1024 (log=0)\n" "3072 inodes, 12248 blocks\n" "612 blocks (5.00%) reserved for the super user\n" "First data block=1\n" "Maximum filesystem blocks=12582912\n" "2 block groups\n" "8192 blocks per group, 8192 fragments per group\n" "1536 inodes per group\n" "Superblock backups stored on blocks: \n" "        8193\n" "\n" "Writing inode tables: done                            \n" "Creating journal (1024 blocks): done\n" "Writing superblocks and filesystem accounting information: done\n" "\n" "This filesystem will be automatically checked every 26 mounts or\n" "180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" "\n" "Now mount the newly created filesystem so we can create our index file\n" "mount /dev/drbd1 /mnt/\n" -"cat <<-END >/mnt/index.html\n" -"<html>\n" -"<body>My Test Site - drbd</body>\n" -"</html>\n" +"cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - drbd</body>\n" +"</html>\n" "END\n" "umount /dev/drbd1\n" "[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" -"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" -"> <html>\n" -"> <body>My Test Site - drbd</body>\n" -"> </html>\n" -"> END\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"> <html>\n" +"> <body>My Test Site - drbd</body>\n" +"> </html>\n" +"> END\n" "[root@pcmk-1 ~]# umount /dev/drbd1\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster for DRBD" msgstr "" #. Tag: para #, no-c-format msgid "One handy feature of the crm shell is that you can use it in interactive mode to make several changes atomically." msgstr "" #. Tag: para #, no-c-format msgid "First we launch the shell. The prompt will change to indicate you’re in interactive mode." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "cib crm(live)#\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Next we must create a working copy or the current configuration. This is where all our changes will go. The cluster will not see any of them until we say its ok. Notice again how the prompt changes, this time to indicate that we’re no longer looking at the live cluster." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "cib crm(live)# cib new drbd\n" "INFO: drbd shadow CIB created\n" "crm(drbd)#\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Now we can create our DRBD clone and display the revised configuration." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" "        op monitor interval=60s\n" "crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" "        clone-max=2 clone-node-max=1 notify=true\n" "crm(drbd)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -" params drbd_resource="wwwdata" \\\n" -" op monitor interval="60s"\n" +" params drbd_resource=\"wwwdata\" \\\n" +" op monitor interval=\"60s\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" -" meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +" meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order apache-after-ip inf: ClusterIP WebSite\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Once we’re happy with the changes, we can tell the cluster to start using them and use crm_mon to check everything is functioning." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(drbd)# cib commit drbd\n" -"INFO: commited 'drbd' shadow CIB to the cluster\n" +"INFO: commited 'drbd' shadow CIB to the cluster\n" "crm(drbd)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 09:37:13 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "3 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Include details on adding a second DRBD resource" msgstr "" #. Tag: para #, no-c-format msgid "Now that DRBD is functioning we can configure a Filesystem resource to use it. In addition to the filesystem’s definition, we also need to tell the cluster where it can be located (only on the DRBD Primary) and when it is allowed to start (after the Primary was promoted)." msgstr "" #. Tag: para #, no-c-format msgid "Once again we’ll use the shell’s interactive mode" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm\n" "crm(live)# cib new fs\n" "INFO: fs shadow CIB created\n" "crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/mapper/VolGroup-drbd--demo" directory="/var/www/html" fstype="ext4"\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" " " msgstr "" #. Tag: para #, no-c-format msgid "We also need to tell the cluster that Apache needs to run on the same machine as the filesystem and that it must be active before Apache can start." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" "crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Time to review the updated configuration:" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4"\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" -"        params ip="192.168.122.101" cidr_netmask="32" \\\n" -"        op monitor interval="30s"\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "location prefer-pcmk-1 WebSite 50: pcmk-1\n" "colocation WebSite-with-WebFS inf: WebSite WebFS\n" "colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" "colocation website-with-ip inf: WebSite ClusterIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" "order WebSite-after-WebFS inf: WebFS WebSite\n" "order apache-after-ip inf: ClusterIP WebSite\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="false" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" " " msgstr "" #. Tag: para #, no-c-format msgid "After reviewing the new configuration, we again upload it and watch the cluster put it into effect." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "crm(fs)# cib commit fs\n" -"INFO: commited 'fs' shadow CIB to the cluster\n" +"INFO: commited 'fs' shadow CIB to the cluster\n" "crm(fs)# quit\n" "bye\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:08:44 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" "WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-1 ]\n" "        Slaves: [ pcmk-2 ]\n" "WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" " " msgstr "" #. Tag: title #, no-c-format msgid "Testing Migration" msgstr "" #. Tag: para #, no-c-format msgid "We could shut down the active node again, but another way to safely simulate recovery is to put the node into what is called “standby mode”. Nodes in this state tell the cluster that they are not allowed to run resources. Any resources found active there will be moved elsewhere. This feature can be particularly useful when updating the resources’ packages." msgstr "" #. Tag: para #, no-c-format msgid "Put the local node into standby mode and observe the cluster move all the resources to the other node. Note also that the node’s status will change to indicate that it can no longer host resources." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm node standby\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:09:57 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Node pcmk-1: standby\n" "Online: [ pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Stopped: [ WebData:1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Once we’ve done everything we needed to on pcmk-1 (in this case nothing, we just wanted to see the resources move), we can allow the node to be a full cluster member again." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm node online\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Tue Sep  1 10:13:25 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "4 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" "WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" "Master/Slave Set: WebDataClone\n" "        Masters: [ pcmk-2 ]\n" "        Slaves: [ pcmk-1 ]\n" "WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" " " msgstr "" #. Tag: para #, no-c-format msgid "Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot index 79931f4306..39c4d514c6 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot @@ -1,205 +1,205 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Configure STONITH" msgstr "" #. Tag: title #, no-c-format msgid "Why You Need STONITH" msgstr "" #. Tag: para #, no-c-format msgid "STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and it protects your data from being corrupted by rouge nodes or concurrent access." msgstr "" #. Tag: para #, no-c-format msgid "Just because a node is unresponsive, this doesn’t mean it isn’t accessing your data. The only way to be 100% sure that your data is safe, is to use STONITH so we can be certain that the node is truly offline, before allowing the data to be accessed from another node." msgstr "" #. Tag: para #, no-c-format msgid "STONITH also has a role to play in the event that a clustered service cannot be stopped. In this case, the cluster uses STONITH to force the whole node offline, thereby making it safe to start the service elsewhere." msgstr "" #. Tag: title #, no-c-format msgid "What STONITH Device Should You Use" msgstr "" #. Tag: para #, no-c-format msgid "It is crucial that the STONITH device can allow the cluster to differentiate between a node failure and a network one." msgstr "" #. Tag: para #, no-c-format msgid "The biggest mistake people make in choosing a STONITH device is to use remote power switch (such as many onboard IMPI controllers) that shares power with the node it controls. In such cases, the cluster cannot be sure if the node is really offline, or active and suffering from a network fault." msgstr "" #. Tag: para #, no-c-format msgid "Likewise, any device that relies on the machine being active (such as SSH-based “devices” used during testing) are inappropriate." msgstr "" #. Tag: title #, no-c-format msgid "Configuring STONITH" msgstr "" #. Tag: para #, no-c-format msgid "Find the correct driver: stonith -L" msgstr "" #. Tag: para #, no-c-format msgid "Since every device is different, the parameters needed to configure it will vary. To find out the parameters required by the device: stonith -t {type} -n" msgstr "" #. Tag: para #, no-c-format msgid "Hopefully the developers chose names that make sense, if not you can query for some additional information by finding an active cluster node and running:" msgstr "" #. Tag: screen #, no-c-format msgid "lrmadmin -M stonith {type} pacemaker\n" "" msgstr "" #. Tag: para #, no-c-format msgid "The output should be XML formatted text containing additional parameter descriptions" msgstr "" #. Tag: para #, no-c-format msgid "Create a file called stonith.xml containing a primitive resource with a class of stonith, a type of {type} and a parameter for each of the values returned in step 2" msgstr "" #. Tag: para #, no-c-format msgid "Create a clone from the primitive resource if the device can shoot more than one node and supports multiple simultaneous connections." msgstr "" #. Tag: para #, no-c-format msgid "Upload it into the CIB using cibadmin: cibadmin -C -o resources --xml-file stonith.xml" msgstr "" #. Tag: title #, no-c-format msgid "Example" msgstr "" #. Tag: para #, no-c-format msgid "Assuming we have an IBM BladeCenter containing our two nodes and the management interface is active on 192.168.122.31, then we would chose the external/ibmrsa driver in step 2 and obtain the following list of parameters" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "stonith -t external/ibmrsa -n\n" "[root@pcmk-1 ~]# stonith -t external/ibmrsa -n\n" "hostname  ipaddr  userid  passwd  type\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Assuming we know the username and password for the management interface, we would create a STONITH resource with the shell" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm \n" "crm(live)# cib new stonith\n" "INFO: stonith shadow CIB created\n" "crm(stonith)# configure primitive rsa-fencing stonith::external/ibmrsa \\\n" -"        params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" -"        op monitor interval="60s"\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" "crm(stonith)# configure clone Fencing rsa-fencing\n" "" msgstr "" #. Tag: para #, no-c-format msgid "And finally, since we disabled it earlier, we need to re-enable STONITH" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"crm(stonith)# configure property stonith-enabled="true"\n" +"crm(stonith)# configure property stonith-enabled=\"true\"\n" "crm(stonith)# configure show\n" "node pcmk-1\n" "node pcmk-2\n" "primitive WebData ocf:linbit:drbd \\\n" -"        params drbd_resource="wwwdata" \\\n" -"        op monitor interval="60s"\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" "primitive WebFS ocf:heartbeat:Filesystem \\\n" -"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" "primitive WebSite ocf:heartbeat:apache \\\n" -"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" -"        op monitor interval="1min"\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" "primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" "        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" -"        op monitor interval="30s"\n" +"        op monitor interval=\"30s\"\n" "primitive dlm ocf:pacemaker:controld \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive gfs-control ocf:pacemaker:controld \\\n" "   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" -"        op monitor interval="120s"\n" +"        op monitor interval=\"120s\"\n" "primitive rsa-fencing stonith::external/ibmrsa \\\n" -" params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" -" op monitor interval="60s"\n" +" params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +" op monitor interval=\"60s\"\n" "ms WebDataClone WebData \\\n" -"        meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" "clone Fencing rsa-fencing \n" "clone WebFSClone WebFS\n" "clone WebIP ClusterIP  \\\n" "        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" "clone WebSiteClone WebSite\n" "clone dlm-clone dlm \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "clone gfs-clone gfs-control \\\n" -"        meta interleave="true"\n" +"        meta interleave=\"true\"\n" "colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" "colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" "colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" "colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" "colocation website-with-ip inf: WebSiteClone WebIP\n" "order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" "order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" "order apache-after-ip inf: WebIP WebSiteClone\n" "order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" "order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" -"property $id="cib-bootstrap-options" \\\n" -"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" -"        cluster-infrastructure="openais" \\\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" "        expected-quorum-votes=”2” \\\n" -"        stonith-enabled="true" \\\n" -"        no-quorum-policy="ignore"\n" -"rsc_defaults $id="rsc-options" \\\n" +"        stonith-enabled=\"true\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" "        resource-stickiness=”100”\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Tools.pot b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot index 7e06feab7b..0d4784a236 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Tools.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot @@ -1,148 +1,148 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Using Pacemaker Tools" msgstr "" #. Tag: para #, no-c-format msgid "In the dark past, configuring Pacemaker required the administrator to read and write XML. In true UNIX style, there were also a number of different commands that specialized in different aspects of querying and updating the cluster." msgstr "" #. Tag: para #, no-c-format msgid "Since Pacemaker 1.0, this has all changed and we have an integrated, scriptable, cluster shell that hides all the messy XML scaffolding. It even allows you to queue up several changes at once and commit them atomically." msgstr "" #. Tag: para #, no-c-format msgid "Take some time to familiarize yourself with what it can do." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm --help\n" "\n" "usage:\n" "    crm [-D display_type]\n" "    crm [-D display_type] args\n" "    crm [-D display_type] [-f file]\n" "\n" "    Use crm without arguments for an interactive session.\n" -"    Supply one or more arguments for a "single-shot" use.\n" -"    Specify with -f a file which contains a script. Use '-' for\n" +"    Supply one or more arguments for a \"single-shot\" use.\n" +"    Specify with -f a file which contains a script. Use '-' for\n" "    standard input or use pipe/redirection.\n" "\n" "    crm displays cli format configurations using a color scheme\n" -"    and/or in uppercase. Pick one of "color" or "uppercase", or\n" -"    use "-D color,uppercase" if you want colorful uppercase.\n" -"    Get plain output by "-D plain". The default may be set in\n" +"    and/or in uppercase. Pick one of \"color\" or \"uppercase\", or\n" +"    use \"-D color,uppercase\" if you want colorful uppercase.\n" +"    Get plain output by \"-D plain\". The default may be set in\n" "    user preferences (options).\n" "\n" "Examples:\n" "\n" "    # crm -f stopapp2.cli\n" -"    # crm < stopapp2.cli\n" +"    # crm < stopapp2.cli\n" "    # crm resource stop global_www\n" "    # crm status\n" "" msgstr "" #. Tag: para #, no-c-format msgid "The primary tool for monitoring the status of the cluster is crm_mon (also available as crm status). It can be run in a variety of modes and has a number of output options. To find out about any of the tools that come with Pacemaker, simply invoke them with the --help option or consult the included man pages. Both sets of output are created from the tool, and so will always be in sync with each other and the tool itself." msgstr "" #. Tag: para #, no-c-format msgid "Additionally, the Pacemaker version and supported cluster stack(s) is available via the --version option." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# crm_mon --version\n" "crm_mon 1.0.5 for OpenAIS and Heartbeat (Build: 462f1569a43740667daf7b0f6b521742e9eb8fa7)\n" "\n" "Written by Andrew Beekhof\n" "[root@pcmk-1 ~]# crm_mon --help\n" -"crm_mon - Provides a summary of cluster's current state.\n" +"crm_mon - Provides a summary of cluster's current state.\n" "\n" "Outputs varying levels of detail in a number of different formats.\n" "\n" "Usage: crm_mon mode [options]\n" "Options:\n" " -?, --help                 This text\n" " -$, --version             Version information\n" " -V, --verbose             Increase debug output\n" "\n" "Modes:\n" " -h, --as-html=value        Write cluster status to the named file\n" " -w, --web-cgi             Web mode with output suitable for cgi\n" " -s, --simple-status       Display the cluster status once as a simple one line output (suitable for nagios)\n" " -S, --snmp-traps=value    Send SNMP traps to this station\n" " -T, --mail-to=value        Send Mail alerts to this user.  See also --mail-from, --mail-host, --mail-prefix\n" "\n" "Display Options:\n" " -n, --group-by-node       Group resources by node\n" " -r, --inactive             Display inactive resources\n" " -f, --failcounts           Display resource fail counts\n" " -o, --operations           Display resource operation history\n" " -t, --timing-details       Display resource operation history with timing details\n" "\n" "\n" "Additional Options:\n" " -i, --interval=value           Update frequency in seconds\n" " -1, --one-shot                 Display the cluster status once on the console and exit\n" " -N, --disable-ncurses          Disable the use of ncurses\n" " -d, --daemonize                Run in the background as a daemon\n" " -p, --pid-file=value           (Advanced) Daemon pid file location\n" " -F, --mail-from=value          Mail alerts should come from the named user\n" " -H, --mail-host=value          Mail alerts should be sent via the named host\n" " -P, --mail-prefix=value        Subjects for mail alerts should start with this string\n" " -E, --external-agent=value     A program to run when resource operations take place.\n" " -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone).\n" "\n" "Examples:\n" "\n" "Display the cluster´s status on the console with updates as they occur:\n" "        # crm_mon\n" "\n" "Display the cluster´s status on the console just once then exit:\n" "        # crm_mon\n" "\n" "Display your cluster´s status, group resources by node, and include inactive resources in the list:\n" "        # crm_mon --group-by-node --inactive\n" "\n" "Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:\n" "        # crm_mon --daemonize --as-html /path/to/docroot/filename.html\n" "\n" "Start crm_mon as a background daemon and have it send email alerts:\n" "        # crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com\n" "\n" "Start crm_mon as a background daemon and have it send SNMP alerts:\n" "        # crm_mon --daemonize --snmp-traps snmptrapd.example.com\n" "\n" "Report bugs to pacemaker@oss.clusterlabs.org\n" "" msgstr "" #. Tag: para #, no-c-format msgid "If the SNMP and/or email options are not listed, then Pacemaker was not built to support them. This may be by the choice of your distribution or the required libraries may not have been available. Please contact whoever supplied you with the packages for more details." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Verification.pot b/doc/Clusters_from_Scratch/pot/Ch-Verification.pot index afd76fb0af..1620d2a4db 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Verification.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Verification.pot @@ -1,155 +1,155 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Verify Cluster Installation" msgstr "" #. Tag: title #, no-c-format msgid "Verify Corosync Installation" msgstr "" #. Tag: para #, no-c-format msgid "Start Corosync on the first node" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# /etc/init.d/corosync start\n" "Starting Corosync Cluster Engine (corosync): [ OK ]\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Check the cluster started correctly and that an initial membership was able to form" msgstr "" #. Tag: screen #, no-c-format msgid "\n" -"[root@pcmk-1 ~]# grep -e "corosync.*network interface" -e "Corosync Cluster Engine" -e "Successfully read main configuration file" /var/log/messages\n" -"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service.\n" -"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'.\n" +"[root@pcmk-1 ~]# grep -e \"corosync.*network interface\" -e \"Corosync Cluster Engine\" -e \"Successfully read main configuration file\" /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service.\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'.\n" "[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" "Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" "Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" "" msgstr "" #. Tag: para #, no-c-format msgid "With one node functional, its now safe to start Corosync on the second node as well." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start\n" "Starting Corosync Cluster Engine (corosync): [ OK ]\n" "[root@pcmk-1 ~]#\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Check the cluster formed correctly" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" "Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" "Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" "Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" "" msgstr "" #. Tag: title #, no-c-format msgid "Verify Pacemaker Installation" msgstr "" #. Tag: para #, no-c-format msgid "Now that we have confirmed that Corosync is functional we can check the rest of the stack." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# grep pcmk_startup /var/log/messages\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9\n" "Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1\n" "" msgstr "" #. Tag: para #, no-c-format msgid "Now verify the Pacemaker processes have been started" msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# ps axf\n" "  PID TTY      STAT   TIME COMMAND\n" -"    2 ?        S<     0:00 [kthreadd]\n" -"    3 ?        S<     0:00  \\_ [migration/0]\n" +"    2 ?        S<     0:00 [kthreadd]\n" +"    3 ?        S<     0:00  \\_ [migration/0]\n" "... lots of processes ...\n" " 2166 pts/0    SLl    0:01 /usr/sbin/corosync\n" " 2172 ?        SLs    0:00  \\_ /usr/lib64/heartbeat/stonithd\n" " 2173 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/cib\n" " 2174 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/lrmd\n" " 2175 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/attrd\n" " 2176 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/pengine\n" " 2177 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/crmd\n" "" msgstr "" #. Tag: para #, no-c-format msgid "And finally, check for any ERRORs during startup, there shouldn’t be any, and display the cluster’s status." msgstr "" #. Tag: screen #, no-c-format msgid "\n" "[root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources\n" "[root@pcmk-1 ~]# crm_mon\n" "============\n" "Last updated: Thu Aug 27 16:54:55 2009\n" "Stack: openais\n" "Current DC: pcmk-1 - partition with quorum\n" "Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" "2 Nodes configured, 2 expected votes\n" "0 Resources configured.\n" "============\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot b/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot index f227297e4a..f7e9bac288 100644 --- a/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot +++ b/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot @@ -1,14 +1,14 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/doc/Clusters_from_Scratch/pot/Preface.pot b/doc/Clusters_from_Scratch/pot/Preface.pot index 9b559a2132..edda6f88ed 100644 --- a/doc/Clusters_from_Scratch/pot/Preface.pot +++ b/doc/Clusters_from_Scratch/pot/Preface.pot @@ -1,19 +1,19 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Preface" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Revision_History.pot b/doc/Clusters_from_Scratch/pot/Revision_History.pot index 960b6bab0f..3bd4a37844 100644 --- a/doc/Clusters_from_Scratch/pot/Revision_History.pot +++ b/doc/Clusters_from_Scratch/pot/Revision_History.pot @@ -1,34 +1,34 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2010-09-22T10:48:14\n" -"PO-Revision-Date: 2010-09-22T10:48:14\n" +"POT-Creation-Date: 2010-12-21T11:01:27\n" +"PO-Revision-Date: 2010-12-21T11:01:27\n" "Last-Translator: Automatically generated\n" "Language-Team: None\n" "MIME-Version: 1.0\n" "Content-Type: application/x-publican; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. Tag: title #, no-c-format msgid "Revision History" msgstr "" #. Tag: firstname #, no-c-format msgid "Andrew" msgstr "" #. Tag: surname #, no-c-format msgid "Beekhof" msgstr "" #. Tag: member #, no-c-format msgid "Import from Pages.app" msgstr ""