diff --git a/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot index 12fc354d9e..0774e362d0 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot @@ -1,536 +1,536 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "[root@pcmk-1 ~]# pcs resource\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 pcmk-2 ]\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: ClusterIP-clone [ClusterIP] (unique)\n" " ClusterIP:0 (ocf::heartbeat:IPaddr2): Started\n" " ClusterIP:1 (ocf::heartbeat:IPaddr2): Started\n" " Clone Set: WebFS-clone [WebFS]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: WebSite-clone [WebSite]\n" " Started: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource op defaults\n" "timeout: 240s" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs stonith\n" " impi-fencing (stonith:fence_ipmilan) Started" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP-clone then start WebSite-clone (kind:Mandatory)\n" " promote WebDataClone then start WebFS-clone (kind:Mandatory)\n" " start WebFS-clone then start WebSite-clone (kind:Mandatory)\n" " start dlm-clone then start WebFS-clone (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite-clone with ClusterIP-clone (score:INFINITY)\n" " WebFS-clone with WebDataClone (score:INFINITY) (with-rsc-role:Master)\n" " WebSite-clone with WebFS-clone (score:INFINITY)\n" " WebFS-clone with dlm-clone (score:INFINITY)" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 12:05:37 2015\n" "Last change: Fri Aug 14 11:49:29 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "11 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " impi-fencing (stonith:fence_ipmilan): Started pcmk-1\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 pcmk-2 ]\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: ClusterIP-clone [ClusterIP] (unique)\n" " ClusterIP:0 (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " ClusterIP:1 (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " Clone Set: WebFS-clone [WebFS]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: WebSite-clone [WebSite]\n" " Started: [ pcmk-1 pcmk-2 ]\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.9\" validate-with=\"pacemaker-2.3\" epoch=\"51\" num_updates=\"16\" admin_epoch=\"0\" cib-last-written=\"Fri Aug 14 11:49:29 2015\" have-quorum=\"1\" dc-uuid=\"1\">\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"cib-bootstrap-options-have-watchdog\" name=\"have-watchdog\" value=\"false\"/>\n" " <nvpair id=\"cib-bootstrap-options-dc-version\" name=\"dc-version\" value=\"1.1.12-a14efad\"/>\n" " <nvpair id=\"cib-bootstrap-options-cluster-infrastructure\" name=\"cluster-infrastructure\" value=\"corosync\"/>\n" " <nvpair id=\"cib-bootstrap-options-cluster-name\" name=\"cluster-name\" value=\"mycluster\"/>\n" " <nvpair id=\"cib-bootstrap-options-last-lrm-refresh\" name=\"last-lrm-refresh\" value=\"1419129162\"/>\n" " <nvpair id=\"cib-bootstrap-options-stonith-enabled\" name=\"stonith-enabled\" value=\"true\"/>\n" " </cluster_property_set>\n" " </crm_config>\n" " <nodes>\n" " <node id=\"1\" uname=\"pcmk-1\">\n" " <instance_attributes id=\"nodes-1\"/>\n" " </node>\n" " <node id=\"2\" uname=\"pcmk-2\">\n" " <instance_attributes id=\"nodes-2\"/>\n" " </node>\n" " </nodes>\n" " <resources>\n" " <primitive class=\"stonith\" id=\"impi-fencing\" type=\"fence_ipmilan\">\n" " <instance_attributes id=\"impi-fencing-instance_attributes\">\n" " <nvpair id=\"impi-fencing-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"pcmk-1 pcmk-2\"/>\n" " <nvpair id=\"impi-fencing-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"10.0.0.1\"/>\n" " <nvpair id=\"impi-fencing-instance_attributes-login\" name=\"login\" value=\"testuser\"/>\n" " <nvpair id=\"impi-fencing-instance_attributes-passwd\" name=\"passwd\" value=\"acd123\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"impi-fencing-interval-60s\" interval=\"60s\" name=\"monitor\"/>\n" " </operations>\n" " </primitive>\n" " <master id=\"WebDataClone\">\n" " <primitive class=\"ocf\" id=\"WebData\" provider=\"linbit\" type=\"drbd\">\n" " <instance_attributes id=\"WebData-instance_attributes\">\n" " <nvpair id=\"WebData-instance_attributes-drbd_resource\" name=\"drbd_resource\" value=\"wwwdata\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"WebData-start-timeout-240\" interval=\"0s\" name=\"start\" timeout=\"240\"/>\n" " <op id=\"WebData-promote-timeout-90\" interval=\"0s\" name=\"promote\" timeout=\"90\"/>\n" " <op id=\"WebData-demote-timeout-90\" interval=\"0s\" name=\"demote\" timeout=\"90\"/>\n" " <op id=\"WebData-stop-timeout-100\" interval=\"0s\" name=\"stop\" timeout=\"100\"/>\n" " <op id=\"WebData-monitor-interval-60s\" interval=\"60s\" name=\"monitor\"/>\n" " </operations>\n" " </primitive>\n" " <meta_attributes id=\"WebDataClone-meta_attributes\">\n" " <nvpair id=\"WebDataClone-meta_attributes-master-max\" name=\"master-max\" value=\"2\"/>\n" " <nvpair id=\"WebDataClone-meta_attributes-master-node-max\" name=\"master-node-max\" value=\"1\"/>\n" " <nvpair id=\"WebDataClone-meta_attributes-clone-max\" name=\"clone-max\" value=\"2\"/>\n" " <nvpair id=\"WebDataClone-meta_attributes-clone-node-max\" name=\"clone-node-max\" value=\"1\"/>\n" " <nvpair id=\"WebDataClone-meta_attributes-notify\" name=\"notify\" value=\"true\"/>\n" " </meta_attributes>\n" " </master>\n" " <clone id=\"dlm-clone\">\n" " <primitive class=\"ocf\" id=\"dlm\" provider=\"pacemaker\" type=\"controld\">\n" " <instance_attributes id=\"dlm-instance_attributes\"/>\n" " <operations>\n" " <op id=\"dlm-start-timeout-90\" interval=\"0s\" name=\"start\" timeout=\"90\"/>\n" " <op id=\"dlm-stop-timeout-100\" interval=\"0s\" name=\"stop\" timeout=\"100\"/>\n" " <op id=\"dlm-monitor-interval-60s\" interval=\"60s\" name=\"monitor\"/>\n" " </operations>\n" " </primitive>\n" " <meta_attributes id=\"dlm-clone-meta\">\n" " <nvpair id=\"dlm-clone-max\" name=\"clone-max\" value=\"2\"/>\n" " <nvpair id=\"dlm-clone-node-max\" name=\"clone-node-max\" value=\"1\"/>\n" " </meta_attributes>\n" " </clone>\n" " <clone id=\"ClusterIP-clone\">\n" " <primitive class=\"ocf\" id=\"ClusterIP\" provider=\"heartbeat\" type=\"IPaddr2\">\n" " <instance_attributes id=\"ClusterIP-instance_attributes\">\n" " <nvpair id=\"ClusterIP-instance_attributes-ip\" name=\"ip\" value=\"192.168.122.120\"/>\n" " <nvpair id=\"ClusterIP-instance_attributes-cidr_netmask\" name=\"cidr_netmask\" value=\"32\"/>\n" " <nvpair id=\"ClusterIP-instance_attributes-clusterip_hash\" name=\"clusterip_hash\" value=\"sourceip\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"ClusterIP-start-timeout-20s\" interval=\"0s\" name=\"start\" timeout=\"20s\"/>\n" " <op id=\"ClusterIP-stop-timeout-20s\" interval=\"0s\" name=\"stop\" timeout=\"20s\"/>\n" " <op id=\"ClusterIP-monitor-interval-30s\" interval=\"30s\" name=\"monitor\"/>\n" " </operations>\n" " <meta_attributes id=\"ClusterIP-meta_attributes\"/>\n" " </primitive>\n" " <meta_attributes id=\"ClusterIP-clone-meta\">\n" " <nvpair id=\"ClusterIP-clone-max\" name=\"clone-max\" value=\"2\"/>\n" " <nvpair id=\"ClusterIP-clone-node-max\" name=\"clone-node-max\" value=\"2\"/>\n" " <nvpair id=\"ClusterIP-globally-unique\" name=\"globally-unique\" value=\"true\"/>\n" " </meta_attributes>\n" " </clone>\n" " <clone id=\"WebFS-clone\">\n" " <primitive class=\"ocf\" id=\"WebFS\" provider=\"heartbeat\" type=\"Filesystem\">\n" " <instance_attributes id=\"WebFS-instance_attributes\">\n" " <nvpair id=\"WebFS-instance_attributes-device\" name=\"device\" value=\"/dev/drbd1\"/>\n" " <nvpair id=\"WebFS-instance_attributes-directory\" name=\"directory\" value=\"/var/www/html\"/>\n" " <nvpair id=\"WebFS-instance_attributes-fstype\" name=\"fstype\" value=\"gfs2\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"WebFS-start-timeout-60\" interval=\"0s\" name=\"start\" timeout=\"60\"/>\n" " <op id=\"WebFS-stop-timeout-60\" interval=\"0s\" name=\"stop\" timeout=\"60\"/>\n" " <op id=\"WebFS-monitor-interval-20\" interval=\"20\" name=\"monitor\" timeout=\"40\"/>\n" " </operations>\n" " <meta_attributes id=\"WebFS-meta_attributes\"/>\n" " </primitive>\n" " <meta_attributes id=\"WebFS-clone-meta\"/>\n" " </clone>\n" " <clone id=\"WebSite-clone\">\n" " <primitive class=\"ocf\" id=\"WebSite\" provider=\"heartbeat\" type=\"apache\">\n" " <instance_attributes id=\"WebSite-instance_attributes\">\n" " <nvpair id=\"WebSite-instance_attributes-configfile\" name=\"configfile\" value=\"/etc/httpd/conf/httpd.conf\"/>\n" " <nvpair id=\"WebSite-instance_attributes-statusurl\" name=\"statusurl\" value=\"http://localhost/server-status\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"WebSite-start-timeout-40s\" interval=\"0s\" name=\"start\" timeout=\"40s\"/>\n" " <op id=\"WebSite-stop-timeout-60s\" interval=\"0s\" name=\"stop\" timeout=\"60s\"/>\n" " <op id=\"WebSite-monitor-interval-1min\" interval=\"1min\" name=\"monitor\"/>\n" " </operations>\n" " </primitive>\n" " <meta_attributes id=\"WebSite-clone-meta\"/>\n" " </clone>\n" " </resources>\n" " <constraints>\n" " <rsc_colocation id=\"colocation-WebSite-ClusterIP-INFINITY\" rsc=\"WebSite-clone\" score=\"INFINITY\" with-rsc=\"ClusterIP-clone\"/>\n" " <rsc_order first=\"ClusterIP-clone\" first-action=\"start\" id=\"order-ClusterIP-WebSite-mandatory\" then=\"WebSite-clone\" then-action=\"start\"/>\n" " <rsc_colocation id=\"colocation-WebFS-WebDataClone-INFINITY\" rsc=\"WebFS-clone\" score=\"INFINITY\" with-rsc=\"WebDataClone\" with-rsc-role=\"Master\"/>\n" " <rsc_order first=\"WebDataClone\" first-action=\"promote\" id=\"order-WebDataClone-WebFS-mandatory\" then=\"WebFS-clone\" then-action=\"start\"/>\n" " <rsc_colocation id=\"colocation-WebSite-WebFS-INFINITY\" rsc=\"WebSite-clone\" score=\"INFINITY\" with-rsc=\"WebFS-clone\"/>\n" " <rsc_order first=\"WebFS-clone\" first-action=\"start\" id=\"order-WebFS-WebSite-mandatory\" then=\"WebSite-clone\" then-action=\"start\"/>\n" " <rsc_colocation id=\"colocation-WebFS-clone-dlm-clone-INFINITY\" rsc=\"WebFS-clone\" score=\"INFINITY\" with-rsc=\"dlm-clone\"/>\n" " <rsc_order first=\"dlm-clone\" first-action=\"start\" id=\"order-dlm-clone-WebFS-clone-mandatory\" then=\"WebFS-clone\" then-action=\"start\"/>\n" " </constraints>\n" " <rsc_defaults>\n" " <meta_attributes id=\"rsc_defaults-options\">\n" " <nvpair id=\"rsc_defaults-options-resource-stickiness\" name=\"resource-stickiness\" value=\"100\"/>\n" " </meta_attributes>\n" " </rsc_defaults>\n" " <op_defaults>\n" " <meta_attributes id=\"op_defaults-options\">\n" " <nvpair id=\"op_defaults-options-timeout\" name=\"timeout\" value=\"240s\"/>\n" " </meta_attributes>\n" " </op_defaults>\n" " </configuration>\n" " <status>\n" " <node_state id=\"1\" uname=\"pcmk-1\" in_ccm=\"true\" crmd=\"online\" crm-debug-origin=\"do_update_resource\" join=\"member\" expected=\"member\">\n" " <lrm id=\"1\">\n" " <lrm_resources>\n" " <lrm_resource id=\"WebData\" type=\"drbd\" class=\"ocf\" provider=\"linbit\">\n" " <lrm_rsc_op id=\"WebData_last_0\" operation_key=\"WebData_promote_0\" operation=\"promote\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"13:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;13:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"44\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"26\" queue-time=\"0\" op-digest=\"bc5c2e08730036ec602d79a958821da4\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"dlm\" type=\"controld\" class=\"ocf\" provider=\"pacemaker\">\n" " <lrm_rsc_op id=\"dlm_last_0\" operation_key=\"dlm_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"37:2:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;37:2:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"37\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264506\" last-rc-change=\"1419264506\" exec-time=\"1041\" queue-time=\"0\" op-digest=\"f2317cad3d54cec5d7d7aa7d0bf35cf8\" on_node=\"pcmk-1\"/>\n" " <lrm_rsc_op id=\"dlm_monitor_60000\" operation_key=\"dlm_monitor_60000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"39:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;39:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"38\" rc-code=\"0\" op-status=\"0\" interval=\"60000\" last-rc-change=\"1419264507\" exec-time=\"11\" queue-time=\"0\" op-digest=\"968cc450c09e98fdac3043cb6a194d3d\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"ClusterIP:0\" type=\"IPaddr2\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"ClusterIP:0_last_0\" operation_key=\"ClusterIP:0_monitor_0\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"7:0:7:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:7;7:0:7:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"19\" rc-code=\"7\" op-status=\"0\" interval=\"0\" last-run=\"1419264506\" last-rc-change=\"1419264506\" exec-time=\"28\" queue-time=\"0\" op-digest=\"ac61ecc765070218997f6d876fa1d76c\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"ClusterIP:1\" type=\"IPaddr2\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"ClusterIP:1_last_0\" operation_key=\"ClusterIP:1_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"49:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;49:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"40\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264507\" last-rc-change=\"1419264507\" exec-time=\"190\" queue-time=\"0\" op-digest=\"ac61ecc765070218997f6d876fa1d76c\" on_node=\"pcmk-1\"/>\n" " <lrm_rsc_op id=\"ClusterIP:1_monitor_30000\" operation_key=\"ClusterIP:1_monitor_30000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"50:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;50:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"41\" rc-code=\"0\" op-status=\"0\" interval=\"30000\" last-rc-change=\"1419264507\" exec-time=\"27\" queue-time=\"0\" op-digest=\"8ce33853c31576b708595f1d8a4a215c\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"WebFS\" type=\"Filesystem\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"WebFS_last_0\" operation_key=\"WebFS_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"62:5:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;62:5:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"46\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"585\" queue-time=\"0\" op-digest=\"9d797b0e3b7f9729195992c0dafb5a9e\" on_node=\"pcmk-1\"/>\n" " <lrm_rsc_op id=\"WebFS_monitor_20000\" operation_key=\"WebFS_monitor_20000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"62:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;62:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"47\" rc-code=\"0\" op-status=\"0\" interval=\"20000\" last-rc-change=\"1419264508\" exec-time=\"21\" queue-time=\"1\" op-digest=\"099af723b175851f09e5391e0c13854e\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"WebSite\" type=\"apache\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"WebSite_last_0\" operation_key=\"WebSite_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"72:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;72:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"48\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"65\" queue-time=\"0\" op-digest=\"49ba395a3f2c142631c2ef2c431a29d9\" on_node=\"pcmk-1\"/>\n" " <lrm_rsc_op id=\"WebSite_monitor_60000\" operation_key=\"WebSite_monitor_60000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"73:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;73:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"49\" rc-code=\"0\" op-status=\"0\" interval=\"60000\" last-rc-change=\"1419264508\" exec-time=\"26\" queue-time=\"0\" op-digest=\"eddc33bef3f1592ad847638ee485316f\" on_node=\"pcmk-1\"/>\n" " </lrm_resource>\n" " </lrm_resources>\n" " </lrm>\n" " <transient_attributes id=\"1\">\n" " <instance_attributes id=\"status-1\">\n" " <nvpair id=\"status-1-shutdown\" name=\"shutdown\" value=\"0\"/>\n" " <nvpair id=\"status-1-probe_complete\" name=\"probe_complete\" value=\"true\"/>\n" " <nvpair id=\"status-1-master-WebData\" name=\"master-WebData\" value=\"10000\"/>\n" " </instance_attributes>\n" " </transient_attributes>\n" " </node_state>\n" " <node_state id=\"2\" uname=\"pcmk-2\" in_ccm=\"true\" crmd=\"online\" crm-debug-origin=\"do_update_resource\" join=\"member\" expected=\"member\">\n" " <transient_attributes id=\"2\">\n" " <instance_attributes id=\"status-2\">\n" " <nvpair id=\"status-2-shutdown\" name=\"shutdown\" value=\"0\"/>\n" " <nvpair id=\"status-2-probe_complete\" name=\"probe_complete\" value=\"true\"/>\n" " <nvpair id=\"status-2-master-WebData\" name=\"master-WebData\" value=\"10000\"/>\n" " </instance_attributes>\n" " </transient_attributes>\n" " <lrm id=\"2\">\n" " <lrm_resources>\n" " <lrm_resource id=\"WebData\" type=\"drbd\" class=\"ocf\" provider=\"linbit\">\n" " <lrm_rsc_op id=\"WebData_last_0\" operation_key=\"WebData_promote_0\" operation=\"promote\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"16:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;16:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"41\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"26\" queue-time=\"0\" op-digest=\"bc5c2e08730036ec602d79a958821da4\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"dlm\" type=\"controld\" class=\"ocf\" provider=\"pacemaker\">\n" " <lrm_rsc_op id=\"dlm_last_0\" operation_key=\"dlm_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"35:2:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;35:2:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"34\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264506\" last-rc-change=\"1419264506\" exec-time=\"1053\" queue-time=\"0\" op-digest=\"f2317cad3d54cec5d7d7aa7d0bf35cf8\" on_node=\"pcmk-2\"/>\n" " <lrm_rsc_op id=\"dlm_monitor_60000\" operation_key=\"dlm_monitor_60000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"42:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;42:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"35\" rc-code=\"0\" op-status=\"0\" interval=\"60000\" last-rc-change=\"1419264507\" exec-time=\"19\" queue-time=\"0\" op-digest=\"968cc450c09e98fdac3043cb6a194d3d\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"ClusterIP:0\" type=\"IPaddr2\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"ClusterIP:0_last_0\" operation_key=\"ClusterIP:0_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"47:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;47:3:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"36\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264507\" last-rc-change=\"1419264507\" exec-time=\"237\" queue-time=\"0\" op-digest=\"ac61ecc765070218997f6d876fa1d76c\" on_node=\"pcmk-2\"/>\n" " <lrm_rsc_op id=\"ClusterIP:0_monitor_30000\" operation_key=\"ClusterIP:0_monitor_30000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"51:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;51:4:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"39\" rc-code=\"0\" op-status=\"0\" interval=\"30000\" last-rc-change=\"1419264507\" exec-time=\"34\" queue-time=\"0\" op-digest=\"8ce33853c31576b708595f1d8a4a215c\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"ClusterIP:1\" type=\"IPaddr2\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"ClusterIP:1_last_0\" operation_key=\"ClusterIP:1_monitor_0\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"16:0:7:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:7;16:0:7:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"23\" rc-code=\"7\" op-status=\"0\" interval=\"0\" last-run=\"1419264506\" last-rc-change=\"1419264506\" exec-time=\"28\" queue-time=\"0\" op-digest=\"ac61ecc765070218997f6d876fa1d76c\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"WebFS\" type=\"Filesystem\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"WebFS_last_0\" operation_key=\"WebFS_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"60:5:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;60:5:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"43\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"662\" queue-time=\"0\" op-digest=\"9d797b0e3b7f9729195992c0dafb5a9e\" on_node=\"pcmk-2\"/>\n" " <lrm_rsc_op id=\"WebFS_monitor_20000\" operation_key=\"WebFS_monitor_20000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"65:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;65:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"44\" rc-code=\"0\" op-status=\"0\" interval=\"20000\" last-rc-change=\"1419264508\" exec-time=\"29\" queue-time=\"0\" op-digest=\"099af723b175851f09e5391e0c13854e\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " <lrm_resource id=\"WebSite\" type=\"apache\" class=\"ocf\" provider=\"heartbeat\">\n" " <lrm_rsc_op id=\"WebSite_last_0\" operation_key=\"WebSite_start_0\" operation=\"start\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"70:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;70:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"45\" rc-code=\"0\" op-status=\"0\" interval=\"0\" last-run=\"1419264508\" last-rc-change=\"1419264508\" exec-time=\"64\" queue-time=\"0\" op-digest=\"49ba395a3f2c142631c2ef2c431a29d9\" on_node=\"pcmk-2\"/>\n" " <lrm_rsc_op id=\"WebSite_monitor_60000\" operation_key=\"WebSite_monitor_60000\" operation=\"monitor\" crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.9\" transition-key=\"71:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" transition-magic=\"0:0;71:6:0:225c8bc5-8fb0-49b6-9f75-337085b080de\" call-id=\"46\" rc-code=\"0\" op-status=\"0\" interval=\"60000\" last-rc-change=\"1419264508\" exec-time=\"28\" queue-time=\"0\" op-digest=\"eddc33bef3f1592ad847638ee485316f\" on_node=\"pcmk-2\"/>\n" " </lrm_resource>\n" " </lrm_resources>\n" " </lrm>\n" " </node_state>\n" " </status>\n" "</cib>" msgstr "" #. Tag: title #, no-c-format msgid "Node List" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status nodes\n" "Pacemaker Nodes:\n" " Online: pcmk-1 pcmk-2\n" " Standby:\n" " Offline:" msgstr "" #. Tag: title #, no-c-format msgid "Cluster Options" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs property\n" "Cluster Properties:\n" " cluster-infrastructure: corosync\n" " cluster-name: mycluster\n" " dc-version: 1.1.12-a14efad\n" " have-watchdog: false\n" " last-lrm-refresh: 1439569053\n" " stonith-enabled: true" msgstr "" #. Tag: para #, no-c-format msgid "The output shows state information automatically obtained about the cluster, including:" msgstr "" #. Tag: para #, no-c-format msgid "cluster-infrastructure - the cluster communications layer in use (heartbeat or corosync)" msgstr "" #. Tag: para #, no-c-format msgid "cluster-name - the cluster name chosen by the administrator when the cluster was created" msgstr "" #. Tag: para #, no-c-format msgid "dc-version - the version (including upstream source-code hash) of Pacemaker used on the Designated Controller" msgstr "" #. Tag: para #, no-c-format msgid "The output also shows options set by the administrator that control the way the cluster operates, including:" msgstr "" #. Tag: para #, no-c-format msgid "stonith-enabled=true - whether the cluster is allowed to use STONITH resources" msgstr "" #. Tag: title #, no-c-format msgid "Resources" msgstr "" #. Tag: title #, no-c-format msgid "Default Options" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource defaults\n" "resource-stickiness: 100" msgstr "" #. Tag: para #, no-c-format msgid "This shows cluster option defaults that apply to every resource that does not explicitly set the option itself. Above:" msgstr "" #. Tag: para #, no-c-format msgid "resource-stickiness - Specify the aversion to moving healthy resources to other machines" msgstr "" #. Tag: title #, no-c-format msgid "Fencing" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs stonith show\n" " ipmi-fencing (stonith:fence_ipmilan) Started\n" "[root@pcmk-1 ~]# pcs stonith show ipmi-fencing\n" " Resource: ipmi-fencing (class=stonith type=fence_ipmilan)\n" " Attributes: ipaddr=\"10.0.0.1\" login=\"testuser\" passwd=\"acd123\" pcmk_host_list=\"pcmk-1 pcmk-2\"\n" " Operations: monitor interval=60s (fence-monitor-interval-60s)" 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 gets 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 "[root@pcmk-1 ~]# pcs resource show ClusterIP-clone\n" " Clone: ClusterIP-clone\n" " Meta Attrs: clone-max=2 clone-node-max=2 globally-unique=true\n" " Resource: ClusterIP (class=ocf provider=heartbeat type=IPaddr2)\n" " Attributes: ip=192.168.122.120 cidr_netmask=32 clusterip_hash=sourceip\n" " Operations: start interval=0s timeout=20s (ClusterIP-start-timeout-20s)\n" " stop interval=0s timeout=20s (ClusterIP-stop-timeout-20s)\n" " monitor interval=30s (ClusterIP-monitor-interval-30s)" 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 /etc/drbd.d/*.res) 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 to master at the same time. We also set the notify option so that the cluster will tell DRBD agent when its peer changes state." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource show WebDataClone\n" " Master: WebDataClone\n" " Meta Attrs: master-max=2 master-node-max=1 clone-max=2 clone-node-max=1 notify=true\n" " Resource: WebData (class=ocf provider=linbit type=drbd)\n" " Attributes: drbd_resource=wwwdata\n" " Operations: start interval=0s timeout=240 (WebData-start-timeout-240)\n" " promote interval=0s timeout=90 (WebData-promote-timeout-90)\n" " demote interval=0s timeout=90 (WebData-demote-timeout-90)\n" " stop interval=0s timeout=100 (WebData-stop-timeout-100)\n" " monitor interval=60s (WebData-monitor-interval-60s)\n" "[root@pcmk-1 ~]# pcs constraint ref WebDataClone\n" "Resource: WebDataClone\n" " colocation-WebFS-WebDataClone-INFINITY\n" " order-WebDataClone-WebFS-mandatory" 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 DLM and DRBD instances." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource show WebFS-clone\n" " Clone: WebFS-clone\n" " Resource: WebFS (class=ocf provider=heartbeat type=Filesystem)\n" " Attributes: device=/dev/drbd1 directory=/var/www/html fstype=gfs2\n" " Operations: start interval=0s timeout=60 (WebFS-start-timeout-60)\n" " stop interval=0s timeout=60 (WebFS-stop-timeout-60)\n" " monitor interval=20 timeout=40 (WebFS-monitor-interval-20)\n" "[root@pcmk-1 ~]# pcs constraint ref WebFS-clone\n" "Resource: WebFS-clone\n" " colocation-WebFS-WebDataClone-INFINITY\n" " colocation-WebSite-WebFS-INFINITY\n" " colocation-WebFS-clone-dlm-clone-INFINITY\n" " order-WebDataClone-WebFS-mandatory\n" " order-WebFS-WebSite-mandatory\n" " order-dlm-clone-WebFS-clone-mandatory" 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 its 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 "[root@pcmk-1 ~]# pcs resource show WebSite-clone\n" " Clone: WebSite-clone\n" " Resource: WebSite (class=ocf provider=heartbeat type=apache)\n" " Attributes: configfile=/etc/httpd/conf/httpd.conf statusurl=http://localhost/server-status\n" " Operations: start interval=0s timeout=40s (WebSite-start-timeout-40s)\n" " stop interval=0s timeout=60s (WebSite-stop-timeout-60s)\n" " monitor interval=1min (WebSite-monitor-interval-1min)\n" "[root@pcmk-1 ~]# pcs constraint ref WebSite-clone\n" "Resource: WebSite-clone\n" " colocation-WebSite-ClusterIP-INFINITY\n" " colocation-WebSite-WebFS-INFINITY\n" " order-ClusterIP-WebSite-mandatory\n" " order-WebFS-WebSite-mandatory" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot index b26a496c0d..19815df1ab 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot @@ -1,54 +1,54 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 Configuration" msgstr "" #. Tag: title #, no-c-format msgid "Sample corosync.conf for two-node cluster created by pcs." msgstr "" #. Tag: literallayout #, no-c-format msgid "totem {\n" "version: 2\n" "secauth: off\n" "cluster_name: mycluster\n" "transport: udpu\n" "}\n" "\n" "nodelist {\n" " node {\n" " ring0_addr: pcmk-1\n" " nodeid: 1\n" " }\n" " node {\n" " ring0_addr: pcmk-2\n" " nodeid: 2\n" " }\n" "}\n" "\n" "quorum {\n" "provider: corosync_votequorum\n" "two_node: 1\n" "}\n" "\n" "logging {\n" "to_syslog: yes\n" "}" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ap-Reading.pot b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot index 793acf98ba..238690822d 100644 --- a/doc/Clusters_from_Scratch/pot/Ap-Reading.pot +++ b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot @@ -1,34 +1,34 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 http://www.clusterlabs.org/" msgstr "" #. Tag: para #, no-c-format msgid "SuSE has a comprehensive guide to cluster commands (though using the crmsh command-line shell rather than pcs) at: https://www.suse.com/documentation/sle_ha/book_sleha/data/book_sleha.html" msgstr "" #. Tag: para #, no-c-format msgid "Corosync 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 e1dac4cb14..2a05b480d1 100644 --- a/doc/Clusters_from_Scratch/pot/Author_Group.pot +++ b/doc/Clusters_from_Scratch/pot/Author_Group.pot @@ -1,64 +1,64 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "" #. Tag: firstname #, no-c-format msgid "Dan" msgstr "" #. Tag: surname #, no-c-format msgid "Frîncu" msgstr "" #. Tag: contrib #, no-c-format msgid "Romanian translation" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Book_Info.pot b/doc/Clusters_from_Scratch/pot/Book_Info.pot index 3ced027eed..f29960512e 100644 --- a/doc/Clusters_from_Scratch/pot/Book_Info.pot +++ b/doc/Clusters_from_Scratch/pot/Book_Info.pot @@ -1,69 +1,69 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Step-by-Step Instructions for Building Your First High-Availability Cluster" 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 "Given the graphical nature of the 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 5dd6e355ee..2f319d5762 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot @@ -1,489 +1,489 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Convert Cluster to Active/Active" msgstr "" #. Tag: para #, no-c-format msgid "The primary requirement for an Active/Active cluster is that the data required for your services is available, simultaneously, on both machines. Pacemaker makes no requirement on how this is achieved; you could use a SAN if you had one available, but since DRBD supports multiple Primaries, we can continue to use it here." msgstr "" #. Tag: title #, no-c-format msgid "Install Cluster Filesystem Software" msgstr "" #. Tag: para #, no-c-format msgid "The only hitch is that we need to use a cluster-aware filesystem. The one we used earlier with DRBD, xfs, is not one of those. Both OCFS2 and GFS2 are supported; here, we will use GFS2." msgstr "" #. Tag: para #, no-c-format msgid "On both nodes, install the GFS2 command-line utilities and the Distributed Lock Manager (DLM) required by cluster filesystems:" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y gfs2-utils dlm" msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster for the DLM" msgstr "" #. Tag: para #, no-c-format msgid "The DLM needs to run on both nodes, so we’ll start by creating a resource for it (using the ocf:pacemaker:controld resource script), and clone it:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib dlm_cfg\n" "[root@pcmk-1 ~]# pcs -f dlm_cfg resource create dlm ocf:pacemaker:controld op monitor interval=60s\n" "[root@pcmk-1 ~]# pcs -f dlm_cfg resource clone dlm clone-max=2 clone-node-max=1\n" "[root@pcmk-1 ~]# pcs -f dlm_cfg resource show\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started\n" " WebSite (ocf::heartbeat:apache): Started\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " WebFS (ocf::heartbeat:Filesystem): Started\n" " Clone Set: dlm-clone [dlm]\n" " Stopped: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: para #, no-c-format msgid "Activate our new configuration, and see how the cluster responds:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib-push dlm_cfg\n" "CIB updated\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 11:19:36 2015\n" "Last change: Fri Aug 14 11:19:28 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "8 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " WebFS (ocf::heartbeat:Filesystem): Started pcmk-2\n" " ipmi-fencing (stonith:fence_ipmilan): Started pcmk-1\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Create and Populate GFS2 Filesystem" 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 telling 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 "[root@pcmk-1 ~]# pcs resource disable WebFS\n" "[root@pcmk-1 ~]# pcs resource\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started\n" " WebSite (ocf::heartbeat:apache): Stopped\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " WebFS (ocf::heartbeat:Filesystem): Stopped\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: para #, no-c-format msgid "You can see that both Apache and WebFS have been stopped, and that pcmk-2 is the current master for the DRBD device." msgstr "" #. Tag: para #, no-c-format msgid "Now we can create a new GFS2 filesystem on the DRBD device." 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 "Run the next command on whichever node has the DRBD Primary role. Otherwise, you will receive the message:" msgstr "" #. Tag: screen #, no-c-format msgid "/dev/drbd1: Read-only file system" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-2 ~]# mkfs.gfs2 -p lock_dlm -j 2 -t mycluster:web /dev/drbd1\n" "It appears to contain an existing filesystem (xfs)\n" "This will destroy any data on /dev/drbd1\n" "Are you sure you want to proceed? [y/n]y\n" "Device: /dev/drbd1\n" "Block size: 4096\n" "Device size: 1.00 GB (262127 blocks)\n" "Filesystem size: 1.00 GB (262126 blocks)\n" "Journals: 2\n" "Resource groups: 5\n" "Locking protocol: \"lock_dlm\"\n" "Lock table: \"mycluster:web\"\n" "UUID: 9a72c488-d8a7-24c9-ceee-add7a8ca52c2" msgstr "" #. Tag: para #, no-c-format msgid "The mkfs.gfs2 command required a number of additional parameters:" msgstr "" #. Tag: para #, no-c-format msgid "-p lock_dlm specifies that we want to use the kernel’s DLM." msgstr "" #. Tag: para #, no-c-format msgid "-j 2 indicates that the filesystem should reserve enough space for two journals (one for each node that will access the filesystem)." msgstr "" #. Tag: para #, no-c-format msgid "-t mycluster:web specifies the lock table name. The format for this field is clustername:fsname. For clustername, we need to use the same value we specified originally with pcs cluster setup --name (which is also the value of cluster_name in /etc/corosync/corosync.conf). If you are unsure what your cluster name is, you can look in /etc/corosync/corosync.conf or execute the command pcs cluster corosync pcmk-1 | grep cluster_name." msgstr "" #. Tag: para #, no-c-format msgid "Now we can (re-)populate the new filesystem with data (web pages). We’ll create yet another variation on our home page." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-2 ~]# mount /dev/drbd1 /mnt\n" "[root@pcmk-2 ~]# cat <<-END >/mnt/index.html\n" "<html>\n" "<body>My Test Site - GFS2</body>\n" "</html>\n" "END\n" "[root@pcmk-2 ~]# chcon -R --reference=/var/www/html /mnt\n" "[root@pcmk-2 ~]# umount /dev/drbd1\n" "[root@pcmk-2 ~]# drbdadm verify wwwdata" msgstr "" #. Tag: title #, no-c-format msgid "Reconfigure the Cluster for GFS2" msgstr "" #. Tag: para #, no-c-format msgid "With the WebFS resource stopped, let’s update the configuration." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource show WebFS\n" " Resource: WebFS (class=ocf provider=heartbeat type=Filesystem)\n" " Attributes: device=/dev/drbd1 directory=/var/www/html fstype=xfs\n" " Meta Attrs: target-role=Stopped\n" " Operations: start interval=0s timeout=60 (WebFS-start-timeout-60)\n" " stop interval=0s timeout=60 (WebFS-stop-timeout-60)\n" " monitor interval=20 timeout=40 (WebFS-monitor-interval-20)" msgstr "" #. Tag: para #, no-c-format msgid "The fstype option needs to be updated to gfs2 instead of xfs." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource update WebFS fstype=gfs2\n" "[root@pcmk-1 ~]# pcs resource show WebFS\n" " Resource: WebFS (class=ocf provider=heartbeat type=Filesystem)\n" " Attributes: device=/dev/drbd1 directory=/var/www/html fstype=gfs2\n" " Meta Attrs: target-role=Stopped\n" " Operations: start interval=0s timeout=60 (WebFS-start-timeout-60)\n" " stop interval=0s timeout=60 (WebFS-stop-timeout-60)\n" " monitor interval=20 timeout=40 (WebFS-monitor-interval-20)" msgstr "" #. Tag: para #, no-c-format msgid "GFS2 requires that DLM be running, so we also need to set up new colocation and ordering constraints for it:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint colocation add WebFS with dlm-clone INFINITY\n" "[root@pcmk-1 ~]# pcs constraint order dlm-clone then WebFS\n" "Adding dlm-clone WebFS (kind: Mandatory) (Options: first-action=start then-action=start)" msgstr "" #. Tag: title #, no-c-format msgid "Clone the IP address" msgstr "" #. Tag: para #, no-c-format msgid "There’s no point making the services active on both locations if we can’t reach them both, so let’s clone the IP address." msgstr "" #. Tag: para #, no-c-format msgid "The IPaddr2 resource agent has built-in intelligence for when it is configured as a clone. It will utilize a multicast MAC address to have the local switch send the relevant packets to all nodes in the cluster, together with iptables clusterip rules on the nodes so that any given packet will be grabbed by exactly one node. This will give us a simple but effective form of load-balancing requests between our two nodes." msgstr "" #. Tag: para #, no-c-format msgid "Let’s start a new config, and clone our IP:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib loadbalance_cfg\n" "[root@pcmk-1 ~]# pcs -f loadbalance_cfg resource clone ClusterIP \\\n" " clone-max=2 clone-node-max=2 globally-unique=true" msgstr "" #. Tag: para #, no-c-format msgid "clone-max=2 tells the resource agent to split packets this many ways. This should equal the number of nodes that can host the IP." msgstr "" #. Tag: para #, no-c-format msgid "clone-node-max=2 says that one node can run up to 2 instances of the clone. This should also equal the number of nodes that can host the IP, so that if any node goes down, another node can take over the failed node’s \"request bucket\". Otherwise, requests intended for the failed node would be discarded." msgstr "" #. Tag: para #, no-c-format msgid "globally-unique=true tells the cluster that one clone isn’t identical to another (each handles a different \"bucket\"). This also tells the resource agent to insert iptables rules so each host only processes packets in its bucket(s)." msgstr "" #. Tag: para #, no-c-format msgid "Notice that when the ClusterIP becomes a clone, the constraints referencing ClusterIP now reference the clone. This is done automatically by pcs." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f loadbalance_cfg constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP-clone then start WebSite (kind:Mandatory)\n" " promote WebDataClone then start WebFS (kind:Mandatory)\n" " start WebFS then start WebSite (kind:Mandatory)\n" " start dlm-clone then start WebFS (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP-clone (score:INFINITY)\n" " WebFS with WebDataClone (score:INFINITY) (with-rsc-role:Master)\n" " WebSite with WebFS (score:INFINITY)\n" " WebFS with dlm-clone (score:INFINITY)" msgstr "" #. Tag: para #, no-c-format msgid "Now we must tell the resource how to decide which requests are processed by which hosts. To do this, we specify the clusterip_hash parameter. The value of sourceip means that the source IP address of incoming packets will be hashed; each node will process a certain range of hashes." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f loadbalance_cfg resource update ClusterIP clusterip_hash=sourceip" msgstr "" #. Tag: para #, no-c-format msgid "Load our configuration to the cluster, and see how it responds." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib-push loadbalance_cfg\n" "CIB updated\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 11:32:07 2015\n" "Last change: Fri Aug 14 11:32:04 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "9 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " WebSite (ocf::heartbeat:apache): Stopped\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 ]\n" " Slaves: [ pcmk-2 ]\n" " WebFS (ocf::heartbeat:Filesystem): Stopped\n" " ipmi-fencing (stonith:fence_ipmilan): Started pcmk-1\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: ClusterIP-clone [ClusterIP] (unique)\n" " ClusterIP:0 (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " ClusterIP:1 (ocf::heartbeat:IPaddr2): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "If desired, you can demonstrate that all request buckets are working by using a tool such as arping from several source hosts to see which host responds to each." msgstr "" #. Tag: title #, no-c-format msgid "Clone the Filesystem and Apache Resources" msgstr "" #. Tag: para #, no-c-format msgid "Now that we have a cluster filesystem ready to go, and our nodes can load-balance requests to a shared IP address, we can configure the cluster so both nodes mount the filesystem and respond to web requests." msgstr "" #. Tag: para #, no-c-format msgid "Clone the filesystem and Apache resources in a new configuration. Notice how pcs automatically updates the relevant constraints again." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib active_cfg\n" "[root@pcmk-1 ~]# pcs -f active_cfg resource clone WebFS\n" "[root@pcmk-1 ~]# pcs -f active_cfg resource clone WebSite\n" "[root@pcmk-1 ~]# pcs -f active_cfg constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP-clone then start WebSite-clone (kind:Mandatory)\n" " promote WebDataClone then start WebFS-clone (kind:Mandatory)\n" " start WebFS-clone then start WebSite-clone (kind:Mandatory)\n" " start dlm-clone then start WebFS-clone (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite-clone with ClusterIP-clone (score:INFINITY)\n" " WebFS-clone with WebDataClone (score:INFINITY) (with-rsc-role:Master)\n" " WebSite-clone with WebFS-clone (score:INFINITY)\n" " WebFS-clone with dlm-clone (score:INFINITY)" msgstr "" #. Tag: para #, no-c-format msgid "Tell the cluster that it is now allowed to promote both instances to be DRBD Primary (aka. master)." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f active_cfg resource update WebDataClone master-max=2" msgstr "" #. Tag: para #, no-c-format msgid "Finally, load our configuration to the cluster, and re-enable the WebFS resource (which we disabled earlier)." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib-push active_cfg\n" "CIB updated\n" "[root@pcmk-1 ~]# pcs resource enable WebFS" msgstr "" #. Tag: para #, no-c-format msgid "After all the processes are started, the status should look similar to this." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 pcmk-2 ]\n" " Clone Set: dlm-clone [dlm]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: ClusterIP-clone [ClusterIP] (unique)\n" " ClusterIP:0 (ocf::heartbeat:IPaddr2): Started\n" " ClusterIP:1 (ocf::heartbeat:IPaddr2): Started\n" " Clone Set: WebFS-clone [WebFS]\n" " Started: [ pcmk-1 pcmk-2 ]\n" " Clone Set: WebSite-clone [WebSite]\n" " Started: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: title #, no-c-format msgid "Test Failover" msgstr "" #. Tag: para #, no-c-format msgid "Testing failover is left as an exercise for the reader. For example, you can put one node into standby mode, use pcs status to confirm that its ClusterIP clone was moved to the other node, and use arping to verify that packets are not being lost from any source host." msgstr "" #. Tag: para #, no-c-format msgid "You may find that when a failed node rejoins the cluster, both ClusterIP clones stay on one node, due to the resource stickiness. While this works fine, it effectively eliminates load-balancing and returns the cluster to an active-passive setup again. You can avoid this by disabling stickiness for the IP address resource:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource meta ClusterIP resource-stickiness=0" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot index 2adb086b7e..918aac41c2 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot @@ -1,508 +1,508 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Create an Active/Passive Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Explore 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 "The first few lines of output should look like this:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "WARNING: no stonith devices and stonith-enabled is not false\n" "Last updated: Tue Dec 16 16:15:29 2014\n" "Last change: Tue Dec 16 15:49:47 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "0 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: para #, no-c-format msgid "For those who are not of afraid of XML, you can see the raw cluster configuration and status by using the pcs cluster cib command." msgstr "" #. Tag: title #, no-c-format msgid "The last XML you’ll see in this document" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.9\" validate-with=\"pacemaker-2.3\" epoch=\"5\" num_updates=\"8\" admin_epoch=\"0\" cib-last-written=\"Tue Dec 16 15:49:47 2014\" have-quorum=\"1\" dc-uuid=\"2\">\n" " <configuration>\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"cib-bootstrap-options-have-watchdog\" name=\"have-watchdog\" value=\"false\"/>\n" " <nvpair id=\"cib-bootstrap-options-dc-version\" name=\"dc-version\" value=\"1.1.12-a14efad\"/>\n" " <nvpair id=\"cib-bootstrap-options-cluster-infrastructure\" name=\"cluster-infrastructure\" value=\"corosync\"/>\n" " <nvpair id=\"cib-bootstrap-options-cluster-name\" name=\"cluster-name\" value=\"mycluster\"/>\n" " </cluster_property_set>\n" " </crm_config>\n" " <nodes>\n" " <node id=\"1\" uname=\"pcmk-1\"/>\n" " <node id=\"2\" uname=\"pcmk-2\"/>\n" " </nodes>\n" " <resources/>\n" " <constraints/>\n" " </configuration>\n" " <status>\n" " <node_state id=\"2\" uname=\"pcmk-2\" in_ccm=\"true\" crmd=\"online\" crm-debug-origin=\"do_state_transition\" join=\"member\" expected=\"member\">\n" " <lrm id=\"2\">\n" " <lrm_resources/>\n" " </lrm>\n" " <transient_attributes id=\"2\">\n" " <instance_attributes id=\"status-2\">\n" " <nvpair id=\"status-2-shutdown\" name=\"shutdown\" value=\"0\"/>\n" " <nvpair id=\"status-2-probe_complete\" name=\"probe_complete\" value=\"true\"/>\n" " </instance_attributes>\n" " </transient_attributes>\n" " </node_state>\n" " <node_state id=\"1\" uname=\"pcmk-1\" in_ccm=\"true\" crmd=\"online\" crm-debug-origin=\"do_state_transition\" join=\"member\" expected=\"member\">\n" " <lrm id=\"1\">\n" " <lrm_resources/>\n" " </lrm>\n" " <transient_attributes id=\"1\">\n" " <instance_attributes id=\"status-1\">\n" " <nvpair id=\"status-1-shutdown\" name=\"shutdown\" value=\"0\"/>\n" " <nvpair id=\"status-1-probe_complete\" name=\"probe_complete\" value=\"true\"/>\n" " </instance_attributes>\n" " </transient_attributes>\n" " </node_state>\n" " </status>\n" "</cib>" msgstr "" #. Tag: para #, no-c-format msgid "Before we make any changes, it’s a good idea to check the validity of the configuration." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# crm_verify -L -V\n" " error: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" " error: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" " error: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" "Errors found during check: config not valid" 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 the default for STONITH A common node fencing mechanism. Used to ensure data integrity by powering off \"bad\" nodes in Pacemaker is 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 "We will disable this feature for now and configure it later." msgstr "" #. Tag: para #, no-c-format msgid "To disable STONITH, set the stonith-enabled cluster option to false:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs property set stonith-enabled=false\n" "[root@pcmk-1 ~]# crm_verify -L" msgstr "" #. Tag: para #, no-c-format msgid "With the new cluster option set, the configuration is now valid." msgstr "" #. Tag: para #, no-c-format msgid "The use of stonith-enabled=false is completely inappropriate for a production cluster. It tells the cluster to simply pretend that failed nodes are safely powered off. Some vendors will refuse to support clusters that have STONITH disabled." msgstr "" #. Tag: para #, no-c-format msgid "We disable STONITH here only to defer the discussion of its configuration, which can differ widely from one installation to the next. See for information on why STONITH is important and details on how to configure it." msgstr "" #. Tag: title #, no-c-format msgid "Add a Resource" msgstr "" #. Tag: para #, no-c-format msgid "Our first resource will be a unique IP address that the cluster can bring up on either node. Regardless of where any cluster service(s) are running, end users need a consistent address to contact them on. Here, I will choose 192.168.122.120 as the floating address, give it the imaginative name ClusterIP and tell the cluster to check whether it is running every 30 seconds." msgstr "" #. Tag: para #, no-c-format msgid "The chosen address must not already be in use on the network. Do not reuse an IP address one of the nodes already has configured." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource create ClusterIP ocf:heartbeat:IPaddr2 \\\n" " ip=192.168.122.120 cidr_netmask=32 op monitor interval=30s" msgstr "" #. Tag: para #, no-c-format msgid "Another important piece of information here is ocf:heartbeat:IPaddr2. This tells Pacemaker three things about the resource you want to add:" msgstr "" #. Tag: para #, no-c-format msgid "The first field (ocf in this case) is the standard to which the resource script conforms and where to find it." msgstr "" #. Tag: para #, no-c-format msgid "The second field (heartbeat in this case) is standard-specific; for OCF resources, it tells the cluster which OCF namespace the resource script is in." msgstr "" #. Tag: para #, no-c-format msgid "The third field (IPaddr2 in this case) is the name of the resource script." msgstr "" #. Tag: para #, no-c-format msgid "To obtain a list of the available resource standards (the ocf part of ocf:heartbeat:IPaddr2), run:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource standards\n" "ocf\n" "lsb\n" "service\n" "systemd\n" "stonith" msgstr "" #. Tag: para #, no-c-format msgid "To obtain a list of the available OCF resource providers (the heartbeat part of ocf:heartbeat:IPaddr2), run:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource providers\n" "heartbeat\n" "openstack\n" "pacemaker" msgstr "" #. Tag: para #, no-c-format msgid "Finally, if you want to see all the resource agents available for a specific OCF provider (the IPaddr2 part of ocf:heartbeat:IPaddr2), run:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource agents ocf:heartbeat\n" "CTDB\n" "Delay\n" "Dummy\n" "Filesystem\n" "IPaddr\n" "IPaddr2\n" ".\n" ". (skipping lots of resources to save space)\n" ".\n" "rsyncd\n" "slapd\n" "symlink\n" "tomcat" 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 "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Tue Dec 16 17:44:40 2014\n" "Last change: Tue Dec 16 17:44:26 2014\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "1 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Perform a Failover" msgstr "" #. Tag: para #, no-c-format msgid "Since our ultimate goal is high availability, 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 "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Tue Dec 16 17:44:40 2014\n" "Last change: Tue Dec 16 17:44:26 2014\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "1 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1" msgstr "" #. Tag: para #, no-c-format msgid "You can see that the status of the ClusterIP resource is Started on a particular node (in this example, pcmk-1). Shut down Pacemaker and Corosync on that machine to trigger a failover." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster stop pcmk-1\n" "Stopping Cluster..." msgstr "" #. Tag: para #, no-c-format msgid "A cluster command such as pcs cluster stop nodename can be run from any node in the cluster, not just the affected node." msgstr "" #. Tag: para #, no-c-format msgid "Verify that pacemaker and corosync are no longer running:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status\n" "Error: cluster is not currently running on this node" msgstr "" #. Tag: para #, no-c-format msgid "Go to the other node, and check the cluster status." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-2 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 10:30:56 2014\n" "Last change: Tue Dec 16 17:44:26 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "1 Resources configured\n" "\n" "\n" "Online: [ pcmk-2 ]\n" "OFFLINE: [ pcmk-1 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Notice that pcmk-1 is OFFLINE for cluster purposes (its PCSD is still Online, allowing it to receive pcs commands, but it is not participating in the cluster)." msgstr "" #. Tag: para #, no-c-format msgid "Also notice that ClusterIP is now running on pcmk-2 — failover happened automatically, and no errors are reported." msgstr "" #. Tag: title #, no-c-format msgid "Quorum" msgstr "" #. Tag: para #, no-c-format msgid "If a cluster splits into two (or more) groups of nodes that can no longer communicate with each other (aka. partitions), quorum is used to prevent resources from starting on more nodes than desired, which would risk data corruption." msgstr "" #. Tag: para #, no-c-format msgid "A cluster has quorum when more than half of all known nodes are online in the same partition, or for the mathematically inclined, whenever the following equation is true:" msgstr "" #. Tag: literallayout #, no-c-format msgid "total_nodes < 2 * active_nodes" msgstr "" #. Tag: para #, no-c-format msgid "For example, if a 5-node cluster split into 3- and 2-node paritions, the 3-node partition would have quorum and could continue serving resources. If a 6-node cluster split into two 3-node partitions, neither partition would have quorum; pacemaker’s default behavior in such cases is to stop all resources, in order to prevent data corruption." msgstr "" #. Tag: para #, no-c-format msgid "Two-node clusters are a special case. By the above definition, a two-node cluster would only have quorum when both nodes are running. This would make the creation of a two-node cluster pointless, Some would argue that two-node clusters are always pointless, but that is an argument for another time but corosync has the ability to treat two-node clusters as if only one node is required for quorum." msgstr "" #. Tag: para #, no-c-format msgid "The pcs cluster setup command will automatically configure two_node: 1 in corosync.conf, so a two-node cluster will \"just work\"." msgstr "" #. Tag: para #, no-c-format msgid "If you are using a different cluster shell, you will have to configure corosync.conf appropriately yourself. If you are using older versions of corosync, you will have to ignore quorum at the pacemaker level, using pcs property set no-quorum-policy=ignore (or the equivalent command if you are using a different cluster shell)." 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. (It may take a little while before the cluster gets going on the node, but it eventually will look like the below.)" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster start pcmk-1\n" "pcmk-1: Starting Cluster...\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 10:50:11 2014\n" "Last change: Tue Dec 16 17:44:26 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "1 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "With older versions of pacemaker, the cluster might move the IP back to its original location (pcmk-1). Usually, this is no longer the case." msgstr "" #. Tag: title #, no-c-format msgid "Prevent Resources from Moving after Recovery" msgstr "" #. Tag: para #, no-c-format msgid "In most circumstances, it is highly desirable to prevent healthy resources from being moved around the cluster. Moving resources almost always requires a period of downtime. For complex services such as 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 strongly 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\" 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 creates implicit preferences in situations where the administrator has not explicitly specified them. 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 "[root@pcmk-1 ~]# pcs resource defaults resource-stickiness=100\n" "[root@pcmk-1 ~]# pcs resource defaults\n" "resource-stickiness: 100" msgstr "" #. Tag: para #, no-c-format msgid "Older versions of pcs required that rsc be added after resource in the above commands." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Apache.pot b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot index 966ef24efe..0c2691edb5 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Apache.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot @@ -1,490 +1,503 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Add Apache as a Cluster Service" +msgid "Add Apache HTTP Server as a Cluster Service" 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 it is a feature of many clusters and relatively simple to configure." +msgid " Apache HTTP Server " +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 HTTP Server because it is a feature of many clusters and relatively simple to configure." msgstr "" #. Tag: title #, no-c-format msgid "Install Apache" msgstr "" #. Tag: para #, no-c-format msgid "Before continuing, we need to make sure Apache is installed on both hosts. We also 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 "# yum install -y httpd wget\n" "# firewall-cmd --permanent --add-service=http\n" "# firewall-cmd --reload" msgstr "" #. Tag: para #, no-c-format msgid "Do not enable the httpd service. Services that are intended to be managed via the cluster software should never be managed by the OS." msgstr "" #. Tag: para #, no-c-format msgid "It is often useful, however, to manually start the service, verify that it works, then stop it again, before adding it to the cluster. This allows you to resolve any non-cluster-related problems before continuing. Since this is a simple example, we’ll skip that step here." msgstr "" #. Tag: title #, no-c-format msgid "Create Website Documents" msgstr "" #. Tag: para #, no-c-format msgid "We need to create a page for Apache to serve. On &DISTRO; &DISTRO_VERSION;, the default Apache document root is /var/www/html, so we’ll create an index file there. For the moment, we will simplify things by serving a static site and manually synchronizing the data between the two nodes, so run this command on both nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "# cat <<-END >/var/www/html/index.html\n" " <html>\n" " <body>My Test Site - $(hostname)</body>\n" " </html>\n" "END" msgstr "" #. Tag: title #, no-c-format msgid "Enable the Apache status URL" msgstr "" +#. Tag: para +#, no-c-format +msgid " Apache HTTP Server/server-status /server-status " +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. On both nodes, enable the URL with:" msgstr "" #. Tag: screen #, no-c-format msgid "# cat <<-END >/etc/httpd/conf.d/status.conf\n" " <Location /server-status>\n" " SetHandler server-status\n" -" Order deny,allow\n" -" Deny from all\n" -" Allow from 127.0.0.1\n" +" Require local\n" " </Location>\n" "END" msgstr "" #. Tag: para #, no-c-format -msgid "If you are using a different operating system, server-status may already be enabled or may be configurable in a different location." +msgid "If you are using a different operating system, server-status may already be enabled or may be configurable in a different location. If you are using a version of Apache HTTP Server less than 2.4, the syntax will be different." msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster" msgstr "" +#. Tag: para +#, no-c-format +msgid " Apache HTTP ServerApache resource configuration Apache resource configuration " +msgstr "" + #. Tag: para #, no-c-format msgid "At this point, Apache is ready to go, and all that needs to be done is to add it to the cluster. Let’s call the resource WebSite. We need to use an OCF resource 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 script’s 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 "[root@pcmk-1 ~]# pcs resource create WebSite ocf:heartbeat:apache \\\n" " configfile=/etc/httpd/conf/httpd.conf \\\n" " statusurl=\"http://localhost/server-status\" \\\n" " op monitor interval=1min" msgstr "" #. Tag: para #, no-c-format msgid "By default, the operation timeout for all resources' start, stop, and monitor operations is 20 seconds. In many cases, this timeout period is less than a particular resource’s advised timeout period. For the purposes of this tutorial, we will adjust the global operation timeout default to 240 seconds." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs resource op defaults timeout=240s\n" "[root@pcmk-1 ~]# pcs resource op defaults\n" "timeout: 240s" msgstr "" #. Tag: para #, no-c-format msgid "In a production cluster, it is usually better to adjust each resource’s start, stop, and monitor timeouts to values that are appropriate to the behavior observed in your environment, rather than adjust the global default." 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 "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 12:40:41 2014\n" "Last change: Wed Dec 17 12:40:05 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "2 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" 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: para #, no-c-format msgid "If, in the pcs status output, you see the WebSite resource has failed to start, then you’ve likely not enabled the status URL correctly. You can check whether this is the problem by running:" msgstr "" #. Tag: literallayout #, no-c-format -msgid "wget -O - http://127.0.0.1/server-status" +msgid "wget -O - http://localhost/server-status" msgstr "" #. Tag: para #, no-c-format -msgid "If you see Connection refused in the output, then this is likely the problem. Ensure that Allow from 127.0.0.1 is present for the <Location /server-status> block." +msgid "If you see Not Found or Forbidden in the output, then this is likely the problem. Ensure that the <Location /server-status> block is correct." msgstr "" #. Tag: title #, no-c-format msgid "Ensure 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." msgstr "" #. Tag: para #, no-c-format msgid "To achieve this, we use a colocation constraint that indicates it is mandatory for WebSite to run on the same node as ClusterIP. The \"mandatory\" part of the colocation constraint is indicated by using a score of INFINITY. The INFINITY score also means that if ClusterIP is not active anywhere, WebSite will not be permitted to run." msgstr "" #. Tag: para #, no-c-format msgid "If ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere." msgstr "" #. Tag: para #, no-c-format msgid "Colocation constraints are \"directional\", in that they imply certain things about the order in which the two resources will have a location chosen. In this case, we’re saying that WebSite needs to be placed on the same machine as ClusterIP, which implies that the cluster must know the location of ClusterIP before choosing a location for WebSite." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint colocation add WebSite with ClusterIP INFINITY\n" "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 13:57:58 2014\n" "Last change: Wed Dec 17 13:57:22 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "2 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Ensure Resources Start and Stop in Order" msgstr "" #. Tag: para #, no-c-format msgid "Like many services, Apache can be configured to bind to specific IP addresses on a host or to the wildcard IP address. If Apache binds to the wildcard, it doesn’t matter whether an IP address is added before or after Apache starts; Apache will respond on that IP just the same. However, if Apache binds only to certain IP address(es), the order matters: If the address is added after Apache starts, Apache won’t respond on that address." msgstr "" #. Tag: para #, no-c-format msgid "To be sure our WebSite responds regardless of Apache’s address configuration, we need to make sure ClusterIP not only runs on the same node, but starts before WebSite. A colocation constraint only ensures the resources run together, not the order in which they are started and stopped." msgstr "" #. Tag: para #, no-c-format msgid "We do this by adding an ordering constraint. By default, all order constraints are mandatory, which means that the recovery of ClusterIP will also trigger the recovery of WebSite." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint order ClusterIP then WebSite\n" "Adding ClusterIP WebSite (kind: Mandatory) (Options: first-action=start then-action=start)\n" "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)" msgstr "" #. Tag: title #, no-c-format msgid "Prefer One Node Over Another" 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 on the more powerful node if it is available. To do this, we create a location constraint." msgstr "" #. Tag: para #, no-c-format msgid "In the location constraint below, we are saying the WebSite resource prefers the node pcmk-1 with a score of 50. Here, the score indicates how badly we’d like the resource to run at this location." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint location WebSite prefers pcmk-1=50\n" "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" " Resource: WebSite\n" " Enabled on: pcmk-1 (score:50)\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 14:11:49 2014\n" "Last change: Wed Dec 17 14:11:20 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "2 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" 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 WebSite now prefers to run on pcmk-1, 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 crm_simulate." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# crm_simulate -sL\n" "\n" "Current cluster status:\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" "\n" "Allocation scores:\n" "native_color: ClusterIP allocation score on pcmk-1: 50\n" "native_color: ClusterIP allocation score on pcmk-2: 200\n" "native_color: WebSite allocation score on pcmk-1: -INFINITY\n" "native_color: WebSite allocation score on pcmk-2: 100\n" "\n" "Transition Summary:" msgstr "" #. Tag: title #, no-c-format msgid "Move Resources Manually" 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. In this example, we will force the WebSite to move to pcmk-1 by updating our previous location constraint with a score of INFINITY." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint location WebSite prefers pcmk-1=INFINITY\n" "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" " Resource: WebSite\n" " Enabled on: pcmk-1 (score:INFINITY)\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 14:19:34 2014\n" "Last change: Wed Dec 17 14:18:37 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "2 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Once we’ve finished whatever activity required us to move the resources to pcmk-1 (in our case nothing), we can then allow the cluster to resume normal operation by removing the new constraint. Since we previously configured a default stickiness, the resources will remain on pcmk-1." msgstr "" #. Tag: para #, no-c-format msgid "First, use the --full option to get the constraint’s ID:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint --full\n" "Location Constraints:\n" " Resource: WebSite\n" " Enabled on: pcmk-1 (score:INFINITY) (id:location-WebSite-pcmk-1-INFINITY)\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory) (id:order-ClusterIP-WebSite-mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY) (id:colocation-WebSite-ClusterIP-INFINITY)" msgstr "" #. Tag: para #, no-c-format msgid "Then remove the desired contraint using its ID:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs constraint remove location-WebSite-pcmk-1-INFINITY\n" "[root@pcmk-1 ~]# pcs constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)" msgstr "" #. Tag: para #, no-c-format msgid "Note that the location 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 "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Wed Dec 17 14:25:21 2014\n" "Last change: Wed Dec 17 14:24:29 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "2 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " WebSite (ocf::heartbeat:apache): Started pcmk-1\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Installation.pot b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot index 396fb7042c..d1b5ef1c08 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Installation.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot @@ -1,712 +1,712 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Install &DISTRO; &DISTRO_VERSION;" msgstr "" #. Tag: title #, no-c-format msgid "Boot the Install Image" msgstr "" #. Tag: para #, no-c-format msgid "Download the 4GB &DISTRO; &DISTRO_VERSION; DVD ISO. Use the image to boot a virtual machine, or burn it to a DVD or USB drive and boot a physical server from that." msgstr "" #. Tag: para #, no-c-format msgid "After starting the installation, select your language and keyboard layout at the welcome screen." msgstr "" #. Tag: title #, no-c-format msgid "&DISTRO; &DISTRO_VERSION; Installation Welcome Screen" msgstr "" #. Tag: title #, no-c-format msgid "Installation Options" msgstr "" #. Tag: para #, no-c-format msgid "At this point, you get a chance to tweak the default installation options." msgstr "" #. Tag: title #, no-c-format msgid "&DISTRO; &DISTRO_VERSION; Installation Summary Screen" msgstr "" #. Tag: para #, no-c-format msgid "Ignore the SOFTWARE SELECTION section (try saying that 10 times quickly). The Infrastructure Server environment does have add-ons with much of the software we need, but we will leave it as a Minimal Install here, so that we can see exactly what software is required later." msgstr "" #. Tag: title #, no-c-format msgid "Configure Network" msgstr "" #. Tag: para #, no-c-format msgid "In the NETWORK & HOSTNAME section:" msgstr "" #. Tag: para #, no-c-format msgid "Edit Host Name: as desired. For this example, we will use pcmk-1.localdomain." msgstr "" #. Tag: para #, no-c-format msgid "Select your network device, press Configure…, and manually assign a fixed IP address. For this example, we’ll use 192.168.122.101 under IPv4 Settings (with an appropriate netmask, gateway and DNS server)." msgstr "" #. Tag: para #, no-c-format msgid "Flip the switch to turn your network device on." msgstr "" #. Tag: para #, no-c-format msgid "Do not accept the default network settings. Cluster machines should never obtain an IP address via DHCP, because DHCP’s periodic address renewal will interfere with corosync." msgstr "" #. Tag: title #, no-c-format msgid "Configure Disk" msgstr "" #. Tag: para #, no-c-format msgid "By default, the installer’s automatic partitioning will use LVM (which allows us to dynamically change the amount of space allocated to a given partition). However, it allocates all free space to the / (aka. root) partition, which cannot be reduced in size later (dynamic increases are fine)." msgstr "" #. Tag: para #, no-c-format msgid "In order to follow the DRBD and GFS2 portions of this guide, we need to reserve space on each machine for a replicated volume." msgstr "" #. Tag: para #, no-c-format msgid "Enter the INSTALLATION DESTINATION section, ensure the hard drive you want to install to is selected, select I will configure partitioning, and press Done." msgstr "" #. Tag: para #, no-c-format msgid "In the MANUAL PARTITIONING screen that comes next, click the option to create mountpoints automatically. Select the / mountpoint, and reduce the desired capacity by 1GiB or so. Select Modify… by the volume group name, and change the Size policy: to As large as possible, to make the reclaimed space available inside the LVM volume group. We’ll add the additional volume later." msgstr "" #. Tag: title #, no-c-format msgid "Configure Time Synchronization" 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: para #, no-c-format msgid "&DISTRO; will enable NTP automatically. If you want to change any time-related settings (such as time zone or NTP server), you can do this in the TIME & DATE section." msgstr "" #. Tag: title #, no-c-format msgid "Finish Install" msgstr "" #. Tag: para #, no-c-format msgid "Select Begin Installation. Once it completes, set a root password, and reboot as instructed. For the purposes of this document, it is not necessary to create any additional users. After the node reboots, you’ll see a login prompt on the console. Login using root and the password you created earlier." msgstr "" #. Tag: title #, no-c-format msgid "&DISTRO; &DISTRO_VERSION; Console Prompt" msgstr "" #. Tag: para #, no-c-format msgid "From here on, we’re going to be working exclusively from the terminal." msgstr "" #. Tag: title #, no-c-format msgid "Configure the OS" msgstr "" #. Tag: title #, no-c-format msgid "Verify Networking" msgstr "" #. Tag: para #, no-c-format msgid "Ensure that the machine has the static IP address you configured earlier." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ip addr\n" "1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 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 UP qlen 1000\n" " link/ether 52:54:00:d7:d6:08 brd ff:ff:ff:ff:ff:ff\n" " inet 192.168.122.101/24 brd 192.168.122.255 scope global eth0\n" " valid_lft forever preferred_lft forever\n" " inet6 fe80::5054:ff:fed7:d608/64 scope link\n" " valid_lft forever preferred_lft forever" msgstr "" #. Tag: para #, no-c-format msgid "If you ever need to change the node’s IP address from the command line, follow" msgstr "" #. Tag: literallayout #, no-c-format msgid "[root@pcmk-1 ~]# vi /etc/sysconfig/network-scripts/ifcfg-${device} # manually edit as desired\n" "[root@pcmk-1 ~]# nmcli dev disconnect ${device}\n" "[root@pcmk-1 ~]# nmcli con reload ${device}\n" "[root@pcmk-1 ~]# nmcli con up ${device}" msgstr "" #. Tag: para #, no-c-format msgid "This makes NetworkManager aware that a change was made on the config file." msgstr "" #. Tag: para #, no-c-format msgid "Next, ensure that the routes are as expected:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ip route\n" "default via 192.168.122.1 dev eth0 proto static metric 100\n" "192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.101 metric 100" msgstr "" #. Tag: para #, no-c-format msgid "If there is no line beginning with default via, then you may need to add a line such as" msgstr "" #. Tag: programlisting #, no-c-format msgid "GATEWAY=\"192.168.122.1\"" msgstr "" #. Tag: para #, no-c-format msgid "to the device configuration using the same process as described above for changing the IP address." msgstr "" #. Tag: para #, no-c-format msgid "Now, check for connectivity to the outside world. Start small by testing whether we can reach the gateway we configured." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ping -c 1 192.168.122.1\n" "PING 192.168.122.1 (192.168.122.1) 56(84) bytes of data.\n" "64 bytes from 192.168.122.1: icmp_req=1 ttl=64 time=0.249 ms\n" "\n" " --- 192.168.122.1 ping statistics ---\n" "1 packets transmitted, 1 received, 0% packet loss, time 0ms\n" "rtt min/avg/max/mdev = 0.249/0.249/0.249/0.000 ms" msgstr "" #. Tag: para #, no-c-format msgid "Now try something external; choose a location you know should be available." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ping -c 1 www.google.com\n" "PING www.l.google.com (173.194.72.106) 56(84) bytes of data.\n" "64 bytes from tf-in-f106.1e100.net (173.194.72.106): icmp_req=1 ttl=41 time=167 ms\n" "\n" " --- www.l.google.com ping statistics ---\n" "1 packets transmitted, 1 received, 0% packet loss, time 0ms\n" "rtt min/avg/max/mdev = 167.618/167.618/167.618/0.000 ms" msgstr "" #. Tag: title #, no-c-format msgid "Login Remotely" msgstr "" #. Tag: para #, no-c-format msgid "The console isn’t a very friendly place to work from, so we will now switch to accessing the machine remotely via SSH where we can use copy and paste, etc." msgstr "" #. Tag: para #, no-c-format msgid "From another host, check whether we can see the new host at all:" msgstr "" #. Tag: screen #, no-c-format msgid "beekhof@f16 ~ # ping -c 1 192.168.122.101\n" "PING 192.168.122.101 (192.168.122.101) 56(84) bytes of data.\n" "64 bytes from 192.168.122.101: icmp_req=1 ttl=64 time=1.01 ms\n" "\n" "--- 192.168.122.101 ping statistics ---\n" "1 packets transmitted, 1 received, 0% packet loss, time 0ms\n" "rtt min/avg/max/mdev = 1.012/1.012/1.012/0.000 ms" msgstr "" #. Tag: para #, no-c-format msgid "Next, login as root via SSH." msgstr "" #. Tag: screen #, no-c-format msgid "beekhof@f16 ~ # ssh -l root 192.168.122.101\n" "The authenticity of host '192.168.122.101 (192.168.122.101)' can't be established.\n" "ECDSA key fingerprint is 6e:b7:8f:e2:4c:94:43:54:a8:53:cc:20:0f:29:a4:e0.\n" "Are you sure you want to continue connecting (yes/no)? yes\n" "Warning: Permanently added '192.168.122.101' (ECDSA) to the list of known hosts.\n" "root@192.168.122.101's password:\n" "Last login: Tue Aug 11 13:14:39 2015\n" "[root@pcmk-1 ~]#" msgstr "" #. Tag: title #, no-c-format msgid "Apply Updates" msgstr "" #. Tag: para #, no-c-format msgid "Apply any package updates released since your installation image was created:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# yum update" msgstr "" #. Tag: title #, no-c-format msgid "Use Short Node Names" msgstr "" #. Tag: para #, no-c-format msgid "During installation, we filled in the machine’s fully qualified 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: Nodesshort name short name " msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# uname -n\n" "pcmk-1.localdomain" msgstr "" #. Tag: para #, no-c-format msgid " NodesDomain name (Query) Domain name (Query) " msgstr "" #. Tag: para #, no-c-format msgid "We can use the hostnamectl tool to strip off the domain name:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# hostnamectl set-hostname $(uname -n | sed s/\\\\..*//)" msgstr "" #. Tag: para #, no-c-format msgid " NodesDomain name (Remove from host name) Domain name (Remove from host name) " msgstr "" #. Tag: para #, no-c-format msgid "Now, check that the machine is using the correct name:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# uname -n\n" "pcmk-1" msgstr "" #. Tag: title #, no-c-format msgid "Repeat for Second Node" msgstr "" #. Tag: para #, no-c-format msgid "Repeat the Installation steps so far, so that you have two nodes ready to have 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.102." msgstr "" #. Tag: title #, no-c-format msgid "Configure Communication Between Nodes" msgstr "" #. Tag: title #, no-c-format msgid "Configure Host Name Resolution" msgstr "" #. Tag: para #, no-c-format msgid "Confirm that you can communicate between the two new nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "[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" 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 two machines. Otherwise, you’ll need to add the machines to /etc/hosts on both nodes. Below are the entries for my cluster nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "[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" msgstr "" #. Tag: para #, no-c-format msgid "We can now verify the setup by again using ping:" msgstr "" #. Tag: screen #, no-c-format msgid "[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" 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 " SSH " msgstr "" #. Tag: para #, no-c-format msgid "Unprotected SSH keys (those without a password) are not recommended for servers exposed to the outside world. We use them here only to simplify the demo." 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: screen #, no-c-format msgid "[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" "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" msgstr "" #. Tag: para #, no-c-format msgid " Creating and Activating a new SSH Key " msgstr "" #. Tag: para #, no-c-format msgid "Install the key on the other node:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# scp -r ~/.ssh pcmk-2:\n" "The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" "ECDSA key fingerprint is a4:f5:b2:34:9d:86:2b:34:a2:87:37:b9:ca:68:52:ec.\n" "Are you sure you want to continue connecting (yes/no)? yes\n" "Warning: Permanently added 'pcmk-2,192.168.122.102' (ECDSA) 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" msgstr "" #. Tag: para #, no-c-format msgid "Test that you can now run commands remotely, without being prompted:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ssh pcmk-2 -- uname -n\n" "pcmk-2" msgstr "" #. Tag: title #, no-c-format msgid "Install the Cluster Software" msgstr "" #. Tag: para #, no-c-format msgid "Fire up a shell on both nodes and run the following to install pacemaker, and while we’re at it, some command-line tools to make our lives easier:" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y pacemaker pcs psmisc policycoreutils-python" msgstr "" #. Tag: para #, no-c-format msgid "This document will show commands that need to be executed on both nodes with a simple # prompt. Be sure to run them on each node individually." msgstr "" #. Tag: para #, no-c-format msgid "This document uses pcs for cluster management. Other alternatives, such as crmsh, are available, but their syntax will differ from the examples used here." msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster Software" msgstr "" #. Tag: title #, no-c-format msgid "Allow cluster services through firewall" msgstr "" #. Tag: para #, no-c-format msgid "On each node, allow cluster-related services through the local firewall:" msgstr "" #. Tag: screen #, no-c-format msgid "# firewall-cmd --permanent --add-service=high-availability\n" "success\n" "# firewall-cmd --reload\n" "success" msgstr "" #. Tag: para #, no-c-format msgid "If you are using iptables directly, or some other firewall solution besides firewalld, simply open the following ports, which can be used by various clustering components: TCP ports 2224, 3121, and 21064, and UDP port 5405." msgstr "" #. Tag: para #, no-c-format msgid "If you run into any problems during testing, you might want to disable the firewall and SELinux entirely until you have everything working. This may create significant security issues and should not be performed on machines that will be exposed to the outside world, but may be appropriate during development and testing on a protected host." msgstr "" #. Tag: para #, no-c-format msgid "To disable security measures:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# setenforce 0\n" "[root@pcmk-1 ~]# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" "[root@pcmk-1 ~]# systemctl disable firewalld.service\n" "[root@pcmk-1 ~]# systemctl stop firewalld.service\n" "[root@pcmk-1 ~]# iptables --flush" msgstr "" #. Tag: title #, no-c-format msgid "Enable pcs Daemon" msgstr "" #. Tag: para #, no-c-format msgid "Before the cluster can be configured, the pcs daemon must be started and enabled to start at boot time on each node. This daemon works with the pcs command-line interface to manage synchronizing the corosync configuration across all nodes in the cluster." msgstr "" #. Tag: para #, no-c-format msgid "Start and enable the daemon by issuing the following commands on each node:" msgstr "" #. Tag: screen #, no-c-format msgid "# systemctl start pcsd.service\n" "# systemctl enable pcsd.service\n" "ln -s '/usr/lib/systemd/system/pcsd.service' '/etc/systemd/system/multi-user.target.wants/pcsd.service'" msgstr "" #. Tag: para #, no-c-format msgid "The installed packages will create a hacluster user with a disabled password. While this is fine for running pcs commands locally, the account needs a login password in order to perform such tasks as syncing the corosync configuration, or starting and stopping the cluster on other nodes." msgstr "" #. Tag: para #, no-c-format msgid "This tutorial will make use of such commands, so now we will set a password for the hacluster user, using the same password on both nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "# passwd hacluster\n" "Changing password for user hacluster.\n" "New password:\n" "Retype new password:\n" "passwd: all authentication tokens updated successfully." msgstr "" #. Tag: para #, no-c-format msgid "Alternatively, to script this process or set the password on a different machine from the one you’re logged into, you can use the --stdin option for passwd:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ssh pcmk-2 -- 'echo redhat1 | passwd --stdin hacluster'" msgstr "" #. Tag: title #, no-c-format msgid "Configure Corosync" msgstr "" #. Tag: para #, no-c-format msgid "On either node, use pcs cluster auth to authenticate as the hacluster user:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster auth pcmk-1 pcmk-2\n" "Username: hacluster\n" "Password:\n" "pcmk-1: Authorized\n" "pcmk-2: Authorized" msgstr "" #. Tag: para #, no-c-format msgid "Next, use pcs cluster setup on the same node to generate and synchronize the corosync configuration:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster setup --name mycluster pcmk-1 pcmk-2\n" "Shutting down pacemaker/corosync services...\n" "Redirecting to /bin/systemctl stop pacemaker.service\n" "Redirecting to /bin/systemctl stop corosync.service\n" "Killing any remaining services...\n" "Removing all cluster configuration files...\n" "pcmk-1: Succeeded\n" "pcmk-2: Succeeded" msgstr "" #. Tag: para #, no-c-format msgid "If you received an authorization error for either of those commands, make sure you configured the hacluster user account on each node with the same password." msgstr "" #. Tag: para #, no-c-format msgid "Early versions of pcs required that --name be omitted from the above command." msgstr "" #. Tag: para #, no-c-format msgid "If you are not using pcs for cluster administration, follow whatever procedures are appropriate for your tools to create a corosync.conf and copy it to all nodes." msgstr "" #. Tag: para #, no-c-format msgid "The pcs command will configure corosync to use UDP unicast transport; if you choose to use multicast instead, choose a multicast address carefully. For some subtle issues, see the now-defunct http://web.archive.org/web/20101211210054/http://29west.com/docs/THPM/multicast-address-assignment.html or the more detailed treatment in Cisco’s Guidelines for Enterprise IP Multicast Address Allocation paper." msgstr "" #. Tag: para #, no-c-format msgid "The final /etc/corosync.conf configuration on each node should look something like the sample in ." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Intro.pot b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot index 686edc3126..f94ca5946d 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Intro.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot @@ -1,289 +1,289 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Computer clusters can be used to provide highly available services or resources. The redundancy of multiple machines is used to guard against failures of many types." msgstr "" #. Tag: para #, no-c-format msgid "This document will walk through the installation and setup of simple clusters using the &DISTRO; distribution, version &DISTRO_VERSION;." msgstr "" #. Tag: para #, no-c-format msgid "The clusters described here will use Pacemaker and Corosync to provide resource management and messaging. Required packages and modifications to their configuration files are described along with the use of the Pacemaker command line tool for generating the XML used for cluster control." msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker is a central component and provides the resource management required in these systems. This management includes detecting and recovering from the failure of various nodes, resources and services under its control." msgstr "" #. Tag: para #, no-c-format msgid "When more in depth information is required and for real world usage, please refer to the Pacemaker Explained manual." msgstr "" #. Tag: title #, no-c-format msgid "What Is Pacemaker?" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker is a cluster resource manager, that is, a logic responsible for a life-cycle of deployed software — indirectly perhaps even whole systems or their interconnections — under its control within a set of computers (a.k.a. nodes) and driven by prescribed rules." msgstr "" #. Tag: para #, no-c-format msgid "It achieves maximum availability for your cluster services (a.k.a. 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), and possibly by utilizing other parts of the overall cluster stack." msgstr "" #. Tag: para #, no-c-format msgid "For the goal of minimal downtime a term high availability was coined and together with its acronym, HA, is well-established in the sector. To differentiate this sort of clusters from high performance computing (HPC) ones, should a context require it (apparently, not the case in this document), using HA cluster is an option." msgstr "" #. Tag: para #, no-c-format 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 fencing (also referred to as the STONITH acronym, deciphered later on) 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 service types" 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 (e.g. master/slave, primary/secondary)" msgstr "" #. Tag: para #, no-c-format msgid "Unified, scriptable cluster management tools" 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 "Non-cluster-aware components. These pieces include the resources themselves; scripts that start, stop and monitor them; and a local daemon that masks the differences between the different standards these scripts implement. Even though interactions of these resources when run as multiple instances can resemble a distributed system, they still lack the proper HA mechanisms and/or autonomous cluster-wide governance as subsumed in the following item." msgstr "" #. Tag: para #, no-c-format msgid "Resource management. Pacemaker provides the brain that processes and reacts to events regarding the cluster. These events include nodes joining or leaving the cluster; resource events caused by failures, maintenance and scheduled activities; and other administrative actions. Pacemaker will compute the ideal state of the cluster and plot a path to achieve it after any of these events. This may include moving resources, stopping nodes and even forcing them offline with remote power switches." msgstr "" #. Tag: para #, no-c-format msgid "Low-level infrastructure. Projects like Corosync, CMAN and Heartbeat provide reliable messaging, membership and quorum information about the cluster." 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, but there seems little interest in this. " msgstr "" #. Tag: para #, no-c-format msgid "Due to past standardization within the cluster filesystem community, cluster filesystems make use of a common distributed lock manager, which makes use of Corosync for its messaging and membership capabilities (which nodes are up/down) and Pacemaker for fencing services." msgstr "" #. Tag: title #, no-c-format msgid "The Pacemaker Stack" msgstr "" #. Tag: title #, no-c-format msgid "Internal Components" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker itself is composed of five key components:" msgstr "" #. Tag: para #, no-c-format msgid "Cluster Information Base (CIB)" msgstr "" #. Tag: para #, no-c-format msgid "Cluster Resource Management daemon (CRMd)" msgstr "" #. Tag: para #, no-c-format msgid "Local Resource Management daemon (LRMd)" msgstr "" #. Tag: para #, no-c-format msgid "Policy Engine (PEngine or PE)" msgstr "" #. Tag: para #, no-c-format msgid "Fencing daemon (STONITHd)" 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." msgstr "" #. Tag: para #, no-c-format msgid "This list of instructions is then fed to the Designated Controller (DC). 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 Local Resource Management daemon (LRMd) 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." msgstr "" #. Tag: para #, no-c-format msgid "STONITH is an acronym for Shoot-The-Other-Node-In-The-Head, a recommended practice that misbehaving node is best to be promptly fenced (shut off, cut from shared resources or otherwise immobilized), and is usually implemented with a remote power switch." msgstr "" #. Tag: para #, no-c-format msgid "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 "" #. 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: para #, 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: para #, 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: para #, 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 "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot index 520b1a2ac7..2cef0b4397 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot @@ -1,695 +1,695 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Replicate Storage Using 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, it’s not even an option. Not everyone care afford network-attached storage, but somehow the data needs to be kept in sync." msgstr "" #. Tag: para #, no-c-format msgid "Enter DRBD, which can be thought of as network-based RAID-1. See http://www.drbd.org/ for details." msgstr "" #. Tag: title #, no-c-format msgid "Install the DRBD Packages" msgstr "" #. Tag: para #, no-c-format msgid "DRBD itself is included in the upstream kernel,Since version 2.6.33 but we do need some utilities to use it effectively." msgstr "" #. Tag: para #, no-c-format msgid "CentOS does not ship these utilities, so we need to enable a third-party repository to get them. Supported packages for many OSes are available from DRBD’s maker LINBIT, but here we’ll use the free ELRepo repository." msgstr "" #. Tag: para #, no-c-format msgid "On both nodes, import the ELRepo package signing key, and enable the repository:" msgstr "" #. Tag: screen #, no-c-format msgid "# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org\n" "# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm" msgstr "" #. Tag: para #, no-c-format msgid "Now, we can install the DRBD kernel module and utilities:" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y kmod-drbd84 drbd84-utils" msgstr "" #. Tag: para #, no-c-format msgid "The version of drbd84-utils shipped with CentOS 7.1 has a bug in the Pacemaker integration script. Until a fix is packaged, download the affected script directly from the upstream, on both nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "# curl -o /usr/lib/ocf/resource.d/linbit/drbd 'http://git.linbit.com/gitweb.cgi?p=drbd-utils.git;a=blob_plain;f=scripts/drbd.ocf;h=cf6b966341377a993d1bf5f585a5b9fe72eaa5f2;hb=c11ba026bbbbc647b8112543df142f2185cb4b4b'" msgstr "" #. Tag: para #, no-c-format msgid "This is a temporary fix that will be overwritten if the package is upgraded." msgstr "" #. Tag: para #, no-c-format msgid "DRBD will not be able to run under the default SELinux security policies. If you are familiar with SELinux, you can modify the policies in a more fine-grained manner, but here we will simply exempt DRBD processes from SELinux control:" msgstr "" #. Tag: screen #, no-c-format msgid "# semanage permissive -a drbd_t" msgstr "" #. Tag: para #, no-c-format msgid "We will configure DRBD to use port 7789, so allow that port from each host to the other:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# firewall-cmd --permanent --add-rich-rule='rule family=\"ipv4\" source address=\"192.168.122.102\" port port=\"7789\" protocol=\"tcp\" accept'\n" "success\n" "[root@pcmk-1 ~]# firewall-cmd --reload\n" "success" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-2 ~]# firewall-cmd --permanent --add-rich-rule='rule family=\"ipv4\" source address=\"192.168.122.101\" port port=\"7789\" protocol=\"tcp\" accept'\n" "success\n" "[root@pcmk-2 ~]# firewall-cmd --reload\n" "success" msgstr "" #. Tag: para #, no-c-format msgid "In this example, we have only two nodes, and all network traffic is on the same LAN. In production, it is recommended to use a dedicated, isolated network for cluster-related traffic, so the firewall configuration would likely be different; one approach would be to add the dedicated network interfaces to the trusted zone." msgstr "" #. Tag: title #, no-c-format msgid "Allocate a Disk Volume for DRBD" msgstr "" #. Tag: para #, no-c-format msgid "DRBD will need its own block device on each node. This can be a physical disk partition or logical volume, of whatever size you need for your data. For this document, we will use a 1GiB logical volume, which is more than sufficient for a single HTML file and (later) GFS2 metadata." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# vgdisplay | grep -e Name -e Free\n" " VG Name centos_pcmk-1\n" " Free PE / Size 382 / 1.49 GiB\n" "[root@pcmk-1 ~]# lvcreate --name drbd-demo --size 1G centos_pcmk-1\n" "Logical volume \"drbd-demo\" created\n" "[root@pcmk-1 ~]# lvs\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " drbd-demo centos_pcmk-1 -wi-a----- 1.00g\n" " root centos_pcmk-1 -wi-ao---- 5.00g\n" " swap centos_pcmk-1 -wi-ao---- 1.00g" msgstr "" #. Tag: para #, no-c-format msgid "Repeat for the second node, making sure to use the same size:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ssh pcmk-2 -- lvcreate --name drbd-demo --size 1G centos_pcmk-2\n" "Logical volume \"drbd-demo\" created" msgstr "" #. Tag: title #, no-c-format msgid "Configure DRBD" msgstr "" #. Tag: para #, no-c-format msgid "There is no series of commands for building a DRBD configuration, so simply run this on both nodes to use this sample configuration:" msgstr "" #. Tag: screen #, no-c-format msgid "# cat <<END >/etc/drbd.d/wwwdata.res\n" "resource wwwdata {\n" " protocol C;\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/centos_pcmk-1/drbd-demo;\n" " address 192.168.122.101:7789;\n" " }\n" " on pcmk-2 {\n" " disk /dev/centos_pcmk-2/drbd-demo;\n" " address 192.168.122.102:7789;\n" " }\n" "}\n" "END" msgstr "" #. Tag: para #, no-c-format msgid "Edit the file to use the hostnames, IP addresses and logical volume paths of your nodes if they differ from the ones used in this guide." msgstr "" #. Tag: para #, no-c-format msgid "Detailed information on the directives used in this configuration (and other alternatives) is available at http://www.drbd.org/users-guide/ch-configure.html" msgstr "" #. Tag: para #, no-c-format msgid "The allow-two-primaries option would not normally be used in an active/passive cluster. We are adding it here for the convenience of changing to an active/active cluster later." msgstr "" #. Tag: title #, no-c-format msgid "Initialize DRBD" msgstr "" #. Tag: para #, no-c-format msgid "With the configuration in place, we can now get DRBD running." msgstr "" #. Tag: para #, no-c-format msgid "These commands create the local metadata for the DRBD resource, ensure the DRBD kernel module is loaded, and bring up the DRBD resource. Run them on one node:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" "initializing activity log\n" "NOT initializing bitmap\n" "Writing meta data...\n" "New drbd meta data block successfully created.\n" "[root@pcmk-1 ~]# modprobe drbd\n" "[root@pcmk-1 ~]# drbdadm up wwwdata" msgstr "" #. Tag: para #, no-c-format msgid "We can confirm DRBD’s status on this node:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.4.6 (api:1/proto:86-101)\n" "GIT-hash: 833d830e0152d1e457fa7856e71e11248ccf3f70 build by phil@Build64R7, 2015-04-10 05:13:52\n" "\n" " 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----s\n" " ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:1048508" msgstr "" #. Tag: para #, no-c-format msgid "Because we have not yet initialized the data, this node’s data is marked as Inconsistent. Because we have not yet initialized the second node, the local state is WFConnection (waiting for connection), and the partner node’s status is marked as Unknown." msgstr "" #. Tag: para #, no-c-format msgid "Now, repeat the above commands on the second node. This time, when we check the status, it shows:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-2 ~]# cat /proc/drbd\n" "version: 8.4.6 (api:1/proto:86-101)\n" "GIT-hash: 833d830e0152d1e457fa7856e71e11248ccf3f70 build by phil@Build64R7, 2015-04-10 05:13:52\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:f oos:1048508" msgstr "" #. Tag: para #, no-c-format msgid "You can see the state has changed to Connected, meaning the two DRBD nodes are communicating properly, and both nodes are in Secondary role with Inconsistent data." msgstr "" #. Tag: para #, no-c-format msgid "To make the data consistent, we need to tell DRBD which node should be considered to have the correct data. In this case, since we are creating a new resource, both have garbage, so we’ll just pick pcmk-1 and run this command on it:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# drbdadm primary --force wwwdata" msgstr "" #. Tag: para #, no-c-format msgid "If you are using an older version of DRBD, the required syntax may be different. See the documentation for your version for how to perform these commands." msgstr "" #. Tag: para #, no-c-format msgid "If we check the status immediately, we’ll see something like this:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.4.6 (api:1/proto:86-101)\n" "GIT-hash: 833d830e0152d1e457fa7856e71e11248ccf3f70 build by phil@Build64R7, 2015-04-10 05:13:52\n" "\n" " 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r-----\n" " ns:2872 nr:0 dw:0 dr:3784 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:1045636\n" " [>....................] sync'ed: 0.4% (1045636/1048508)K\n" " finish: 0:10:53 speed: 1,436 (1,436) K/sec" msgstr "" #. Tag: para #, no-c-format msgid "We can see that this node has the Primary role, the partner node has the Secondary role, this node’s data is now considered UpToDate, the partner node’s data is still Inconsistent, and a progress bar shows how far along the partner node is in synchronizing the data." msgstr "" #. Tag: para #, no-c-format msgid "After a while, the sync should finish, and you’ll see something like:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# cat /proc/drbd\n" "version: 8.4.6 (api:1/proto:86-101)\n" "GIT-hash: 833d830e0152d1e457fa7856e71e11248ccf3f70 build by phil@Build64R7, 2015-04-10 05:13:52\n" "\n" " 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----\n" " ns:1048508 nr:0 dw:0 dr:1049420 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0" msgstr "" #. Tag: para #, no-c-format msgid "Both sets of data are now UpToDate, and we can proceed to creating and populating a filesystem for our WebSite resource’s documents." msgstr "" #. Tag: title #, no-c-format msgid "Populate the DRBD Disk" msgstr "" #. Tag: para #, no-c-format msgid "On the node with the primary role (pcmk-1 in this example), create a filesystem on the DRBD device:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# mkfs.xfs /dev/drbd1\n" "meta-data=/dev/drbd1 isize=256 agcount=4, agsize=65532 blks\n" " = sectsz=512 attr=2, projid32bit=1\n" " = crc=0 finobt=0\n" "data = bsize=4096 blocks=262127, imaxpct=25\n" " = sunit=0 swidth=0 blks\n" "naming =version 2 bsize=4096 ascii-ci=0 ftype=0\n" "log =internal log bsize=4096 blocks=853, version=2\n" " = sectsz=512 sunit=0 blks, lazy-count=1\n" "realtime =none extsz=4096 blocks=0, rtextents=0" msgstr "" #. Tag: para #, no-c-format msgid "In this example, we create an xfs filesystem with no special options. In a production environment, you should choose a filesystem type and options that are suitable for your application." msgstr "" #. Tag: para #, no-c-format msgid "Mount the newly created filesystem, populate it with our web document, give it the same SELinux policy as the web document root, then unmount it (the cluster will handle mounting and unmounting it later):" msgstr "" #. Tag: screen #, no-c-format msgid "[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 ~]# chcon -R --reference=/var/www/html /mnt\n" "[root@pcmk-1 ~]# umount /dev/drbd1" msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster for the DRBD device" msgstr "" #. Tag: para #, no-c-format msgid "One handy feature pcs has is the ability to queue up several changes into a file and commit those changes atomically. To do this, start by populating the file with the current raw XML config from the CIB." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib drbd_cfg" msgstr "" #. Tag: para #, no-c-format msgid "Using the pcs -f option, make changes to the configuration saved in the drbd_cfg file. These changes will not be seen by the cluster until the drbd_cfg file is pushed into the live cluster’s CIB later." msgstr "" #. Tag: para #, no-c-format msgid "Here, we create a cluster resource for the DRBD device, and an additional clone resource to allow the resource to run on both nodes at the same time." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f drbd_cfg resource create WebData ocf:linbit:drbd \\\n" " drbd_resource=wwwdata op monitor interval=60s\n" "[root@pcmk-1 ~]# pcs -f drbd_cfg resource master WebDataClone WebData \\\n" " master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 \\\n" " notify=true\n" "[root@pcmk-1 ~]# pcs -f drbd_cfg resource show\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started\n" " WebSite (ocf::heartbeat:apache): Started\n" " Master/Slave Set: WebDataClone [WebData]\n" " Stopped: [ pcmk-1 pcmk-2 ]" msgstr "" #. Tag: para #, no-c-format msgid "After you are satisfied with all the changes, you can commit them all at once by pushing the drbd_cfg file into the live CIB." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib-push drbd_cfg\n" "CIB updated" msgstr "" #. Tag: para #, no-c-format msgid "Early versions of pcs required push cib in place of cib-push above." msgstr "" #. Tag: para #, no-c-format msgid "Let’s see what the cluster did with the new configuration:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 09:29:41 2015\n" "Last change: Fri Aug 14 09:29:25 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "4 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " WebSite (ocf::heartbeat:apache): Started pcmk-1\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 ]\n" " Slaves: [ pcmk-2 ]\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "We can see that WebDataClone (our DRBD device) is running as master (DRBD’s primary role) on pcmk-1 and slave (DRBD’s secondary role) on pcmk-2." msgstr "" #. Tag: para #, no-c-format msgid "The resource agent should load the DRBD module when needed if it’s not already loaded. If that does not happen, configure your operating system to load the module at boot time. For &DISTRO; &DISTRO_VERSION;, you would run this on both nodes:" msgstr "" #. Tag: screen #, no-c-format msgid "# echo drbd >/etc/modules-load.d/drbd.conf" msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster for the Filesystem" msgstr "" #. Tag: para #, no-c-format msgid "Now that we have a working DRBD device, we need to mount its filesystem." msgstr "" #. Tag: para #, no-c-format msgid "In addition to defining the filesystem, 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 "We are going to take a shortcut when creating the resource this time. Instead of explicitly saying we want the ocf:heartbeat:Filesystem script, we are only going to ask for Filesystem. We can do this because we know there is only one resource script named Filesystem available to pacemaker, and that pcs is smart enough to fill in the ocf:heartbeat: portion for us correctly in the configuration. If there were multiple Filesystem scripts from different OCF providers, we would need to specify the exact one we wanted." msgstr "" #. Tag: para #, no-c-format msgid "Once again, we will queue our changes to a file and then push the new configuration to the cluster as the final step." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib fs_cfg\n" "[root@pcmk-1 ~]# pcs -f fs_cfg resource create WebFS Filesystem \\\n" " device=\"/dev/drbd1\" directory=\"/var/www/html\" fstype=\"xfs\"\n" "[root@pcmk-1 ~]# pcs -f fs_cfg constraint colocation add WebFS with WebDataClone INFINITY with-rsc-role=Master\n" "[root@pcmk-1 ~]# pcs -f fs_cfg constraint order promote WebDataClone then start WebFS\n" "Adding WebDataClone WebFS (kind: Mandatory) (Options: first-action=promote then-action=start)" 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 "[root@pcmk-1 ~]# pcs -f fs_cfg constraint colocation add WebSite with WebFS INFINITY\n" "[root@pcmk-1 ~]# pcs -f fs_cfg constraint order WebFS then WebSite\n" "Adding WebFS WebSite (kind: Mandatory) (Options: first-action=start then-action=start)" msgstr "" #. Tag: para #, no-c-format msgid "Review the updated configuration." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f fs_cfg constraint\n" "Location Constraints:\n" "Ordering Constraints:\n" " start ClusterIP then start WebSite (kind:Mandatory)\n" " promote WebDataClone then start WebFS (kind:Mandatory)\n" " start WebFS then start WebSite (kind:Mandatory)\n" "Colocation Constraints:\n" " WebSite with ClusterIP (score:INFINITY)\n" " WebFS with WebDataClone (score:INFINITY) (with-rsc-role:Master)\n" " WebSite with WebFS (score:INFINITY)" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f fs_cfg resource show\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started\n" " WebSite (ocf::heartbeat:apache): Started\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 ]\n" " Slaves: [ pcmk-2 ]\n" " WebFS (ocf::heartbeat:Filesystem): Stopped" msgstr "" #. Tag: para #, no-c-format msgid "After reviewing the new configuration, upload it and watch the cluster put it into effect." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster cib-push fs_cfg\n" "[root@pcmk-1 ~]# pcs status\n" "Last updated: Fri Aug 14 09:34:11 2015\n" "Last change: Fri Aug 14 09:34:09 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "5 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1\n" " WebSite (ocf::heartbeat:apache): Started pcmk-1\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-1 ]\n" " Slaves: [ pcmk-2 ]\n" " WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Test Cluster Failover" msgstr "" #. Tag: para #, no-c-format msgid "Previously, we used pcs cluster stop pcmk-1 to stop all cluster services on pcmk-1, failing over the cluster resources, but there is another way to safely simulate node failure." msgstr "" #. Tag: para #, no-c-format msgid "We can put the node into standby mode. Nodes in this state continue to run corosync and pacemaker but are not allowed to run resources. Any resources found active there will be moved elsewhere. This feature can be particularly useful when performing system administration tasks such as updating packages used by cluster resources." msgstr "" #. Tag: para #, no-c-format msgid "Put the active node into standby mode, and observe the cluster move all the resources to the other node. The node’s status will change to indicate that it can no longer host resources." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster standby pcmk-1\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 09:36:49 2015\n" "Last change: Fri Aug 14 09:36:43 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "5 Resources configured\n" "\n" "\n" "Node pcmk-1 (1): standby\n" "Online: [ pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-2 ]\n" " Stopped: [ pcmk-1 ]\n" " WebFS (ocf::heartbeat:Filesystem): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" 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 "[root@pcmk-1 ~]# pcs cluster unstandby pcmk-1\n" "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 14 09:38:02 2015\n" "Last change: Fri Aug 14 09:37:56 2015\n" "Stack: corosync\n" "Current DC: pcmk-1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "5 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" " ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-2\n" " WebSite (ocf::heartbeat:apache): Started pcmk-2\n" " Master/Slave Set: WebDataClone [WebData]\n" " Masters: [ pcmk-2 ]\n" " Slaves: [ pcmk-1 ]\n" " WebFS (ocf::heartbeat:Filesystem): Started pcmk-2\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Notice that pcmk-1 is back to the Online state, and that the cluster resources stay where they are due to our resource stickiness settings configured earlier." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot index 94738db0f8..6bb747ce29 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot @@ -1,252 +1,252 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "What is STONITH?" msgstr "" #. Tag: para #, no-c-format msgid "STONITH (Shoot The Other Node In The Head aka. fencing) protects your data from being corrupted by rogue nodes or unintended concurrent access." msgstr "" #. Tag: para #, no-c-format msgid "Just because a node is unresponsive doesn’t mean it has stopped accessing your data. The only way to be 100% sure that your data is safe, is to use STONITH to ensure 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 "Choose a STONITH Device" msgstr "" #. Tag: para #, no-c-format msgid "It is crucial that your STONITH device can allow the cluster to differentiate between a node failure and a network failure." msgstr "" #. Tag: para #, no-c-format msgid "A common mistake people make when choosing a STONITH device is to use a remote power switch (such as many on-board IPMI controllers) that shares power with the node it controls. If the power fails in such a case, the cluster cannot be sure whether the node is really offline, or active and suffering from a network fault, so the cluster will stop all resources to avoid a possible split-brain situation." msgstr "" #. Tag: para #, no-c-format msgid "Likewise, any device that relies on the machine being active (such as SSH-based \"devices\" sometimes used during testing) is inappropriate." msgstr "" #. Tag: title #, no-c-format msgid "Configure the Cluster for STONITH" msgstr "" #. Tag: para #, no-c-format msgid "Install the STONITH agent(s). To see what packages are available, run yum search fence-. Be sure to install the package(s) on all cluster nodes." msgstr "" #. Tag: para #, no-c-format msgid "Configure the STONITH device itself to be able to fence your nodes and accept fencing requests. This includes any necessary configuration on the device and on the nodes, and any firewall or SELinux changes needed. Test the communication between the device and your nodes." msgstr "" #. Tag: para #, no-c-format msgid "Find the correct STONITH agent script: pcs stonith list" msgstr "" #. Tag: para #, no-c-format msgid "Find the parameters associated with the device: pcs stonith describe agent_name" msgstr "" #. Tag: para #, no-c-format msgid "Create a local copy of the CIB: pcs cluster cib stonith_cfg" msgstr "" #. Tag: para #, no-c-format msgid "Create the fencing resource: pcs -f stonith_cfg stonith create stonith_id stonith_device_type [stonith_device_options]" msgstr "" #. Tag: para #, no-c-format msgid "Any flags that do not take arguments, such as --ssl, should be passed as ssl=1." msgstr "" #. Tag: para #, no-c-format msgid "Enable STONITH in the cluster: pcs -f stonith_cfg property set stonith-enabled=true" msgstr "" #. Tag: para #, no-c-format msgid "If the device does not know how to fence nodes based on their uname, you may also need to set the special pcmk_host_map parameter. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "If the device does not support the list command, you may also need to set the special pcmk_host_list and/or pcmk_host_check parameters. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "If the device does not expect the victim to be specified with the port parameter, you may also need to set the special pcmk_host_argument parameter. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "Commit the new configuration: pcs cluster cib-push stonith_cfg" msgstr "" #. Tag: para #, no-c-format msgid "Once the STONITH resource is running, test it (you might want to stop the cluster on that machine first): stonith_admin --reboot nodename" msgstr "" #. Tag: title #, no-c-format msgid "Example" msgstr "" #. Tag: para #, no-c-format msgid "For this example, assume we have a chassis containing four nodes and an IPMI device active on 10.0.0.1. Following the steps above would go something like this:" msgstr "" #. Tag: para #, no-c-format msgid "Step 1: Install the fence-agents-ipmilan package on both nodes." msgstr "" #. Tag: para #, no-c-format msgid "Step 2: Configure the IP address, authentication credentials, etc. in the IPMI device itself." msgstr "" #. Tag: para #, no-c-format msgid "Step 3: Choose the fence_ipmilan STONITH agent." msgstr "" #. Tag: para #, no-c-format msgid "Step 4: Obtain the agent’s possible parameters:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs stonith describe fence_ipmilan\n" "Stonith options for: fence_ipmilan\n" " ipport: TCP/UDP port to use for connection with device\n" " inet6_only: Forces agent to use IPv6 addresses only\n" " ipaddr (required): IP Address or Hostname\n" " passwd_script: Script to retrieve password\n" " method: Method to fence (onoff|cycle)\n" " inet4_only: Forces agent to use IPv4 addresses only\n" " passwd: Login password or passphrase\n" " lanplus: Use Lanplus to improve security of connection\n" " auth: IPMI Lan Auth type.\n" " cipher: Ciphersuite to use (same as ipmitool -C parameter)\n" " privlvl: Privilege level on IPMI device\n" " action (required): Fencing Action\n" " login: Login Name\n" " verbose: Verbose mode\n" " debug: Write debug information to given file\n" " version: Display version information and exit\n" " help: Display help and exit\n" " power_wait: Wait X seconds after issuing ON/OFF\n" " login_timeout: Wait X seconds for cmd prompt after login\n" " power_timeout: Test X seconds for status change after ON/OFF\n" " delay: Wait X seconds before fencing is started\n" " ipmitool_path: Path to ipmitool binary\n" " shell_timeout: Wait X seconds for cmd prompt after issuing command\n" " retry_on: Count of attempts to retry power on\n" " sudo: Use sudo (without password) when calling 3rd party sotfware.\n" " stonith-timeout: How long to wait for the STONITH action (reboot, on, off) to complete per a stonith device.\n" " priority: The priority of the stonith resource. Devices are tried in order of highest priority to lowest.\n" " pcmk_host_map: A mapping of host names to ports numbers for devices that do not support host names.\n" " pcmk_host_list: A list of machines controlled by this device (Optional unless pcmk_host_check=static-list).\n" " pcmk_host_check: How to determine which machines are controlled by the device." msgstr "" #. Tag: para #, no-c-format msgid "Step 5: pcs cluster cib stonith_cfg" msgstr "" #. Tag: para #, no-c-format msgid "Step 6: Here are example parameters for creating our STONITH resource:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f stonith_cfg stonith create ipmi-fencing fence_ipmilan \\\n" " pcmk_host_list=\"pcmk-1 pcmk-2\" ipaddr=10.0.0.1 login=testuser \\\n" " passwd=acd123 op monitor interval=60s\n" "[root@pcmk-1 ~]# pcs -f stonith_cfg stonith\n" " ipmi-fencing (stonith:fence_ipmilan): Stopped" msgstr "" #. Tag: para #, no-c-format msgid "Steps 7-10: Enable STONITH in the cluster:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs -f stonith_cfg property set stonith-enabled=true\n" "[root@pcmk-1 ~]# pcs -f stonith_cfg property\n" "Cluster Properties:\n" " cluster-infrastructure: corosync\n" " cluster-name: mycluster\n" " dc-version: 1.1.12-a14efad\n" " have-watchdog: false\n" " stonith-enabled: true" msgstr "" #. Tag: para #, no-c-format msgid "Step 11: pcs cluster cib-push stonith_cfg" msgstr "" #. Tag: para #, no-c-format msgid "Step 12: Test:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster stop pcmk-2\n" "[root@pcmk-1 ~]# stonith_admin --reboot pcmk-2" msgstr "" #. Tag: para #, no-c-format msgid "After a successful test, login to any rebooted nodes, and start the cluster (with pcs cluster start)." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Ch-Tools.pot b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot index 27d8cf17ca..07e11c1358 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Tools.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot @@ -1,149 +1,144 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Pacemaker Tools" msgstr "" #. Tag: title #, no-c-format msgid "Simplify administration using a cluster shell" 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 "All of that has been greatly simplified with the creation of unified command-line shells (and GUIs) that hide all the messy XML scaffolding." msgstr "" #. Tag: para #, no-c-format msgid "These shells take all the individual aspects required for managing and configuring a cluster, and pack them into one simple-to-use command line tool." msgstr "" #. Tag: para #, no-c-format msgid "They even allow you to queue up several changes at once and commit them atomically." msgstr "" #. Tag: para #, no-c-format msgid "Two popular command-line shells are pcs and crmsh. This edition of Clusters from Scratch is based on pcs." msgstr "" #. Tag: para #, no-c-format msgid "The two shells share many concepts but the scope, layout and syntax does differ, so make sure you read the version of this guide that corresponds to the software installed on your system." msgstr "" -#. Tag: para -#, no-c-format -msgid "Since pcs has the ability to manage all aspects of the cluster (both corosync and pacemaker), it requires a specific cluster stack to be in use: corosync 2.0 or later with votequorum plus Pacemaker 1.1.8 or later." -msgstr "" - #. Tag: title #, no-c-format msgid "Explore pcs" msgstr "" #. Tag: para #, no-c-format msgid "Start by taking some time to familiarize yourself with what pcs can do." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs\n" "Usage: pcs [-f file] [-h] [commands]...\n" "Control and configure pacemaker and corosync.\n" "\n" "Options:\n" " -h, --help Display usage and exit\n" " -f file Perform actions on file instead of active CIB\n" " --debug Print all network traffic and external commands run\n" " --version Print pcs version information\n" "\n" "Commands:\n" " cluster Configure cluster options and nodes\n" " resource Manage cluster resources\n" " stonith Configure fence devices\n" " constraint Set resource constraints\n" " property Set pacemaker properties\n" " acl Set pacemaker access control lists\n" " status View cluster status\n" " config View and manage cluster configuration" msgstr "" #. Tag: para #, no-c-format msgid "As you can see, the different aspects of cluster management are separated into categories: resource, cluster, stonith, property, constraint, and status. To discover the functionality available in each of these categories, one can issue the command pcs category help. Below is an example of all the options available under the status category." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status help\n" "Usage: pcs status [commands]...\n" "View current cluster and resource status\n" "Commands:\n" " [status] [--full]\n" " View all information about the cluster and resources (--full provides\n" " more details)\n" "\n" " resources\n" " View current status of cluster resources\n" "\n" " groups\n" " View currently configured groups and their resources\n" "\n" " cluster\n" " View current cluster status\n" "\n" " corosync\n" " View current membership information as seen by corosync\n" "\n" " nodes [corosync|both|config]\n" " View current status of nodes from pacemaker. If 'corosync' is\n" " specified, print nodes currently configured in corosync, if 'both'\n" " is specified, print nodes from both corosync & pacemaker. If 'config'\n" " is specified, print nodes from corosync & pacemaker configuration.\n" "\n" " pcsd <node> ...\n" " Show the current status of pcsd on the specified nodes\n" "\n" " xml\n" " View xml version of status (output from crm_mon -r -1 -X)" msgstr "" #. Tag: para #, no-c-format msgid "Additionally, if you are interested in the version and supported cluster stack(s) available with your Pacemaker installation, run:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pacemakerd --features\n" "Pacemaker 1.1.12 (Build: a14efad)\n" " Supporting v3.0.9: generated-manpages agent-manpages ascii-docs publican-docs ncurses libqb-logging libqb-ipc upstart systemd nagios corosync-native atomic-attrd acls" 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 6ad0af650c..3dbbceff9a 100644 --- a/doc/Clusters_from_Scratch/pot/Ch-Verification.pot +++ b/doc/Clusters_from_Scratch/pot/Ch-Verification.pot @@ -1,203 +1,203 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Start and Verify Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Start the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "Now that corosync is configured, it is time to start the cluster. The command below will start corosync and pacemaker on both nodes in the cluster. If you are issuing the start command from a different node than the one you ran the pcs cluster auth command on earlier, you must authenticate on the current node you are logged into before you will be allowed to start the cluster." msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs cluster start --all\n" "pcmk-1: Starting Cluster...\n" "pcmk-2: Starting Cluster..." msgstr "" #. Tag: para #, no-c-format msgid "An alternative to using the pcs cluster start --all command is to issue either of the below command sequences on each node in the cluster separately:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster start\n" "Starting Cluster..." msgstr "" #. Tag: para #, no-c-format msgid "or" msgstr "" #. Tag: screen #, no-c-format msgid "# systemctl start corosync.service\n" "# systemctl start pacemaker.service" msgstr "" #. Tag: para #, no-c-format msgid "In this example, we are not enabling the corosync and pacemaker services to start at boot. If a cluster node fails or is rebooted, you will need to run pcs cluster start nodename (or --all) to start the cluster on it. While you could enable the services to start at boot, requiring a manual start of cluster services gives you the opportunity to do a post-mortem investigation of a node failure before returning it to the cluster." msgstr "" #. Tag: title #, no-c-format msgid "Verify Corosync Installation" msgstr "" #. Tag: para #, no-c-format msgid "First, use corosync-cfgtool to check whether cluster communication is happy:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# corosync-cfgtool -s\n" "Printing ring status.\n" "Local node ID 1\n" "RING ID 0\n" " id = 192.168.122.101\n" " status = ring 0 active with no faults" msgstr "" #. Tag: para #, no-c-format msgid "We can see here that everything appears normal with our fixed IP address (not a 127.0.0.x loopback address) listed as the id, and no faults for the status." msgstr "" #. Tag: para #, no-c-format msgid "If you see something different, you might want to start by checking the node’s network, firewall and selinux configurations." msgstr "" #. Tag: para #, no-c-format msgid "Next, check the membership and quorum APIs:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# corosync-cmapctl | grep members\n" "runtime.totem.pg.mrp.srp.members.1.config_version (u64) = 0\n" "runtime.totem.pg.mrp.srp.members.1.ip (str) = r(0) ip(192.168.122.101)\n" "runtime.totem.pg.mrp.srp.members.1.join_count (u32) = 1\n" "runtime.totem.pg.mrp.srp.members.1.status (str) = joined\n" "runtime.totem.pg.mrp.srp.members.2.config_version (u64) = 0\n" "runtime.totem.pg.mrp.srp.members.2.ip (str) = r(0) ip(192.168.122.102)\n" "runtime.totem.pg.mrp.srp.members.2.join_count (u32) = 2\n" "runtime.totem.pg.mrp.srp.members.2.status (str) = joined\n" "\n" "[root@pcmk-1 ~]# pcs status corosync\n" "Membership information\n" " --------------------------\n" " Nodeid Votes Name\n" " 1 1 pcmk-1 (local)\n" " 2 1 pcmk-2" msgstr "" #. Tag: para #, no-c-format msgid "You should see both nodes have joined the cluster." 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. Pacemaker has already been started, so verify the necessary processes are running:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# ps axf\n" " PID TTY STAT TIME COMMAND\n" " 2 ? S 0:00 [kthreadd]\n" "...lots of processes...\n" " 1362 ? Ssl 0:35 corosync\n" " 1379 ? Ss 0:00 /usr/sbin/pacemakerd -f\n" " 1380 ? Ss 0:00 \\_ /usr/libexec/pacemaker/cib\n" " 1381 ? Ss 0:00 \\_ /usr/libexec/pacemaker/stonithd\n" " 1382 ? Ss 0:00 \\_ /usr/libexec/pacemaker/lrmd\n" " 1383 ? Ss 0:00 \\_ /usr/libexec/pacemaker/attrd\n" " 1384 ? Ss 0:00 \\_ /usr/libexec/pacemaker/pengine\n" " 1385 ? Ss 0:00 \\_ /usr/libexec/pacemaker/crmd" msgstr "" #. Tag: para #, no-c-format msgid "If that looks OK, check the pcs status output:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# pcs status\n" "Cluster name: mycluster\n" "WARNING: no stonith devices and stonith-enabled is not false\n" "Last updated: Tue Dec 16 16:15:29 2014\n" "Last change: Tue Dec 16 15:49:47 2014\n" "Stack: corosync\n" "Current DC: pcmk-2 (2) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "0 Resources configured\n" "\n" "\n" "Online: [ pcmk-1 pcmk-2 ]\n" "\n" "Full list of resources:\n" "\n" "\n" "PCSD Status:\n" " pcmk-1: Online\n" " pcmk-2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Finally, ensure there are no startup errors (aside from messages relating to not having STONITH configured, which are OK at this point):" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# journalctl | grep -i error" msgstr "" #. Tag: para #, no-c-format msgid "Other operating systems may report startup errors in other locations, for example /var/log/messages." msgstr "" #. Tag: para #, no-c-format msgid "Repeat these checks on the other node. The results should be the same." msgstr "" diff --git a/doc/Clusters_from_Scratch/pot/Preface.pot b/doc/Clusters_from_Scratch/pot/Preface.pot index 01aa1cc95d..1f366bf020 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: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 6552a88957..5fed5857da 100644 --- a/doc/Clusters_from_Scratch/pot/Revision_History.pot +++ b/doc/Clusters_from_Scratch/pot/Revision_History.pot @@ -1,109 +1,109 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "" #. Tag: firstname #, no-c-format msgid "Raoul" msgstr "" #. Tag: surname #, no-c-format msgid "Scarazzini" msgstr "" #. Tag: member #, no-c-format msgid "Italian translation" msgstr "" #. Tag: member #, no-c-format msgid "Updated for Fedora 13" msgstr "" #. Tag: member #, no-c-format msgid "Update the GFS2 section to use CMAN" msgstr "" #. Tag: member #, no-c-format msgid "Generate docbook content from asciidoc sources" msgstr "" #. Tag: member #, no-c-format msgid "Updated for Fedora 17" msgstr "" #. Tag: firstname #, no-c-format msgid "David" msgstr "" #. Tag: surname #, no-c-format msgid "Vossel" msgstr "" #. Tag: member #, no-c-format msgid "Updated for pcs" msgstr "" #. Tag: firstname #, no-c-format msgid "Ken" msgstr "" #. Tag: surname #, no-c-format msgid "Gaillot" msgstr "" #. Tag: member #, no-c-format msgid "Updated for Fedora 21" msgstr "" #. Tag: member #, no-c-format msgid "Minor corrections, plus use include file for intro" msgstr "" #. Tag: member #, no-c-format msgid "Update for CentOS 7.1 and leaving firewalld/SELinux enabled" msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Author_Group.pot b/doc/Pacemaker_Development/pot/Author_Group.pot similarity index 64% copy from doc/Pacemaker_Remote/pot/Author_Group.pot copy to doc/Pacemaker_Development/pot/Author_Group.pot index 3b4203d1d1..12c6fb9897 100644 --- a/doc/Pacemaker_Remote/pot/Author_Group.pot +++ b/doc/Pacemaker_Development/pot/Author_Group.pot @@ -1,34 +1,44 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "David" +msgid "Andrew" msgstr "" #. Tag: surname #, no-c-format -msgid "Vossel" +msgid "Beekhof" msgstr "" #. Tag: orgname #, no-c-format msgid "Red Hat" msgstr "" #. Tag: contrib #, no-c-format -msgid "Primary author" +msgid "Co-author" +msgstr "" + +#. Tag: firstname +#, no-c-format +msgid "Ken" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Gaillot" msgstr "" diff --git a/doc/Pacemaker_Development/pot/Book_Info.pot b/doc/Pacemaker_Development/pot/Book_Info.pot new file mode 100644 index 0000000000..6f7e1a0424 --- /dev/null +++ b/doc/Pacemaker_Development/pot/Book_Info.pot @@ -0,0 +1,29 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Pacemaker Development" +msgstr "" + +#. Tag: subtitle +#, no-c-format +msgid "Working with the Pacemaker Code Base" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This document has guidelines and tips for developers interested in editing Pacemaker source code and submitting changes for inclusion in the project." +msgstr "" + diff --git a/doc/Pacemaker_Development/pot/Ch-Coding.pot b/doc/Pacemaker_Development/pot/Ch-Coding.pot new file mode 100644 index 0000000000..0a391620b6 --- /dev/null +++ b/doc/Pacemaker_Development/pot/Ch-Coding.pot @@ -0,0 +1,276 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "C Coding Guidelines" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "C Boilerplate" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Cboilerplate boilerplate licensingC boilerplate C boilerplate " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Every C file should start like this:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "/*\n" +" * Copyright (C) <YYYY[-YYYY]> Andrew Beekhof <andrew@beekhof.net>\n" +" *\n" +" * This source code is licensed under <LICENSE> WITHOUT ANY WARRANTY.\n" +" */" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "<YYYY> is the year the code was originally created (it is the most important date for copyright purposes, as it establishes priority and the point from which expiration is calculated). If the code is modified in later years, add -YYYY with the most recent year of modification." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "<LICENSE> should follow the policy set forth in the COPYING file, generally one of \"GNU General Public License version 2 or later (GPLv2+)\" or \"GNU Lesser General Public License version 2.1 or later (LGPLv2.1+)\"." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Formatting" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Whitespace" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Cwhitespace whitespace " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Indentation must be 4 spaces, no tabs." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not leave trailing whitespace." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Line Length" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Lines should be no longer than 80 characters unless limiting line length significantly impacts readability." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Pointers" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Cpointers pointers " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The * goes by the variable name, not the type:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "char *foo;" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Use a space before the * and after the closing parenthesis in a cast:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "char *foo = (char *) bar;" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Functions" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Cfunctions functions " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the function definition, put the return type on its own line, and place the opening brace by itself on a line:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "static int\n" +"foo(void)\n" +"{" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For functions with enough arguments that they must break to the next line, align arguments with the first argument:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "static int\n" +"function_name(int bar, const char *a, const char *b,\n" +" const char *c, const char *d)\n" +"{" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If a function name gets really long, start the arguments on their own line with 8 spaces of indentation:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "static int\n" +"really_really_long_function_name_this_is_getting_silly_now(\n" +" int bar, const char *a, const char *b,\n" +" const char *c, const char *d)\n" +"{" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Control Statements (if, else, while, for, switch)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The keyword is followed by one space, then left parenthesis without space, condition, right parenthesis, space, opening bracket on the same line. else and else if are on the same line with the ending brace and opening brace, separated by a space:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "if (condition1) {\n" +" statement1;\n" +"} else if (condition2) {\n" +" statement2;\n" +"} else {\n" +" statement3;\n" +"}" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In a switch statement, case is indented one level, and the body of each case is indented by another level. The opening brace is on the same line as switch." +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "switch (expression) {\n" +" case 0:\n" +" command1;\n" +" break;\n" +" case 1:\n" +" command2;\n" +" break;\n" +" default:\n" +" command3;\n" +"}" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Operators" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Coperators operators " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Operators have spaces from both sides. Do not rely on operator precedence; use parentheses when mixing operators with different priority." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "No space is used after opening parenthesis and before closing parenthesis." +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "x = a + b - (c * d);" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Naming Conventions" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Cnaming naming " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Any exposed symbols in libraries (non-static function names, type names, etc.) must begin with a prefix appropriate to the library, for example, crm_, pe_, st_, lrm_." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "vim Settings" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " vim " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Developers who use vim to edit source code can add the following settings to their ~/.vimrc file to follow Pacemaker C coding guidelines:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\" follow Pacemaker coding guidelines when editing C source code files\n" +"filetype plugin indent on\n" +"au FileType c setlocal expandtab tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80\n" +"autocmd BufNewFile,BufRead *.h set filetype=c\n" +"let c_space_errors = 1" +msgstr "" + diff --git a/doc/Pacemaker_Development/pot/Ch-FAQ.pot b/doc/Pacemaker_Development/pot/Ch-FAQ.pot new file mode 100644 index 0000000000..67a4f77ccd --- /dev/null +++ b/doc/Pacemaker_Development/pot/Ch-FAQ.pot @@ -0,0 +1,139 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Frequently Asked Questions" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Who is this document intended for?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Anyone who wishes to read and/or edit the Pacemaker source code. Casual contributors should feel free to read just this FAQ, and consult other sections as needed." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Where is the source code for Pacemaker?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " downloads source code gitGitHub GitHub The source code for Pacemaker is kept on GitHub, as are all software projects under the ClusterLabs umbrella. Pacemaker uses Git for source code management. If you are a Git newbie, the gittutorial(7) man page is an excellent starting point. If you’re familiar with using Git from the command line, you can create a local copy of the Pacemaker source code with: git clone https://github.com/ClusterLabs/pacemaker.git pacemaker" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "What are the different Git branches and repositories used for?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " branches " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The master branch is the primary branch used for development." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The 1.1 branch contains the latest official release, and normally does not receive any changes. During the release cycle, it will contain release candidates for the next official release, and will receive only bug fixes." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The 1.0 repository is a frozen snapshot of the 1.0 release series, and is no longer developed." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Messages will be posted to the developers@clusterlabs.org mailing list during the release cycle, with instructions about which branches to use when submitting requests." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "How do I build from the source code?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "See INSTALL.md in the main checkout directory." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "What coding style should I follow?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "You’ll be mostly fine if you simply follow the example of existing code. When unsure, see the relevant section of this document for language-specific recommendations. Pacemaker has grown and evolved organically over many years, so you will see much code that doesn’t conform to the current guidelines. We discourage making changes solely to bring code into conformance, as any change requires developer time for review and opens the possibility of adding bugs. However, new code should follow the guidelines, and it is fine to bring lines of older code into conformance when modifying that code for other reasons." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "How should I format my Git commit messages?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " gitcommit messages commit messages See existing examples in the git log. The first line should look like change-type: affected-code: explanation where change-type can be Fix or Bug for most bug fixes, Feature for new features, Log for changes to log messages or handling, Doc for changes to documentation or comments, or Test for changes in CTS and regression tests. You will sometimes see Low, Med (or Mid) and High used instead for bug fixes, to indicate the severity. The important thing is that only commits with Feature, Fix, Bug, or High will automatically be included in the change log for the next release. The affected-code is the name of the component(s) being changed, for example, crmd or libcrmcommon (it’s more free-form, so don’t sweat getting it exact). The explanation briefly describes the change. The git project recommends the entire summary line stay under 50 characters, but more is fine if needed for clarity. Except for the most simple and obvious of changes, the summary should be followed by a blank line and then a longer explanation of why the change was made." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "How can I test my changes?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Most importantly, Pacemaker has regression tests for most major components; these will automatically be run for any pull requests submitted through GitHub. Additionally, Pacemaker’s Cluster Test Suite (CTS) can be used to set up a test cluster and run a wide variety of complex tests. This document will have more detail on testing in the future." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "What is Pacemaker’s license?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " licensing Except where noted otherwise in the file itself, the source code for all Pacemaker programs is licensed under version 2 or later of the GNU General Public License (GPLv2+), its headers and libraries under version 2.1 or later of the less restrictive GNU Lesser General Public License (LGPLv2.1+), its documentation under version 4.0 or later of the Creative Commons Attribution-ShareAlike International Public License (CC-BY-SA), and its init scripts under the Revised BSD license. If you find any deviations from this policy, or wish to inquire about alternate licensing arrangements, please e-mail andrew@beekhof.net. Licensing issues are also discussed on the ClusterLabs wiki." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "How can I contribute my changes to the project?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Contributions of bug fixes or new features are very much appreciated! Patches can be submitted as pull requests via GitHub (the preferred method, due to its excellent features), or e-mailed to the developers@clusterlabs.org mailing list as an attachment in a format Git can import." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "What if I still have questions?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " mailing lists Ask on the developers@clusterlabs.org mailing list for development-related questions, or on the users@clusterlabs.org mailing list for general questions about using Pacemaker. Developers often also hang out on freenode’s #clusterlabs IRC channel." +msgstr "" + diff --git a/doc/Pacemaker_Development/pot/Ch-Python.pot b/doc/Pacemaker_Development/pot/Ch-Python.pot new file mode 100644 index 0000000000..04fc3f9c04 --- /dev/null +++ b/doc/Pacemaker_Development/pot/Ch-Python.pot @@ -0,0 +1,297 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Python Coding Guidelines" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Python Boilerplate" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Pythonboilerplate boilerplate licensingPython boilerplate Python boilerplate " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Every Python file should start like this:" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "[<SHEBANG>]\n" +"\"\"\" <BRIEF-DESCRIPTION>\n" +"\"\"\"\n" +"\n" +"# Pacemaker targets compatibility with Python 2.6+ and 3.2+\n" +"from __future__ import print_function, unicode_literals, absolute_import, division\n" +"\n" +"__copyright__ = \"Copyright (C) <YYYY[-YYYY]> Andrew Beekhof <andrew@beekhof.net>\"\n" +"__license__ = \"<LICENSE> WITHOUT ANY WARRANTY\"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If the file is meant to be directly executed, the first line (<SHEBANG>) should be #!/usr/bin/python. If it is meant to be imported, omit this line." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "<BRIEF-DESCRIPTION> is obviously a brief description of the file’s purpose. The string may contain any other information typically used in a Python file docstring." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The import statement is discussed further in ." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "<YYYY> is the year the code was originally created (it is the most important date for copyright purposes, as it establishes priority and the point from which expiration is calculated). If the code is modified in later years, add -YYYY with the most recent year of modification." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "<LICENSE> should follow the policy set forth in the COPYING file, generally one of \"GNU General Public License version 2 or later (GPLv2+)\" or \"GNU Lesser General Public License version 2.1 or later (LGPLv2.1+)\"." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Python Compatibility" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Python2 2 Python3 3 Pythonversions versions " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker targets compatibility with Python 2.6 and later, and Python 3.2 and later. These versions have added features to be more compatible with each other, allowing us to support both the 2 and 3 series with the same code. It is a good idea to test any changes with both Python 2 and 3." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Python Future Imports" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The future imports used in mean:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All print statements must use parentheses, and printing without a newline is accomplished with the end=' ' parameter rather than a trailing comma." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All string literals will be treated as Unicode (the u prefix is unnecessary, and must not be used, because it is not available in Python 3.2)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Local modules must be imported using from . import (rather than just import). To import one item from a local module, use from .modulename import (rather than from modulename import)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Division using / will always return a floating-point result (use // if you want the integer floor instead)." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Other Python Compatibility Requirements" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When specifying an exception variable, always use as instead of a comma (e.g. except Exception as e or except (TypeError, IOError) as e). Use e.args to access the error arguments (instead of iterating over or subscripting e)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Use in (not has_key()) to determine if a dictionary has a particular key." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Always use the I/O functions from the io module rather than the native I/O functions (e.g. io.open() rather than open())." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When opening a file, always use the t (text) or b (binary) mode flag." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When creating classes, always specify a parent class to ensure that it is a \"new-style\" class (e.g. class Foo(object): rather than class Foo:)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Be aware of the bytes type added in Python 3. Many places where strings are used in Python 2 use bytes or bytearrays in Python 3 (for example, the pipes used with subprocess.Popen()). Code should handle both possibilities." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Be aware that the items(), keys(), and values() methods of dictionaries return lists in Python 2 and views in Python 3. In many case, no special handling is required, but if the code needs to use list methods on the result, cast the result to list first." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not name variables with or as." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not raise or catch strings as exceptions (e.g. raise \"Bad thing\")." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not use the cmp parameter of sorting functions (use key instead, if needed) or the __cmp__() method of classes (implement rich comparison methods such as __lt__() instead, if needed)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not use the buffer type." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not use features not available in all targeted Python versions. Common examples include:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The argparse, html, ipaddress, sysconfig, and UserDict modules" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The collections.OrderedDict class" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The subprocess.run() function" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The subprocess.DEVNULL constant" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "subprocess module-specific exceptions" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Set literals ({1, 2, 3})" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Python Usages to Avoid" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Avoid the following if possible, otherwise research the compatibility issues involved (hacky workarounds are often available):" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "long integers" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "octal integer literals" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "mixed binary and string data in one data file or variable" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "metaclasses" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "locale.strcoll and locale.strxfrm" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "the configparser and ConfigParser modules" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "importing compatibility modules such as six (so we don’t have to add them to Pacemaker’s dependencies)" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Formatting Python Code" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Pythonformatting formatting " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Indentation must be 4 spaces, no tabs." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not leave trailing whitespace." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Lines should be no longer than 80 characters unless limiting line length significantly impacts readability. For Python, this limitation is flexible since breaking a line often impacts readability, but definitely keep it under 120 characters." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Where not conflicting with this style guide, it is recommended (but not required) to follow PEP 8." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "It is recommended (but not required) to format Python code such that pylint --disable=line-too-long,too-many-lines,too-many-instance-attributes,too-many-arguments,too-many-statements produces minimal complaints (even better if you don’t need to disable all those checks)." +msgstr "" + diff --git a/doc/Pacemaker_Remote/pot/Author_Group.pot b/doc/Pacemaker_Development/pot/Revision_History.pot similarity index 53% copy from doc/Pacemaker_Remote/pot/Author_Group.pot copy to doc/Pacemaker_Development/pot/Revision_History.pot index 3b4203d1d1..cfdb4e3836 100644 --- a/doc/Pacemaker_Remote/pot/Author_Group.pot +++ b/doc/Pacemaker_Development/pot/Revision_History.pot @@ -1,34 +1,39 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "David" +msgid "Ken" msgstr "" #. Tag: surname #, no-c-format -msgid "Vossel" +msgid "Gaillot" msgstr "" -#. Tag: orgname +#. Tag: member #, no-c-format -msgid "Red Hat" +msgid "Convert coding guidelines and developer FAQ to Publican document" msgstr "" -#. Tag: contrib +#. Tag: member #, no-c-format -msgid "Primary author" +msgid "Add Python coding guidelines, and more about licensing" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-Debug.pot b/doc/Pacemaker_Explained/pot/Ap-Debug.pot index 3da22721c0..9a815092cd 100644 --- a/doc/Pacemaker_Explained/pot/Ap-Debug.pot +++ b/doc/Pacemaker_Explained/pot/Ap-Debug.pot @@ -1,189 +1,189 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Debugging Cluster Startup" msgstr "" #. Tag: title #, no-c-format msgid "Corosync" msgstr "" #. Tag: title #, no-c-format msgid "Prerequisites" msgstr "" #. Tag: title #, no-c-format msgid "Minimum logging configuration" msgstr "" #. Tag: programlisting #, no-c-format msgid "\n" " # /etc/init.d/openais start\n" " \n" " \n" " logging {\n" " to_syslog: yes\n" " syslog_facility: daemon\n" " }\n" " \n" " " msgstr "" #. Tag: caption #, no-c-format msgid "Whatever other logging you have, these two lines are required for Pacemaker clusters" msgstr "" #. Tag: title #, no-c-format msgid "Confirm Corosync Started" msgstr "" #. Tag: title #, no-c-format msgid "Expected output when starting openais" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " # /etc/init.d/openais start\n" " \n" " \n" " Starting Corosync daemon (aisexec): starting... rc=0: OK\n" " \n" " " msgstr "" #. Tag: title #, no-c-format msgid "Expected log messages - startup" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " # grep -e \"openais.*network interface\" -e \"AIS Executive Service\" /var/log/messages\n" " \n" " \n" " Aug 27 16:23:37 test1 openais[26337]: [MAIN ] AIS Executive Service RELEASE 'subrev 1152 version 0.80'\n" " Aug 27 16:23:38 test1 openais[26337]: [MAIN ] AIS Executive Service: started and ready to provide service.\n" " Aug 27 16:23:38 test1 openais[26337]: [TOTEM] The network interface [192.168.9.41] is now up.\n" " \n" " " msgstr "" #. Tag: caption #, no-c-format msgid "The versions may differ, but you should see Corosync indicate it started and sucessfully attached to the machine's network interface" msgstr "" #. Tag: title #, no-c-format msgid "Expected log messages - membership" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " # grep CLM /var/log/messages\n" " \n" " \n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] CLM CONFIGURATION CHANGE\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] New Configuration:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] Members Left:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] Members Joined:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] CLM CONFIGURATION CHANGE\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] New Configuration:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] r(0) ip(192.168.9.41)\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] Members Left:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] Members Joined:\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] r(0) ip(192.168.9.41)\n" " Aug 27 16:53:15 test1 openais[2166]: [CLM ] got nodejoin message 192.168.9.41\n" " \n" " " msgstr "" #. Tag: caption #, no-c-format msgid "The exact messages will differ, but you should see a new membership formed with the real IP address of your node" msgstr "" #. Tag: title #, no-c-format msgid "Checking Pacemaker" 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: title #, no-c-format msgid "Expected Pacemaker startup logging for Corosync" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " # grep pcmk_plugin_init /var/log/messages\n" " \n" " \n" " Aug 27 16:53:15 test1 openais[2166]: [pcmk ] info: pcmk_plugin_init: CRM: Initialized\n" " Aug 27 16:53:15 test1 openais[2166]: [pcmk ] Logging: Initialized pcmk_plugin_init\n" " Aug 27 16:53:15 test1 openais[2166]: [pcmk ] info: pcmk_plugin_init: Service: 9\n" " Aug 27 16:53:15 test1 openais[2166]: [pcmk ] info: pcmk_plugin_init: Local hostname: test1\n" " \n" " " msgstr "" #. Tag: caption #, no-c-format msgid "If you don't see these messages, or some like them, there is likely a problem finding or loading the pacemaker plugin." msgstr "" #. Tag: title #, no-c-format msgid "Expected process listing on a 64-bit machine" msgstr "" #. Tag: screen #, no-c-format msgid "\n" " # ps axf\n" " \n" " \n" " 3718 ? Ssl 0:05 /usr/sbin/aisexec\n" " 3723 ? SLs 0:00 \\_ /usr/lib64/heartbeat/stonithd\n" " 3724 ? S 0:05 \\_ /usr/lib64/heartbeat/cib\n" " 3725 ? S 0:21 \\_ /usr/lib64/heartbeat/lrmd\n" " 3726 ? S 0:01 \\_ /usr/lib64/heartbeat/attrd\n" " 3727 ? S 0:00 \\_ /usr/lib64/heartbeat/pengine\n" " 3728 ? S 0:01 \\_ /usr/lib64/heartbeat/crmd\n" " \n" " " msgstr "" #. Tag: caption #, no-c-format msgid "On 32-bit systems the exact path may differ, but all the above processes should be listed." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-FAQ.pot b/doc/Pacemaker_Explained/pot/Ap-FAQ.pot index 47d40a5941..84b0312b47 100644 --- a/doc/Pacemaker_Explained/pot/Ap-FAQ.pot +++ b/doc/Pacemaker_Explained/pot/Ap-FAQ.pot @@ -1,124 +1,124 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "FAQ" msgstr "" #. Tag: para #, no-c-format msgid "Why is the Project Called Pacemaker?" msgstr "" #. Tag: para #, no-c-format msgid " Pacemaker First of all, the reason it’s not called the CRM is because of the abundance of terms http://en.wikipedia.org/wiki/CRM that are commonly abbreviated to those three letters. The Pacemaker name came from Kham, http://khamsouk.souvanlasy.com/ a good friend of Pacemaker developer Andrew Beekhof’s, and was originally used by a Java GUI that Beekhof was prototyping in early 2007. Alas, other commitments prevented the GUI from progressing much and, when it came time to choose a name for this project, Lars Marowsky-Bree suggested it was an even better fit for an independent CRM. The idea stems from the analogy between the role of this software and that of the little device that keeps the human heart pumping. Pacemaker monitors the cluster and intervenes when necessary to ensure the smooth operation of the services it provides. There were a number of other names (and acronyms) tossed around, but suffice to say \"Pacemaker\" was the best." msgstr "" #. Tag: para #, no-c-format msgid "Why was the Pacemaker Project Created?" msgstr "" #. Tag: para #, no-c-format msgid "The decision was made to spin-off the CRM into its own project after the 2.1.3 Heartbeat release in order to:" msgstr "" #. Tag: para #, no-c-format msgid "support both the Corosync and Heartbeat cluster stacks equally" msgstr "" #. Tag: para #, no-c-format msgid "decouple the release cycles of two projects at very different stages of their life-cycles" msgstr "" #. Tag: para #, no-c-format msgid "foster clearer package boundaries, thus leading to better and more stable interfaces" msgstr "" #. Tag: para #, no-c-format msgid "What Messaging Layers are Supported?" msgstr "" #. Tag: para #, no-c-format msgid " Messaging Layers " msgstr "" #. Tag: para #, no-c-format msgid "Corosync" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat" msgstr "" #. Tag: para #, no-c-format msgid "Can I Choose Which Messaging Layer to Use at Run Time?" msgstr "" #. Tag: para #, no-c-format msgid "Yes. The CRM will automatically detect which started it and behave accordingly." msgstr "" #. Tag: para #, no-c-format msgid "Can I Have a Mixed Heartbeat-Corosync Cluster?" msgstr "" #. Tag: para #, no-c-format msgid "No." msgstr "" #. Tag: para #, no-c-format msgid " Which Messaging Layer Should I Choose?" msgstr "" #. Tag: para #, no-c-format msgid " ClusterChoosing Between Heartbeat and Corosync Choosing Between Heartbeat and Corosync Cluster StackCorosync Corosync Corosync Cluster StackHeartbeat Heartbeat Heartbeat You can choose from multiple messaging layers, including heartbeat, corosync 1 (with or without CMAN), and corosync 2. Corosync 2 is the current state of the art due to its more advanced features and better support for pacemaker, but often the best choice is to use whatever comes with your Linux distribution, and follow the distribution’s setup instructions." msgstr "" #. Tag: para #, no-c-format msgid "Where Can I Get Pre-built Packages?" msgstr "" #. Tag: para #, no-c-format msgid "Most major Linux distributions have pacemaker packages in their standard package repositories. See the Install wiki page for details." msgstr "" #. Tag: para #, no-c-format msgid "What Versions of Pacemaker Are Supported?" msgstr "" #. Tag: para #, no-c-format msgid "Some Linux distributions (such as Red Hat Enterprise Linux and SUSE Linux Enterprise) offer technical support for their customers; contact them for details of such support. For help within the community (mailing lists, IRC, etc.) from Pacemaker developers and users, refer to the Releases wiki page for an up-to-date list of versions considered to be supported by the project. When seeking assistance, please try to ensure you have one of these versions." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-Install.pot b/doc/Pacemaker_Explained/pot/Ap-Install.pot index 6148f76a9c..bb5a76cf9e 100644 --- a/doc/Pacemaker_Explained/pot/Ap-Install.pot +++ b/doc/Pacemaker_Explained/pot/Ap-Install.pot @@ -1,268 +1,268 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Installing" msgstr "" #. Tag: title #, no-c-format msgid "Installing the Software" msgstr "" #. Tag: para #, no-c-format msgid "Most major Linux distributions have pacemaker packages in their standard package repositories, or the software can be built from source code. See the Install wiki page for details." msgstr "" #. Tag: para #, no-c-format msgid "See Which Messaging Layer Should I Choose? for information about choosing a messaging layer." msgstr "" #. Tag: title #, no-c-format msgid "Enabling Pacemaker" msgstr "" #. Tag: title #, no-c-format msgid "Enabling Pacemaker For Corosync 2.x" msgstr "" #. Tag: para #, no-c-format msgid "High-level cluster management tools are available that can configure corosync for you. This document focuses on the lower-level details if you want to configure corosync yourself." msgstr "" #. Tag: para #, no-c-format msgid "Corosync configuration is normally located in /etc/corosync/corosync.conf." msgstr "" #. Tag: title #, no-c-format msgid "Corosync 2.x configuration file for two nodes myhost1 and myhost2" msgstr "" #. Tag: screen #, no-c-format msgid "totem {\n" "version: 2\n" "secauth: off\n" "cluster_name: mycluster\n" "transport: udpu\n" "}\n" "\n" "nodelist {\n" " node {\n" " ring0_addr: myhost1\n" " nodeid: 1\n" " }\n" " node {\n" " ring0_addr: myhost2\n" " nodeid: 2\n" " }\n" "}\n" "\n" "quorum {\n" "provider: corosync_votequorum\n" "two_node: 1\n" "}\n" "\n" "logging {\n" "to_syslog: yes\n" "}" msgstr "" #. Tag: title #, no-c-format msgid "Corosync 2.x configuration file for three nodes myhost1, myhost2 and myhost3" msgstr "" #. Tag: screen #, no-c-format msgid "totem {\n" "version: 2\n" "secauth: off\n" "cluster_name: mycluster\n" "transport: udpu\n" "}\n" "\n" "nodelist {\n" " node {\n" " ring0_addr: myhost1\n" " nodeid: 1\n" " }\n" " node {\n" " ring0_addr: myhost2\n" " nodeid: 2\n" " }\n" " node {\n" " ring0_addr: myhost3\n" " nodeid: 3\n" " }\n" "}\n" "\n" "quorum {\n" "provider: corosync_votequorum\n" "\n" "}\n" "\n" "logging {\n" "to_syslog: yes\n" "}" msgstr "" #. Tag: para #, no-c-format msgid "In the above examples, the totem section defines what protocol version and options (including encryption) to use, Please consult the Corosync website (http://www.corosync.org/) and documentation for details on enabling encryption and peer authentication for the cluster. and gives the cluster a unique name (mycluster in these examples)." msgstr "" #. Tag: para #, no-c-format msgid "The node section lists the nodes in this cluster. (See for how this affects pacemaker.)" msgstr "" #. Tag: para #, no-c-format msgid "The quorum section defines how the cluster uses quorum. The important thing is that two-node clusters must be handled specially, so two_node: 1 must be defined for two-node clusters (and only for two-node clusters)." msgstr "" #. Tag: para #, no-c-format msgid "The logging section should be self-explanatory." msgstr "" #. Tag: title #, no-c-format msgid "Enabling Pacemaker For Corosync 1.x" msgstr "" #. Tag: title #, no-c-format msgid "Corosync 1.x configuration file for a cluster with all nodes on the 192.0.2.0/24 network" msgstr "" #. Tag: programlisting #, no-c-format msgid " totem {\n" " version: 2\n" " secauth: off\n" " threads: 0\n" " interface {\n" " ringnumber: 0\n" " bindnetaddr: 192.0.2.0\n" " mcastaddr: 239.255.1.1\n" " mcastport: 1234\n" " }\n" " }\n" " logging {\n" " fileline: off\n" " to_syslog: yes\n" " syslog_facility: daemon\n" " }\n" " amf {\n" " mode: disabled\n" " }" msgstr "" #. Tag: para #, no-c-format msgid "With corosync 1.x, the totem section contains the protocol version and options as with 2.x. However, nodes are also listed here, in the interface section. The bindnetaddr option is usually the network address, thus allowing the same configuration file to be used on all nodes. IPv4 or IPv6 addresses can be used with corosync." msgstr "" #. Tag: para #, no-c-format msgid "The amf section refers to the Availability Management Framework and is not covered in this document." msgstr "" #. Tag: para #, no-c-format msgid "The above corosync configuration is enough for corosync to operate by itself, but corosync 1.x additionally needs to be told when it is being used in conjunction with Pacemaker. This can be accomplished in one of two ways:" msgstr "" #. Tag: para #, no-c-format msgid "Via the CMAN software provided with Red Hat Enterprise Linux 6 and its derivatives" msgstr "" #. Tag: para #, no-c-format msgid "Via the pacemaker corosync plugin" msgstr "" #. Tag: para #, no-c-format msgid "To use CMAN, consult its documentation." msgstr "" #. Tag: para #, no-c-format msgid "To use the pacemaker corosync plugin, add the following fragment to the corosync configuration and restart the cluster." msgstr "" #. Tag: title #, no-c-format msgid "Corosync 1._x_configuration fragment to enable Pacemaker plugin" msgstr "" #. Tag: programlisting #, no-c-format msgid "aisexec {\n" " user: root\n" " group: root\n" "}\n" "service {\n" " name: pacemaker\n" " ver: 0\n" "}" msgstr "" #. Tag: para #, no-c-format msgid "The cluster needs to be run as root so that its child processes (the lrmd in particular) have sufficient privileges to perform the actions requested of it. After all, a cluster manager that can’t add an IP address or start apache is of little use." msgstr "" #. Tag: para #, no-c-format msgid "The second directive is the one that actually instructs the cluster to run Pacemaker." msgstr "" #. Tag: title #, no-c-format msgid "Enabling Pacemaker For Heartbeat" msgstr "" #. Tag: para #, no-c-format msgid "See the heartbeat documentation for how to set up a ha.cf configuration file." msgstr "" #. Tag: para #, no-c-format msgid "To enable the use of pacemaker with heartbeat, add the following to a functional ha.cf configuration file and restart Heartbeat:" msgstr "" #. Tag: title #, no-c-format msgid "Heartbeat configuration fragment to enable Pacemaker" msgstr "" #. Tag: screen #, no-c-format msgid "crm respawn" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-LSB.pot b/doc/Pacemaker_Explained/pot/Ap-LSB.pot index a09d77916c..f34d4428f7 100644 --- a/doc/Pacemaker_Explained/pot/Ap-LSB.pot +++ b/doc/Pacemaker_Explained/pot/Ap-LSB.pot @@ -1,139 +1,139 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Init Script LSB Compliance" msgstr "" #. Tag: para #, no-c-format msgid "The relevant part of the LSB specifications includes a description of all the return codes listed here." msgstr "" #. Tag: para #, no-c-format msgid "Assuming some_service is configured correctly and currently inactive, the following sequence will help you determine if it is LSB-compatible:" msgstr "" #. Tag: para #, no-c-format msgid "Start (stopped):" msgstr "" #. Tag: screen #, no-c-format msgid "# /etc/init.d/some_service start ; echo \"result: $?\"" msgstr "" #. Tag: para #, no-c-format msgid "Did the service start?" msgstr "" #. Tag: para #, no-c-format msgid "Did the command print result: 0 (in addition to its usual output)?" msgstr "" #. Tag: para #, no-c-format msgid "Status (running):" msgstr "" #. Tag: screen #, no-c-format msgid "# /etc/init.d/some_service status ; echo \"result: $?\"" msgstr "" #. Tag: para #, no-c-format msgid "Did the script accept the command?" msgstr "" #. Tag: para #, no-c-format msgid "Did the script indicate the service was running?" msgstr "" #. Tag: para #, no-c-format msgid "Start (running):" msgstr "" #. Tag: para #, no-c-format msgid "Is the service still running?" msgstr "" #. Tag: para #, no-c-format msgid "Stop (running):" msgstr "" #. Tag: screen #, no-c-format msgid "# /etc/init.d/some_service stop ; echo \"result: $?\"" msgstr "" #. Tag: para #, no-c-format msgid "Was the service stopped?" msgstr "" #. Tag: para #, no-c-format msgid "Status (stopped):" msgstr "" #. Tag: para #, no-c-format msgid "Did the script indicate the service was not running?" msgstr "" #. Tag: para #, no-c-format msgid "Did the command print result: 3 (in addition to its usual output)?" msgstr "" #. Tag: para #, no-c-format msgid "Stop (stopped):" msgstr "" #. Tag: para #, no-c-format msgid "Is the service still stopped?" msgstr "" #. Tag: para #, no-c-format msgid "Status (failed):" msgstr "" #. Tag: para #, no-c-format msgid "This step is not readily testable and relies on manual inspection of the script." msgstr "" #. Tag: para #, no-c-format msgid "The script can use one of the error codes (other than 3) listed in the LSB spec to indicate that it is active but failed. This tells the cluster that before moving the resource to another node, it needs to stop it on the existing one first." msgstr "" #. Tag: para #, no-c-format msgid "If the answer to any of the above questions is no, then the script is not LSB-compliant. Your options are then to either fix the script or write an OCF agent based on the existing script." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-OCF.pot b/doc/Pacemaker_Explained/pot/Ap-OCF.pot index 34e1c3032d..2c20cdee0e 100644 --- a/doc/Pacemaker_Explained/pot/Ap-OCF.pot +++ b/doc/Pacemaker_Explained/pot/Ap-OCF.pot @@ -1,514 +1,514 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "More About OCF Resource Agents" msgstr "" #. Tag: title #, no-c-format msgid "Location of Custom Scripts" msgstr "" #. Tag: para #, no-c-format msgid " OCF Resource Agents OCF Resource Agents are found in /usr/lib/ocf/resource.d/provider" msgstr "" #. Tag: para #, no-c-format msgid "When creating your own agents, you are encouraged to create a new directory under /usr/lib/ocf/resource.d/ so that they are not confused with (or overwritten by) the agents shipped by existing providers." msgstr "" #. Tag: para #, no-c-format msgid "So, for example, if you choose the provider name of bigCorp and want a new resource named bigApp, you would create a resource agent called /usr/lib/ocf/resource.d/bigCorp/bigApp and define a resource:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"custom-app\" class=\"ocf\" provider=\"bigCorp\" type=\"bigApp\"/>" msgstr "" #. Tag: title #, no-c-format msgid "Actions" msgstr "" #. Tag: para #, no-c-format msgid "All OCF resource agents are required to implement the following actions." msgstr "" #. Tag: title #, no-c-format msgid "Required Actions for OCF Agents" msgstr "" #. Tag: entry #, no-c-format msgid "Action" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: entry #, no-c-format msgid "Instructions" msgstr "" #. Tag: para #, no-c-format msgid "start" msgstr "" #. Tag: para #, no-c-format msgid "Start the resource" msgstr "" #. Tag: para #, no-c-format msgid "Return 0 on success and an appropriate error code otherwise. Must not report success until the resource is fully active. startOCF Action OCF Action OCFActionstart Actionstart start " msgstr "" #. Tag: para #, no-c-format msgid "stop" msgstr "" #. Tag: para #, no-c-format msgid "Stop the resource" msgstr "" #. Tag: para #, no-c-format msgid "Return 0 on success and an appropriate error code otherwise. Must not report success until the resource is fully stopped. stopOCF Action OCF Action OCFActionstop Actionstop stop " msgstr "" #. Tag: para #, no-c-format msgid "monitor" msgstr "" #. Tag: para #, no-c-format msgid "Check the resource’s state" msgstr "" #. Tag: para #, no-c-format msgid "Exit 0 if the resource is running, 7 if it is stopped, and anything else if it is failed. monitorOCF Action OCF Action OCFActionmonitor Actionmonitor monitor " msgstr "" #. Tag: para #, no-c-format msgid "NOTE: The monitor script should test the state of the resource on the local machine only." msgstr "" #. Tag: para #, no-c-format msgid "meta-data" msgstr "" #. Tag: para #, no-c-format msgid "Describe the resource" msgstr "" #. Tag: para #, no-c-format msgid "Provide information about this resource as an XML snippet. Exit with 0. meta-dataOCF Action OCF Action OCFActionmeta-data Actionmeta-data meta-data " msgstr "" #. Tag: para #, no-c-format msgid "NOTE: This is not performed as root." msgstr "" #. Tag: para #, no-c-format msgid "validate-all" msgstr "" #. Tag: para #, no-c-format msgid "Verify the supplied parameters" msgstr "" #. Tag: para #, no-c-format msgid "Return 0 if parameters are valid, 2 if not valid, and 6 if resource is not configured. validate-allOCF Action OCF Action OCFActionvalidate-all Actionvalidate-all validate-all " msgstr "" #. Tag: para #, no-c-format msgid "Additional requirements (not part of the OCF specification) are placed on agents that will be used for advanced concepts such as clones and multi-state resources." msgstr "" #. Tag: title #, no-c-format msgid "Optional Actions for OCF Resource Agents" msgstr "" #. Tag: para #, no-c-format msgid "promote" msgstr "" #. Tag: para #, no-c-format msgid "Promote the local instance of a multi-state resource to the master (primary) state." msgstr "" #. Tag: para #, no-c-format msgid "Return 0 on success promoteOCF Action OCF Action OCFActionpromote Actionpromote promote " msgstr "" #. Tag: para #, no-c-format msgid "demote" msgstr "" #. Tag: para #, no-c-format msgid "Demote the local instance of a multi-state resource to the slave (secondary) state." msgstr "" #. Tag: para #, no-c-format msgid "Return 0 on success demoteOCF Action OCF Action OCFActiondemote Actiondemote demote " msgstr "" #. Tag: para #, no-c-format msgid "notify" msgstr "" #. Tag: para #, no-c-format msgid "Used by the cluster to send the agent pre- and post-notification events telling the resource what has happened and will happen." msgstr "" #. Tag: para #, no-c-format msgid "Must not fail. Must exit with 0 notifyOCF Action OCF Action OCFActionnotify Actionnotify notify " msgstr "" #. Tag: para #, no-c-format msgid "One action specified in the OCF specs, recover, is not currently used by the cluster. It is intended to be a variant of the start action that tries to recover a resource locally." msgstr "" #. Tag: para #, no-c-format msgid "If you create a new OCF resource agent, use ocf-tester ocf-tester to verify that the agent complies with the OCF standard properly." msgstr "" #. Tag: title #, no-c-format msgid "How are OCF Return Codes Interpreted?" msgstr "" #. Tag: para #, no-c-format msgid "The first thing the cluster does is to check the return code against the expected result. If the result does not match the expected value, then the operation is considered to have failed, and recovery action is initiated." msgstr "" #. Tag: para #, no-c-format msgid "There are three types of failure recovery:" msgstr "" #. Tag: title #, no-c-format msgid "Types of recovery performed by the cluster" msgstr "" #. Tag: entry #, no-c-format msgid "Type" msgstr "" #. Tag: entry #, no-c-format msgid "Action Taken by the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "soft" msgstr "" #. Tag: para #, no-c-format msgid "A transient error occurred" msgstr "" #. Tag: para #, no-c-format msgid "Restart the resource or move it to a new location softOCF error OCF error OCFerrorsoft errorsoft soft " msgstr "" #. Tag: para #, no-c-format msgid "hard" msgstr "" #. Tag: para #, no-c-format msgid "A non-transient error that may be specific to the current node occurred" msgstr "" #. Tag: para #, no-c-format msgid "Move the resource elsewhere and prevent it from being retried on the current node hardOCF error OCF error OCFerrorhard errorhard hard " msgstr "" #. Tag: para #, no-c-format msgid "fatal" msgstr "" #. Tag: para #, no-c-format msgid "A non-transient error that will be common to all cluster nodes (e.g. a bad configuration was specified)" msgstr "" #. Tag: para #, no-c-format msgid "Stop the resource and prevent it from being started on any cluster node fatalOCF error OCF error OCFerrorfatal errorfatal fatal " msgstr "" #. Tag: title #, no-c-format msgid "OCF Return Codes" msgstr "" #. Tag: para #, no-c-format msgid "The following table outlines the different OCF return codes and the type of recovery the cluster will initiate when a failure code is received. Although counterintuitive, even actions that return 0 (aka. OCF_SUCCESS) can be considered to have failed, if 0 was not the expected return value." msgstr "" #. Tag: title #, no-c-format msgid "OCF Return Codes and their Recovery Types" msgstr "" #. Tag: entry #, no-c-format msgid "RC" msgstr "" #. Tag: entry #, no-c-format msgid "OCF Alias" msgstr "" #. Tag: entry #, no-c-format msgid "RT" msgstr "" #. Tag: para #, no-c-format msgid "0" msgstr "" #. Tag: para #, no-c-format msgid "OCF_SUCCESS" msgstr "" #. Tag: para #, no-c-format msgid "Success. The command completed successfully. This is the expected result for all start, stop, promote and demote commands. Return CodeOCF_SUCCESS OCF_SUCCESS Return Code0OCF_SUCCESS 0OCF_SUCCESS OCF_SUCCESS " msgstr "" #. Tag: para #, no-c-format msgid "1" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_GENERIC" msgstr "" #. Tag: para #, no-c-format msgid "Generic \"there was a problem\" error code. Return CodeOCF_ERR_GENERIC OCF_ERR_GENERIC Return Code1OCF_ERR_GENERIC 1OCF_ERR_GENERIC OCF_ERR_GENERIC " msgstr "" #. Tag: para #, no-c-format msgid "2" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_ARGS" msgstr "" #. Tag: para #, no-c-format msgid "The resource’s configuration is not valid on this machine. E.g. it refers to a location not found on the node. Return CodeOCF_ERR_ARGS OCF_ERR_ARGS Return Code2OCF_ERR_ARGS 2OCF_ERR_ARGS OCF_ERR_ARGS " msgstr "" #. Tag: para #, no-c-format msgid "3" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_UNIMPLEMENTED" msgstr "" #. Tag: para #, no-c-format msgid "The requested action is not implemented. Return CodeOCF_ERR_UNIMPLEMENTED OCF_ERR_UNIMPLEMENTED Return Code3OCF_ERR_UNIMPLEMENTED 3OCF_ERR_UNIMPLEMENTED OCF_ERR_UNIMPLEMENTED " msgstr "" #. Tag: para #, no-c-format msgid "4" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_PERM" msgstr "" #. Tag: para #, no-c-format msgid "The resource agent does not have sufficient privileges to complete the task. Return CodeOCF_ERR_PERM OCF_ERR_PERM Return Code4OCF_ERR_PERM 4OCF_ERR_PERM OCF_ERR_PERM " msgstr "" #. Tag: para #, no-c-format msgid "5" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_INSTALLED" msgstr "" #. Tag: para #, no-c-format msgid "The tools required by the resource are not installed on this machine. Return CodeOCF_ERR_INSTALLED OCF_ERR_INSTALLED Return Code5OCF_ERR_INSTALLED 5OCF_ERR_INSTALLED OCF_ERR_INSTALLED " msgstr "" #. Tag: para #, no-c-format msgid "6" msgstr "" #. Tag: para #, no-c-format msgid "OCF_ERR_CONFIGURED" msgstr "" #. Tag: para #, no-c-format msgid "The resource’s configuration is invalid. E.g. required parameters are missing. Return CodeOCF_ERR_CONFIGURED OCF_ERR_CONFIGURED Return Code6OCF_ERR_CONFIGURED 6OCF_ERR_CONFIGURED OCF_ERR_CONFIGURED " msgstr "" #. Tag: para #, no-c-format msgid "7" msgstr "" #. Tag: para #, no-c-format msgid "OCF_NOT_RUNNING" msgstr "" #. Tag: para #, no-c-format msgid "The resource is safely stopped. The cluster will not attempt to stop a resource that returns this for any action. Return CodeOCF_NOT_RUNNING OCF_NOT_RUNNING Return Code7OCF_NOT_RUNNING 7OCF_NOT_RUNNING OCF_NOT_RUNNING " msgstr "" #. Tag: para #, no-c-format msgid "N/A" msgstr "" #. Tag: para #, no-c-format msgid "8" msgstr "" #. Tag: para #, no-c-format msgid "OCF_RUNNING_MASTER" msgstr "" #. Tag: para #, no-c-format msgid "The resource is running in master mode. Return CodeOCF_RUNNING_MASTER OCF_RUNNING_MASTER Return Code8OCF_RUNNING_MASTER 8OCF_RUNNING_MASTER OCF_RUNNING_MASTER " msgstr "" #. Tag: para #, no-c-format msgid "9" msgstr "" #. Tag: para #, no-c-format msgid "OCF_FAILED_MASTER" msgstr "" #. Tag: para #, no-c-format msgid "The resource is in master mode but has failed. The resource will be demoted, stopped and then started (and possibly promoted) again. Return CodeOCF_FAILED_MASTER OCF_FAILED_MASTER Return Code9OCF_FAILED_MASTER 9OCF_FAILED_MASTER OCF_FAILED_MASTER " msgstr "" #. Tag: para #, no-c-format msgid "other" msgstr "" #. Tag: para #, no-c-format msgid "Custom error code. Return Codeother other " msgstr "" #. Tag: para #, no-c-format msgid "Exceptions to the recovery handling described above:" msgstr "" #. Tag: para #, no-c-format msgid "Probes (non-recurring monitor actions) that find a resource active (or in master mode) will not result in recovery action unless it is also found active elsewhere." msgstr "" #. Tag: para #, no-c-format msgid "The recovery action taken when a resource is found active more than once is determined by the resource’s multiple-active property (see )." msgstr "" #. Tag: para #, no-c-format msgid "Recurring actions that return OCF_ERR_UNIMPLEMENTED do not cause any type of recovery." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-Samples.pot b/doc/Pacemaker_Explained/pot/Ap-Samples.pot index e6aac2e68a..a411b88deb 100644 --- a/doc/Pacemaker_Explained/pot/Ap-Samples.pot +++ b/doc/Pacemaker_Explained/pot/Ap-Samples.pot @@ -1,184 +1,184 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 Configurations" msgstr "" #. Tag: title #, no-c-format msgid "Empty" msgstr "" #. Tag: title #, no-c-format msgid "An Empty Configuration" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.7\" validate-with=\"pacemaker-1.2\" admin_epoch=\"1\" epoch=\"0\" num_updates=\"0\">\n" " <configuration>\n" " <crm_config/>\n" " <nodes/>\n" " <resources/>\n" " <constraints/>\n" " </configuration>\n" " <status/>\n" "</cib>" msgstr "" #. Tag: title #, no-c-format msgid "Simple" msgstr "" #. Tag: title #, no-c-format msgid "A simple configuration with two nodes, some cluster options and a resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.7\" validate-with=\"pacemaker-1.2\" admin_epoch=\"1\" epoch=\"0\" num_updates=\"0\">\n" " <configuration>\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"option-1\" name=\"symmetric-cluster\" value=\"true\"/>\n" " <nvpair id=\"option-2\" name=\"no-quorum-policy\" value=\"stop\"/>\n" " <nvpair id=\"option-3\" name=\"stonith-enabled\" value=\"0\"/>\n" " </cluster_property_set>\n" " </crm_config>\n" " <nodes>\n" " <node id=\"xxx\" uname=\"c001n01\" type=\"normal\"/>\n" " <node id=\"yyy\" uname=\"c001n02\" type=\"normal\"/>\n" " </nodes>\n" " <resources>\n" " <primitive id=\"myAddr\" class=\"ocf\" provider=\"heartbeat\" type=\"IPaddr\">\n" " <operations>\n" " <op id=\"myAddr-monitor\" name=\"monitor\" interval=\"300s\"/>\n" " </operations>\n" " <instance_attributes id=\"myAddr-params\">\n" " <nvpair id=\"myAddr-ip\" name=\"ip\" value=\"192.0.2.10\"/>\n" " </instance_attributes>\n" " </primitive>\n" " </resources>\n" " <constraints>\n" " <rsc_location id=\"myAddr-prefer\" rsc=\"myAddr\" node=\"c001n01\" score=\"INFINITY\"/>\n" " </constraints>\n" " <rsc_defaults>\n" " <meta_attributes id=\"rsc_defaults-options\">\n" " <nvpair id=\"rsc-default-1\" name=\"resource-stickiness\" value=\"100\"/>\n" " <nvpair id=\"rsc-default-2\" name=\"migration-threshold\" value=\"10\"/>\n" " </meta_attributes>\n" " </rsc_defaults>\n" " <op_defaults>\n" " <meta_attributes id=\"op_defaults-options\">\n" " <nvpair id=\"op-default-1\" name=\"timeout\" value=\"30s\"/>\n" " </meta_attributes>\n" " </op_defaults>\n" " </configuration>\n" " <status/>\n" "</cib>" msgstr "" #. Tag: para #, no-c-format msgid "In the above example, we have one resource (an IP address) that we check every five minutes and will run on host c001n01 until either the resource fails 10 times or the host shuts down." msgstr "" #. Tag: title #, no-c-format msgid "Advanced Configuration" msgstr "" #. Tag: title #, no-c-format msgid "An advanced configuration with groups, clones and STONITH" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.7\" validate-with=\"pacemaker-1.2\" admin_epoch=\"1\" epoch=\"0\" num_updates=\"0\">\n" " <configuration>\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"option-1\" name=\"symmetric-cluster\" value=\"true\"/>\n" " <nvpair id=\"option-2\" name=\"no-quorum-policy\" value=\"stop\"/>\n" " <nvpair id=\"option-3\" name=\"stonith-enabled\" value=\"true\"/>\n" " </cluster_property_set>\n" " </crm_config>\n" " <nodes>\n" " <node id=\"xxx\" uname=\"c001n01\" type=\"normal\"/>\n" " <node id=\"yyy\" uname=\"c001n02\" type=\"normal\"/>\n" " <node id=\"zzz\" uname=\"c001n03\" type=\"normal\"/>\n" " </nodes>\n" " <resources>\n" " <primitive id=\"myAddr\" class=\"ocf\" provider=\"heartbeat\" type=\"IPaddr\">\n" " <operations>\n" " <op id=\"myAddr-monitor\" name=\"monitor\" interval=\"300s\"/>\n" " </operations>\n" " <instance_attributes id=\"myAddr-attrs\">\n" " <nvpair id=\"myAddr-attr-1\" name=\"ip\" value=\"192.0.2.10\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <group id=\"myGroup\">\n" " <primitive id=\"database\" class=\"lsb\" type=\"oracle\">\n" " <operations>\n" " <op id=\"database-monitor\" name=\"monitor\" interval=\"300s\"/>\n" " </operations>\n" " </primitive>\n" " <primitive id=\"webserver\" class=\"lsb\" type=\"apache\">\n" " <operations>\n" " <op id=\"webserver-monitor\" name=\"monitor\" interval=\"300s\"/>\n" " </operations>\n" " </primitive>\n" " </group>\n" " <clone id=\"STONITH\">\n" " <meta_attributes id=\"stonith-options\">\n" " <nvpair id=\"stonith-option-1\" name=\"globally-unique\" value=\"false\"/>\n" " </meta_attributes>\n" " <primitive id=\"stonithclone\" class=\"stonith\" type=\"external/ssh\">\n" " <operations>\n" " <op id=\"stonith-op-mon\" name=\"monitor\" interval=\"5s\"/>\n" " </operations>\n" " <instance_attributes id=\"stonith-attrs\">\n" " <nvpair id=\"stonith-attr-1\" name=\"hostlist\" value=\"c001n01,c001n02\"/>\n" " </instance_attributes>\n" " </primitive>\n" " </clone>\n" " </resources>\n" " <constraints>\n" " <rsc_location id=\"myAddr-prefer\" rsc=\"myAddr\" node=\"c001n01\"\n" " score=\"INFINITY\"/>\n" " <rsc_colocation id=\"group-with-ip\" rsc=\"myGroup\" with-rsc=\"myAddr\"\n" " score=\"INFINITY\"/>\n" " </constraints>\n" " <op_defaults>\n" " <meta_attributes id=\"op_defaults-options\">\n" " <nvpair id=\"op-default-1\" name=\"timeout\" value=\"30s\"/>\n" " </meta_attributes>\n" " </op_defaults>\n" " <rsc_defaults>\n" " <meta_attributes id=\"rsc_defaults-options\">\n" " <nvpair id=\"rsc-default-1\" name=\"resource-stickiness\" value=\"100\"/>\n" " <nvpair id=\"rsc-default-2\" name=\"migration-threshold\" value=\"10\"/>\n" " </meta_attributes>\n" " </rsc_defaults>\n" " </configuration>\n" " <status/>\n" "</cib>" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ap-Upgrade.pot b/doc/Pacemaker_Explained/pot/Ap-Upgrade.pot index e9f15efe06..1d5d08a6e9 100644 --- a/doc/Pacemaker_Explained/pot/Ap-Upgrade.pot +++ b/doc/Pacemaker_Explained/pot/Ap-Upgrade.pot @@ -1,329 +1,750 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Upgrading" +msgstr "" + #. Tag: title #, no-c-format msgid "Upgrading Cluster Software" msgstr "" #. Tag: para #, no-c-format -msgid "There will always be an upgrade path from any pacemaker 1.x release to any other 1.y release." +msgid "There are three approaches to upgrading a cluster, each with advantages and disadvantages." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Upgrade Methods" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Method" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Available between all versions" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Can be used with Pacemaker Remote nodes" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Service outage during upgrade" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Service recovery during upgrade" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Exercises failover logic" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Allows change of messaging layer Clusterswitching between stacks switching between stacks Changing cluster stack For example, switching from Heartbeat to Corosync." msgstr "" #. Tag: para #, no-c-format -msgid "Consult the documentation for your messaging layer (Heartbeat or Corosync) to see whether upgrading them to a newer version is also supported." +msgid "Complete cluster shutdown upgradeshutdown shutdown shutdown upgrade " msgstr "" #. Tag: para #, no-c-format -msgid "There are three approaches to upgrading your cluster software:" +msgid "yes" msgstr "" #. Tag: para #, no-c-format -msgid "Complete Cluster Shutdown" +msgid "always" msgstr "" #. Tag: para #, no-c-format -msgid "Rolling (node by node)" +msgid "N/A" msgstr "" #. Tag: para #, no-c-format -msgid "Disconnect and Reattach" +msgid "no" msgstr "" #. Tag: para #, no-c-format -msgid "Each method has advantages and disadvantages, some of which are listed in the table below, and you should choose the one most appropriate to your needs." +msgid "Rolling (node by node) upgraderolling rolling rolling upgrade " msgstr "" -#. Tag: title +#. Tag: para #, no-c-format -msgid "Upgrade Methods" +msgid "always Any active resources will be moved off the node being upgraded, so there will be at least a brief outage unless all resources can be migrated \"live\"." msgstr "" -#. Tag: entry +#. Tag: para #, no-c-format -msgid "Type" +msgid "Detach and reattach upgradereattach reattach reattach upgrade " msgstr "" -#. Tag: entry +#. Tag: para #, no-c-format -msgid "Available between all software versions" +msgid "only due to failure" msgstr "" -#. Tag: entry +#. Tag: title #, no-c-format -msgid "Service Outage During Upgrade" +msgid "Complete Cluster Shutdown" msgstr "" -#. Tag: entry +#. Tag: para #, no-c-format -msgid "Service Recovery During Upgrade" +msgid "In this scenario, one shuts down all cluster nodes and resources, then upgrades all the nodes before restarting the cluster." msgstr "" -#. Tag: entry +#. Tag: para #, no-c-format -msgid "Exercises Failover Logic/Configuration" +msgid "On each node:" msgstr "" -#. Tag: entry +#. Tag: para #, no-c-format -msgid "Allows change of cluster stack type ClusterSwitching between Stacks Switching between Stacks Changing Cluster Stack For example, switching from Heartbeat to Corosync." +msgid "Shutdown the cluster software (pacemaker and the messaging layer)." msgstr "" #. Tag: para #, no-c-format -msgid "Shutdown UpgradeShutdown Shutdown Shutdown Upgrade " +msgid "Upgrade the Pacemaker software. This may also include upgrading the messaging layer and/or the underlying operating system." msgstr "" #. Tag: para #, no-c-format -msgid "yes" +msgid "Check the configuration with the crm_verify tool." msgstr "" #. Tag: para #, no-c-format -msgid "always" +msgid "Start the cluster software. The messaging layer can be either Corosync or Heartbeat and does not need to be the same one before the upgrade." msgstr "" #. Tag: para #, no-c-format -msgid "N/A" +msgid "One variation of this approach is to build a new cluster on new hosts. This allows the new version to be tested beforehand, and minimizes downtime by having the new nodes ready to be placed in production as soon as the old nodes are shut down." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Rolling (node by node)" msgstr "" #. Tag: para #, no-c-format -msgid "no" +msgid "In this scenario, each node is removed from the cluster, upgraded, and then brought back online, until all nodes are running the newest version." msgstr "" #. Tag: para #, no-c-format -msgid "Rolling UpgradeRolling Rolling Rolling Upgrade " +msgid "If you plan to upgrade other cluster software — such as the messaging layer — at the same time, consult that software’s documentation for its compatibility with a rolling upgrade." msgstr "" #. Tag: para #, no-c-format -msgid "Reattach UpgradeReattach Reattach Reattach Upgrade " +msgid "Pacemaker has three version numbers that affect rolling upgrades:" msgstr "" #. Tag: para #, no-c-format -msgid "only due to failure" +msgid "Pacemaker release version: Rolling upgrades are possible as long as the major version number (the x in x.y.z) stays the same. For example, a rolling upgrade may be done from 1.0.8 to 1.1.15, but not from 0.6.7 to 1.0.0." msgstr "" #. Tag: para #, no-c-format -msgid "In this scenario, one shuts down all cluster nodes and resources, then upgrades all the nodes before restarting the cluster." +msgid "CRM feature set: This version number applies to the communication between full cluster nodes." msgstr "" #. Tag: para #, no-c-format -msgid "On each node:" +msgid "It increases when a cluster node running the older version would have problems if the cluster’s Designated Controller (DC) has the newer version. To avoid these problems, Pacemaker ensures that the longest-running node is the DC, and that nodes with an older feature set cannot join the cluster." msgstr "" #. Tag: para #, no-c-format -msgid "Shutdown the cluster software (pacemaker and the messaging layer)." +msgid "Therefore, if the CRM feature set is changing in the Pacemaker version you are upgrading to, you should run a mixed-version cluster only during a small rolling upgrade window. If one of the older nodes drops out of the cluster for any reason, it will not be able to rejoin until it is upgraded." msgstr "" #. Tag: para #, no-c-format -msgid "Upgrade the Pacemaker software. This may also include upgrading the messaging layer and/or the underlying operating system." +msgid "LRMD protocol version: This version number applies to communication between a Pacemaker Remote node and the cluster. It increases when an older cluster node would have problems hosting the connection to a newer Pacemaker Remote node. To avoid these problems, Pacemaker Remote nodes will accept connections only from cluster nodes with the same or newer LRMD protocol version." msgstr "" #. Tag: para #, no-c-format -msgid "Check the configuration manually or with the crm_verify tool if available." +msgid "For rolling upgrades, this means that all cluster nodes should be upgraded before upgrading any Pacemaker Remote nodes." msgstr "" #. Tag: para #, no-c-format -msgid "Start the cluster software. The messaging layer can be either Corosync or Heartbeat and does not need to be the same one before the upgrade." +msgid "Unlike with CRM feature set differences between full cluster nodes, mixed LRMD protocol versions between Pacemaker Remote nodes and full cluster nodes are fine, as long as the Pacemaker Remote nodes have the older version. This can be useful, for example, to host a legacy application in an older operating system version used as a Pacemaker Remote node." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "See the ClusterLabs wiki’s Release Calendar to figure out whether the CRM feature set and/or LRMD protocol version changed between the the Pacemaker release versions in your rolling upgrade." msgstr "" #. Tag: para #, no-c-format -msgid "In this scenario, each node is removed from the cluster, upgraded and then brought back online until all nodes are running the newest version." +msgid "The interpretation of the LRMD protocol version changed in Pacemaker 1.1.15. If you are planning a rolling upgrade from an earlier Pacemaker version to Pacemaker 1.1.15 or later involving Pacemaker Remote nodes, you will need to take special precautions to avoid problems. See Upgrading to Pacemaker 1.1.15 or later from an earlier version on the ClusterLabs wiki." msgstr "" #. Tag: para #, no-c-format -msgid "Rolling upgrades should always be possible for pacemaker versions 1.0.0 and later." +msgid "To perform a rolling upgrade, on each node in turn:" msgstr "" #. Tag: para #, no-c-format -msgid "Put the node into standby mode, and wait for any active resources to be moved cleanly to another node." +msgid "Put the node into standby mode, and wait for any active resources to be moved cleanly to another node. (This step is optional, but allows you to deal with any resource issues before the upgrade.)" msgstr "" #. Tag: para #, no-c-format msgid "Shutdown the cluster software (pacemaker and the messaging layer) on the node." msgstr "" #. Tag: para #, no-c-format -msgid "If this is the first node to be upgraded, check the configuration manually or with the crm_verify tool if available." +msgid "If this is the first node to be upgraded, check the configuration with the crm_verify tool." msgstr "" #. Tag: para #, no-c-format -msgid "Start the messaging layer. This must be the same messaging layer (Corosync or Heartbeat) that the rest of the cluster is using. Upgrading the messaging layer may also be possible; consult the documentation for those projects to see whether the two versions will be compatible." +msgid "Start the messaging layer. This must be the same messaging layer (Corosync or Heartbeat) that the rest of the cluster is using." msgstr "" #. Tag: para #, no-c-format -msgid "Rolling upgrades were not always possible with older heartbeat and pacemaker versions. The table below shows which versions were compatible during rolling upgrades. Rolling upgrades that cross compatibility boundaries must be performed in multiple steps (for example, upgrading heartbeat 2.0.6 to heartbeat 2.1.3, and then upgrading again to pacemaker 0.6.6). Rolling upgrades from pacemaker 0.x to 1.y are not possible." +msgid "Rolling upgrades were not always possible with older heartbeat and pacemaker versions. Rolling upgrades that cross compatibility boundaries listed in the following table must be performed in multiple steps." msgstr "" #. Tag: title #, no-c-format msgid "Version Compatibility Table" msgstr "" #. Tag: entry #, no-c-format msgid "Version being Installed" msgstr "" #. Tag: entry #, no-c-format msgid "Oldest Compatible Version" msgstr "" #. Tag: para #, no-c-format -msgid "Pacemaker 1.0.x" +msgid "Pacemaker 1.x.y" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker 1.0.0" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker 0.7.x" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker 0.6 or Heartbeat 2.1.3" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker 0.6.x" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat 2.0.8" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat 2.1.3 (or less)" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat 2.0.4" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat 2.0.4 (or less)" msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat 2.0.0" msgstr "" #. Tag: para #, no-c-format msgid "None. Use an alternate upgrade strategy." msgstr "" +#. Tag: title +#, no-c-format +msgid "Detach and Reattach" +msgstr "" + #. Tag: para #, no-c-format msgid "The reattach method is a variant of a complete cluster shutdown, where the resources are left active and get re-detected when the cluster is restarted." msgstr "" +#. Tag: para +#, no-c-format +msgid "This method may not be used if the cluster contains any Pacemaker Remote nodes." +msgstr "" + #. Tag: para #, no-c-format msgid "Tell the cluster to stop managing services. This is required to allow the services to remain active after the cluster shuts down." msgstr "" #. Tag: screen #, no-c-format -msgid "# crm_attribute -t crm_config -n is-managed-default -v false" +msgid "# crm_attribute --name maintenance-mode --update true" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "On each node, shutdown the cluster software (pacemaker and the messaging layer), and upgrade the Pacemaker software. This may also include upgrading the messaging layer. While the underlying operating system may be upgraded at the same time, that will be more likely to cause outages in the detached services (certainly, if a reboot is required)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "On each node, start the cluster software. The messaging layer can be either Corosync or Heartbeat and does not need to be the same one as before the upgrade." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Verify that the cluster re-detected all resources correctly." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Allow the cluster to resume managing resources again:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# crm_attribute --name maintenance-mode --delete" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Support for maintenance mode was added in Pacemaker 1.0.0. If you are upgrading from an earlier version, you can detach by setting is-managed to false for all resources." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Upgrading the Configuration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " upgradeConfiguration Configuration Configurationupgrading upgrading " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker’s configuration — the Configuration Information Base (CIB) — has its own XML schema version, independent of the Pacemaker software version." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "After cluster software is upgraded, the cluster will continue to use the older schema version that it was previously using. This can be useful, for example, when administrators have written tools that modify the configuration, and are based on the older syntax." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "However, when using an older syntax, new features may be unavailable, and there is a performance impact, since the cluster must do a non-persistent configuration upgrade before each transition. So while using the old syntax is possible, it is not advisable to continue using it indefinitely." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Even if you wish to continue using the old syntax, it is a good idea to follow the upgrade procedure outlined below, except for the last step, to ensure that the new software has no problems with your existing configuration (since it will perform much the same task internally)." msgstr "" #. Tag: para #, no-c-format -msgid "For any resource that has a value for is-managed, make sure it is set to false so that the cluster will not stop it (replacing $rsc_id appropriately):" +msgid "If you are brave, it is sufficient simply to run cibadmin --upgrade." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A more cautious approach would proceed like this:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Create a shadow copy of the configuration. The later commands will automatically operate on this copy, rather than the live configuration." msgstr "" #. Tag: screen #, no-c-format -msgid "# crm_resource -t primitive -r $rsc_id -p is-managed -v false" +msgid "# crm_shadow --create shadow" msgstr "" #. Tag: para #, no-c-format -msgid "Start the cluster software. The messaging layer can be either Corosync or Heartbeat and does not need to be the same one as before the upgrade." +msgid "Verify the configuration is valid with the new software (which may be stricter about syntax mistakes, or may have dropped support for deprecated features): Configurationverify verify verifyConfiguration Configuration " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# crm_verify --live-check" msgstr "" #. Tag: para #, no-c-format -msgid "Verify that the cluster re-detected all resources correctly." +msgid "Fix any errors or warnings." msgstr "" #. Tag: para #, no-c-format -msgid "Allow the cluster to resume managing resources again:" +msgid "Perform the upgrade:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# cibadmin --upgrade" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If this step fails, there are three main possibilities:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The configuration was not valid to start with (did you do steps 2 and 3?)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The transformation failed - report a bug or email the project." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The transformation was successful but produced an invalid result." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If the result of the transformation is invalid, you may see a number of errors from the validation library. If these are not helpful, visit the Validation FAQ wiki page and/or try the manual upgrade procedure described below." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the changes:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# crm_shadow --diff" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If at this point there is anything about the upgrade that you wish to fine-tune (for example, to change some of the automatic IDs), now is the time to do so:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# crm_shadow --edit" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This will open the configuration in your favorite editor (whichever is specified by the standard $EDITOR environment variable)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Preview how the cluster will react:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# crm_simulate --live-check --save-dotfile shadow.dot -S\n" +"# graphviz shadow.dot" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Verify that either no resource actions will occur or that you are happy with any that are scheduled. If the output contains actions you do not expect (possibly due to changes to the score calculations), you may need to make further manual changes. See for further details on how to interpret the output of crm_simulate and graphviz." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Upload the changes:" msgstr "" #. Tag: screen #, no-c-format -msgid "# crm_attribute -t crm_config -n is-managed-default -v true" +msgid "# crm_shadow --commit shadow --force" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the unlikely event this step fails, please report a bug." +msgstr "" + +#. Tag: para +#, no-c-format +msgid " Configurationupgrade manually upgrade manually It is also possible to perform the configuration upgrade steps manually:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Locate the upgrade*.xsl conversion scripts provided with the source code. These will often be installed in a location such as /usr/share/pacemaker, or may be obtained from the source repository." msgstr "" #. Tag: para #, no-c-format -msgid "For any resource that has a value for is-managed, reset it to true (so the cluster can recover the service if it fails) if desired:" +msgid "Run the conversion scripts that apply to your older version, for example: XMLconvert convert " msgstr "" #. Tag: screen #, no-c-format -msgid "# crm_resource -t primitive -r $rsc_id -p is-managed -v true" +msgid "# xsltproc /path/to/upgrade06.xsl config06.xml > config10.xml" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Locate the pacemaker.rng script (from the same location as the xsl files)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the XML validity: validate configuration Configurationvalidate XML validate XML " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "# xmllint --relaxng /path/to/pacemaker.rng config10.xml" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The advantage of this method is that it can be performed without the cluster running, and any validation errors are often more informative." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "What Changed in 1.0" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "New" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Failure timeouts. See " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "New section for resource and operation defaults. See and " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Tool for making offline configuration changes. See " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Rules, instance_attributes, meta_attributes and sets of operations can be defined once and referenced in multiple places. See " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The CIB now accepts XPath-based create/modify/delete operations. See the cibadmin help text." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Multi-dimensional colocation and ordering constraints. See and " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The ability to connect to the CIB from non-cluster machines. See " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Allow recurring actions to be triggered at known times. See " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Changed" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Syntax" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All resource and cluster options now use dashes (-) instead of underscores (_)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "master_slave was renamed to master" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The attributes container tag was removed" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The operation field pre-req has been renamed requires" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All operations must have an interval, start/stop must have it set to zero" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The stonith-enabled option now defaults to true." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The cluster will refuse to start resources if stonith-enabled is true (or unset) and no STONITH resources have been defined" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The attributes of colocation and ordering constraints were renamed for clarity. See and " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "resource-failure-stickiness has been replaced by migration-threshold. See " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The parameters for command-line tools have been made consistent" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Switched to RelaxNG schema validation and libxml2 parser" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "id fields are now XML IDs which have the following limitations:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "id’s cannot contain colons (:)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "id’s cannot begin with a number" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "id’s must be globally unique (not just unique for that tag)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Some fields (such as those in constraints that refer to resources) are IDREFs." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This means that they must reference existing resources or objects in order for the configuration to be valid. Removing an object which is referenced elsewhere will therefore fail." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The CIB representation, from which a MD5 digest is calculated to verify CIBs on the nodes, has changed." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This means that every CIB update will require a full refresh on any upgraded nodes until the cluster is fully upgraded to 1.0. This will result in significant performance degradation and it is therefore highly inadvisable to run a mixed 1.0/0.6 cluster for any longer than absolutely necessary." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Ping node information no longer needs to be added to ha.cf." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Simply include the lists of hosts in your ping resource(s)." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Removed" msgstr "" #. Tag: para #, no-c-format -msgid "The oldest version of the CRM to support this upgrade type was in Heartbeat 2.0.4." +msgid "It is no longer possible to set resource meta options as top-level attributes. Use meta attributes instead." msgstr "" #. Tag: para #, no-c-format -msgid "Always check your existing configuration is still compatible with the version you are installing before starting the cluster." +msgid "Resource and operation defaults are no longer read from crm_config. See and instead." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Author_Group.pot b/doc/Pacemaker_Explained/pot/Author_Group.pot index ae3aa135e6..e756452773 100644 --- a/doc/Pacemaker_Explained/pot/Author_Group.pot +++ b/doc/Pacemaker_Explained/pot/Author_Group.pot @@ -1,139 +1,139 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Dan" msgstr "" #. Tag: surname #, no-c-format msgid "Frîncu" msgstr "" #. Tag: contrib #, no-c-format msgid "Romanian translation" msgstr "" #. Tag: firstname #, no-c-format msgid "Philipp" msgstr "" #. Tag: surname #, no-c-format msgid "Marek" msgstr "" #. Tag: orgname #, no-c-format msgid "LINBit" msgstr "" #. Tag: contrib #, no-c-format msgid "Style and formatting updates. Indexing." msgstr "" #. Tag: firstname #, no-c-format msgid "Tanja" msgstr "" #. Tag: surname #, no-c-format msgid "Roth" msgstr "" #. Tag: orgname #, no-c-format msgid "SUSE" msgstr "" #. Tag: contrib #, no-c-format msgid "Utilization chapter" msgstr "" #. Tag: contrib #, no-c-format msgid "Resource Templates chapter" msgstr "" #. Tag: contrib #, no-c-format msgid "Multi-Site Clusters chapter" msgstr "" #. Tag: firstname #, no-c-format msgid "Lars" msgstr "" #. Tag: surname #, no-c-format msgid "Marowsky-Bree" msgstr "" #. Tag: firstname #, no-c-format msgid "Yan" msgstr "" #. Tag: surname #, no-c-format msgid "Gao" msgstr "" #. Tag: firstname #, no-c-format msgid "Thomas" msgstr "" #. Tag: surname #, no-c-format msgid "Schraitle" msgstr "" #. Tag: firstname #, no-c-format msgid "Dejan" msgstr "" #. Tag: surname #, no-c-format msgid "Muhamedagic" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Book_Info.pot b/doc/Pacemaker_Explained/pot/Book_Info.pot index 3ad9435c46..e65deae975 100644 --- a/doc/Pacemaker_Explained/pot/Book_Info.pot +++ b/doc/Pacemaker_Explained/pot/Book_Info.pot @@ -1,34 +1,34 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 Explained" msgstr "" #. Tag: subtitle #, no-c-format msgid "An A-Z guide to Pacemaker's Configuration Options" msgstr "" #. Tag: productname #, no-c-format msgid "Pacemaker" 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, it will focus exclusively on the XML syntax used to configure Pacemaker's Cluster Information Base (CIB)." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Advanced-Options.pot b/doc/Pacemaker_Explained/pot/Ch-Advanced-Options.pot index 5975f6b785..9e5bcd9de7 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Advanced-Options.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Advanced-Options.pot @@ -1,948 +1,1123 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Advanced Configuration" msgstr "" #. Tag: title #, no-c-format msgid "Connecting from a Remote Machine" msgstr "" #. Tag: para #, no-c-format msgid " ClusterRemote connection Remote connection ClusterRemote administration Remote administration " msgstr "" #. Tag: para #, no-c-format msgid "Provided Pacemaker is installed on a machine, it is possible to connect to the cluster even if the machine itself is not in the same cluster. To do this, one simply sets up a number of environment variables and runs the same commands as when working on a cluster node." msgstr "" #. Tag: title #, no-c-format msgid "Environment Variables Used to Connect to Remote Instances of the CIB" msgstr "" #. Tag: entry #, no-c-format msgid "Environment Variable" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "CIB_user" msgstr "" #. Tag: para #, no-c-format msgid "$USER" msgstr "" #. Tag: para #, no-c-format msgid "The user to connect as. Needs to be part of the hacluster group on the target host. Environment VariableCIB_user CIB_user " msgstr "" #. Tag: para #, no-c-format msgid "CIB_passwd" msgstr "" #. Tag: para #, no-c-format msgid "The user’s password. Read from the command line if unset. Environment VariableCIB_passwd CIB_passwd " msgstr "" #. Tag: para #, no-c-format msgid "CIB_server" msgstr "" #. Tag: para #, no-c-format msgid "localhost" msgstr "" #. Tag: para #, no-c-format msgid "The host to contact Environment VariableCIB_server CIB_server " msgstr "" #. Tag: para #, no-c-format msgid "CIB_port" msgstr "" #. Tag: para #, no-c-format msgid "The port on which to contact the server; required. Environment VariableCIB_port CIB_port " msgstr "" #. Tag: para #, no-c-format msgid "CIB_encrypted" msgstr "" #. Tag: para #, no-c-format msgid "TRUE" msgstr "" #. Tag: para #, no-c-format msgid "Whether to encrypt network traffic Environment VariableCIB_encrypted CIB_encrypted " msgstr "" #. Tag: para #, no-c-format msgid "So, if c001n01 is an active cluster node and is listening on port 1234 for connections, and someuser is a member of the hacluster group, then the following would prompt for someuser's password and return the cluster’s current configuration:" msgstr "" #. Tag: screen #, no-c-format msgid "# export CIB_port=1234; export CIB_server=c001n01; export CIB_user=someuser;\n" "# cibadmin -Q" msgstr "" #. Tag: para #, no-c-format msgid "For security reasons, the cluster does not listen for remote connections by default. If you wish to allow remote access, you need to set the remote-tls-port (encrypted) or remote-clear-port (unencrypted) CIB properties (i.e., those kept in the cib tag, like num_updates and epoch)." msgstr "" #. Tag: title #, no-c-format msgid "Extra top-level CIB properties for remote access" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: para #, no-c-format msgid "remote-tls-port" msgstr "" #. Tag: para #, no-c-format msgid "none" msgstr "" #. Tag: para #, no-c-format msgid "Listen for encrypted remote connections on this port. remote-tls-portRemote Connection Option Remote Connection Option Remote ConnectionOptionremote-tls-port Optionremote-tls-port remote-tls-port " msgstr "" #. Tag: para #, no-c-format msgid "remote-clear-port" msgstr "" #. Tag: para #, no-c-format msgid "Listen for plaintext remote connections on this port. remote-clear-portRemote Connection Option Remote Connection Option Remote ConnectionOptionremote-clear-port Optionremote-clear-port remote-clear-port " msgstr "" #. Tag: title #, no-c-format msgid "Specifying When Recurring Actions are Performed" msgstr "" #. Tag: para #, no-c-format msgid "By default, recurring actions are scheduled relative to when the resource started. So if your resource was last started at 14:32 and you have a backup set to be performed every 24 hours, then the backup will always run in the middle of the business day — hardly desirable." msgstr "" #. Tag: para #, no-c-format msgid "To specify a date and time that the operation should be relative to, set the operation’s interval-origin. The cluster uses this point to calculate the correct start-delay such that the operation will occur at origin + (interval * N)." msgstr "" #. Tag: para #, no-c-format msgid "So, if the operation’s interval is 24h, its interval-origin is set to 02:00 and it is currently 14:32, then the cluster would initiate the operation with a start delay of 11 hours and 28 minutes. If the resource is moved to another node before 2am, then the operation is cancelled." msgstr "" #. Tag: para #, no-c-format msgid "The value specified for interval and interval-origin can be any date/time conforming to the ISO8601 standard. By way of example, to specify an operation that would run on the first Monday of 2009 and every Monday after that, you would add:" msgstr "" #. Tag: title #, no-c-format msgid "Specifying a Base for Recurring Action Intervals" msgstr "" #. Tag: programlisting #, no-c-format msgid "<op id=\"my-weekly-action\" name=\"custom-action\" interval=\"P7D\" interval-origin=\"2009-W01-1\"/>" msgstr "" #. Tag: title #, no-c-format msgid "Moving Resources" msgstr "" #. Tag: para #, no-c-format msgid " MovingResources Resources ResourceMoving Moving " msgstr "" #. Tag: title #, no-c-format msgid "Moving Resources Manually" msgstr "" #. Tag: para #, no-c-format msgid "There are primarily two occasions when you would want to move a resource from its current location: when the whole node is under maintenance, and when a single resource needs to be moved." msgstr "" #. Tag: title #, no-c-format msgid "Standby Mode" msgstr "" #. Tag: para #, no-c-format msgid "Since everything eventually comes down to a score, you could create constraints for every resource to prevent them from running on one node. While pacemaker configuration can seem convoluted at times, not even we would require this of administrators." msgstr "" #. Tag: para #, no-c-format msgid "Instead, one can set a special node attribute which tells the cluster \"don’t let anything run here\". There is even a helpful tool to help query and set it, called crm_standby. To check the standby status of the current machine, run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_standby -G" msgstr "" #. Tag: para #, no-c-format msgid "A value of on indicates that the node is not able to host any resources, while a value of off says that it can." msgstr "" #. Tag: para #, no-c-format msgid "You can also check the status of other nodes in the cluster by specifying the --node option:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_standby -G --node sles-2" msgstr "" #. Tag: para #, no-c-format msgid "To change the current node’s standby status, use -v instead of -G:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_standby -v on" msgstr "" #. Tag: para #, no-c-format msgid "Again, you can change another host’s value by supplying a hostname with --node." msgstr "" #. Tag: title #, no-c-format msgid "Moving One Resource" msgstr "" #. Tag: para #, no-c-format msgid "When only one resource is required to move, we could do this by creating location constraints. However, once again we provide a user-friendly shortcut as part of the crm_resource command, which creates and modifies the extra constraints for you. If Email were running on sles-1 and you wanted it moved to a specific location, the command would look something like:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource -M -r Email -H sles-2" msgstr "" #. Tag: para #, no-c-format msgid "Behind the scenes, the tool will create the following location constraint:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location rsc=\"Email\" node=\"sles-2\" score=\"INFINITY\"/>" msgstr "" #. Tag: para #, no-c-format msgid "It is important to note that subsequent invocations of crm_resource -M are not cumulative. So, if you ran these commands" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource -M -r Email -H sles-2\n" "# crm_resource -M -r Email -H sles-3" msgstr "" #. Tag: para #, no-c-format msgid "then it is as if you had never performed the first command." msgstr "" #. Tag: para #, no-c-format msgid "To allow the resource to move back again, use:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource -U -r Email" msgstr "" #. Tag: para #, no-c-format msgid "Note the use of the word allow. The resource can move back to its original location but, depending on resource-stickiness, it might stay where it is. To be absolutely certain that it moves back to sles-1, move it there before issuing the call to crm_resource -U:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource -M -r Email -H sles-1\n" "# crm_resource -U -r Email" msgstr "" #. Tag: para #, no-c-format msgid "Alternatively, if you only care that the resource should be moved from its current location, try:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource -B -r Email" msgstr "" #. Tag: para #, no-c-format msgid "Which will instead create a negative constraint, like" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location rsc=\"Email\" node=\"sles-1\" score=\"-INFINITY\"/>" msgstr "" #. Tag: para #, no-c-format msgid "This will achieve the desired effect, but will also have long-term consequences. As the tool will warn you, the creation of a -INFINITY constraint will prevent the resource from running on that node until crm_resource -U is used. This includes the situation where every other cluster node is no longer available!" msgstr "" #. Tag: para #, no-c-format msgid "In some cases, such as when resource-stickiness is set to INFINITY, it is possible that you will end up with the problem described in . The tool can detect some of these cases and deals with them by creating both positive and negative constraints. E.g." msgstr "" #. Tag: para #, no-c-format msgid "Email prefers sles-1 with a score of -INFINITY" msgstr "" #. Tag: para #, no-c-format msgid "Email prefers sles-2 with a score of INFINITY" msgstr "" #. Tag: para #, no-c-format msgid "which has the same long-term consequences as discussed earlier." msgstr "" #. Tag: title #, no-c-format msgid "Moving Resources Due to Failure" msgstr "" #. Tag: para #, no-c-format msgid "Normally, if a running resource fails, pacemaker will try to start it again on the same node. However if a resource fails repeatedly, it is possible that there is an underlying problem on that node, and you might desire trying a different node in such a case." msgstr "" #. Tag: para #, no-c-format msgid " migration-threshold failure-timeout start-failure-is-fatal " msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker allows you to set your preference via the migration-threshold resource option. The naming of this option was perhaps unfortunate as it is easily confused with live migration, the process of moving a resource from one node to another without stopping it. Xen virtual guests are the most common example of resources that can be migrated in this manner. " msgstr "" #. Tag: para #, no-c-format msgid "Simply define migration-threshold=N for a resource and it will migrate to a new node after N failures. There is no threshold defined by default. To determine the resource’s current failure status and limits, run crm_mon --failcounts." msgstr "" #. Tag: para #, no-c-format msgid "By default, once the threshold has been reached, the troublesome node will no longer be allowed to run the failed resource until the administrator manually resets the resource’s failcount using crm_failcount (after hopefully first fixing the failure’s cause). Alternatively, it is possible to expire them by setting the failure-timeout option for the resource." msgstr "" #. Tag: para #, no-c-format msgid "For example, a setting of migration-threshold=2 and failure-timeout=60s would cause the resource to move to a new node after 2 failures, and allow it to move back (depending on stickiness and constraint scores) after one minute." msgstr "" #. Tag: para #, no-c-format msgid "There are two exceptions to the migration threshold concept: when a resource either fails to start or fails to stop." msgstr "" #. Tag: para #, no-c-format msgid "If the cluster property start-failure-is-fatal is set to true (which is the default), start failures cause the failcount to be set to INFINITY and thus always cause the resource to move immediately." msgstr "" #. Tag: para #, no-c-format msgid "Stop failures are slightly different and crucial. If a resource fails to stop and STONITH is enabled, then the cluster will fence the node in order to be able to start the resource elsewhere. If STONITH is not enabled, then the cluster has no way to continue and will not try to start the resource elsewhere, but will try to stop it again after the failure timeout." msgstr "" #. Tag: para #, no-c-format msgid "Please read to understand how timeouts work before configuring a failure-timeout." msgstr "" #. Tag: title #, no-c-format msgid "Moving Resources Due to Connectivity Changes" msgstr "" #. Tag: para #, no-c-format msgid "You can configure the cluster to move resources when external connectivity is lost in two steps." msgstr "" #. Tag: title #, no-c-format msgid "Tell Pacemaker to Monitor Connectivity" msgstr "" #. Tag: para #, no-c-format msgid "First, add an ocf:pacemaker:ping resource to the cluster. The ping resource uses the system utility of the same name to a test whether list of machines (specified by DNS hostname or IPv4/IPv6 address) are reachable and uses the results to maintain a node attribute called pingd by default. The attribute name is customizable, in order to allow multiple ping groups to be defined. " msgstr "" #. Tag: para #, no-c-format msgid "Older versions of Heartbeat required users to add ping nodes to ha.cf, but this is no longer required." msgstr "" #. Tag: para #, no-c-format msgid "Older versions of Pacemaker used a different agent ocf:pacemaker:pingd which is now deprecated in favor of ping. If your version of Pacemaker does not contain the ping resource agent, download the latest version from https://github.com/ClusterLabs/pacemaker/tree/master/extra/resources/ping" msgstr "" #. Tag: para #, no-c-format msgid "Normally, the ping resource should run on all cluster nodes, which means that you’ll need to create a clone. A template for this can be found below along with a description of the most interesting parameters." msgstr "" #. Tag: title #, no-c-format msgid "Common Options for a ping Resource" msgstr "" #. Tag: para #, no-c-format msgid "dampen" msgstr "" #. Tag: para #, no-c-format msgid "The time to wait (dampening) for further changes to occur. Use this to prevent a resource from bouncing around the cluster when cluster nodes notice the loss of connectivity at slightly different times. dampenPing Resource Option Ping Resource Option Ping ResourceOptiondampen Optiondampen dampen " msgstr "" #. Tag: para #, no-c-format msgid "multiplier" msgstr "" #. Tag: para #, no-c-format msgid "The number of connected ping nodes gets multiplied by this value to get a score. Useful when there are multiple ping nodes configured. multiplierPing Resource Option Ping Resource Option Ping ResourceOptionmultiplier Optionmultiplier multiplier " msgstr "" #. Tag: para #, no-c-format msgid "host_list" msgstr "" #. Tag: para #, no-c-format msgid "The machines to contact in order to determine the current connectivity status. Allowed values include resolvable DNS host names, IPv4 and IPv6 addresses. host_listPing Resource Option Ping Resource Option Ping ResourceOptionhost_list Optionhost_list host_list " msgstr "" #. Tag: title #, no-c-format msgid "An example ping cluster resource that checks node connectivity once every minute" msgstr "" #. Tag: programlisting #, no-c-format msgid "<clone id=\"Connected\">\n" " <primitive id=\"ping\" provider=\"pacemaker\" class=\"ocf\" type=\"ping\">\n" " <instance_attributes id=\"ping-attrs\">\n" " <nvpair id=\"pingd-dampen\" name=\"dampen\" value=\"5s\"/>\n" " <nvpair id=\"pingd-multiplier\" name=\"multiplier\" value=\"1000\"/>\n" " <nvpair id=\"pingd-hosts\" name=\"host_list\" value=\"my.gateway.com www.bigcorp.com\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"ping-monitor-60s\" interval=\"60s\" name=\"monitor\"/>\n" " </operations>\n" " </primitive>\n" "</clone>" msgstr "" #. Tag: para #, no-c-format msgid "You’re only half done. The next section deals with telling Pacemaker how to deal with the connectivity status that ocf:pacemaker:ping is recording." msgstr "" #. Tag: title #, no-c-format msgid "Tell Pacemaker How to Interpret the Connectivity Data" msgstr "" #. Tag: para #, no-c-format msgid "Before attempting the following, make sure you understand ." msgstr "" #. Tag: para #, no-c-format msgid "There are a number of ways to use the connectivity data." msgstr "" #. Tag: para #, no-c-format msgid "The most common setup is for people to have a single ping target (e.g. the service network’s default gateway), to prevent the cluster from running a resource on any unconnected node." msgstr "" #. Tag: title #, no-c-format msgid "Don’t run a resource on unconnected nodes" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"WebServer-no-connectivity\" rsc=\"Webserver\">\n" " <rule id=\"ping-exclude-rule\" score=\"-INFINITY\" >\n" " <expression id=\"ping-exclude\" attribute=\"pingd\" operation=\"not_defined\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: para #, no-c-format msgid "A more complex setup is to have a number of ping targets configured. You can require the cluster to only run resources on nodes that can connect to all (or a minimum subset) of them." msgstr "" #. Tag: title #, no-c-format msgid "Run only on nodes connected to three or more ping targets." msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"ping\" provider=\"pacemaker\" class=\"ocf\" type=\"ping\">\n" "... <!-- omitting some configuration to highlight important parts -->\n" " <nvpair id=\"pingd-multiplier\" name=\"multiplier\" value=\"1000\"/>\n" "...\n" "</primitive>\n" "...\n" "<rsc_location id=\"WebServer-connectivity\" rsc=\"Webserver\">\n" " <rule id=\"ping-prefer-rule\" score=\"-INFINITY\" >\n" " <expression id=\"ping-prefer\" attribute=\"pingd\" operation=\"lt\" value=\"3000\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: para #, no-c-format msgid "Alternatively, you can tell the cluster only to prefer nodes with the best connectivity. Just be sure to set multiplier to a value higher than that of resource-stickiness (and don’t set either of them to INFINITY)." msgstr "" #. Tag: title #, no-c-format msgid "Prefer the node with the most connected ping nodes" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"WebServer-connectivity\" rsc=\"Webserver\">\n" " <rule id=\"ping-prefer-rule\" score-attribute=\"pingd\" >\n" " <expression id=\"ping-prefer\" attribute=\"pingd\" operation=\"defined\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: para #, no-c-format msgid "It is perhaps easier to think of this in terms of the simple constraints that the cluster translates it into. For example, if sles-1 is connected to all five ping nodes but sles-2 is only connected to two, then it would be as if you instead had the following constraints in your configuration:" msgstr "" #. Tag: title #, no-c-format msgid "How the cluster translates the above location constraint" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"ping-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"5000\"/>\n" "<rsc_location id=\"ping-2\" rsc=\"Webserver\" node=\"sles-2\" score=\"2000\"/>" msgstr "" #. Tag: para #, no-c-format msgid "The advantage is that you don’t have to manually update any constraints whenever your network connectivity changes." msgstr "" #. Tag: para #, no-c-format msgid "You can also combine the concepts above into something even more complex. The example below shows how you can prefer the node with the most connected ping nodes provided they have connectivity to at least three (again assuming that multiplier is set to 1000)." msgstr "" #. Tag: title #, no-c-format msgid "A more complex example of choosing a location based on connectivity" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"WebServer-connectivity\" rsc=\"Webserver\">\n" " <rule id=\"ping-exclude-rule\" score=\"-INFINITY\" >\n" " <expression id=\"ping-exclude\" attribute=\"pingd\" operation=\"lt\" value=\"3000\"/>\n" " </rule>\n" " <rule id=\"ping-prefer-rule\" score-attribute=\"pingd\" >\n" " <expression id=\"ping-prefer\" attribute=\"pingd\" operation=\"defined\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: title #, no-c-format msgid "Migrating Resources" msgstr "" #. Tag: para #, no-c-format msgid "Normally, when the cluster needs to move a resource, it fully restarts the resource (i.e. stops the resource on the current node and starts it on the new node)." msgstr "" #. Tag: para #, no-c-format msgid "However, some types of resources, such as Xen virtual guests, are able to move to another location without loss of state (often referred to as live migration or hot migration). In pacemaker, this is called resource migration. Pacemaker can be configured to migrate a resource when moving it, rather than restarting it." msgstr "" #. Tag: para #, no-c-format msgid "Not all resources are able to migrate; see the Migration Checklist below, and those that can, won’t do so in all situations. Conceptually, there are two requirements from which the other prerequisites follow:" msgstr "" #. Tag: para #, no-c-format msgid "The resource must be active and healthy at the old location; and" msgstr "" #. Tag: para #, no-c-format msgid "everything required for the resource to run must be available on both the old and new locations." msgstr "" #. Tag: para #, no-c-format msgid "The cluster is able to accommodate both push and pull migration models by requiring the resource agent to support two special actions: migrate_to (performed on the current location) and migrate_from (performed on the destination)." msgstr "" #. Tag: para #, no-c-format msgid "In push migration, the process on the current location transfers the resource to the new location where is it later activated. In this scenario, most of the work would be done in the migrate_to action and, if anything, the activation would occur during migrate_from." msgstr "" #. Tag: para #, no-c-format msgid "Conversely for pull, the migrate_to action is practically empty and migrate_from does most of the work, extracting the relevant resource state from the old location and activating it." msgstr "" #. Tag: para #, no-c-format msgid "There is no wrong or right way for a resource agent to implement migration, as long as it works." msgstr "" #. Tag: title #, no-c-format msgid "Migration Checklist" msgstr "" #. Tag: para #, no-c-format msgid "The resource may not be a clone." msgstr "" #. Tag: para #, no-c-format msgid "The resource must use an OCF style agent." msgstr "" #. Tag: para #, no-c-format msgid "The resource must not be in a failed or degraded state." msgstr "" #. Tag: para #, no-c-format msgid "The resource agent must support migrate_to and migrate_from actions, and advertise them in its metadata." msgstr "" #. Tag: para #, no-c-format msgid "The resource must have the allow-migrate meta-attribute set to true (which is not the default)." msgstr "" #. Tag: para #, no-c-format msgid "If an otherwise migratable resource depends on another resource via an ordering constraint, there are special situations in which it will be restarted rather than migrated." msgstr "" #. Tag: para #, no-c-format msgid "For example, if the resource depends on a clone, and at the time the resource needs to be moved, the clone has instances that are stopping and instances that are starting, then the resource will be restarted. The Policy Engine is not yet able to model this situation correctly and so takes the safer (if less optimal) path." msgstr "" #. Tag: para #, no-c-format msgid "In pacemaker 1.1.11 and earlier, a migratable resource will be restarted when moving if it directly or indirectly depends on any primitive or group resources." msgstr "" #. Tag: para #, no-c-format msgid "Even in newer versions, if a migratable resource depends on a non-migratable resource, and both need to be moved, the migratable resource will be restarted." msgstr "" +#. Tag: title +#, no-c-format +msgid "Tracking Node Health" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A node may be functioning adequately as far as cluster membership is concerned, and yet be \"unhealthy\" in some respect that makes it an undesirable location for resources. For example, a disk drive may be reporting SMART errors, or the CPU may be highly loaded." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker offers a way to automatically move resources off unhealthy nodes." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Node Health Attributes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker will treat any node attribute whose name starts with #health as an indicator of node health. Node health attributes may have one of the following values:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Allowed Values for Node Health Attributes" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Value" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Intended significance" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "red" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This indicator is unhealthy Node healthred red " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "yellow" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This indicator is becoming unhealthy Node healthyellow yellow " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "green" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This indicator is healthy Node healthgreen green " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "integer" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A numeric score to apply to all resources on this node (0 or positive is healthy, negative is unhealthy) Node healthscore score " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Node Health Strategy" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker assigns a node health score to each node, as the sum of the values of all its node health attributes. This score will be used as a location constraint applied to this node for all resources." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The node-health-strategy cluster option controls how Pacemaker responds to changes in node health attributes, and how it translates red, yellow, and green to scores." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Allowed values are:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Node Health Strategies" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Effect" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "none" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not track node health attributes at all. Node healthnone none " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "migrate-on-red" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assign the value of -INFINITY to red, and 0 to yellow and green. This will cause all resources to move off the node if any attribute is red. Node healthmigrate-on-red migrate-on-red " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "only-green" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assign the value of -INFINITY to red and yellow, and 0 to green. This will cause all resources to move off the node if any attribute is red or yellow. Node healthonly-green only-green " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "progressive" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assign the value of the node-health-red cluster option to red, the value of node-health-yellow to yellow, and the value of node-health-green to green. Each node is additionally assigned a score of node-health-base (this allows resources to start even if some attributes are yellow). This strategy gives the administrator finer control over how important each value is. Node healthprogressive progressive " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "custom" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Track node health attributes using the same values as progressive for red, yellow, and green, but do not take them into account. The administrator is expected to implement a policy by defining rules (see ) referencing node health attributes. Node healthcustom custom " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Measuring Node Health" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Since Pacemaker calculates node health based on node attributes, any method that sets node attributes may be used to measure node health. The most common ways are resource agents or separate daemons." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker provides examples that can be used directly or as a basis for custom code. The ocf:pacemaker:HealthCPU and ocf:pacemaker:HealthSMART resource agents set node health attributes based on CPU and disk parameters. The ipmiservicelogd daemon sets node health attributes based on IPMI values (the ocf:pacemaker:SystemHealth resource agent can be used to manage the daemon as a cluster resource)." +msgstr "" + #. Tag: title #, no-c-format msgid "Reusing Rules, Options and Sets of Operations" msgstr "" #. Tag: para #, no-c-format msgid "Sometimes a number of constraints need to use the same set of rules, and resources need to set the same options and parameters. To simplify this situation, you can refer to an existing object using an id-ref instead of an id." msgstr "" #. Tag: para #, no-c-format msgid "So if for one resource you have" msgstr "" #. Tag: para #, no-c-format msgid "Then instead of duplicating the rule for all your other resources, you can instead specify:" msgstr "" #. Tag: title #, no-c-format msgid "Referencing rules from other constraints" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"WebDB-connectivity\" rsc=\"WebDB\">\n" " <rule id-ref=\"ping-prefer-rule\"/>\n" "</rsc_location>" msgstr "" #. Tag: para #, no-c-format msgid "The cluster will insist that the rule exists somewhere. Attempting to add a reference to a non-existing rule will cause a validation failure, as will attempting to remove a rule that is referenced elsewhere." msgstr "" #. Tag: para #, no-c-format msgid "The same principle applies for meta_attributes and instance_attributes as illustrated in the example below:" msgstr "" #. Tag: title #, no-c-format msgid "Referencing attributes, options, and operations from other resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"mySpecialRsc\" class=\"ocf\" type=\"Special\" provider=\"me\">\n" " <instance_attributes id=\"mySpecialRsc-attrs\" score=\"1\" >\n" " <nvpair id=\"default-interface\" name=\"interface\" value=\"eth0\"/>\n" " <nvpair id=\"default-port\" name=\"port\" value=\"9999\"/>\n" " </instance_attributes>\n" " <meta_attributes id=\"mySpecialRsc-options\">\n" " <nvpair id=\"failure-timeout\" name=\"failure-timeout\" value=\"5m\"/>\n" " <nvpair id=\"migration-threshold\" name=\"migration-threshold\" value=\"1\"/>\n" " <nvpair id=\"stickiness\" name=\"resource-stickiness\" value=\"0\"/>\n" " </meta_attributes>\n" " <operations id=\"health-checks\">\n" " <op id=\"health-check\" name=\"monitor\" interval=\"60s\"/>\n" " <op id=\"health-check\" name=\"monitor\" interval=\"30min\"/>\n" " </operations>\n" "</primitive>\n" "<primitive id=\"myOtherlRsc\" class=\"ocf\" type=\"Other\" provider=\"me\">\n" " <instance_attributes id-ref=\"mySpecialRsc-attrs\"/>\n" " <meta_attributes id-ref=\"mySpecialRsc-options\"/>\n" " <operations id-ref=\"health-checks\"/>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Reloading Services After a Definition Change" msgstr "" #. Tag: para #, no-c-format msgid "The cluster automatically detects changes to the definition of services it manages. The normal response is to stop the service (using the old definition) and start it again (with the new definition). This works well, but some services are smarter and can be told to use a new set of options without restarting." msgstr "" #. Tag: para #, no-c-format msgid "To take advantage of this capability, the resource agent must:" msgstr "" #. Tag: para #, no-c-format msgid "Accept the reload operation and perform any required actions. The actions here depend completely on your application!" msgstr "" #. Tag: title #, no-c-format msgid "The DRBD agent’s logic for supporting reload" msgstr "" #. Tag: programlisting #, no-c-format msgid "case $1 in\n" " start)\n" " drbd_start\n" " ;;\n" " stop)\n" " drbd_stop\n" " ;;\n" " reload)\n" " drbd_reload\n" " ;;\n" " monitor)\n" " drbd_monitor\n" " ;;\n" " *)\n" " drbd_usage\n" " exit $OCF_ERR_UNIMPLEMENTED\n" " ;;\n" "esac\n" "exit $?" msgstr "" #. Tag: para #, no-c-format msgid "Advertise the reload operation in the actions section of its metadata" msgstr "" #. Tag: title #, no-c-format msgid "The DRBD Agent Advertising Support for the reload Operation" msgstr "" #. Tag: programlisting #, no-c-format msgid "<?xml version=\"1.0\"?>\n" " <!DOCTYPE resource-agent SYSTEM \"ra-api-1.dtd\">\n" " <resource-agent name=\"drbd\">\n" " <version>1.1</version>\n" "\n" " <longdesc>\n" " Master/Slave OCF Resource Agent for DRBD\n" " </longdesc>\n" "\n" " ...\n" "\n" " <actions>\n" " <action name=\"start\" timeout=\"240\" />\n" " <action name=\"reload\" timeout=\"240\" />\n" " <action name=\"promote\" timeout=\"90\" />\n" " <action name=\"demote\" timeout=\"90\" />\n" " <action name=\"notify\" timeout=\"90\" />\n" " <action name=\"stop\" timeout=\"100\" />\n" " <action name=\"meta-data\" timeout=\"5\" />\n" " <action name=\"validate-all\" timeout=\"30\" />\n" " </actions>\n" " </resource-agent>" msgstr "" #. Tag: para #, no-c-format msgid "Advertise one or more parameters that can take effect using reload." msgstr "" #. Tag: para #, no-c-format msgid "Any parameter with the unique set to 0 is eligible to be used in this way." msgstr "" #. Tag: title #, no-c-format msgid "Parameter that can be changed using reload" msgstr "" #. Tag: programlisting #, no-c-format msgid "<parameter name=\"drbdconf\" unique=\"0\">\n" " <longdesc>Full path to the drbd.conf file.</longdesc>\n" " <shortdesc>Path to drbd.conf</shortdesc>\n" " <content type=\"string\" default=\"${OCF_RESKEY_drbdconf_default}\"/>\n" "</parameter>" msgstr "" #. Tag: para #, no-c-format msgid "Once these requirements are satisfied, the cluster will automatically know to reload the resource (instead of restarting) when a non-unique field changes." msgstr "" #. Tag: para #, no-c-format msgid "Metadata will not be re-read unless the resource needs to be started. This may mean that the resource will be restarted the first time, even though you changed a parameter with unique=0." msgstr "" #. Tag: para #, no-c-format msgid "If both a unique and non-unique field are changed simultaneously, the resource will still be restarted." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Advanced-Resources.pot b/doc/Pacemaker_Explained/pot/Ch-Advanced-Resources.pot index 5af5a9f04d..80bd4401a1 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Advanced-Resources.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Advanced-Resources.pot @@ -1,1425 +1,1405 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Advanced Resource Types" msgstr "" #. Tag: title #, no-c-format msgid "Groups - A Syntactic Shortcut" msgstr "" #. Tag: para #, no-c-format msgid " Group Resources ResourcesGroups Groups " msgstr "" #. Tag: para #, no-c-format msgid "One of the most common elements of a cluster is a set of resources that need to be located together, start sequentially, and stop in the reverse order. To simplify this configuration, we support the concept of groups." msgstr "" #. Tag: title #, no-c-format msgid "A group of two primitive resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<group id=\"shortcut\">\n" " <primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive id=\"Email\" class=\"lsb\" type=\"exim\"/>\n" "</group>" msgstr "" #. Tag: para #, no-c-format msgid "Although the example above contains only two resources, there is no limit to the number of resources a group can contain. The example is also sufficient to explain the fundamental properties of a group:" msgstr "" #. Tag: para #, no-c-format msgid "Resources are started in the order they appear in (Public-IP first, then Email)" msgstr "" #. Tag: para #, no-c-format msgid "Resources are stopped in the reverse order to which they appear in (Email first, then Public-IP)" msgstr "" #. Tag: para #, no-c-format msgid "If a resource in the group can’t run anywhere, then nothing after that is allowed to run, too." msgstr "" #. Tag: para #, no-c-format msgid "If Public-IP can’t run anywhere, neither can Email;" msgstr "" #. Tag: para #, no-c-format msgid "but if Email can’t run anywhere, this does not affect Public-IP in any way" msgstr "" #. Tag: para #, no-c-format msgid "The group above is logically equivalent to writing:" msgstr "" #. Tag: title #, no-c-format msgid "How the cluster sees a group resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<configuration>\n" " <resources>\n" " <primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive id=\"Email\" class=\"lsb\" type=\"exim\"/>\n" " </resources>\n" " <constraints>\n" " <rsc_colocation id=\"xxx\" rsc=\"Email\" with-rsc=\"Public-IP\" score=\"INFINITY\"/>\n" " <rsc_order id=\"yyy\" first=\"Public-IP\" then=\"Email\"/>\n" " </constraints>\n" "</configuration>" msgstr "" #. Tag: para #, no-c-format msgid "Obviously as the group grows bigger, the reduced configuration effort can become significant." msgstr "" #. Tag: para #, no-c-format msgid "Another (typical) example of a group is a DRBD volume, the filesystem mount, an IP address, and an application that uses them." msgstr "" #. Tag: title #, no-c-format msgid "Group Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Group Resource" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the group idGroup Resource Property Group Resource Property ResourceGroup Propertyid Group Propertyid id " msgstr "" #. Tag: title #, no-c-format msgid "Group Options" msgstr "" #. Tag: para #, no-c-format msgid "Groups inherit the priority, target-role, and is-managed properties from primitive resources. See for information about those properties." msgstr "" #. Tag: title #, no-c-format msgid "Group Instance Attributes" msgstr "" #. Tag: para #, no-c-format msgid "Groups have no instance attributes. However, any that are set for the group object will be inherited by the group’s children." msgstr "" #. Tag: title #, no-c-format msgid "Group Contents" msgstr "" #. Tag: para #, no-c-format msgid "Groups may only contain a collection of cluster resources (see ). To refer to a child of a group resource, just use the child’s id instead of the group’s." msgstr "" #. Tag: title #, no-c-format msgid "Group Constraints" msgstr "" #. Tag: para #, no-c-format msgid "Although it is possible to reference a group’s children in constraints, it is usually preferable to reference the group itself." msgstr "" #. Tag: title #, no-c-format msgid "Some constraints involving groups" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"group-prefers-node1\" rsc=\"shortcut\" node=\"node1\" score=\"500\"/>\n" " <rsc_colocation id=\"webserver-with-group\" rsc=\"Webserver\" with-rsc=\"shortcut\"/>\n" " <rsc_order id=\"start-group-then-webserver\" first=\"Webserver\" then=\"shortcut\"/>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Group Stickiness" msgstr "" #. Tag: para #, no-c-format msgid " resource-stickinessGroups Groups " msgstr "" #. Tag: para #, no-c-format msgid "Stickiness, the measure of how much a resource wants to stay where it is, is additive in groups. Every active resource of the group will contribute its stickiness value to the group’s total. So if the default resource-stickiness is 100, and a group has seven members, five of which are active, then the group as a whole will prefer its current location with a score of 500." msgstr "" #. Tag: title #, no-c-format msgid "Clones - Resources That Get Active on Multiple Hosts" msgstr "" #. Tag: para #, no-c-format msgid " Clone Resources ResourcesClones Clones " msgstr "" #. Tag: para #, no-c-format msgid "Clones were initially conceived as a convenient way to start multiple instances of an IP address resource and have them distributed throughout the cluster for load balancing. They have turned out to quite useful for a number of purposes including integrating with the Distributed Lock Manager (used by many cluster filesystems), the fencing subsystem, and OCFS2." msgstr "" #. Tag: para #, no-c-format msgid "You can clone any resource, provided the resource agent supports it." msgstr "" #. Tag: para #, no-c-format msgid "Three types of cloned resources exist:" msgstr "" #. Tag: para #, no-c-format msgid "Anonymous" msgstr "" #. Tag: para #, no-c-format msgid "Globally unique" msgstr "" #. Tag: para #, no-c-format msgid "Stateful" msgstr "" #. Tag: para #, no-c-format msgid "Anonymous clones are the simplest. These behave completely identically everywhere they are running. Because of this, there can be only one copy of an anonymous clone active per machine." msgstr "" #. Tag: para #, no-c-format msgid "Globally unique clones are distinct entities. A copy of the clone running on one machine is not equivalent to another instance on another node, nor would any two copies on the same node be equivalent." msgstr "" #. Tag: para #, no-c-format msgid "Stateful clones are covered later in ." msgstr "" #. Tag: title #, no-c-format msgid "A clone of an LSB resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<clone id=\"apache-clone\">\n" " <meta_attributes id=\"apache-clone-meta\">\n" " <nvpair id=\"apache-unique\" name=\"globally-unique\" value=\"false\"/>\n" " </meta_attributes>\n" " <primitive id=\"apache\" class=\"lsb\" type=\"apache\"/>\n" "</clone>" msgstr "" #. Tag: title #, no-c-format msgid "Clone Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Clone Resource" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the clone idClone Property Clone Property ClonePropertyid Propertyid id " msgstr "" #. Tag: title #, no-c-format msgid "Clone Options" msgstr "" #. Tag: para #, no-c-format msgid "Options inherited from primitive resources: priority, target-role, is-managed" msgstr "" #. Tag: title #, no-c-format msgid "Clone-specific configuration options" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: para #, no-c-format msgid "clone-max" msgstr "" #. Tag: para #, no-c-format msgid "number of nodes in cluster" msgstr "" #. Tag: para #, no-c-format msgid "How many copies of the resource to start clone-maxClone Option Clone Option CloneOptionclone-max Optionclone-max clone-max " msgstr "" #. Tag: para #, no-c-format msgid "clone-node-max" msgstr "" #. Tag: para #, no-c-format msgid "1" msgstr "" #. Tag: para #, no-c-format msgid "How many copies of the resource can be started on a single node clone-node-maxClone Option Clone Option CloneOptionclone-node-max Optionclone-node-max clone-node-max " msgstr "" #. Tag: para #, no-c-format msgid "clone-min" msgstr "" #. Tag: para #, no-c-format msgid "Require at least this number of clone instances to be runnable before allowing resources depending on the clone to be runnable (since 1.1.14) clone-minClone Option Clone Option CloneOptionclone-min Optionclone-min clone-min " msgstr "" #. Tag: para #, no-c-format msgid "notify" msgstr "" #. Tag: para #, no-c-format msgid "true" msgstr "" #. Tag: para #, no-c-format msgid "When stopping or starting a copy of the clone, tell all the other copies beforehand and again when the action was successful. Allowed values: false, true notifyClone Option Clone Option CloneOptionnotify Optionnotify notify " msgstr "" #. Tag: para #, no-c-format msgid "globally-unique" msgstr "" #. Tag: para #, no-c-format msgid "false" msgstr "" #. Tag: para #, no-c-format msgid "Does each copy of the clone perform a different function? Allowed values: false, true globally-uniqueClone Option Clone Option CloneOptionglobally-unique Optionglobally-unique globally-unique " msgstr "" #. Tag: para #, no-c-format msgid "ordered" msgstr "" #. Tag: para #, no-c-format msgid "Should the copies be started in series (instead of in parallel)? Allowed values: false, true orderedClone Option Clone Option CloneOptionordered Optionordered ordered " msgstr "" #. Tag: para #, no-c-format msgid "interleave" msgstr "" #. Tag: para #, no-c-format msgid "If this clone depends on another clone via an ordering constraint, is it allowed to start after the local instance of the other clone starts, rather than wait for all instances of the other clone to start? Allowed values: false, true interleaveClone Option Clone Option CloneOptioninterleave Optioninterleave interleave " msgstr "" #. Tag: title #, no-c-format msgid "Clone Instance Attributes" msgstr "" #. Tag: para #, no-c-format msgid "Clones have no instance attributes; however, any that are set here will be inherited by the clone’s children." msgstr "" #. Tag: title #, no-c-format msgid "Clone Contents" msgstr "" #. Tag: para #, no-c-format msgid "Clones must contain exactly one primitive or group resource." msgstr "" #. Tag: para #, no-c-format msgid "You should never reference the name of a clone’s child. If you think you need to do this, you probably need to re-evaluate your design." msgstr "" #. Tag: title #, no-c-format msgid "Clone Constraints" msgstr "" #. Tag: para #, no-c-format msgid "In most cases, a clone will have a single copy on each active cluster node. If this is not the case, you can indicate which nodes the cluster should preferentially assign copies to with resource location constraints. These constraints are written no differently from those for primitive resources except that the clone’s id is used." msgstr "" #. Tag: title #, no-c-format msgid "Some constraints involving clones" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"clone-prefers-node1\" rsc=\"apache-clone\" node=\"node1\" score=\"500\"/>\n" " <rsc_colocation id=\"stats-with-clone\" rsc=\"apache-stats\" with=\"apache-clone\"/>\n" " <rsc_order id=\"start-clone-then-stats\" first=\"apache-clone\" then=\"apache-stats\"/>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "Ordering constraints behave slightly differently for clones. In the example above, apache-stats will wait until all copies of apache-clone that need to be started have done so before being started itself. Only if no copies can be started will apache-stats be prevented from being active. Additionally, the clone will wait for apache-stats to be stopped before stopping itself." msgstr "" #. Tag: para #, no-c-format msgid "Colocation of a primitive or group resource with a clone means that the resource can run on any machine with an active copy of the clone. The cluster will choose a copy based on where the clone is running and the resource’s own location preferences." msgstr "" #. Tag: para #, no-c-format msgid "Colocation between clones is also possible. If one clone A is colocated with another clone B, the set of allowed locations for A is limited to nodes on which B is (or will be) active. Placement is then performed normally." msgstr "" #. Tag: title #, no-c-format msgid "Clone Stickiness" msgstr "" #. Tag: para #, no-c-format msgid " resource-stickinessClones Clones " msgstr "" #. Tag: para #, no-c-format msgid "To achieve a stable allocation pattern, clones are slightly sticky by default. If no value for resource-stickiness is provided, the clone will use a value of 1. Being a small value, it causes minimal disturbance to the score calculations of other resources but is enough to prevent Pacemaker from needlessly moving copies around the cluster." msgstr "" #. Tag: para #, no-c-format msgid "For globally unique clones, this may result in multiple instances of the clone staying on a single node, even after another eligible node becomes active (for example, after being put into standby mode then made active again). If you do not want this behavior, specify a resource-stickiness of 0 for the clone temporarily and let the cluster adjust, then set it back to 1 if you want the default behavior to apply again." msgstr "" #. Tag: title #, no-c-format msgid "Clone Resource Agent Requirements" msgstr "" #. Tag: para #, no-c-format msgid "Any resource can be used as an anonymous clone, as it requires no additional support from the resource agent. Whether it makes sense to do so depends on your resource and its resource agent." msgstr "" #. Tag: para #, no-c-format msgid "Globally unique clones do require some additional support in the resource agent. In particular, it must only respond with ${OCF_SUCCESS} if the node has that exact instance active. All other probes for instances of the clone should result in ${OCF_NOT_RUNNING} (or one of the other OCF error codes if they are failed)." msgstr "" #. Tag: para #, no-c-format msgid "Individual instances of a clone are identified by appending a colon and a numerical offset, e.g. apache:2." msgstr "" #. Tag: para #, no-c-format msgid "Resource agents can find out how many copies there are by examining the OCF_RESKEY_CRM_meta_clone_max environment variable and which copy it is by examining OCF_RESKEY_CRM_meta_clone." msgstr "" #. Tag: para #, no-c-format msgid "The resource agent must not make any assumptions (based on OCF_RESKEY_CRM_meta_clone) about which numerical instances are active. In particular, the list of active copies will not always be an unbroken sequence, nor always start at 0." msgstr "" #. Tag: title #, no-c-format msgid "Clone Notifications" msgstr "" #. Tag: para #, no-c-format msgid "Supporting notifications requires the notify action to be implemented. If supported, the notify action will be passed a number of extra variables which, when combined with additional context, can be used to calculate the current state of the cluster and what is about to happen to it." msgstr "" #. Tag: title #, no-c-format msgid "Environment variables supplied with Clone notify actions" msgstr "" #. Tag: entry #, no-c-format msgid "Variable" msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_type" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: pre, post Environment VariableOCF_RESKEY_CRM_meta_notify_type OCF_RESKEY_CRM_meta_notify_type type typeNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_operation" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: start, stop Environment VariableOCF_RESKEY_CRM_meta_notify_operation OCF_RESKEY_CRM_meta_notify_operation operation operationNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_start_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be started Environment VariableOCF_RESKEY_CRM_meta_notify_start_resource OCF_RESKEY_CRM_meta_notify_start_resource start_resource start_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_stop_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be stopped Environment VariableOCF_RESKEY_CRM_meta_notify_stop_resource OCF_RESKEY_CRM_meta_notify_stop_resource stop_resource stop_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_active_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that are running Environment VariableOCF_RESKEY_CRM_meta_notify_active_resource OCF_RESKEY_CRM_meta_notify_active_resource active_resource active_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_inactive_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that are not running Environment VariableOCF_RESKEY_CRM_meta_notify_inactive_resource OCF_RESKEY_CRM_meta_notify_inactive_resource inactive_resource inactive_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_start_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources will be started Environment VariableOCF_RESKEY_CRM_meta_notify_start_uname OCF_RESKEY_CRM_meta_notify_start_uname start_uname start_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_stop_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources will be stopped Environment VariableOCF_RESKEY_CRM_meta_notify_stop_uname OCF_RESKEY_CRM_meta_notify_stop_uname stop_uname stop_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_active_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources are running Environment VariableOCF_RESKEY_CRM_meta_notify_active_uname OCF_RESKEY_CRM_meta_notify_active_uname active_uname active_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_inactive_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources are not running Environment VariableOCF_RESKEY_CRM_meta_notify_inactive_uname OCF_RESKEY_CRM_meta_notify_inactive_uname inactive_uname inactive_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "The variables come in pairs, such as OCF_RESKEY_CRM_meta_notify_start_resource and OCF_RESKEY_CRM_meta_notify_start_uname and should be treated as an array of whitespace-separated elements." msgstr "" #. Tag: para #, no-c-format msgid "Thus in order to indicate that clone:0 will be started on sles-1, clone:2 will be started on sles-3, and clone:3 will be started on sles-2, the cluster would set" msgstr "" #. Tag: title #, no-c-format msgid "Notification variables" msgstr "" #. Tag: programlisting #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_start_resource=\"clone:0 clone:2 clone:3\"\n" "OCF_RESKEY_CRM_meta_notify_start_uname=\"sles-1 sles-3 sles-2\"" msgstr "" #. Tag: title #, no-c-format msgid "Proper Interpretation of Notification Environment Variables" msgstr "" #. Tag: title #, no-c-format msgid "Pre-notification (stop):" msgstr "" #. Tag: para #, no-c-format msgid "Active resources: $OCF_RESKEY_CRM_meta_notify_active_resource" msgstr "" #. Tag: para #, no-c-format msgid "Inactive resources: $OCF_RESKEY_CRM_meta_notify_inactive_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be started: $OCF_RESKEY_CRM_meta_notify_start_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be stopped: $OCF_RESKEY_CRM_meta_notify_stop_resource" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (stop) / Pre-notification (start):" msgstr "" #. Tag: para #, no-c-format msgid "Active resources" msgstr "" #. Tag: para #, no-c-format msgid "$OCF_RESKEY_CRM_meta_notify_active_resource" msgstr "" #. Tag: para #, no-c-format msgid "minus $OCF_RESKEY_CRM_meta_notify_stop_resource" msgstr "" #. Tag: para #, no-c-format msgid "Inactive resources" msgstr "" #. Tag: para #, no-c-format msgid "$OCF_RESKEY_CRM_meta_notify_inactive_resource" msgstr "" #. Tag: para #, no-c-format msgid "plus $OCF_RESKEY_CRM_meta_notify_stop_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that were started: $OCF_RESKEY_CRM_meta_notify_start_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that were stopped: $OCF_RESKEY_CRM_meta_notify_stop_resource" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (start):" msgstr "" #. Tag: para #, no-c-format msgid "Active resources:" msgstr "" #. Tag: para #, no-c-format msgid "plus $OCF_RESKEY_CRM_meta_notify_start_resource" msgstr "" #. Tag: para #, no-c-format msgid "Inactive resources:" msgstr "" #. Tag: para #, no-c-format msgid "minus $OCF_RESKEY_CRM_meta_notify_start_resource" msgstr "" #. Tag: title #, no-c-format msgid "Multi-state - Resources That Have Multiple Modes" msgstr "" #. Tag: para #, no-c-format msgid " Multi-state Resources ResourcesMulti-state Multi-state " msgstr "" #. Tag: para #, no-c-format msgid "Multi-state resources are a specialization of clone resources; please ensure you understand before continuing!" msgstr "" #. Tag: para #, no-c-format msgid "Multi-state resources allow the instances to be in one of two operating modes (called roles). The roles are called master and slave, but can mean whatever you wish them to mean. The only limitation is that when an instance is started, it must come up in the slave role." msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Multi-State Resource" msgstr "" #. Tag: para #, no-c-format msgid "Your name for the multi-state resource idMulti-State Property Multi-State Property Multi-StatePropertyid Propertyid id " msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Options" msgstr "" #. Tag: para #, no-c-format msgid "Options inherited from primitive resources: priority, target-role, is-managed" msgstr "" #. Tag: para #, no-c-format msgid "Options inherited from clone resources: clone-max, clone-node-max, notify, globally-unique, ordered, interleave" msgstr "" #. Tag: title #, no-c-format msgid "Multi-state-specific resource configuration options" msgstr "" #. Tag: para #, no-c-format msgid "master-max" msgstr "" #. Tag: para #, no-c-format msgid "How many copies of the resource can be promoted to the master role master-maxMulti-State Option Multi-State Option Multi-StateOptionmaster-max Optionmaster-max master-max " msgstr "" #. Tag: para #, no-c-format msgid "master-node-max" msgstr "" #. Tag: para #, no-c-format msgid "How many copies of the resource can be promoted to the master role on a single node master-node-maxMulti-State Option Multi-State Option Multi-StateOptionmaster-node-max Optionmaster-node-max master-node-max " msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Instance Attributes" msgstr "" #. Tag: para #, no-c-format msgid "Multi-state resources have no instance attributes; however, any that are set here will be inherited by a master’s children." msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Contents" msgstr "" #. Tag: para #, no-c-format msgid "Masters must contain exactly one primitive or group resource." msgstr "" #. Tag: para #, no-c-format msgid "You should never reference the name of a master’s child. If you think you need to do this, you probably need to re-evaluate your design." msgstr "" #. Tag: title #, no-c-format msgid "Monitoring Multi-State Resources" msgstr "" #. Tag: para #, no-c-format msgid "The usual monitor actions are insufficient to monitor a multi-state resource, because pacemaker needs to verify not only that the resource is active, but also that its actual role matches its intended one." msgstr "" #. Tag: para #, no-c-format msgid "Define two monitoring actions: the usual one will cover the slave role, and an additional one with role=\"master\" will cover the master role." msgstr "" #. Tag: title #, no-c-format msgid "Monitoring both states of a multi-state resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<master id=\"myMasterRsc\">\n" " <primitive id=\"myRsc\" class=\"ocf\" type=\"myApp\" provider=\"myCorp\">\n" " <operations>\n" " <op id=\"public-ip-slave-check\" name=\"monitor\" interval=\"60\"/>\n" " <op id=\"public-ip-master-check\" name=\"monitor\" interval=\"61\" role=\"Master\"/>\n" " </operations>\n" " </primitive>\n" "</master>" msgstr "" #. Tag: para #, no-c-format msgid "It is crucial that every monitor operation has a different interval! Pacemaker currently differentiates between operations only by resource and interval; so if (for example) a master/slave resource had the same monitor interval for both roles, Pacemaker would ignore the role when checking the status — which would cause unexpected return codes, and therefore unnecessary complications." msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Constraints" msgstr "" #. Tag: para #, no-c-format msgid "In most cases, multi-state resources will have a single copy on each active cluster node. If this is not the case, you can indicate which nodes the cluster should preferentially assign copies to with resource location constraints. These constraints are written no differently from those for primitive resources except that the master’s id is used." msgstr "" #. Tag: para #, no-c-format msgid "When considering multi-state resources in constraints, for most purposes it is sufficient to treat them as clones. The exception is that the first-action and/or then-action fields for ordering constraints may be set to promote or demote to constrain the master role, and colocation constraints may contain rsc-role and/or with-rsc-role fields." msgstr "" #. Tag: title #, no-c-format msgid "Additional colocation constraint options for multi-state resources" msgstr "" #. Tag: para #, no-c-format msgid "rsc-role" msgstr "" #. Tag: para #, no-c-format -msgid "started" +msgid "Started" msgstr "" #. Tag: para #, no-c-format -msgid "An additional attribute of colocation constraints that specifies the role that rsc must be in. Allowed values: started, master, slave. rsc-roleOrdering Constraints Ordering Constraints ConstraintsOrderingrsc-role Orderingrsc-role rsc-role " +msgid "An additional attribute of colocation constraints that specifies the role that rsc must be in. Allowed values: Started, Master, Slave. rsc-roleOrdering Constraints Ordering Constraints ConstraintsOrderingrsc-role Orderingrsc-role rsc-role " msgstr "" #. Tag: para #, no-c-format msgid "with-rsc-role" msgstr "" #. Tag: para #, no-c-format -msgid "An additional attribute of colocation constraints that specifies the role that with-rsc must be in. Allowed values: started, master, slave. with-rsc-roleOrdering Constraints Ordering Constraints ConstraintsOrderingwith-rsc-role Orderingwith-rsc-role with-rsc-role " +msgid "An additional attribute of colocation constraints that specifies the role that with-rsc must be in. Allowed values: Started, Master, Slave. with-rsc-roleOrdering Constraints Ordering Constraints ConstraintsOrderingwith-rsc-role Orderingwith-rsc-role with-rsc-role " msgstr "" #. Tag: title #, no-c-format msgid "Constraints involving multi-state resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"db-prefers-node1\" rsc=\"database\" node=\"node1\" score=\"500\"/>\n" " <rsc_colocation id=\"backup-with-db-slave\" rsc=\"backup\"\n" " with-rsc=\"database\" with-rsc-role=\"Slave\"/>\n" " <rsc_colocation id=\"myapp-with-db-master\" rsc=\"myApp\"\n" " with-rsc=\"database\" with-rsc-role=\"Master\"/>\n" " <rsc_order id=\"start-db-before-backup\" first=\"database\" then=\"backup\"/>\n" " <rsc_order id=\"promote-db-then-app\" first=\"database\" first-action=\"promote\"\n" " then=\"myApp\" then-action=\"start\"/>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, myApp will wait until one of the database copies has been started and promoted to master before being started itself on the same node. Only if no copies can be promoted will myApp be prevented from being active. Additionally, the cluster will wait for myApp to be stopped before demoting the database." msgstr "" #. Tag: para #, no-c-format msgid "Colocation of a primitive or group resource with a multi-state resource means that it can run on any machine with an active copy of the multi-state resource that has the specified role (master or slave). In the example above, the cluster will choose a location based on where database is running as a master, and if there are multiple master instances it will also factor in myApp's own location preferences when deciding which location to choose." msgstr "" #. Tag: para #, no-c-format msgid "Colocation with regular clones and other multi-state resources is also possible. In such cases, the set of allowed locations for the rsc clone is (after role filtering) limited to nodes on which the with-rsc multi-state resource is (or will be) in the specified role. Placement is then performed as normal." msgstr "" #. Tag: title #, no-c-format msgid "Using Multi-state Resources in Colocation Sets" msgstr "" #. Tag: title #, no-c-format msgid "Additional colocation set options relevant to multi-state resources" msgstr "" #. Tag: para #, no-c-format msgid "role" msgstr "" #. Tag: para #, no-c-format -msgid "The role that all members of the set must be in. Allowed values: started, master, slave. roleOrdering Constraints Ordering Constraints ConstraintsOrderingrole Orderingrole role " +msgid "The role that all members of the set must be in. Allowed values: Started, Master, Slave. roleOrdering Constraints Ordering Constraints ConstraintsOrderingrole Orderingrole role " msgstr "" #. Tag: para #, no-c-format msgid "In the following example B's master must be located on the same node as A's master. Additionally resources C and D must be located on the same node as A's and B's masters." msgstr "" #. Tag: title #, no-c-format msgid "Colocate C and D with A’s and B’s master instances" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_colocation id=\"coloc-1\" score=\"INFINITY\" >\n" " <resource_set id=\"colocated-set-example-1\" sequential=\"true\" role=\"Master\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " </resource_set>\n" " <resource_set id=\"colocated-set-example-2\" sequential=\"true\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_colocation>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Using Multi-state Resources in Ordering Sets" msgstr "" #. Tag: title #, no-c-format msgid "Additional ordered set options relevant to multi-state resources" msgstr "" #. Tag: para #, no-c-format msgid "action" msgstr "" #. Tag: para #, no-c-format msgid "value of first-action" msgstr "" #. Tag: para #, no-c-format msgid "An additional attribute of ordering constraint sets that specifies the action that applies to all members of the set. Allowed values: start, stop, promote, demote. actionOrdering Constraints Ordering Constraints ConstraintsOrderingaction Orderingaction action " msgstr "" #. Tag: title #, no-c-format msgid "Start C and D after first promoting A and B" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\" score=\"INFINITY\" >\n" " <resource_set id=\"ordered-set-1\" sequential=\"true\" action=\"promote\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-2\" sequential=\"true\" action=\"start\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_order>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "In the above example, B cannot be promoted to a master role until A has been promoted. Additionally, resources C and D must wait until A and B have been promoted before they can start." msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Stickiness" msgstr "" #. Tag: para #, no-c-format msgid " resource-stickinessMulti-State Multi-State As with regular clones, multi-state resources are slightly sticky by default. See for details." msgstr "" #. Tag: title #, no-c-format msgid "Which Resource Instance is Promoted" msgstr "" #. Tag: para #, no-c-format msgid "During the start operation, most resource agents should call the crm_master utility. This tool automatically detects both the resource and host and should be used to set a preference for being promoted. Based on this, master-max, and master-node-max, the instance(s) with the highest preference will be promoted." msgstr "" #. Tag: para #, no-c-format msgid "An alternative is to create a location constraint that indicates which nodes are most preferred as masters." msgstr "" #. Tag: title #, no-c-format msgid "Explicitly preferring node1 to be promoted to master" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"master-location\" rsc=\"myMasterRsc\">\n" " <rule id=\"master-rule\" score=\"100\" role=\"Master\">\n" " <expression id=\"master-exp\" attribute=\"#uname\" operation=\"eq\" value=\"node1\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: title #, no-c-format msgid "Requirements for Multi-state Resource Agents" msgstr "" #. Tag: para #, no-c-format msgid "Since multi-state resources are an extension of cloned resources, all the requirements for resource agents that support clones are also requirements for resource agents that support multi-state resources." msgstr "" #. Tag: para #, no-c-format msgid "Additionally, multi-state resources require two extra actions, demote and promote, which are responsible for changing the state of the resource. Like start and stop, they should return ${OCF_SUCCESS} if they completed successfully or a relevant error code if they did not." msgstr "" #. Tag: para #, no-c-format msgid "The states can mean whatever you wish, but when the resource is started, it must come up in the mode called slave. From there the cluster will decide which instances to promote to master." msgstr "" #. Tag: para #, no-c-format msgid "In addition to the clone requirements for monitor actions, agents must also accurately report which state they are in. The cluster relies on the agent to report its status (including role) accurately and does not indicate to the agent what role it currently believes it to be in." msgstr "" #. Tag: title #, no-c-format msgid "Role implications of OCF return codes" msgstr "" #. Tag: entry #, no-c-format msgid "Monitor Return Code" msgstr "" #. Tag: para #, no-c-format msgid "OCF_NOT_RUNNING" msgstr "" #. Tag: para #, no-c-format msgid "Stopped Return CodeOCF_NOT_RUNNING OCF_NOT_RUNNING " msgstr "" #. Tag: para #, no-c-format msgid "OCF_SUCCESS" msgstr "" #. Tag: para #, no-c-format msgid "Running (Slave) Return CodeOCF_SUCCESS OCF_SUCCESS " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RUNNING_MASTER" msgstr "" #. Tag: para #, no-c-format msgid "Running (Master) Return CodeOCF_RUNNING_MASTER OCF_RUNNING_MASTER " msgstr "" #. Tag: para #, no-c-format msgid "OCF_FAILED_MASTER" msgstr "" #. Tag: para #, no-c-format msgid "Failed (Master) Return CodeOCF_FAILED_MASTER OCF_FAILED_MASTER " msgstr "" #. Tag: para #, no-c-format msgid "Other" msgstr "" #. Tag: para #, no-c-format msgid "Failed (Slave)" msgstr "" #. Tag: title #, no-c-format msgid "Multi-state Notifications" msgstr "" #. Tag: para #, no-c-format msgid "Like clones, supporting notifications requires the notify action to be implemented. If supported, the notify action will be passed a number of extra variables which, when combined with additional context, can be used to calculate the current state of the cluster and what is about to happen to it." msgstr "" #. Tag: title #, no-c-format msgid "Environment variables supplied with multi-state notify actions Emphasized variables are specific to Master resources, and all behave in the same manner as described for Clone resources." msgstr "" -#. Tag: para -#, no-c-format -msgid "Resources the that are running Environment VariableOCF_RESKEY_CRM_meta_notify_active_resource OCF_RESKEY_CRM_meta_notify_active_resource active_resource active_resourceNotification Environment Variable Notification Environment Variable " -msgstr "" - -#. Tag: para -#, no-c-format -msgid "Resources the that are not running Environment VariableOCF_RESKEY_CRM_meta_notify_inactive_resource OCF_RESKEY_CRM_meta_notify_inactive_resource inactive_resource inactive_resourceNotification Environment Variable Notification Environment Variable " -msgstr "" - #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_master_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that are running in Master mode Environment VariableOCF_RESKEY_CRM_meta_notify_master_resource OCF_RESKEY_CRM_meta_notify_master_resource master_resource master_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_slave_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that are running in Slave mode Environment VariableOCF_RESKEY_CRM_meta_notify_slave_resource OCF_RESKEY_CRM_meta_notify_slave_resource slave_resource slave_resourceNotification Environment Variable Notification Environment Variable " msgstr "" -#. Tag: para -#, no-c-format -msgid " Environment VariableOCF_RESKEY_CRM_meta_notify_stop_resource OCF_RESKEY_CRM_meta_notify_stop_resource stop_resource stop_resourceNotification Environment Variable Notification Environment Variable OCF_RESKEY_CRM_meta_notify_stop_resource" -msgstr "" - -#. Tag: para -#, no-c-format -msgid "Resources to be stopped" -msgstr "" - #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_promote_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be promoted Environment VariableOCF_RESKEY_CRM_meta_notify_promote_resource OCF_RESKEY_CRM_meta_notify_promote_resource promote_resource promote_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_demote_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be demoted Environment VariableOCF_RESKEY_CRM_meta_notify_demote_resource OCF_RESKEY_CRM_meta_notify_demote_resource demote_resource demote_resourceNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_promote_uname" msgstr "" #. Tag: para #, no-c-format -msgid "Nodes on which resources will be promote Environment VariableOCF_RESKEY_CRM_meta_notify_promote_uname OCF_RESKEY_CRM_meta_notify_promote_uname promote_uname promote_unameNotification Environment Variable Notification Environment Variable " +msgid "Nodes on which resources will be promoted Environment VariableOCF_RESKEY_CRM_meta_notify_promote_uname OCF_RESKEY_CRM_meta_notify_promote_uname promote_uname promote_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_demote_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources will be demoted Environment VariableOCF_RESKEY_CRM_meta_notify_demote_uname OCF_RESKEY_CRM_meta_notify_demote_uname demote_uname demote_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_master_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources are running in Master mode Environment VariableOCF_RESKEY_CRM_meta_notify_master_uname OCF_RESKEY_CRM_meta_notify_master_uname master_uname master_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: para #, no-c-format msgid "OCF_RESKEY_CRM_meta_notify_slave_uname" msgstr "" #. Tag: para #, no-c-format msgid "Nodes on which resources are running in Slave mode Environment VariableOCF_RESKEY_CRM_meta_notify_slave_uname OCF_RESKEY_CRM_meta_notify_slave_uname slave_uname slave_unameNotification Environment Variable Notification Environment Variable " msgstr "" #. Tag: title #, no-c-format msgid "Proper Interpretation of Multi-state Notification Environment Variables" msgstr "" #. Tag: title #, no-c-format msgid "Pre-notification (demote):" msgstr "" #. Tag: para #, no-c-format msgid "Active resources: $OCF_RESKEY_CRM_meta_notify_active_resource" msgstr "" #. Tag: para #, no-c-format msgid "Master resources: $OCF_RESKEY_CRM_meta_notify_master_resource" msgstr "" #. Tag: para #, no-c-format msgid "Slave resources: $OCF_RESKEY_CRM_meta_notify_slave_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be promoted: $OCF_RESKEY_CRM_meta_notify_promote_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources to be demoted: $OCF_RESKEY_CRM_meta_notify_demote_resource" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (demote) / Pre-notification (stop):" msgstr "" #. Tag: para #, no-c-format msgid "Master resources:" msgstr "" #. Tag: para #, no-c-format msgid "$OCF_RESKEY_CRM_meta_notify_master_resource" msgstr "" #. Tag: para #, no-c-format msgid "minus $OCF_RESKEY_CRM_meta_notify_demote_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that were demoted: $OCF_RESKEY_CRM_meta_notify_demote_resource" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (stop) / Pre-notification (start)" msgstr "" #. Tag: para #, no-c-format msgid "Active resources:" msgstr "" #. Tag: para #, no-c-format msgid "Slave resources:" msgstr "" #. Tag: para #, no-c-format msgid "$OCF_RESKEY_CRM_meta_notify_slave_resource" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (start) / Pre-notification (promote)" msgstr "" #. Tag: title #, no-c-format msgid "Post-notification (promote)" msgstr "" #. Tag: para #, no-c-format msgid "plus $OCF_RESKEY_CRM_meta_notify_promote_resource" msgstr "" #. Tag: para #, no-c-format msgid "minus $OCF_RESKEY_CRM_meta_notify_promote_resource" msgstr "" #. Tag: para #, no-c-format msgid "Resources that were promoted: $OCF_RESKEY_CRM_meta_notify_promote_resource" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Alerts.pot b/doc/Pacemaker_Explained/pot/Ch-Alerts.pot new file mode 100644 index 0000000000..826b23b793 --- /dev/null +++ b/doc/Pacemaker_Explained/pot/Ch-Alerts.pot @@ -0,0 +1,486 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Alerts" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " ResourceAlerts Alerts " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Alerts may be configured to take some external action when a cluster event occurs (node failure, resource starting or stopping, etc.)." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert Agents" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As with resource agents, the cluster calls an external program (an alert agent) to handle alerts. The cluster passes information about the event to the agent via environment variables. Agents can do anything desired with this information (send an e-mail, log to a file, update a monitoring system, etc.)." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Simple alert configuration" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "<configuration>\n" +" <alerts>\n" +" <alert id=\"my-alert\" path=\"/path/to/my-script.sh\" />\n" +" </alerts>\n" +"</configuration>" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the example above, the cluster will call my-script.sh for each event." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Multiple alert agents may be configured; the cluster will call all of them for each event." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Alert agents will be called only on cluster nodes. They will be called for events involving Pacemaker Remote nodes, but they will never be called on those nodes." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert Recipients" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Usually alerts are directed towards a recipient. Thus each alert may be additionally configured with one or more recipients. The cluster will call the agent separately for each recipient." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert configuration with recipient" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "<configuration>\n" +" <alerts>\n" +" <alert id=\"my-alert\" path=\"/path/to/my-script.sh\">\n" +" <recipient id=\"my-alert-recipient\" value=\"some-address\"/>\n" +" </alert>\n" +" </alerts>\n" +"</configuration>" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the above example, the cluster will call my-script.sh for each event, passing the recipient some-address as an environment variable." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The recipient may be anything the alert agent can recognize — an IP address, an e-mail address, a file name, whatever the particular agent supports." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert Meta-Attributes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As with resource agents, meta-attributes can be configured for alert agents to affect how Pacemaker calls them." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Meta-Attributes of an Alert" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Meta-Attribute" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Default" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Description" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "timestamp-format" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "%H:%M:%S.%06N" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Format the cluster will use when sending the event’s timestamp to the agent. This is a string as used with the date(1) command. AlertOptiontimestamp-format Optiontimestamp-format timestamp-format " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "timeout" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "30s" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If the alert agent does not complete within this amount of time, it will be terminated. AlertOptiontimeout Optiontimeout timeout " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Meta-attributes can be configured per alert agent and/or per recipient." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert configuration with meta-attributes" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "<configuration>\n" +" <alerts>\n" +" <alert id=\"my-alert\" path=\"/path/to/my-script.sh\">\n" +" <meta_attributes id=\"my-alert-attributes\">\n" +" <nvpair id=\"my-alert-attributes-timeout\" name=\"timeout\"\n" +" value=\"15s\"/>\n" +" </meta_attributes>\n" +" <recipient id=\"my-alert-recipient1\" value=\"someuser@example.com\">\n" +" <meta_attributes id=\"my-alert-recipient1-attributes\">\n" +" <nvpair id=\"my-alert-recipient1-timestamp-format\"\n" +" name=\"timestamp-format\" value=\"%D %H:%M\"/>\n" +" </meta_attributes>\n" +" </recipient>\n" +" <recipient id=\"my-alert-recipient2\" value=\"otheruser@example.com\">\n" +" <meta_attributes id=\"my-alert-recipient2-attributes\">\n" +" <nvpair id=\"my-alert-recipient2-timestamp-format\"\n" +" name=\"timestamp-format\" value=\"%c\"/>\n" +" </meta_attributes>\n" +" </recipient>\n" +" </alert>\n" +" </alerts>\n" +"</configuration>" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the above example, the my-script.sh will get called twice for each event, with each call using a 15-second timeout. One call will be passed the recipient someuser@example.com and a timestamp in the format %D %H:%M, while the other call will be passed the recipient otheruser@example.com and a timestamp in the format %c." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert Instance Attributes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As with resource agents, agent-specific configuration values may be configured as instance attributes. These will be passed to the agent as additional environment variables. The number, names and allowed values of these instance attributes are completely up to the particular agent." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Alert configuration with instance attributes" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "<configuration>\n" +" <alerts>\n" +" <alert id=\"my-alert\" path=\"/path/to/my-script.sh\">\n" +" <meta_attributes id=\"my-alert-attributes\">\n" +" <nvpair id=\"my-alert-attributes-timeout\" name=\"timeout\"\n" +" value=\"15s\"/>\n" +" </meta_attributes>\n" +" <instance_attributes id=\"my-alert-options\">\n" +" <nvpair id=\"my-alert-options-debug\" name=\"debug\" value=\"false\"/>\n" +" </instance_attributes>\n" +" <recipient id=\"my-alert-recipient1\" value=\"someuser@example.com\"/>\n" +" </alert>\n" +" </alerts>\n" +"</configuration>" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Using the Sample Alert Agents" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker provides several sample alert agents, installed in /usr/share/pacemaker/alerts by default." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "While these sample scripts may be copied and used as-is, they are provided mainly as templates to be edited to suit your purposes. See their source code for the full set of instance attributes they support." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Sending cluster events as SNMP traps" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "<configuration>\n" +" <alerts>\n" +" <alert id=\"snmp_alert\" path=\"/path/to/alert_snmp.sh\">\n" +" <instance_attributes id=\"config_for_alert_snmp\">\n" +" <nvpair id=\"trap_node_states\" name=\"trap_node_states\" value=\"all\"/>\n" +" </instance_attributes>\n" +" <meta_attributes id=\"config_for_timestamp\">\n" +" <nvpair id=\"ts_fmt\" name=\"timestamp-format\"\n" +" value=\"%Y-%m-%d,%H:%M:%S.%01N\"/>\n" +" </meta_attributes>\n" +" <recipient id=\"snmp_destination\" value=\"192.168.1.2\"/>\n" +" </alert>\n" +" </alerts>\n" +"</configuration>" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Sending cluster events as e-mails" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid " <configuration>\n" +" <alerts>\n" +" <alert id=\"smtp_alert\" path=\"/path/to/alert_smtp.sh\">\n" +" <instance_attributes id=\"config_for_alert_smtp\">\n" +" <nvpair id=\"email_sender\" name=\"email_sender\"\n" +" value=\"donotreply@example.com\"/>\n" +" </instance_attributes>\n" +" <recipient id=\"smtp_destination\" value=\"admin@example.com\"/>\n" +" </alert>\n" +" </alerts>\n" +" </configuration>" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Writing an Alert Agent" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Environment variables passed to alert agents" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Environment Variable" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_kind" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The type of alert (node, fencing, or resource) Environment VariableCRM_alert_kind CRM_alert_kind kind " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_version" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The version of Pacemaker sending the alert Environment VariableCRM_alert_version CRM_alert_version version " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_recipient" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The configured recipient Environment VariableCRM_alert_recipient CRM_alert_recipient recipient " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_node_sequence" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A sequence number increased whenever an alert is being issued on the local node, which can be used to reference the order in which alerts have been issued by Pacemaker. An alert for an event that happened later in time reliably has a higher sequence number than alerts for earlier events. Be aware that this number has no cluster-wide meaning. Environment VariableCRM_alert_node_sequence CRM_alert_node_sequence sequence " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_timestamp" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A timestamp created prior to executing the agent, in the format specified by the timestamp-format meta-attribute. This allows the agent to have a reliable, high-precision time of when the event occurred, regardless of when the agent itself was invoked (which could potentially be delayed due to system load, etc.). Environment VariableCRM_alert_timestamp CRM_alert_timestamp timestamp " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_node" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Name of affected node Environment VariableCRM_alert_node CRM_alert_node node " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_desc" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Detail about event. For node alerts, this is the node’s current state (member or lost). For fencing alerts, this is a summary of the requested fencing operation, including origin, target, and fencing operation error code, if any. For resource alerts, this is a readable string equivalent of CRM_alert_status. Environment VariableCRM_alert_desc CRM_alert_desc desc " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_nodeid" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "ID of node whose status changed (provided with node alerts only) Environment VariableCRM_alert_nodeid CRM_alert_nodeid nodeid " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_task" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The requested fencing or resource operation (provided with fencing and resource alerts only) Environment VariableCRM_alert_task CRM_alert_task task " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_rc" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The numerical return code of the fencing or resource operation (provided with fencing and resource alerts only) Environment VariableCRM_alert_rc CRM_alert_rc rc " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_rsc" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The name of the affected resource (resource alerts only) Environment VariableCRM_alert_rsc CRM_alert_rsc rsc " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_interval" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The interval of the resource operation (resource alerts only) Environment VariableCRM_alert_interval CRM_alert_interval interval " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_target_rc" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The expected numerical return code of the operation (resource alerts only) Environment VariableCRM_alert_target_rc CRM_alert_target_rc target_rc " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRM_alert_status" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A numerical code used by Pacemaker to represent the operation result (resource alerts only) Environment VariableCRM_alert_status CRM_alert_status status " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Special concerns when writing alert agents:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Alert agents may be called with no recipient (if none is configured), so the agent must be able to handle this situation, even if it only exits in that case. (Users may modify the configuration in stages, and add a recipient later.)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If more than one recipient is configured for an alert, the alert agent will be called once per recipient. If an agent is not able to run concurrently, it should be configured with only a single recipient. The agent is free, however, to interpret the recipient as a list." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When a cluster event occurs, all alerts are fired off at the same time as separate processes. Depending on how many alerts and recipients are configured, and on what is done within the alert agents, a significant load burst may occur. The agent could be written to take this into consideration, for example by queueing resource-intensive actions into some other instance, instead of directly executing them." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Alert agents are run as the hacluster user, which has a minimal set of permissions. If an agent requires additional privileges, it is recommended to configure sudo to allow the agent to run the necessary commands as another user with the appropriate privileges." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As always, take care to validate and sanitize user-configured parameters, such as CRM_alert_timestamp (whose content is specified by the user-configured timestamp-format), CRM_alert_recipient, and all instance attributes. Mostly this is needed simply to protect against configuration errors, but if some user can modify the CIB without having hacluster-level access to the cluster nodes, it is a potential security concern as well, to avoid the possibility of code injection." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The alerts interface is designed to be backward compatible with the external scripts interface used by the ocf:pacemaker:ClusterMon resource, which is now deprecated. To preserve this compatibility, the environment variables passed to alert agents are available prepended with CRM_notify_ as well as CRM_alert_. One break in compatibility is that ClusterMon ran external scripts as the root user, while alert agents are run as the hacluster user." +msgstr "" + diff --git a/doc/Pacemaker_Explained/pot/Ch-Basics.pot b/doc/Pacemaker_Explained/pot/Ch-Basics.pot index 8e852ee568..00234cc197 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Basics.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Basics.pot @@ -1,563 +1,563 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 Basics" msgstr "" #. Tag: title #, no-c-format msgid "Configuration Layout" msgstr "" #. Tag: para #, no-c-format msgid "The cluster is defined by the Cluster Information Base (CIB), which uses XML notation. The simplest CIB, an empty one, looks like this:" msgstr "" #. Tag: title #, no-c-format msgid "An empty configuration" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.7\" validate-with=\"pacemaker-1.2\" admin_epoch=\"1\" epoch=\"0\" num_updates=\"0\">\n" " <configuration>\n" " <crm_config/>\n" " <nodes/>\n" " <resources/>\n" " <constraints/>\n" " </configuration>\n" " <status/>\n" "</cib>" msgstr "" #. Tag: para #, no-c-format msgid "The empty configuration above contains the major sections that make up a CIB:" msgstr "" #. Tag: para #, no-c-format msgid "cib: The entire CIB is enclosed with a cib tag. Certain fundamental settings are defined as attributes of this tag." msgstr "" #. Tag: para #, no-c-format msgid "configuration: This section — the primary focus of this document —  contains traditional configuration information such as what resources the cluster serves and the relationships among them." msgstr "" #. Tag: para #, no-c-format msgid "crm_config: cluster-wide configuration options" msgstr "" #. Tag: para #, no-c-format msgid "nodes: the machines that host the cluster" msgstr "" #. Tag: para #, no-c-format msgid "resources: the services run by the cluster" msgstr "" #. Tag: para #, no-c-format msgid "constraints: indications of how resources should be placed" msgstr "" #. Tag: para #, no-c-format msgid "status: This section contains the history of each resource on each node. Based on this data, the cluster can construct the complete current state of the cluster. The authoritative source for this section is the local resource manager (lrmd process) on each cluster node, and the cluster will occasionally repopulate the entire section. For this reason, it is never written to disk, and administrators are advised against modifying it in any way." msgstr "" #. Tag: para #, no-c-format msgid "In this document, configuration settings will be described as properties or options based on how they are defined in the CIB:" msgstr "" #. Tag: para #, no-c-format msgid "Properties are XML attributes of an XML element." msgstr "" #. Tag: para #, no-c-format msgid "Options are name-value pairs expressed as nvpair child elements of an XML element." msgstr "" #. Tag: para #, no-c-format msgid "Normally you will use command-line tools that abstract the XML, so the distinction will be unimportant; both properties and options are cluster settings you can tweak." msgstr "" #. Tag: title #, no-c-format msgid "The Current State of the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "Before one starts to configure a cluster, it is worth explaining how to view the finished product. For this purpose we have created the crm_mon utility, which will display the current state of an active cluster. It can show the cluster status by node or by resource and can be used in either single-shot or dynamically-updating mode. There are also modes for displaying a list of the operations performed (grouped by node and resource) as well as information about failures." msgstr "" #. Tag: para #, no-c-format msgid "Using this tool, you can examine the state of the cluster for irregularities and see how it responds when you cause or simulate failures." msgstr "" #. Tag: para #, no-c-format msgid "Details on all the available options can be obtained using the crm_mon --help command." msgstr "" #. Tag: title #, no-c-format msgid "Sample output from crm_mon" msgstr "" #. Tag: screen #, no-c-format msgid " ============\n" " Last updated: Fri Nov 23 15:26:13 2007\n" " Current DC: sles-3 (2298606a-6a8c-499a-9d25-76242f7006ec)\n" " 3 Nodes configured.\n" " 5 Resources configured.\n" " ============\n" "\n" " Node: sles-1 (1186dc9a-324d-425a-966e-d757e693dc86): online\n" " 192.168.100.181 (heartbeat::ocf:IPaddr): Started sles-1\n" " 192.168.100.182 (heartbeat:IPaddr): Started sles-1\n" " 192.168.100.183 (heartbeat::ocf:IPaddr): Started sles-1\n" " rsc_sles-1 (heartbeat::ocf:IPaddr): Started sles-1\n" " child_DoFencing:2 (stonith:external/vmware): Started sles-1\n" " Node: sles-2 (02fb99a8-e30e-482f-b3ad-0fb3ce27d088): standby\n" " Node: sles-3 (2298606a-6a8c-499a-9d25-76242f7006ec): online\n" " rsc_sles-2 (heartbeat::ocf:IPaddr): Started sles-3\n" " rsc_sles-3 (heartbeat::ocf:IPaddr): Started sles-3\n" " child_DoFencing:0 (stonith:external/vmware): Started sles-3" msgstr "" #. Tag: title #, no-c-format msgid "Sample output from crm_mon -n" msgstr "" #. Tag: screen #, no-c-format msgid " ============\n" " Last updated: Fri Nov 23 15:26:13 2007\n" " Current DC: sles-3 (2298606a-6a8c-499a-9d25-76242f7006ec)\n" " 3 Nodes configured.\n" " 5 Resources configured.\n" " ============\n" "\n" " Node: sles-1 (1186dc9a-324d-425a-966e-d757e693dc86): online\n" " Node: sles-2 (02fb99a8-e30e-482f-b3ad-0fb3ce27d088): standby\n" " Node: sles-3 (2298606a-6a8c-499a-9d25-76242f7006ec): online\n" "\n" " Resource Group: group-1\n" " 192.168.100.181 (heartbeat::ocf:IPaddr): Started sles-1\n" " 192.168.100.182 (heartbeat:IPaddr): Started sles-1\n" " 192.168.100.183 (heartbeat::ocf:IPaddr): Started sles-1\n" " rsc_sles-1 (heartbeat::ocf:IPaddr): Started sles-1\n" " rsc_sles-2 (heartbeat::ocf:IPaddr): Started sles-3\n" " rsc_sles-3 (heartbeat::ocf:IPaddr): Started sles-3\n" " Clone Set: DoFencing\n" " child_DoFencing:0 (stonith:external/vmware): Started sles-3\n" " child_DoFencing:1 (stonith:external/vmware): Stopped\n" " child_DoFencing:2 (stonith:external/vmware): Started sles-1" msgstr "" #. Tag: para #, no-c-format msgid "The DC (Designated Controller) node is where all the decisions are made, and if the current DC fails a new one is elected from the remaining cluster nodes. The choice of DC is of no significance to an administrator beyond the fact that its logs will generally be more interesting." msgstr "" #. Tag: title #, no-c-format msgid "How Should the Configuration be Updated?" msgstr "" #. Tag: para #, no-c-format msgid "There are three basic rules for updating the cluster configuration:" msgstr "" #. Tag: para #, no-c-format msgid "Rule 1 - Never edit the cib.xml file manually. Ever. I’m not making this up." msgstr "" #. Tag: para #, no-c-format msgid "Rule 2 - Read Rule 1 again." msgstr "" #. Tag: para #, no-c-format msgid "Rule 3 - The cluster will notice if you ignored rules 1 & 2 and refuse to use the configuration." msgstr "" #. Tag: para #, no-c-format msgid "Now that it is clear how not to update the configuration, we can begin to explain how you should." msgstr "" #. Tag: title #, no-c-format msgid "Editing the CIB Using XML" msgstr "" #. Tag: para #, no-c-format msgid "The most powerful tool for modifying the configuration is the cibadmin command. With cibadmin, you can query, add, remove, update or replace any part of the configuration. All changes take effect immediately, so there is no need to perform a reload-like operation." msgstr "" #. Tag: para #, no-c-format msgid "The simplest way of using cibadmin is to use it to save the current configuration to a temporary file, edit that file with your favorite text or XML editor, and then upload the revised configuration. This process might appear to risk overwriting changes that happen after the initial cibadmin call, but pacemaker will reject any update that is \"too old\". If the CIB is updated in some other fashion after the initial cibadmin, the second cibadmin will be rejected because the version number will be too low." msgstr "" #. Tag: title #, no-c-format msgid "Safely using an editor to modify the cluster configuration" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin --query > tmp.xml\n" "# vi tmp.xml\n" "# cibadmin --replace --xml-file tmp.xml" msgstr "" #. Tag: para #, no-c-format msgid "Some of the better XML editors can make use of a Relax NG schema to help make sure any changes you make are valid. The schema describing the configuration can be found in pacemaker.rng, which may be deployed in a location such as /usr/share/pacemaker or /usr/lib/heartbeat depending on your operating system and how you installed the software." msgstr "" #. Tag: para #, no-c-format msgid "If you want to modify just one section of the configuration, you can query and replace just that section to avoid modifying any others." msgstr "" #. Tag: title #, no-c-format msgid "Safely using an editor to modify only the resources section" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin --query --scope resources > tmp.xml\n" "# vi tmp.xml\n" "# cibadmin --replace --scope resources --xml-file tmp.xml" msgstr "" #. Tag: title #, no-c-format msgid "Quickly Deleting Part of the Configuration" msgstr "" #. Tag: para #, no-c-format msgid "Identify the object you wish to delete by XML tag and id. For example, you might search the CIB for all STONITH-related configuration:" msgstr "" #. Tag: title #, no-c-format msgid "Searching for STONITH-related configuration items" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin -Q | grep stonith\n" " <nvpair id=\"cib-bootstrap-options-stonith-action\" name=\"stonith-action\" value=\"reboot\"/>\n" " <nvpair id=\"cib-bootstrap-options-stonith-enabled\" name=\"stonith-enabled\" value=\"1\"/>\n" " <primitive id=\"child_DoFencing\" class=\"stonith\" type=\"external/vmware\">\n" " <lrm_resource id=\"child_DoFencing:0\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:0\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:1\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:0\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:2\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:0\" type=\"external/vmware\" class=\"stonith\">\n" " <lrm_resource id=\"child_DoFencing:3\" type=\"external/vmware\" class=\"stonith\">" msgstr "" #. Tag: para #, no-c-format msgid "If you wanted to delete the primitive tag with id child_DoFencing, you would run:" msgstr "" #. Tag: screen #, no-c-format -msgid "# cibadmin --delete --crm_xml '<primitive id=\"child_DoFencing\"/>'" +msgid "# cibadmin --delete --xml-text '<primitive id=\"child_DoFencing\"/>'" msgstr "" #. Tag: title #, no-c-format msgid "Updating the Configuration Without Using XML" msgstr "" #. Tag: para #, no-c-format msgid "Most tasks can be performed with one of the other command-line tools provided with pacemaker, avoiding the need to read or edit XML." msgstr "" #. Tag: para #, no-c-format msgid "To enable STONITH for example, one could run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name stonith-enabled --update 1" msgstr "" #. Tag: para #, no-c-format msgid "Or, to check whether somenode is allowed to run resources, there is:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_standby --get-value --node somenode" msgstr "" #. Tag: para #, no-c-format msgid "Or, to find the current location of my-test-rsc, one can use:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --locate --resource my-test-rsc" msgstr "" #. Tag: para #, no-c-format msgid "Examples of using these tools for specific cases will be given throughout this document where appropriate." msgstr "" #. Tag: para #, no-c-format msgid "Old versions of pacemaker (1.0.3 and earlier) had different command-line tool syntax. If you are using an older version, check your installed manual pages for the proper syntax to use." msgstr "" #. Tag: title #, no-c-format msgid "Making Configuration Changes in a Sandbox" msgstr "" #. Tag: para #, no-c-format msgid "Often it is desirable to preview the effects of a series of changes before updating the configuration atomically. For this purpose we have created crm_shadow which creates a \"shadow\" copy of the configuration and arranges for all the command line tools to use it." msgstr "" #. Tag: para #, no-c-format msgid "To begin, simply invoke crm_shadow --create with the name of a configuration to create Shadow copies are identified with a name, making it possible to have more than one., and follow the simple on-screen instructions." msgstr "" #. Tag: para #, no-c-format msgid "Read this section and the on-screen instructions carefully; failure to do so could result in destroying the cluster’s active configuration!" msgstr "" #. Tag: title #, no-c-format msgid "Creating and displaying the active sandbox" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_shadow --create test\n" "Setting up shadow instance\n" "Type Ctrl-D to exit the crm_shadow shell\n" "shadow[test]:\n" "shadow[test] # crm_shadow --which\n" "test" msgstr "" #. Tag: para #, no-c-format msgid "From this point on, all cluster commands will automatically use the shadow copy instead of talking to the cluster’s active configuration. Once you have finished experimenting, you can either make the changes active via the --commit option, or discard them using the --delete option. Again, be sure to follow the on-screen instructions carefully!" msgstr "" #. Tag: para #, no-c-format msgid "For a full list of crm_shadow options and commands, invoke it with the --help option." msgstr "" #. Tag: title #, no-c-format msgid "Using a sandbox to make multiple changes atomically, discard them and verify the real configuration is untouched" msgstr "" #. Tag: screen #, no-c-format msgid " shadow[test] # crm_failcount -G -r rsc_c001n01\n" " name=fail-count-rsc_c001n01 value=0\n" " shadow[test] # crm_standby -v on -N c001n02\n" " shadow[test] # crm_standby -G -N c001n02\n" " name=c001n02 scope=nodes value=on\n" " shadow[test] # cibadmin --erase --force\n" " shadow[test] # cibadmin --query\n" " <cib cib_feature_revision=\"1\" validate-with=\"pacemaker-1.0\" admin_epoch=\"0\" crm_feature_set=\"3.0\" have-quorum=\"1\" epoch=\"112\"\n" " dc-uuid=\"c001n01\" num_updates=\"1\" cib-last-written=\"Fri Jun 27 12:17:10 2008\">\n" " <configuration>\n" " <crm_config/>\n" " <nodes/>\n" " <resources/>\n" " <constraints/>\n" " </configuration>\n" " <status/>\n" " </cib>\n" " shadow[test] # crm_shadow --delete test --force\n" " Now type Ctrl-D to exit the crm_shadow shell\n" " shadow[test] # exit\n" " # crm_shadow --which\n" " No active shadow configuration defined\n" " # cibadmin -Q\n" " <cib cib_feature_revision=\"1\" validate-with=\"pacemaker-1.0\" admin_epoch=\"0\" crm_feature_set=\"3.0\" have-quorum=\"1\" epoch=\"110\"\n" " dc-uuid=\"c001n01\" num_updates=\"551\">\n" " <configuration>\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"cib-bootstrap-1\" name=\"stonith-enabled\" value=\"1\"/>\n" " <nvpair id=\"cib-bootstrap-2\" name=\"pe-input-series-max\" value=\"30000\"/>" msgstr "" #. Tag: title #, no-c-format msgid "Testing Your Configuration Changes" msgstr "" #. Tag: para #, no-c-format msgid "We saw previously how to make a series of changes to a \"shadow\" copy of the configuration. Before loading the changes back into the cluster (e.g. crm_shadow --commit mytest --force), it is often advisable to simulate the effect of the changes with crm_simulate. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_simulate --live-check -VVVVV --save-graph tmp.graph --save-dotfile tmp.dot" msgstr "" #. Tag: para #, no-c-format msgid "This tool uses the same library as the live cluster to show what it would have done given the supplied input. Its output, in addition to a significant amount of logging, is stored in two files tmp.graph and tmp.dot. Both files are representations of the same thing: the cluster’s response to your changes." msgstr "" #. Tag: para #, no-c-format msgid "The graph file stores the complete transition from the existing cluster state to your desired new state, containing a list of all the actions, their parameters and their pre-requisites. Because the transition graph is not terribly easy to read, the tool also generates a Graphviz Graph visualization software. See http://www.graphviz.org/ for details. dot-file representing the same information." msgstr "" #. Tag: para #, no-c-format msgid "For information on the options supported by crm_simulate, use its --help option." msgstr "" #. Tag: title #, no-c-format msgid "Interpreting the Graphviz output" msgstr "" #. Tag: para #, no-c-format msgid "Arrows indicate ordering dependencies" msgstr "" #. Tag: para #, no-c-format msgid "Dashed arrows indicate dependencies that are not present in the transition graph" msgstr "" #. Tag: para #, no-c-format msgid "Actions with a dashed border of any color do not form part of the transition graph" msgstr "" #. Tag: para #, no-c-format msgid "Actions with a green border form part of the transition graph" msgstr "" #. Tag: para #, no-c-format msgid "Actions with a red border are ones the cluster would like to execute but cannot run" msgstr "" #. Tag: para #, no-c-format msgid "Actions with a blue border are ones the cluster does not feel need to be executed" msgstr "" #. Tag: para #, no-c-format msgid "Actions with orange text are pseudo/pretend actions that the cluster uses to simplify the graph" msgstr "" #. Tag: para #, no-c-format msgid "Actions with black text are sent to the LRM" msgstr "" #. Tag: para #, no-c-format msgid "Resource actions have text of the form rsc_action_interval node" msgstr "" #. Tag: para #, no-c-format msgid "Any action depending on an action with a red border will not be able to execute." msgstr "" #. Tag: para #, no-c-format msgid "Loops are really bad. Please report them to the development team." msgstr "" #. Tag: title #, no-c-format msgid "Small Cluster Transition" msgstr "" #. Tag: para #, no-c-format msgid "In the above example, it appears that a new node, pcmk-2, has come online and that the cluster is checking to make sure rsc1, rsc2 and rsc3 are not already running there (Indicated by the rscN_monitor_0 entries). Once it did that, and assuming the resources were not active there, it would have liked to stop rsc1 and rsc2 on pcmk-1 and move them to pcmk-2. However, there appears to be some problem and the cluster cannot or is not permitted to perform the stop actions which implies it also cannot perform the start actions. For some reason the cluster does not want to start rsc3 anywhere." msgstr "" #. Tag: title #, no-c-format msgid "Complex Cluster Transition" msgstr "" #. Tag: title #, no-c-format msgid "Do I Need to Update the Configuration on All Cluster Nodes?" msgstr "" #. Tag: para #, no-c-format msgid "No. Any changes are immediately synchronized to the other active members of the cluster." msgstr "" #. Tag: para #, no-c-format msgid "To reduce bandwidth, the cluster only broadcasts the incremental updates that result from your changes and uses MD5 checksums to ensure that each copy is completely consistent." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Constraints.pot b/doc/Pacemaker_Explained/pot/Ch-Constraints.pot index 44d103e956..25c4ffd17c 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Constraints.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Constraints.pot @@ -1,1046 +1,1071 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Resource Constraints" msgstr "" #. Tag: para #, no-c-format msgid " ResourceConstraints Constraints " msgstr "" #. Tag: title #, no-c-format msgid "Scores" msgstr "" #. Tag: para #, no-c-format msgid "Scores of all kinds are integral to how the cluster works. Practically everything from moving a resource to deciding which resource to stop in a degraded cluster is achieved by manipulating scores in some way." msgstr "" #. Tag: para #, no-c-format msgid "Scores are calculated per resource and node. Any node with a negative score for a resource can’t run that resource. The cluster places a resource on the node with the highest score for it." msgstr "" #. Tag: title #, no-c-format msgid "Infinity Math" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker implements INFINITY (or equivalently, +INFINITY) internally as a score of 1,000,000. Addition and subtraction with it follow these three basic rules:" msgstr "" #. Tag: para #, no-c-format msgid "Any value + INFINITY = INFINITY" msgstr "" #. Tag: para #, no-c-format msgid "Any value - INFINITY = -INFINITY" msgstr "" #. Tag: para #, no-c-format msgid "INFINITY - INFINITY = -INFINITY" msgstr "" #. Tag: para #, no-c-format msgid "What if you want to use a score higher than 1,000,000? Typically this possibility arises when someone wants to base the score on some external metric that might go above 1,000,000." msgstr "" #. Tag: para #, no-c-format msgid "The short answer is you can’t." msgstr "" #. Tag: para #, no-c-format msgid "The long answer is it is sometimes possible work around this limitation creatively. You may be able to set the score to some computed value based on the external metric rather than use the metric directly. For nodes, you can store the metric as a node attribute, and query the attribute when computing the score (possibly as part of a custom resource agent)." msgstr "" #. Tag: title #, no-c-format msgid "Deciding Which Nodes a Resource Can Run On" msgstr "" #. Tag: para #, no-c-format msgid " Location Constraints ResourceConstraintsLocation ConstraintsLocation Location Location constraints tell the cluster which nodes a resource can run on." msgstr "" #. Tag: para #, no-c-format msgid "There are two alternative strategies. One way is to say that, by default, resources can run anywhere, and then the location constraints specify nodes that are not allowed (an opt-out cluster). The other way is to start with nothing able to run anywhere, and use location constraints to selectively enable allowed nodes (an opt-in cluster)." msgstr "" #. Tag: para #, no-c-format msgid "Whether you should choose opt-in or opt-out depends on your personal preference and the make-up of your cluster. If most of your resources can run on most of the nodes, then an opt-out arrangement is likely to result in a simpler configuration. On the other-hand, if most resources can only run on a small subset of nodes, an opt-in configuration might be simpler." msgstr "" #. Tag: title #, no-c-format msgid "Location Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a rsc_location Constraint" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the constraint idLocation Constraints Location Constraints ConstraintsLocationid Locationid id " msgstr "" #. Tag: para #, no-c-format msgid "rsc" msgstr "" #. Tag: para #, no-c-format -msgid "A resource name rscLocation Constraints Location Constraints ConstraintsLocationrsc Locationrsc rsc " +msgid "The name of the resource to which this constraint applies rscLocation Constraints Location Constraints ConstraintsLocationrsc Locationrsc rsc " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "rsc-pattern" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A regular expression matching the names of resources to which this constraint applies, if rsc is not specified; if the regular expression contains submatches and the constraint is governed by a rule (see ), the submatches can be referenced as %0 through %9 in the rule’s score-attribute or a rule expression’s attribute (since 1.1.16) rsc-patternLocation Constraints Location Constraints ConstraintsLocationrsc-pattern Locationrsc-pattern rsc-pattern " msgstr "" #. Tag: para #, no-c-format msgid "node" msgstr "" #. Tag: para #, no-c-format msgid "A node’s name nodeLocation Constraints Location Constraints ConstraintsLocationnode Locationnode node " msgstr "" #. Tag: para #, no-c-format msgid "score" msgstr "" #. Tag: para #, no-c-format msgid "Positive values indicate the resource should run on this node. Negative values indicate the resource should not run on this node. Values of +/- INFINITY change \"should\"/\"should not\" to \"must\"/\"must not\". scoreLocation Constraints Location Constraints ConstraintsLocationscore Locationscore score " msgstr "" #. Tag: para #, no-c-format msgid "resource-discovery" msgstr "" #. Tag: para #, no-c-format msgid "always" msgstr "" #. Tag: para #, no-c-format -msgid "Whether Pacemaker should perform resource discovery (that is, check whether the resource is already running) for this resource on this node. This should normally be left as the default, so that rogue instances of a service can be stopped when they are running where they are not supposed to be. However, there are two situations where disabling resource discovery is a good idea: when a service is not installed on a node, discovery might return an error (properly written OCF agents will not, so this is usually only seen with other agent types); and when Pacemaker Remote is used to scale a cluster to hundreds of nodes, limiting resource discovery to allowed nodes can significantly boost performance." +msgid "Whether Pacemaker should perform resource discovery (that is, check whether the resource is already running) for this resource on this node. This should normally be left as the default, so that rogue instances of a service can be stopped when they are running where they are not supposed to be. However, there are two situations where disabling resource discovery is a good idea: when a service is not installed on a node, discovery might return an error (properly written OCF agents will not, so this is usually only seen with other agent types); and when Pacemaker Remote is used to scale a cluster to hundreds of nodes, limiting resource discovery to allowed nodes can significantly boost performance. (since 1.1.13)" msgstr "" #. Tag: para #, no-c-format msgid "always: Always perform resource discovery for the specified resource on this node." msgstr "" #. Tag: para #, no-c-format msgid "never: Never perform resource discovery for the specified resource on this node. This option should generally be used with a -INFINITY score, although that is not strictly required." msgstr "" #. Tag: para #, no-c-format msgid "exclusive: Perform resource discovery for the specified resource only on this node (and other nodes similarly marked as exclusive). Multiple location constraints using exclusive discovery for the same resource across different nodes creates a subset of nodes resource-discovery is exclusive to. If a resource is marked for exclusive discovery on one or more nodes, that resource is only allowed to be placed within that subset of nodes." msgstr "" #. Tag: para #, no-c-format msgid " Resource DiscoveryLocation Constraints Location Constraints ConstraintsLocationResource Discovery LocationResource Discovery Resource Discovery " msgstr "" #. Tag: para #, no-c-format msgid "Setting resource-discovery to never or exclusive removes Pacemaker’s ability to detect and stop unwanted instances of a service running where it’s not supposed to be. It is up to the system administrator (you!) to make sure that the service can never be active on nodes without resource-discovery (such as by leaving the relevant software uninstalled)." msgstr "" #. Tag: title #, no-c-format msgid "Asymmetrical \"Opt-In\" Clusters" msgstr "" #. Tag: para #, no-c-format msgid " Asymmetrical Opt-In Clusters Cluster TypeAsymmetrical Opt-In Asymmetrical Opt-In " msgstr "" #. Tag: para #, no-c-format msgid "To create an opt-in cluster, start by preventing resources from running anywhere by default:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name symmetric-cluster --update false" msgstr "" #. Tag: para #, no-c-format msgid "Then start enabling nodes. The following fragment says that the web server prefers sles-1, the database prefers sles-2 and both can fail over to sles-3 if their most preferred node fails." msgstr "" #. Tag: title #, no-c-format msgid "Opt-in location constraints for two resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"200\"/>\n" " <rsc_location id=\"loc-2\" rsc=\"Webserver\" node=\"sles-3\" score=\"0\"/>\n" " <rsc_location id=\"loc-3\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/>\n" " <rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-3\" score=\"0\"/>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Symmetrical \"Opt-Out\" Clusters" msgstr "" #. Tag: para #, no-c-format msgid " Symmetrical Opt-Out Clusters Cluster TypeSymmetrical Opt-Out Symmetrical Opt-Out " msgstr "" #. Tag: para #, no-c-format msgid "To create an opt-out cluster, start by allowing resources to run anywhere by default:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name symmetric-cluster --update true" msgstr "" #. Tag: para #, no-c-format msgid "Then start disabling nodes. The following fragment is the equivalent of the above opt-in configuration." msgstr "" #. Tag: title #, no-c-format msgid "Opt-out location constraints for two resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"200\"/>\n" " <rsc_location id=\"loc-2-dont-run\" rsc=\"Webserver\" node=\"sles-2\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"loc-3-dont-run\" rsc=\"Database\" node=\"sles-1\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "What if Two Nodes Have the Same Score" msgstr "" #. Tag: para #, no-c-format msgid "If two nodes have the same score, then the cluster will choose one. This choice may seem random and may not be what was intended, however the cluster was not given enough information to know any better." msgstr "" #. Tag: title #, no-c-format msgid "Constraints where a resource prefers two nodes equally" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"loc-1\" rsc=\"Webserver\" node=\"sles-1\" score=\"INFINITY\"/>\n" " <rsc_location id=\"loc-2\" rsc=\"Webserver\" node=\"sles-2\" score=\"INFINITY\"/>\n" " <rsc_location id=\"loc-3\" rsc=\"Database\" node=\"sles-1\" score=\"500\"/>\n" " <rsc_location id=\"loc-4\" rsc=\"Database\" node=\"sles-2\" score=\"300\"/>\n" " <rsc_location id=\"loc-5\" rsc=\"Database\" node=\"sles-2\" score=\"200\"/>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, assuming no other constraints and an inactive cluster, Webserver would probably be placed on sles-1 and Database on sles-2. It would likely have placed Webserver based on the node’s uname and Database based on the desire to spread the resource load evenly across the cluster. However other factors can also be involved in more complex configurations." msgstr "" #. Tag: title #, no-c-format msgid "Specifying the Order in which Resources Should Start/Stop" msgstr "" #. Tag: para #, no-c-format msgid " ResourceConstraintsOrdering ConstraintsOrdering Ordering ResourceStart Order Start Order Ordering Constraints " msgstr "" #. Tag: para #, no-c-format msgid "Ordering constraints tell the cluster the order in which resources should start." msgstr "" #. Tag: para #, no-c-format msgid "Ordering constraints affect only the ordering of resources; they do not require that the resources be placed on the same node. If you want resources to be started on the same node and in a specific order, you need both an ordering constraint and a colocation constraint (see ), or alternatively, a group (see )." msgstr "" #. Tag: title #, no-c-format msgid "Ordering Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a rsc_order Constraint" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the constraint idOrdering Constraints Ordering Constraints ConstraintsOrderingid Orderingid id " msgstr "" #. Tag: para #, no-c-format msgid "first" msgstr "" #. Tag: para #, no-c-format msgid "Name of the resource that the then resource depends on firstOrdering Constraints Ordering Constraints ConstraintsOrderingfirst Orderingfirst first " msgstr "" #. Tag: para #, no-c-format msgid "then" msgstr "" #. Tag: para #, no-c-format msgid "Name of the dependent resource thenOrdering Constraints Ordering Constraints ConstraintsOrderingthen Orderingthen then " msgstr "" #. Tag: para #, no-c-format msgid "first-action" msgstr "" #. Tag: para #, no-c-format msgid "start" msgstr "" #. Tag: para #, no-c-format msgid "The action that the first resource must complete before then-action can be initiated for the then resource. Allowed values: start, stop, promote, demote. first-actionOrdering Constraints Ordering Constraints ConstraintsOrderingfirst-action Orderingfirst-action first-action " msgstr "" #. Tag: para #, no-c-format msgid "then-action" msgstr "" #. Tag: para #, no-c-format msgid "value of first-action" msgstr "" #. Tag: para #, no-c-format msgid "The action that the then resource can execute only after the first-action on the first resource has completed. Allowed values: start, stop, promote, demote. then-actionOrdering Constraints Ordering Constraints ConstraintsOrderingthen-action Orderingthen-action then-action " msgstr "" #. Tag: para #, no-c-format msgid "kind" msgstr "" #. Tag: para #, no-c-format msgid "How to enforce the constraint. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "Optional: Just a suggestion. Only applies if both resources are executing the specified actions. Any change in state by the first resource will have no effect on the then resource." msgstr "" #. Tag: para #, no-c-format msgid "Mandatory: Always. If first does not perform first-action, then will not be allowed to performed then-action. If first is restarted, then (if running) will be stopped beforehand and started afterward." msgstr "" #. Tag: para #, no-c-format msgid "Serialize: Ensure that no two stop/start actions occur concurrently for the resources. First and then can start in either order, but one must complete starting before the other can be started. A typical use case is when resource start-up puts a high load on the host." msgstr "" #. Tag: para #, no-c-format msgid " kindOrdering Constraints Ordering Constraints ConstraintsOrderingkind Orderingkind kind " msgstr "" #. Tag: para #, no-c-format msgid "symmetrical" msgstr "" #. Tag: para #, no-c-format msgid "TRUE" msgstr "" #. Tag: para #, no-c-format msgid "If true, the reverse of the constraint applies for the opposite action (for example, if B starts after A starts, then B stops before A stops). symmetricalOrdering Constraints Ordering Constraints Ordering Constraintssymmetrical symmetrical " msgstr "" #. Tag: para #, no-c-format msgid "Promote and demote apply to the master role of multi-state resources." msgstr "" #. Tag: title #, no-c-format msgid "Optional and mandatory ordering" msgstr "" #. Tag: para #, no-c-format msgid "Here is an example of ordering constraints where Database must start before Webserver, and IP should start before Webserver if they both need to be started:" msgstr "" #. Tag: title #, no-c-format msgid "Optional and mandatory ordering constraints" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" "<rsc_order id=\"order-1\" first=\"IP\" then=\"Webserver\" kind=\"Optional\"/>\n" "<rsc_order id=\"order-2\" first=\"Database\" then=\"Webserver\" kind=\"Mandatory\" />\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "Because the above example lets symmetrical default to TRUE, Webserver must be stopped before Database can be stopped, and Webserver should be stopped before IP if they both need to be stopped." msgstr "" #. Tag: title #, no-c-format msgid "Placing Resources Relative to other Resources" msgstr "" #. Tag: para #, no-c-format msgid " ResourceConstraintsColocation ConstraintsColocation Colocation ResourceLocation Relative to other Resources Location Relative to other Resources Colocation constraints tell the cluster that the location of one resource depends on the location of another one." msgstr "" #. Tag: para #, no-c-format msgid "Colocation has an important side-effect: it affects the order in which resources are assigned to a node. Think about it: You can’t place A relative to B unless you know where B is. While the human brain is sophisticated enough to read the constraint in any order and choose the correct one depending on the situation, the cluster is not quite so smart. Yet. " msgstr "" #. Tag: para #, no-c-format msgid "So when you are creating colocation constraints, it is important to consider whether you should colocate A with B, or B with A." msgstr "" #. Tag: para #, no-c-format msgid "Another thing to keep in mind is that, assuming A is colocated with B, the cluster will take into account A’s preferences when deciding which node to choose for B." msgstr "" #. Tag: para #, no-c-format msgid "For a detailed look at exactly how this occurs, see Colocation Explained." msgstr "" #. Tag: para #, no-c-format msgid "Colocation constraints affect only the placement of resources; they do not require that the resources be started in a particular order. If you want resources to be started on the same node and in a specific order, you need both an ordering constraint (see ) and a colocation constraint, or alternatively, a group (see )." msgstr "" #. Tag: title #, no-c-format msgid "Colocation Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a rsc_colocation Constraint" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the constraint. idColocation Constraints Colocation Constraints ConstraintsColocationid Colocationid id " msgstr "" #. Tag: para #, no-c-format msgid "The name of a resource that should be located relative to with-rsc. rscColocation Constraints Colocation Constraints ConstraintsColocationrsc Colocationrsc rsc " msgstr "" #. Tag: para #, no-c-format msgid "with-rsc" msgstr "" #. Tag: para #, no-c-format msgid "The name of the resource used as the colocation target. The cluster will decide where to put this resource first and then decide where to put rsc. with-rscColocation Constraints Colocation Constraints ConstraintsColocationwith-rsc Colocationwith-rsc with-rsc " msgstr "" #. Tag: para #, no-c-format msgid "Positive values indicate the resources should run on the same node. Negative values indicate the resources should run on different nodes. Values of +/- INFINITY change \"should\" to \"must\". scoreColocation Constraints Colocation Constraints ConstraintsColocationscore Colocationscore score " msgstr "" #. Tag: title #, no-c-format msgid "Mandatory Placement" msgstr "" #. Tag: para #, no-c-format msgid "Mandatory placement occurs when the constraint’s score is +INFINITY or -INFINITY. In such cases, if the constraint can’t be satisfied, then the rsc resource is not permitted to run. For score=INFINITY, this includes cases where the with-rsc resource is not active." msgstr "" #. Tag: para #, no-c-format msgid "If you need resource A to always run on the same machine as resource B, you would add the following constraint:" msgstr "" #. Tag: title #, no-c-format msgid "Mandatory colocation constraint for two resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_colocation id=\"colocate\" rsc=\"A\" with-rsc=\"B\" score=\"INFINITY\"/>" msgstr "" #. Tag: para #, no-c-format msgid "Remember, because INFINITY was used, if B can’t run on any of the cluster nodes (for whatever reason) then A will not be allowed to run. Whether A is running or not has no effect on B." msgstr "" #. Tag: para #, no-c-format msgid "Alternatively, you may want the opposite — that A cannot run on the same machine as B. In this case, use score=\"-INFINITY\"." msgstr "" #. Tag: title #, no-c-format msgid "Mandatory anti-colocation constraint for two resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_colocation id=\"anti-colocate\" rsc=\"A\" with-rsc=\"B\" score=\"-INFINITY\"/>" msgstr "" #. Tag: para #, no-c-format msgid "Again, by specifying -INFINITY, the constraint is binding. So if the only place left to run is where B already is, then A may not run anywhere." msgstr "" #. Tag: para #, no-c-format msgid "As with INFINITY, B can run even if A is stopped. However, in this case A also can run if B is stopped, because it still meets the constraint of A and B not running on the same node." msgstr "" #. Tag: title #, no-c-format msgid "Advisory Placement" msgstr "" #. Tag: para #, no-c-format msgid "If mandatory placement is about \"must\" and \"must not\", then advisory placement is the \"I’d prefer if\" alternative. For constraints with scores greater than -INFINITY and less than INFINITY, the cluster will try to accommodate your wishes but may ignore them if the alternative is to stop some of the cluster resources." msgstr "" #. Tag: para #, no-c-format msgid "As in life, where if enough people prefer something it effectively becomes mandatory, advisory colocation constraints can combine with other elements of the configuration to behave as if they were mandatory." msgstr "" #. Tag: title #, no-c-format msgid "Advisory colocation constraint for two resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_colocation id=\"colocate-maybe\" rsc=\"A\" with-rsc=\"B\" score=\"500\"/>" msgstr "" #. Tag: title #, no-c-format msgid "Resource Sets" msgstr "" #. Tag: para #, no-c-format msgid "Resource sets allow multiple resources to be affected by a single constraint." msgstr "" #. Tag: title #, no-c-format msgid "A set of 3 resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<resource_set id=\"resource-set-example\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " <resource_ref id=\"C\"/>\n" "</resource_set>" msgstr "" #. Tag: para #, no-c-format msgid "Resource sets are valid inside rsc_location, rsc_order (see ), rsc_colocation (see ), and rsc_ticket (see ) constraints." msgstr "" #. Tag: para #, no-c-format msgid "A resource set has a number of properties that can be set, though not all have an effect in all contexts." msgstr "" #. Tag: title #, no-c-format msgid "Properties of a resource_set" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the set idResource Sets Resource Sets ConstraintsResource Setsid Resource Setsid id " msgstr "" #. Tag: para #, no-c-format msgid "sequential" msgstr "" #. Tag: para #, no-c-format msgid "true" msgstr "" #. Tag: para #, no-c-format msgid "Whether the members of the set must be acted on in order. Meaningful within rsc_order and rsc_colocation. sequentialResource Sets Resource Sets ConstraintsResource Setssequential Resource Setssequential sequential " msgstr "" #. Tag: para #, no-c-format msgid "require-all" msgstr "" #. Tag: para #, no-c-format -msgid "Whether all members of the set must be active before continuing. Meaningful within rsc_order. require-allResource Sets Resource Sets ConstraintsResource Setsrequire-all Resource Setsrequire-all require-all " +msgid "Whether all members of the set must be active before continuing. Meaningful within rsc_order. (since 1.1.13) require-allResource Sets Resource Sets ConstraintsResource Setsrequire-all Resource Setsrequire-all require-all " msgstr "" #. Tag: para #, no-c-format msgid "role" msgstr "" #. Tag: para #, no-c-format msgid "Limit the effect of the constraint to the specified role. Meaningful within rsc_location, rsc_colocation and rsc_ticket. roleResource Sets Resource Sets ConstraintsResource Setsrole Resource Setsrole role " msgstr "" #. Tag: para #, no-c-format msgid "action" msgstr "" #. Tag: para #, no-c-format msgid "Limit the effect of the constraint to the specified action. Meaningful within rsc_order. actionResource Sets Resource Sets ConstraintsResource Setsaction Resource Setsaction action " msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Use a specific score for this set within the constraint. scoreResource Sets Resource Sets ConstraintsResource Setsscore Resource Setsscore score " msgstr "" #. Tag: title #, no-c-format msgid "Ordering Sets of Resources" msgstr "" #. Tag: para #, no-c-format msgid "A common situation is for an administrator to create a chain of ordered resources, such as:" msgstr "" #. Tag: title #, no-c-format msgid "A chain of ordered resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\" first=\"A\" then=\"B\" />\n" " <rsc_order id=\"order-2\" first=\"B\" then=\"C\" />\n" " <rsc_order id=\"order-3\" first=\"C\" then=\"D\" />\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Visual representation of the four resources' start order for the above constraints" msgstr "" #. Tag: title #, no-c-format msgid "Ordered Set" msgstr "" #. Tag: para #, no-c-format msgid "To simplify this situation, resource sets (see ) can be used within ordering constraints:" msgstr "" #. Tag: title #, no-c-format msgid "A chain of ordered resources expressed as a set" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\">\n" " <resource_set id=\"ordered-set-example\" sequential=\"true\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_order>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "While the set-based format is not less verbose, it is significantly easier to get right and maintain." msgstr "" #. Tag: para #, no-c-format msgid "If you use a higher-level tool, pay attention to how it exposes this functionality. Depending on the tool, creating a set A B may be equivalent to A then B, or B then A." msgstr "" #. Tag: title #, no-c-format msgid "Ordering Multiple Sets" msgstr "" #. Tag: para #, no-c-format -msgid "The syntax can be expanded to allow ordered sets of (un)ordered resources. In the example below, A and B can both start in parallel, as can C and D, however C and D can only start once both A and B are active." +msgid "The syntax can be expanded to allow sets of resources to be ordered relative to each other, where the members of each individual set may be ordered or unordered (controlled by the sequential property). In the example below, A and B can both start in parallel, as can C and D, however C and D can only start once both A and B are active." msgstr "" #. Tag: title #, no-c-format msgid "Ordered sets of unordered resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\">\n" " <resource_set id=\"ordered-set-1\" sequential=\"false\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-2\" sequential=\"false\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_order>\n" " </constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Visual representation of the start order for two ordered sets of unordered resources" msgstr "" #. Tag: para #, no-c-format msgid "Of course either set — or both sets — of resources can also be internally ordered (by setting sequential=\"true\") and there is no limit to the number of sets that can be specified." msgstr "" #. Tag: title #, no-c-format msgid "Advanced use of set ordering - Three ordered sets, two of which are internally unordered" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\">\n" " <resource_set id=\"ordered-set-1\" sequential=\"false\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-2\" sequential=\"true\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-3\" sequential=\"false\">\n" " <resource_ref id=\"E\"/>\n" " <resource_ref id=\"F\"/>\n" " </resource_set>\n" " </rsc_order>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Visual representation of the start order for the three sets defined above" msgstr "" #. Tag: para #, no-c-format msgid "An ordered set with sequential=false makes sense only if there is another set in the constraint. Otherwise, the constraint has no effect." msgstr "" #. Tag: title #, no-c-format msgid "Resource Set OR Logic" msgstr "" #. Tag: para #, no-c-format msgid "The unordered set logic discussed so far has all been \"AND\" logic. To illustrate this take the 3 resource set figure in the previous section. Those sets can be expressed, (A and B) then (C) then (D) then (E and F)." msgstr "" #. Tag: para #, no-c-format msgid "Say for example we want to change the first set, (A and B), to use \"OR\" logic so the sets look like this: (A or B) then (C) then (D) then (E and F). This functionality can be achieved through the use of the require-all option. This option defaults to TRUE which is why the \"AND\" logic is used by default. Setting require-all=false means only one resource in the set needs to be started before continuing on to the next set." msgstr "" #. Tag: title #, no-c-format msgid "Resource Set \"OR\" logic: Three ordered sets, where the first set is internally unordered with \"OR\" logic" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_order id=\"order-1\">\n" " <resource_set id=\"ordered-set-1\" sequential=\"false\" require-all=\"false\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-2\" sequential=\"true\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " <resource_set id=\"ordered-set-3\" sequential=\"false\">\n" " <resource_ref id=\"E\"/>\n" " <resource_ref id=\"F\"/>\n" " </resource_set>\n" " </rsc_order>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "An ordered set with require-all=false makes sense only in conjunction with sequential=false. Think of it like this: sequential=false modifies the set to be an unordered set using \"AND\" logic by default, and adding require-all=false flips the unordered set’s \"AND\" logic to \"OR\" logic." msgstr "" #. Tag: title #, no-c-format msgid "Colocating Sets of Resources" msgstr "" #. Tag: para #, no-c-format msgid "Another common situation is for an administrator to create a set of colocated resources." msgstr "" #. Tag: para #, no-c-format msgid "One way to do this would be to define a resource group (see ), but that cannot always accurately express the desired state." msgstr "" #. Tag: para #, no-c-format msgid "Another way would be to define each relationship as an individual constraint, but that causes a constraint explosion as the number of resources and combinations grow. An example of this approach:" msgstr "" #. Tag: title #, no-c-format msgid "Chain of colocated resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_colocation id=\"coloc-1\" rsc=\"D\" with-rsc=\"C\" score=\"INFINITY\"/>\n" " <rsc_colocation id=\"coloc-2\" rsc=\"C\" with-rsc=\"B\" score=\"INFINITY\"/>\n" " <rsc_colocation id=\"coloc-3\" rsc=\"B\" with-rsc=\"A\" score=\"INFINITY\"/>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "To make things easier, resource sets (see ) can be used within colocation constraints. As with the chained version, a resource that can’t be active prevents any resource that must be colocated with it from being active. For example, if B is not able to run, then both C and by inference D must also remain stopped. Here is an example resource_set:" msgstr "" #. Tag: title #, no-c-format msgid "Equivalent colocation chain expressed using resource_set" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_colocation id=\"coloc-1\" score=\"INFINITY\" >\n" " <resource_set id=\"colocated-set-example\" sequential=\"true\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_colocation>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "If you use a higher-level tool, pay attention to how it exposes this functionality. Depending on the tool, creating a set A B may be equivalent to A with B, or B with A." msgstr "" #. Tag: para #, no-c-format -msgid "This notation can also be used to tell the cluster that a set of resources must all be located with a common peer, but have no dependencies on each other. In this scenario, unlike the previous, B would be allowed to remain active even if A or C (or both) were inactive." +msgid "This notation can also be used to tell the cluster that sets of resources must be colocated relative to each other, where the individual members of each set may or may not depend on each other being active (controlled by the sequential property)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In this example, A, B, and C will each be colocated with D. D must be active, but any of A, B, or C may be inactive without affecting any other resources." msgstr "" #. Tag: title #, no-c-format msgid "Using colocated sets to specify a common peer" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_colocation id=\"coloc-1\" score=\"INFINITY\" >\n" " <resource_set id=\"colocated-set-1\" sequential=\"false\">\n" " <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" " <resource_ref id=\"C\"/>\n" " </resource_set>\n" " <resource_set id=\"colocated-set-2\" sequential=\"true\">\n" " <resource_ref id=\"D\"/>\n" " </resource_set>\n" " </rsc_colocation>\n" "</constraints>" msgstr "" #. Tag: para #, no-c-format msgid "A colocated set with sequential=false makes sense only if there is another set in the constraint. Otherwise, the constraint has no effect." msgstr "" #. Tag: para #, no-c-format -msgid "There is no inherent limit to the number and size of the sets used. The only thing that matters is that in order for any member of one set in the constraint to be active, all members of sets listed after it must also be active (and naturally on the same node); and if a set has sequential=\"true\", then in order for one member of that set to be active, all members listed after it must also be active. You can even specify the role in which the members of a set must be in using the set’s role attribute." +msgid "There is no inherent limit to the number and size of the sets used. The only thing that matters is that in order for any member of one set in the constraint to be active, all members of sets listed after it must also be active (and naturally on the same node); and if a set has sequential=\"true\", then in order for one member of that set to be active, all members listed before it must also be active." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If desired, you can restrict the dependency to instances of multistate resources that are in a specific role, using the set’s role property." msgstr "" #. Tag: title #, no-c-format -msgid "A colocation chain where the members of the middle set have no interdependencies and the last has master status." +msgid "Colocation chain in which the members of the middle set have no interdependencies, and the last listed set (which the cluster places first) is restricted to instances in master status." msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_colocation id=\"coloc-1\" score=\"INFINITY\" >\n" " <resource_set id=\"colocated-set-1\" sequential=\"true\">\n" -" <resource_ref id=\"A\"/>\n" " <resource_ref id=\"B\"/>\n" +" <resource_ref id=\"A\"/>\n" " </resource_set>\n" " <resource_set id=\"colocated-set-2\" sequential=\"false\">\n" " <resource_ref id=\"C\"/>\n" " <resource_ref id=\"D\"/>\n" " <resource_ref id=\"E\"/>\n" " </resource_set>\n" " <resource_set id=\"colocated-set-3\" sequential=\"true\" role=\"Master\">\n" -" <resource_ref id=\"F\"/>\n" " <resource_ref id=\"G\"/>\n" +" <resource_ref id=\"F\"/>\n" " </resource_set>\n" " </rsc_colocation>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format -msgid "Visual representation of a colocation chain where the members of the middle set have no inter-dependencies" +msgid "Visual representation the above example (resources to the left are placed first)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pay close attention to the order in which resources and sets are listed. While the colocation dependency for members of any one set is last-to-first, the colocation dependency for multiple sets is first-to-last. In the above example, B is colocated with A, but colocated-set-1 is colocated with colocated-set-2." msgstr "" #. Tag: para #, no-c-format msgid "Unlike ordered sets, colocated sets do not use the require-all option." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Intro.pot b/doc/Pacemaker_Explained/pot/Ch-Intro.pot index 9c36266561..8af3ff965b 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Intro.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Intro.pot @@ -1,284 +1,284 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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, 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, there exist several unified shells and GUIs for Pacemaker. However these tools will not be covered at all in this document I hope, however, that the concepts explained here make the functionality of these tools more easily 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." msgstr "" #. Tag: para #, no-c-format msgid "Although such guides exist, For example, see the Clusters from Scratch guide. 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, that is, a logic responsible for a life-cycle of deployed software — indirectly perhaps even whole systems or their interconnections — under its control within a set of computers (a.k.a. nodes) and driven by prescribed rules." msgstr "" #. Tag: para #, no-c-format msgid "It achieves maximum availability for your cluster services (a.k.a. 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), and possibly by utilizing other parts of the overall cluster stack." msgstr "" #. Tag: para #, no-c-format msgid "For the goal of minimal downtime a term high availability was coined and together with its acronym, HA, is well-established in the sector. To differentiate this sort of clusters from high performance computing (HPC) ones, should a context require it (apparently, not the case in this document), using HA cluster is an option." msgstr "" #. Tag: para #, no-c-format 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 fencing (also referred to as the STONITH acronym, deciphered later on) 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 service types" 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 (e.g. master/slave, primary/secondary)" msgstr "" #. Tag: para #, no-c-format msgid "Unified, scriptable cluster management tools" 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 "Non-cluster-aware components. These pieces include the resources themselves; scripts that start, stop and monitor them; and a local daemon that masks the differences between the different standards these scripts implement. Even though interactions of these resources when run as multiple instances can resemble a distributed system, they still lack the proper HA mechanisms and/or autonomous cluster-wide governance as subsumed in the following item." msgstr "" #. Tag: para #, no-c-format msgid "Resource management. Pacemaker provides the brain that processes and reacts to events regarding the cluster. These events include nodes joining or leaving the cluster; resource events caused by failures, maintenance and scheduled activities; and other administrative actions. Pacemaker will compute the ideal state of the cluster and plot a path to achieve it after any of these events. This may include moving resources, stopping nodes and even forcing them offline with remote power switches." msgstr "" #. Tag: para #, no-c-format msgid "Low-level infrastructure. Projects like Corosync, CMAN and Heartbeat provide reliable messaging, membership and quorum information about the cluster." 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, but there seems little interest in this. " msgstr "" #. Tag: para #, no-c-format msgid "Due to past standardization within the cluster filesystem community, cluster filesystems make use of a common distributed lock manager, which makes use of Corosync for its messaging and membership capabilities (which nodes are up/down) and Pacemaker for fencing services." msgstr "" #. Tag: title #, no-c-format msgid "The Pacemaker Stack" msgstr "" #. Tag: title #, no-c-format msgid "Internal Components" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker itself is composed of five key components:" msgstr "" #. Tag: para #, no-c-format msgid "Cluster Information Base (CIB)" msgstr "" #. Tag: para #, no-c-format msgid "Cluster Resource Management daemon (CRMd)" msgstr "" #. Tag: para #, no-c-format msgid "Local Resource Management daemon (LRMd)" msgstr "" #. Tag: para #, no-c-format msgid "Policy Engine (PEngine or PE)" msgstr "" #. Tag: para #, no-c-format msgid "Fencing daemon (STONITHd)" 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." msgstr "" #. Tag: para #, no-c-format msgid "This list of instructions is then fed to the Designated Controller (DC). 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 Local Resource Management daemon (LRMd) 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." msgstr "" #. Tag: para #, no-c-format msgid "STONITH is an acronym for Shoot-The-Other-Node-In-The-Head, a recommended practice that misbehaving node is best to be promptly fenced (shut off, cut from shared resources or otherwise immobilized), and is usually implemented with a remote power switch." msgstr "" #. Tag: para #, no-c-format msgid "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 "" #. 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: para #, 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: para #, 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: para #, 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 "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Multi-site-Clusters.pot b/doc/Pacemaker_Explained/pot/Ch-Multi-site-Clusters.pot index d9adc6dfd9..eabbed90bc 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Multi-site-Clusters.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Multi-site-Clusters.pot @@ -1,458 +1,458 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Multi-Site Clusters and Tickets" msgstr "" #. Tag: para #, no-c-format msgid "Apart from local clusters, Pacemaker also supports multi-site clusters. That means you can have multiple, geographically dispersed sites, each with a local cluster. Failover between these clusters can be coordinated manually by the administrator, or automatically by a higher-level entity called a Cluster Ticket Registry (CTR)." msgstr "" #. Tag: title #, no-c-format msgid "Challenges for Multi-Site Clusters" msgstr "" #. Tag: para #, no-c-format msgid "Typically, multi-site environments are too far apart to support synchronous communication and data replication between the sites. That leads to significant challenges:" msgstr "" #. Tag: para #, no-c-format msgid "How do we make sure that a cluster site is up and running?" msgstr "" #. Tag: para #, no-c-format msgid "How do we make sure that resources are only started once?" msgstr "" #. Tag: para #, no-c-format msgid "How do we make sure that quorum can be reached between the different sites and a split-brain scenario avoided?" msgstr "" #. Tag: para #, no-c-format msgid "How do we manage failover between sites?" msgstr "" #. Tag: para #, no-c-format msgid "How do we deal with high latency in case of resources that need to be stopped?" msgstr "" #. Tag: para #, no-c-format msgid "In the following sections, learn how to meet these challenges." msgstr "" #. Tag: title #, no-c-format msgid "Conceptual Overview" msgstr "" #. Tag: para #, no-c-format msgid "Multi-site clusters can be considered as “overlay” clusters where each cluster site corresponds to a cluster node in a traditional cluster. The overlay cluster can be managed by a CTR in order to guarantee that any cluster resource will be active on no more than one cluster site. This is achieved by using tickets that are treated as failover domain between cluster sites, in case a site should be down." msgstr "" #. Tag: para #, no-c-format msgid "The following sections explain the individual components and mechanisms that were introduced for multi-site clusters in more detail." msgstr "" #. Tag: title #, no-c-format msgid "Ticket" msgstr "" #. Tag: para #, no-c-format msgid "Tickets are, essentially, cluster-wide attributes. A ticket grants the right to run certain resources on a specific cluster site. Resources can be bound to a certain ticket by rsc_ticket constraints. Only if the ticket is available at a site can the respective resources be started there. Vice versa, if the ticket is revoked, the resources depending on that ticket must be stopped." msgstr "" #. Tag: para #, no-c-format msgid "The ticket thus is similar to a site quorum, i.e. the permission to manage/own resources associated with that site. (One can also think of the current have-quorum flag as a special, cluster-wide ticket that is granted in case of node majority.)" msgstr "" #. Tag: para #, no-c-format msgid "Tickets can be granted and revoked either manually by administrators (which could be the default for classic enterprise clusters), or via the automated CTR mechanism described below." msgstr "" #. Tag: para #, no-c-format msgid "A ticket can only be owned by one site at a time. Initially, none of the sites has a ticket. Each ticket must be granted once by the cluster administrator." msgstr "" #. Tag: para #, no-c-format msgid "The presence or absence of tickets for a site is stored in the CIB as a cluster status. With regards to a certain ticket, there are only two states for a site: true (the site has the ticket) or false (the site does not have the ticket). The absence of a certain ticket (during the initial state of the multi-site cluster) is the same as the value false." msgstr "" #. Tag: title #, no-c-format msgid "Dead Man Dependency" msgstr "" #. Tag: para #, no-c-format msgid "A site can only activate resources safely if it can be sure that the other site has deactivated them. However after a ticket is revoked, it can take a long time until all resources depending on that ticket are stopped \"cleanly\", especially in case of cascaded resources. To cut that process short, the concept of a Dead Man Dependency was introduced." msgstr "" #. Tag: para #, no-c-format msgid "If a dead man dependency is in force, if a ticket is revoked from a site, the nodes that are hosting dependent resources are fenced. This considerably speeds up the recovery process of the cluster and makes sure that resources can be migrated more quickly." msgstr "" #. Tag: para #, no-c-format msgid "This can be configured by specifying a loss-policy=\"fence\" in rsc_ticket constraints." msgstr "" #. Tag: title #, no-c-format msgid "Cluster Ticket Registry" msgstr "" #. Tag: para #, no-c-format msgid "A CTR is a coordinated group of network daemons that automatically handles granting, revoking, and timing out tickets (instead of the administrator revoking the ticket somewhere, waiting for everything to stop, and then granting it on the desired site)." msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker does not implement its own CTR, but interoperates with external software designed for that purpose (similar to how resource and fencing agents are not directly part of pacemaker)." msgstr "" #. Tag: para #, no-c-format msgid "Participating clusters run the CTR daemons, which connect to each other, exchange information about their connectivity, and vote on which sites gets which tickets." msgstr "" #. Tag: para #, no-c-format msgid "A ticket is granted to a site only once the CTR is sure that the ticket has been relinquished by the previous owner, implemented via a timer in most scenarios. If a site loses connection to its peers, its tickets time out and recovery occurs. After the connection timeout plus the recovery timeout has passed, the other sites are allowed to re-acquire the ticket and start the resources again." msgstr "" #. Tag: para #, no-c-format msgid "This can also be thought of as a \"quorum server\", except that it is not a single quorum ticket, but several." msgstr "" #. Tag: title #, no-c-format msgid "Configuration Replication" msgstr "" #. Tag: para #, no-c-format msgid "As usual, the CIB is synchronized within each cluster, but it is not synchronized across cluster sites of a multi-site cluster. You have to configure the resources that will be highly available across the multi-site cluster for every site accordingly." msgstr "" #. Tag: title #, no-c-format msgid "Configuring Ticket Dependencies" msgstr "" #. Tag: para #, no-c-format msgid "The rsc_ticket constraint lets you specify the resources depending on a certain ticket. Together with the constraint, you can set a loss-policy that defines what should happen to the respective resources if the ticket is revoked." msgstr "" #. Tag: para #, no-c-format msgid "The attribute loss-policy can have the following values:" msgstr "" #. Tag: para #, no-c-format msgid "fence: Fence the nodes that are running the relevant resources." msgstr "" #. Tag: para #, no-c-format msgid "stop: Stop the relevant resources." msgstr "" #. Tag: para #, no-c-format msgid "freeze: Do nothing to the relevant resources." msgstr "" #. Tag: para #, no-c-format msgid "demote: Demote relevant resources that are running in master mode to slave mode." msgstr "" #. Tag: title #, no-c-format msgid "Constraint that fences node if ticketA is revoked" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_ticket id=\"rsc1-req-ticketA\" rsc=\"rsc1\" ticket=\"ticketA\" loss-policy=\"fence\"/>" msgstr "" #. Tag: para #, no-c-format msgid "The example above creates a constraint with the ID rsc1-req-ticketA. It defines that the resource rsc1 depends on ticketA and that the node running the resource should be fenced if ticketA is revoked." msgstr "" #. Tag: para #, no-c-format msgid "If resource rsc1 were a multi-state resource (i.e. it could run in master or slave mode), you might want to configure that only master mode depends on ticketA. With the following configuration, rsc1 will be demoted to slave mode if ticketA is revoked:" msgstr "" #. Tag: title #, no-c-format msgid "Constraint that demotes rsc1 if ticketA is revoked" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_ticket id=\"rsc1-req-ticketA\" rsc=\"rsc1\" rsc-role=\"Master\" ticket=\"ticketA\" loss-policy=\"demote\"/>" msgstr "" #. Tag: para #, no-c-format msgid "You can create multiple rsc_ticket constraints to let multiple resources depend on the same ticket. However, rsc_ticket also supports resource sets (see ), so one can easily list all the resources in one rsc_ticket constraint instead." msgstr "" #. Tag: title #, no-c-format msgid "Ticket constraint for multiple resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_ticket id=\"resources-dep-ticketA\" ticket=\"ticketA\" loss-policy=\"fence\">\n" " <resource_set id=\"resources-dep-ticketA-0\" role=\"Started\">\n" " <resource_ref id=\"rsc1\"/>\n" " <resource_ref id=\"group1\"/>\n" " <resource_ref id=\"clone1\"/>\n" " </resource_set>\n" " <resource_set id=\"resources-dep-ticketA-1\" role=\"Master\">\n" " <resource_ref id=\"ms1\"/>\n" " </resource_set>\n" "</rsc_ticket>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, there are two resource sets, so we can list resources with different roles in a single rsc_ticket constraint. There’s no dependency between the two resource sets, and there’s no dependency among the resources within a resource set. Each of the resources just depends on ticketA." msgstr "" #. Tag: para #, no-c-format msgid "Referencing resource templates in rsc_ticket constraints, and even referencing them within resource sets, is also supported." msgstr "" #. Tag: para #, no-c-format msgid "If you want other resources to depend on further tickets, create as many constraints as necessary with rsc_ticket." msgstr "" #. Tag: title #, no-c-format msgid "Managing Multi-Site Clusters" msgstr "" #. Tag: title #, no-c-format msgid "Granting and Revoking Tickets Manually" msgstr "" #. Tag: para #, no-c-format msgid "You can grant tickets to sites or revoke them from sites manually. If you want to re-distribute a ticket, you should wait for the dependent resources to stop cleanly at the previous site before you grant the ticket to the new site." msgstr "" #. Tag: para #, no-c-format msgid "Use the crm_ticket command line tool to grant and revoke tickets." msgstr "" #. Tag: para #, no-c-format msgid "To grant a ticket to this site:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --ticket ticketA --grant" msgstr "" #. Tag: para #, no-c-format msgid "To revoke a ticket from this site:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --ticket ticketA --revoke" msgstr "" #. Tag: para #, no-c-format msgid "If you are managing tickets manually, use the crm_ticket command with great care, because it cannot check whether the same ticket is already granted elsewhere." msgstr "" #. Tag: title #, no-c-format msgid "Granting and Revoking Tickets via a Cluster Ticket Registry" msgstr "" #. Tag: para #, no-c-format msgid "We will use Booth here as an example of software that can be used with pacemaker as a Cluster Ticket Registry. Booth implements the Raft algorithm to guarantee the distributed consensus among different cluster sites, and manages the ticket distribution (and thus the failover process between sites)." msgstr "" #. Tag: para #, no-c-format msgid "Each of the participating clusters and arbitrators runs the Booth daemon boothd." msgstr "" #. Tag: para #, no-c-format msgid "An arbitrator is the multi-site equivalent of a quorum-only node in a local cluster. If you have a setup with an even number of sites, you need an additional instance to reach consensus about decisions such as failover of resources across sites. In this case, add one or more arbitrators running at additional sites. Arbitrators are single machines that run a booth instance in a special mode. An arbitrator is especially important for a two-site scenario, otherwise there is no way for one site to distinguish between a network failure between it and the other site, and a failure of the other site." msgstr "" #. Tag: para #, no-c-format msgid "The most common multi-site scenario is probably a multi-site cluster with two sites and a single arbitrator on a third site. However, technically, there are no limitations with regards to the number of sites and the number of arbitrators involved." msgstr "" #. Tag: para #, no-c-format msgid "Boothd at each site connects to its peers running at the other sites and exchanges connectivity details. Once a ticket is granted to a site, the booth mechanism will manage the ticket automatically: If the site which holds the ticket is out of service, the booth daemons will vote which of the other sites will get the ticket. To protect against brief connection failures, sites that lose the vote (either explicitly or implicitly by being disconnected from the voting body) need to relinquish the ticket after a time-out. Thus, it is made sure that a ticket will only be re-distributed after it has been relinquished by the previous site. The resources that depend on that ticket will fail over to the new site holding the ticket. The nodes that have run the resources before will be treated according to the loss-policy you set within the rsc_ticket constraint." msgstr "" #. Tag: para #, no-c-format msgid "Before the booth can manage a certain ticket within the multi-site cluster, you initially need to grant it to a site manually via the booth command-line tool. After you have initially granted a ticket to a site, boothd will take over and manage the ticket automatically." msgstr "" #. Tag: para #, no-c-format msgid "The booth command-line tool can be used to grant, list, or revoke tickets and can be run on any machine where boothd is running. If you are managing tickets via Booth, use only booth for manual intervention, not crm_ticket. That ensures the same ticket will only be owned by one cluster site at a time." msgstr "" #. Tag: title #, no-c-format msgid "Booth Requirements" msgstr "" #. Tag: para #, no-c-format msgid "All clusters that will be part of the multi-site cluster must be based on Pacemaker." msgstr "" #. Tag: para #, no-c-format msgid "Booth must be installed on all cluster nodes and on all arbitrators that will be part of the multi-site cluster." msgstr "" #. Tag: para #, no-c-format msgid "Nodes belonging to the same cluster site should be synchronized via NTP. However, time synchronization is not required between the individual cluster sites." msgstr "" #. Tag: title #, no-c-format msgid "General Management of Tickets" msgstr "" #. Tag: para #, no-c-format msgid "Display the information of tickets:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --info" msgstr "" #. Tag: para #, no-c-format msgid "Or you can monitor them with:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_mon --tickets" msgstr "" #. Tag: para #, no-c-format msgid "Display the rsc_ticket constraints that apply to a ticket:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --ticket ticketA --constraints" msgstr "" #. Tag: para #, no-c-format msgid "When you want to do maintenance or manual switch-over of a ticket, revoking the ticket would trigger the loss policies. If loss-policy=\"fence\", the dependent resources could not be gracefully stopped/demoted, and other unrelated resources could even be affected." msgstr "" #. Tag: para #, no-c-format msgid "The proper way is making the ticket standby first with:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --ticket ticketA --standby" msgstr "" #. Tag: para #, no-c-format msgid "Then the dependent resources will be stopped or demoted gracefully without triggering the loss policies." msgstr "" #. Tag: para #, no-c-format msgid "If you have finished the maintenance and want to activate the ticket again, you can run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_ticket --ticket ticketA --activate" msgstr "" #. Tag: title #, no-c-format msgid "For more information" msgstr "" #. Tag: para #, no-c-format msgid "SUSE’s Geo Clustering quick start" msgstr "" #. Tag: para #, no-c-format msgid "Booth" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Nodes.pot b/doc/Pacemaker_Explained/pot/Ch-Nodes.pot index fc613d28f2..d80f79b305 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Nodes.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Nodes.pot @@ -1,384 +1,384 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Cluster Nodes" msgstr "" #. Tag: title #, no-c-format msgid "Defining a Cluster Node" msgstr "" #. Tag: para #, no-c-format msgid "Each node in the cluster will have an entry in the nodes section containing its UUID, uname, and type." msgstr "" #. Tag: title #, no-c-format msgid "Example Heartbeat cluster node entry" msgstr "" #. Tag: programlisting #, no-c-format msgid "<node id=\"1186dc9a-324d-425a-966e-d757e693dc86\" uname=\"pcmk-1\" type=\"normal\"/>" msgstr "" #. Tag: title #, no-c-format msgid "Example Corosync cluster node entry" msgstr "" #. Tag: programlisting #, no-c-format msgid "<node id=\"101\" uname=\"pcmk-1\" type=\"normal\"/>" msgstr "" #. Tag: para #, no-c-format msgid "In normal circumstances, the admin should let the cluster populate this information automatically from the communications and membership data. However for Heartbeat, one can use the crm_uuid tool to read an existing UUID or define a value before the cluster starts." msgstr "" #. Tag: title #, no-c-format msgid "Where Pacemaker Gets the Node Name" msgstr "" #. Tag: para #, no-c-format msgid "Traditionally, Pacemaker required nodes to be referred to by the value returned by uname -n. This can be problematic for services that require the uname -n to be a specific value (e.g. for a licence file)." msgstr "" #. Tag: para #, no-c-format msgid "This requirement has been relaxed for clusters using Corosync 2.0 or later. The name Pacemaker uses is:" msgstr "" #. Tag: para #, no-c-format msgid "The value stored in corosync.conf under ring0_addr in the nodelist, if it does not contain an IP address; otherwise" msgstr "" #. Tag: para #, no-c-format msgid "The value stored in corosync.conf under name in the nodelist; otherwise" msgstr "" #. Tag: para #, no-c-format msgid "The value of uname -n" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker provides the crm_node -n command which displays the name used by a running cluster." msgstr "" #. Tag: para #, no-c-format msgid "If a Corosync nodelist is used, crm_node --name-for-id number is also available to display the name used by the node with the corosync nodeid of number, for example: crm_node --name-for-id 2." msgstr "" #. Tag: title #, no-c-format msgid "Node Attributes" msgstr "" #. Tag: para #, no-c-format msgid " Nodeattribute attribute Node attributes are a special type of option (name-value pair) that applies to a node object." msgstr "" #. Tag: para #, no-c-format msgid "Beyond the basic definition of a node, the administrator can describe the node’s attributes, such as how much RAM, disk, what OS or kernel version it has, perhaps even its physical location. This information can then be used by the cluster when deciding where to place resources. For more information on the use of node attributes, see ." msgstr "" #. Tag: para #, no-c-format msgid "Node attributes can be specified ahead of time or populated later, when the cluster is running, using crm_attribute." msgstr "" #. Tag: para #, no-c-format msgid "Below is what the node’s definition would look like if the admin ran the command:" msgstr "" #. Tag: title #, no-c-format msgid "Result of using crm_attribute to specify which kernel pcmk-1 is running" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --type nodes --node pcmk-1 --name kernel --update $(uname -r)" msgstr "" #. Tag: programlisting #, no-c-format msgid "<node uname=\"pcmk-1\" type=\"normal\" id=\"101\">\n" " <instance_attributes id=\"nodes-101\">\n" " <nvpair id=\"nodes-101-kernel\" name=\"kernel\" value=\"3.10.0-123.13.2.el7.x86_64\"/>\n" " </instance_attributes>\n" "</node>" msgstr "" #. Tag: para #, no-c-format msgid "Rather than having to read the XML, a simpler way to determine the current value of an attribute is to use crm_attribute again:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --type nodes --node pcmk-1 --name kernel --query\n" "scope=nodes name=kernel value=3.10.0-123.13.2.el7.x86_64" msgstr "" #. Tag: para #, no-c-format msgid "By specifying --type nodes the admin tells the cluster that this attribute is persistent. There are also transient attributes which are kept in the status section which are \"forgotten\" whenever the node rejoins the cluster. The cluster uses this area to store a record of how many times a resource has failed on that node, but administrators can also read and write to this section by specifying --type status." msgstr "" #. Tag: title #, no-c-format msgid "Managing Nodes in a Corosync-Based Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Adding a New Corosync Node" msgstr "" #. Tag: para #, no-c-format msgid " CorosyncAdd Cluster Node Add Cluster Node Add Cluster NodeCorosync Corosync " msgstr "" #. Tag: para #, no-c-format msgid "To add a new node:" msgstr "" #. Tag: para #, no-c-format msgid "Install Corosync and Pacemaker on the new host." msgstr "" #. Tag: para #, no-c-format msgid "Copy /etc/corosync/corosync.conf and /etc/corosync/authkey (if it exists) from an existing node. You may need to modify the mcastaddr option to match the new node’s IP address." msgstr "" #. Tag: para #, no-c-format msgid "Start the cluster software on the new host. If a log message containing \"Invalid digest\" appears from Corosync, the keys are not consistent between the machines." msgstr "" #. Tag: title #, no-c-format msgid "Removing a Corosync Node" msgstr "" #. Tag: para #, no-c-format msgid " CorosyncRemove Cluster Node Remove Cluster Node Remove Cluster NodeCorosync Corosync " msgstr "" #. Tag: para #, no-c-format msgid "Because the messaging and membership layers are the authoritative source for cluster nodes, deleting them from the CIB is not a complete solution. First, one must arrange for corosync to forget about the node (pcmk-1 in the example below)." msgstr "" #. Tag: para #, no-c-format msgid "Stop the cluster on the host to be removed. How to do this will vary with your operating system and installed versions of cluster software, for example, pcs cluster stop if you are using pcs for cluster management, or service corosync stop on a host using corosync 1.x with the pacemaker plugin." msgstr "" #. Tag: para #, no-c-format msgid "From one of the remaining active cluster nodes, tell Pacemaker to forget about the removed host, which will also delete the node from the CIB:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_node -R pcmk-1" msgstr "" #. Tag: para #, no-c-format msgid "This procedure only works for pacemaker 1.1.8 and later." msgstr "" #. Tag: title #, no-c-format msgid "Replacing a Corosync Node" msgstr "" #. Tag: para #, no-c-format msgid " CorosyncReplace Cluster Node Replace Cluster Node Replace Cluster NodeCorosync Corosync " msgstr "" #. Tag: para #, no-c-format msgid "To replace an existing cluster node:" msgstr "" #. Tag: para #, no-c-format msgid "Make sure the old node is completely stopped." msgstr "" #. Tag: para #, no-c-format msgid "Give the new machine the same hostname and IP address as the old one." msgstr "" #. Tag: para #, no-c-format msgid "Follow the procedure above for adding a node." msgstr "" #. Tag: title #, no-c-format msgid "Managing Nodes in a Heartbeat-based Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Adding a New Heartbeat Node" msgstr "" #. Tag: para #, no-c-format msgid " HeartbeatAdd Cluster Node Add Cluster Node Add Cluster NodeHeartbeat Heartbeat " msgstr "" #. Tag: para #, no-c-format msgid "Install heartbeat and pacemaker on the new host." msgstr "" #. Tag: para #, no-c-format msgid "Copy ha.cf and authkeys from an existing node." msgstr "" #. Tag: para #, no-c-format msgid "If you do not use autojoin any in ha.cf, run:" msgstr "" #. Tag: screen #, no-c-format msgid "hb_addnode $(uname -n)" msgstr "" #. Tag: para #, no-c-format msgid "Start the cluster software on the new node." msgstr "" #. Tag: title #, no-c-format msgid "Removing a Heartbeat Node" msgstr "" #. Tag: para #, no-c-format msgid " HeartbeatRemove Cluster Node Remove Cluster Node Remove Cluster NodeHeartbeat Heartbeat " msgstr "" #. Tag: para #, no-c-format msgid "Because the messaging and membership layers are the authoritative source for cluster nodes, deleting them from the CIB is not a complete solution. First, one must arrange for Heartbeat to forget about the node (pcmk-1 in the example below)." msgstr "" #. Tag: para #, no-c-format msgid "On the host to be removed, stop the cluster:" msgstr "" #. Tag: screen #, no-c-format msgid "service heartbeat stop" msgstr "" #. Tag: para #, no-c-format msgid "From one of the remaining active cluster nodes, tell Heartbeat the node should be removed:" msgstr "" #. Tag: screen #, no-c-format msgid "hb_delnode pcmk-1" msgstr "" #. Tag: para #, no-c-format msgid "Tell Pacemaker to forget about the removed host:" msgstr "" #. Tag: screen #, no-c-format msgid "crm_node -R pcmk-1" msgstr "" #. Tag: para #, no-c-format msgid "This procedure only works for pacemaker versions after 1.1.8." msgstr "" #. Tag: title #, no-c-format msgid "Replacing a Heartbeat Node" msgstr "" #. Tag: para #, no-c-format msgid " HeartbeatReplace Cluster Node Replace Cluster Node Replace Cluster NodeHeartbeat Heartbeat To replace an existing cluster node:" msgstr "" #. Tag: para #, no-c-format msgid "Give the new machine the same hostname as the old one." msgstr "" #. Tag: para #, no-c-format msgid "Go to an active cluster node and look up the UUID for the old node in /var/lib/heartbeat/hostcache." msgstr "" #. Tag: para #, no-c-format msgid "Install the cluster software." msgstr "" #. Tag: para #, no-c-format msgid "Copy ha.cf and authkeys to the new node." msgstr "" #. Tag: para #, no-c-format msgid "On the new node, populate its UUID using crm_uuid -w and the UUID obtained earlier." msgstr "" #. Tag: para #, no-c-format msgid "Start the new cluster node." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Notifications.pot b/doc/Pacemaker_Explained/pot/Ch-Notifications.pot index 0e0fed996f..d1de90fb1a 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Notifications.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Notifications.pot @@ -1,233 +1,233 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Receiving Notification for Cluster Events" msgstr "" #. Tag: para #, no-c-format msgid " ResourceNotification Notification " msgstr "" #. Tag: para #, no-c-format msgid "A Pacemaker cluster is an event-driven system. In this context, an event might be a resource failure or a configuration change, among others." msgstr "" #. Tag: para #, no-c-format msgid "The ocf:pacemaker:ClusterMon resource can monitor the cluster status and trigger alerts on each cluster event. This resource runs crm_mon in the background at regular (configurable) intervals and uses crm_mon capabilities to trigger emails (SMTP), SNMP traps or external programs (via the extra_options parameter)." msgstr "" #. Tag: para #, no-c-format msgid "Depending on your system settings and compilation settings, SNMP or email alerts might be unavailable. Check the output of crm_mon --help to see whether these options are available to you. In any case, executing an external agent will always be available, and you can use this agent to send emails, SNMP traps or whatever action you develop." msgstr "" #. Tag: title #, no-c-format msgid "Configuring SNMP Notifications" msgstr "" #. Tag: para #, no-c-format msgid " ResourceNotificationSNMP NotificationSNMP SNMP " msgstr "" #. Tag: para #, no-c-format msgid "Requires an IP to send SNMP traps to, and an SNMP community string. The Pacemaker MIB is provided with the source, and is typically installed in /usr/share/snmp/mibs/PCMK-MIB.txt." msgstr "" #. Tag: para #, no-c-format msgid "This example uses snmphost.example.com as the SNMP IP and public as the community string:" msgstr "" #. Tag: title #, no-c-format msgid "Configuring ClusterMon to send SNMP traps" msgstr "" #. Tag: programlisting #, no-c-format msgid "<clone id=\"ClusterMon-clone\">\n" " <primitive class=\"ocf\" id=\"ClusterMon-SNMP\" provider=\"pacemaker\" type=\"ClusterMon\">\n" " <instance_attributes id=\"ClusterMon-instance_attributes\">\n" " <nvpair id=\"ClusterMon-instance_attributes-user\" name=\"user\" value=\"root\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-update\" name=\"update\" value=\"30\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-extra_options\" name=\"extra_options\" value=\"-S snmphost.example.com -C public\"/>\n" " </instance_attributes>\n" " </primitive>\n" "</clone>" msgstr "" #. Tag: title #, no-c-format msgid "Configuring Email Notifications" msgstr "" #. Tag: para #, no-c-format msgid " ResourceNotificationSMTP NotificationSMTP SMTP " msgstr "" #. Tag: para #, no-c-format msgid "Requires the recipient e-mail address. You can also optionally configure the sender e-mail address, the hostname of the SMTP relay, and a prefix string for the subject line." msgstr "" #. Tag: title #, no-c-format msgid "Configuring ClusterMon to send email alerts" msgstr "" #. Tag: programlisting #, no-c-format msgid "<clone id=\"ClusterMon-clone\">\n" " <primitive class=\"ocf\" id=\"ClusterMon-SMTP\" provider=\"pacemaker\" type=\"ClusterMon\">\n" " <instance_attributes id=\"ClusterMon-instance_attributes\">\n" " <nvpair id=\"ClusterMon-instance_attributes-user\" name=\"user\" value=\"root\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-update\" name=\"update\" value=\"30\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-extra_options\" name=\"extra_options\" value=\"-T pacemaker@example.com -F pacemaker@node2.example.com -P PACEMAKER -H mail.example.com\"/>\n" " </instance_attributes>\n" " </primitive>\n" "</clone>" msgstr "" #. Tag: title #, no-c-format msgid "Configuring Notifications via External-Agent" msgstr "" #. Tag: para #, no-c-format msgid "Requires a program (external-agent) to run when resource operations take place, and an external-recipient (IP address, email address, URI). When triggered, the external-agent is fed with dynamically filled environment variables describing precisely the cluster event that occurred. By making smart usage of these variables in your external-agent code, you can trigger any action." msgstr "" #. Tag: title #, no-c-format msgid "Configuring ClusterMon to execute an external-agent" msgstr "" #. Tag: programlisting #, no-c-format msgid "<clone id=\"ClusterMon-clone\">\n" " <primitive class=\"ocf\" id=\"ClusterMon\" provider=\"pacemaker\" type=\"ClusterMon\">\n" " <instance_attributes id=\"ClusterMon-instance_attributes\">\n" " <nvpair id=\"ClusterMon-instance_attributes-user\" name=\"user\" value=\"root\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-update\" name=\"update\" value=\"30\"/>\n" " <nvpair id=\"ClusterMon-instance_attributes-extra_options\" name=\"extra_options\" value=\"-E /usr/local/bin/example.sh -e 192.168.12.1\"/>\n" " </instance_attributes>\n" " </primitive>\n" "</clone>" msgstr "" #. Tag: title #, no-c-format msgid "Environment Variables Passed to the External Agent" msgstr "" #. Tag: entry #, no-c-format msgid "Environment Variable" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_recipient" msgstr "" #. Tag: para #, no-c-format msgid "The static external-recipient from the resource definition. Environment VariableCRM_notify_recipient CRM_notify_recipient " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_node" msgstr "" #. Tag: para #, no-c-format msgid "The node on which the status change happened. Environment VariableCRM_notify_node CRM_notify_node " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_rsc" msgstr "" #. Tag: para #, no-c-format msgid "The name of the resource that changed the status. Environment VariableCRM_notify_rsc CRM_notify_rsc " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_task" msgstr "" #. Tag: para #, no-c-format msgid "The operation that caused the status change. Environment VariableCRM_notify_task CRM_notify_task " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_desc" msgstr "" #. Tag: para #, no-c-format msgid "The textual output relevant error code of the operation (if any) that caused the status change. Environment VariableCRM_notify_desc CRM_notify_desc " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_rc" msgstr "" #. Tag: para #, no-c-format msgid "The return code of the operation. Environment VariableCRM_notify_rc CRM_notify_rc " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_target_rc" msgstr "" #. Tag: para #, no-c-format msgid "The expected return code of the operation. Environment VariableCRM_notify_target_rc CRM_notify_target_rc " msgstr "" #. Tag: para #, no-c-format msgid "CRM_notify_status" msgstr "" #. Tag: para #, no-c-format msgid "The numerical representation of the status of the operation. Environment VariableCRM_notify_target_rc CRM_notify_target_rc " msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Options.pot b/doc/Pacemaker_Explained/pot/Ch-Options.pot index 0c64043489..a2710809c3 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Options.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Options.pot @@ -1,726 +1,781 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Cluster-Wide Configuration" msgstr "" #. Tag: title #, no-c-format msgid "CIB Properties" msgstr "" #. Tag: para #, no-c-format msgid "Certain settings are defined by CIB properties (that is, attributes of the cib tag) rather than with the rest of the cluster configuration in the configuration section." msgstr "" #. Tag: para #, no-c-format msgid "The reason is simply a matter of parsing. These options are used by the configuration database which is, by design, mostly ignorant of the content it holds. So the decision was made to place them in an easy-to-find location." msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "admin_epoch" msgstr "" #. Tag: para #, no-c-format msgid " Configuration VersionCluster Cluster ClusterOptionConfiguration Version OptionConfiguration Version Configuration Version admin_epochCluster Option Cluster Option ClusterOptionadmin_epoch Optionadmin_epoch admin_epoch When a node joins the cluster, the cluster performs a check to see which node has the best configuration. It asks the node with the highest (admin_epoch, epoch, num_updates) tuple to replace the configuration on all the nodes — which makes setting them, and setting them correctly, very important. admin_epoch is never modified by the cluster; you can use this to make the configurations on any inactive nodes obsolete. Never set this value to zero. In such cases, the cluster cannot tell the difference between your configuration and the \"empty\" one used when nothing is found on disk." msgstr "" #. Tag: para #, no-c-format msgid "epoch" msgstr "" #. Tag: para #, no-c-format msgid " epochCluster Option Cluster Option ClusterOptionepoch Optionepoch epoch The cluster increments this every time the configuration is updated (usually by the administrator)." msgstr "" #. Tag: para #, no-c-format msgid "num_updates" msgstr "" #. Tag: para #, no-c-format msgid " num_updatesCluster Option Cluster Option ClusterOptionnum_updates Optionnum_updates num_updates The cluster increments this every time the configuration or status is updated (usually by the cluster) and resets it to 0 when epoch changes." msgstr "" #. Tag: para #, no-c-format msgid "validate-with" msgstr "" #. Tag: para #, no-c-format msgid " validate-withCluster Option Cluster Option ClusterOptionvalidate-with Optionvalidate-with validate-with Determines the type of XML validation that will be done on the configuration. If set to none, the cluster will not verify that updates conform to the DTD (nor reject ones that don’t). This option can be useful when operating a mixed-version cluster during an upgrade." msgstr "" #. Tag: para #, no-c-format msgid "cib-last-written" msgstr "" #. Tag: para #, no-c-format msgid " cib-last-writtenCluster Property Cluster Property ClusterPropertycib-last-written Propertycib-last-written cib-last-written Indicates when the configuration was last written to disk. Maintained by the cluster; for informational purposes only." msgstr "" #. Tag: para #, no-c-format msgid "have-quorum" msgstr "" #. Tag: para #, no-c-format msgid " have-quorumCluster Property Cluster Property ClusterPropertyhave-quorum Propertyhave-quorum have-quorum Indicates if the cluster has quorum. If false, this may mean that the cluster cannot start resources or fence other nodes (see no-quorum-policy below). Maintained by the cluster." msgstr "" #. Tag: para #, no-c-format msgid "dc-uuid" msgstr "" #. Tag: para #, no-c-format msgid " dc-uuidCluster Property Cluster Property ClusterPropertydc-uuid Propertydc-uuid dc-uuid Indicates which cluster node is the current leader. Used by the cluster when placing resources and determining the order of some events. Maintained by the cluster." msgstr "" #. Tag: title #, no-c-format msgid "Working with CIB Properties" msgstr "" #. Tag: para #, no-c-format msgid "Although these fields can be written to by the user, in most cases the cluster will overwrite any values specified by the user with the \"correct\" ones." msgstr "" #. Tag: para #, no-c-format msgid "To change the ones that can be specified by the user, for example admin_epoch, one should use:" msgstr "" #. Tag: screen #, no-c-format -msgid "# cibadmin --modify --crm_xml '<cib admin_epoch=\"42\"/>'" +msgid "# cibadmin --modify --xml-text '<cib admin_epoch=\"42\"/>'" msgstr "" #. Tag: para #, no-c-format msgid "A complete set of CIB properties will look something like this:" msgstr "" #. Tag: title #, no-c-format msgid "Attributes set for a cib object" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib crm_feature_set=\"3.0.7\" validate-with=\"pacemaker-1.2\"\n" " admin_epoch=\"42\" epoch=\"116\" num_updates=\"1\"\n" " cib-last-written=\"Mon Jan 12 15:46:39 2015\" update-origin=\"rhel7-1\"\n" " update-client=\"crm_attribute\" have-quorum=\"1\" dc-uuid=\"1\">" msgstr "" #. Tag: title #, no-c-format msgid "Cluster Options" msgstr "" #. Tag: para #, no-c-format msgid "Cluster options, as you might expect, control how the cluster behaves when confronted with certain situations." msgstr "" #. Tag: para #, no-c-format msgid "They are grouped into sets within the crm_config section, and, in advanced configurations, there may be more than one set. (This will be described later in the section on where we will show how to have the cluster use different sets of options during working hours than during weekends.) For now, we will describe the simple case where each option is present at most once." msgstr "" #. Tag: para #, no-c-format msgid "You can obtain an up-to-date list of cluster options, including their default values, by running the man pengine and man crmd commands." msgstr "" #. Tag: entry #, no-c-format msgid "Option" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: para #, no-c-format msgid "dc-version" msgstr "" #. Tag: para #, no-c-format msgid " dc-versionCluster Property Cluster Property ClusterPropertydc-version Propertydc-version dc-version Version of Pacemaker on the cluster’s DC. Determined automatically by the cluster. Often includes the hash which identifies the exact Git changeset it was built from. Used for diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "cluster-infrastructure" msgstr "" #. Tag: para #, no-c-format msgid " cluster-infrastructureCluster Property Cluster Property ClusterPropertycluster-infrastructure Propertycluster-infrastructure cluster-infrastructure The messaging stack on which Pacemaker is currently running. Determined automatically by the cluster. Used for informational and diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "expected-quorum-votes" msgstr "" #. Tag: para #, no-c-format msgid " expected-quorum-votesCluster Property Cluster Property ClusterPropertyexpected-quorum-votes Propertyexpected-quorum-votes expected-quorum-votes The number of nodes expected to be in the cluster. Determined automatically by the cluster. Used to calculate quorum in clusters that use Corosync 1.x without CMAN as the messaging layer." msgstr "" #. Tag: para #, no-c-format msgid "no-quorum-policy" msgstr "" #. Tag: para #, no-c-format msgid "stop" msgstr "" #. Tag: para #, no-c-format msgid " no-quorum-policyCluster Option Cluster Option ClusterOptionno-quorum-policy Optionno-quorum-policy no-quorum-policy What to do when the cluster does not have quorum. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "ignore: continue all resource management" msgstr "" #. Tag: para #, no-c-format msgid "freeze: continue resource management, but don’t recover resources from nodes not in the affected partition" msgstr "" #. Tag: para #, no-c-format msgid "stop: stop all resources in the affected cluster partition" msgstr "" #. Tag: para #, no-c-format msgid "suicide: fence all nodes in the affected cluster partition" msgstr "" #. Tag: para #, no-c-format msgid "batch-limit" msgstr "" #. Tag: para #, no-c-format msgid "30" msgstr "" #. Tag: para #, no-c-format msgid " batch-limitCluster Option Cluster Option ClusterOptionbatch-limit Optionbatch-limit batch-limit The number of jobs that the Transition Engine (TE) is allowed to execute in parallel. The TE is the logic in pacemaker’s CRMd that executes the actions determined by the Policy Engine (PE). The \"correct\" value will depend on the speed and load of your network and cluster nodes." msgstr "" #. Tag: para #, no-c-format msgid "migration-limit" msgstr "" #. Tag: para #, no-c-format msgid "-1" msgstr "" #. Tag: para #, no-c-format msgid " migration-limitCluster Option Cluster Option ClusterOptionmigration-limit Optionmigration-limit migration-limit The number of migration jobs that the TE is allowed to execute in parallel on a node. A value of -1 means unlimited." msgstr "" #. Tag: para #, no-c-format msgid "symmetric-cluster" msgstr "" #. Tag: para #, no-c-format msgid "TRUE" msgstr "" #. Tag: para #, no-c-format msgid " symmetric-clusterCluster Option Cluster Option ClusterOptionsymmetric-cluster Optionsymmetric-cluster symmetric-cluster Can all resources run on any node by default?" msgstr "" #. Tag: para #, no-c-format msgid "stop-all-resources" msgstr "" #. Tag: para #, no-c-format msgid "FALSE" msgstr "" #. Tag: para #, no-c-format msgid " stop-all-resourcesCluster Option Cluster Option ClusterOptionstop-all-resources Optionstop-all-resources stop-all-resources Should the cluster stop all resources?" msgstr "" #. Tag: para #, no-c-format msgid "stop-orphan-resources" msgstr "" #. Tag: para #, no-c-format msgid " stop-orphan-resourcesCluster Option Cluster Option ClusterOptionstop-orphan-resources Optionstop-orphan-resources stop-orphan-resources Should deleted resources be stopped?" msgstr "" #. Tag: para #, no-c-format msgid "stop-orphan-actions" msgstr "" #. Tag: para #, no-c-format msgid " stop-orphan-actionsCluster Option Cluster Option ClusterOptionstop-orphan-actions Optionstop-orphan-actions stop-orphan-actions Should deleted actions be cancelled?" msgstr "" #. Tag: para #, no-c-format msgid "start-failure-is-fatal" msgstr "" #. Tag: para #, no-c-format -msgid " start-failure-is-fatalCluster Option Cluster Option ClusterOptionstart-failure-is-fatal Optionstart-failure-is-fatal start-failure-is-fatal Should a failure to start a resource on a particular node prevent further start attempts on that node? If FALSE, the cluster will decide whether to try starting on the same node again based on the resource’s current failure count and migration-threshold (see )." +msgid " start-failure-is-fatalCluster Option Cluster Option ClusterOptionstart-failure-is-fatal Optionstart-failure-is-fatal start-failure-is-fatal Should a failure to start a resource on a particular node prevent further start attempts on that node? If FALSE, the cluster will decide whether the same node is still eligible based on the resource’s current failure count and migration-threshold (see )." msgstr "" #. Tag: para #, no-c-format msgid "enable-startup-probes" msgstr "" #. Tag: para #, no-c-format msgid " enable-startup-probesCluster Option Cluster Option ClusterOptionenable-startup-probes Optionenable-startup-probes enable-startup-probes Should the cluster check for active resources during startup?" msgstr "" #. Tag: para #, no-c-format msgid "maintenance-mode" msgstr "" #. Tag: para #, no-c-format msgid " maintenance-modeCluster Option Cluster Option ClusterOptionmaintenance-mode Optionmaintenance-mode maintenance-mode Should the cluster refrain from monitoring, starting and stopping resources?" msgstr "" #. Tag: para #, no-c-format msgid "stonith-enabled" msgstr "" #. Tag: para #, no-c-format msgid " stonith-enabledCluster Option Cluster Option ClusterOptionstonith-enabled Optionstonith-enabled stonith-enabled Should failed nodes and nodes with resources that can’t be stopped be shot? If you value your data, set up a STONITH device and enable this." msgstr "" #. Tag: para #, no-c-format msgid "If true, or unset, the cluster will refuse to start resources unless one or more STONITH resources have been configured. If false, unresponsive nodes are immediately assumed to be running no resources, and resource takeover to online nodes starts without any further protection (which means data loss if the unresponsive node still accesses shared storage, for example). See also the requires meta-attribute in ." msgstr "" #. Tag: para #, no-c-format msgid "stonith-action" msgstr "" #. Tag: para #, no-c-format msgid "reboot" msgstr "" #. Tag: para #, no-c-format msgid " stonith-actionCluster Option Cluster Option ClusterOptionstonith-action Optionstonith-action stonith-action Action to send to STONITH device. Allowed values are reboot and off. The value poweroff is also allowed, but is only used for legacy devices." msgstr "" #. Tag: para #, no-c-format msgid "stonith-timeout" msgstr "" #. Tag: para #, no-c-format msgid "60s" msgstr "" #. Tag: para #, no-c-format msgid " stonith-timeoutCluster Option Cluster Option ClusterOptionstonith-timeout Optionstonith-timeout stonith-timeout How long to wait for STONITH actions (reboot, on, off) to complete" msgstr "" #. Tag: para #, no-c-format msgid "concurrent-fencing" msgstr "" #. Tag: para #, no-c-format msgid " concurrent-fencingCluster Option Cluster Option ClusterOptionconcurrent-fencing Optionconcurrent-fencing concurrent-fencing Is the cluster allowed to initiate multiple fence actions concurrently?" msgstr "" #. Tag: para #, no-c-format msgid "cluster-delay" msgstr "" #. Tag: para #, no-c-format msgid " cluster-delayCluster Option Cluster Option ClusterOptioncluster-delay Optioncluster-delay cluster-delay Estimated maximum round-trip delay over the network (excluding action execution). If the TE requires an action to be executed on another node, it will consider the action failed if it does not get a response from the other node in this time (after considering the action’s own timeout). The \"correct\" value will depend on the speed and load of your network and cluster nodes." msgstr "" #. Tag: para #, no-c-format msgid "dc-deadtime" msgstr "" #. Tag: para #, no-c-format msgid "20s" msgstr "" #. Tag: para #, no-c-format msgid " dc-deadtimeCluster Option Cluster Option ClusterOptiondc-deadtime Optiondc-deadtime dc-deadtime How long to wait for a response from other nodes during startup." msgstr "" #. Tag: para #, no-c-format msgid "The \"correct\" value will depend on the speed/load of your network and the type of switches used." msgstr "" #. Tag: para #, no-c-format msgid "cluster-recheck-interval" msgstr "" #. Tag: para #, no-c-format msgid "15min" msgstr "" #. Tag: para #, no-c-format msgid " cluster-recheck-intervalCluster Option Cluster Option ClusterOptioncluster-recheck-interval Optioncluster-recheck-interval cluster-recheck-interval Polling interval for time-based changes to options, resource parameters and constraints." msgstr "" #. Tag: para #, no-c-format msgid "The Cluster is primarily event-driven, but your configuration can have elements that take effect based on the time of day. To ensure these changes take effect, we can optionally poll the cluster’s status for changes. A value of 0 disables polling. Positive values are an interval (in seconds unless other SI units are specified, e.g. 5min)." msgstr "" #. Tag: para #, no-c-format msgid "pe-error-series-max" msgstr "" #. Tag: para #, no-c-format msgid " pe-error-series-maxCluster Option Cluster Option ClusterOptionpe-error-series-max Optionpe-error-series-max pe-error-series-max The number of PE inputs resulting in ERRORs to save. Used when reporting problems. A value of -1 means unlimited (report all)." msgstr "" #. Tag: para #, no-c-format msgid "pe-warn-series-max" msgstr "" #. Tag: para #, no-c-format msgid " pe-warn-series-maxCluster Option Cluster Option ClusterOptionpe-warn-series-max Optionpe-warn-series-max pe-warn-series-max The number of PE inputs resulting in WARNINGs to save. Used when reporting problems. A value of -1 means unlimited (report all)." msgstr "" #. Tag: para #, no-c-format msgid "pe-input-series-max" msgstr "" #. Tag: para #, no-c-format msgid " pe-input-series-maxCluster Option Cluster Option ClusterOptionpe-input-series-max Optionpe-input-series-max pe-input-series-max The number of \"normal\" PE inputs to save. Used when reporting problems. A value of -1 means unlimited (report all)." msgstr "" +#. Tag: para +#, no-c-format +msgid "node-health-strategy" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "none" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " node-health-strategyCluster Option Cluster Option ClusterOptionnode-health-strategy Optionnode-health-strategy node-health-strategy How the cluster should react to node health attributes (see ). Allowed values are none, migrate-on-red, only-green, progressive, and custom." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "node-health-base" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "0" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " node-health-baseCluster Option Cluster Option ClusterOptionnode-health-base Optionnode-health-base node-health-base The base health score assigned to a node. Only used when node-health-strategy is progressive. (since 1.1.16)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "node-health-green" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " node-health-greenCluster Option Cluster Option ClusterOptionnode-health-green Optionnode-health-green node-health-green The score to use for a node health attribute whose value is green. Only used when node-health-strategy is progressive or custom." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "node-health-yellow" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " node-health-yellowCluster Option Cluster Option ClusterOptionnode-health-yellow Optionnode-health-yellow node-health-yellow The score to use for a node health attribute whose value is yellow. Only used when node-health-strategy is progressive or custom." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "node-health-red" +msgstr "" + +#. Tag: para +#, no-c-format +msgid " node-health-redCluster Option Cluster Option ClusterOptionnode-health-red Optionnode-health-red node-health-red The score to use for a node health attribute whose value is red. Only used when node-health-strategy is progressive or custom." +msgstr "" + #. Tag: para #, no-c-format msgid "remove-after-stop" msgstr "" #. Tag: para #, no-c-format msgid " remove-after-stopCluster Option Cluster Option ClusterOptionremove-after-stop Optionremove-after-stop remove-after-stop Advanced Use Only: Should the cluster remove resources from the LRM after they are stopped? Values other than the default are, at best, poorly tested and potentially dangerous." msgstr "" #. Tag: para #, no-c-format msgid "startup-fencing" msgstr "" #. Tag: para #, no-c-format msgid " startup-fencingCluster Option Cluster Option ClusterOptionstartup-fencing Optionstartup-fencing startup-fencing Advanced Use Only: Should the cluster shoot unseen nodes? Not using the default is very unsafe!" msgstr "" #. Tag: para #, no-c-format msgid "election-timeout" msgstr "" #. Tag: para #, no-c-format msgid "2min" msgstr "" #. Tag: para #, no-c-format msgid " election-timeoutCluster Option Cluster Option ClusterOptionelection-timeout Optionelection-timeout election-timeout Advanced Use Only: If you need to adjust this value, it probably indicates the presence of a bug." msgstr "" #. Tag: para #, no-c-format msgid "shutdown-escalation" msgstr "" #. Tag: para #, no-c-format msgid "20min" msgstr "" #. Tag: para #, no-c-format msgid " shutdown-escalationCluster Option Cluster Option ClusterOptionshutdown-escalation Optionshutdown-escalation shutdown-escalation Advanced Use Only: If you need to adjust this value, it probably indicates the presence of a bug." msgstr "" #. Tag: para #, no-c-format msgid "crmd-integration-timeout" msgstr "" #. Tag: para #, no-c-format msgid "3min" msgstr "" #. Tag: para #, no-c-format msgid " crmd-integration-timeoutCluster Option Cluster Option ClusterOptioncrmd-integration-timeout Optioncrmd-integration-timeout crmd-integration-timeout Advanced Use Only: If you need to adjust this value, it probably indicates the presence of a bug." msgstr "" #. Tag: para #, no-c-format msgid "crmd-finalization-timeout" msgstr "" #. Tag: para #, no-c-format msgid "30min" msgstr "" #. Tag: para #, no-c-format msgid " crmd-finalization-timeoutCluster Option Cluster Option ClusterOptioncrmd-finalization-timeout Optioncrmd-finalization-timeout crmd-finalization-timeout Advanced Use Only: If you need to adjust this value, it probably indicates the presence of a bug." msgstr "" #. Tag: para #, no-c-format msgid "crmd-transition-delay" msgstr "" #. Tag: para #, no-c-format msgid "0s" msgstr "" #. Tag: para #, no-c-format msgid " crmd-transition-delayCluster Option Cluster Option ClusterOptioncrmd-transition-delay Optioncrmd-transition-delay crmd-transition-delay Advanced Use Only: Delay cluster recovery for the configured interval to allow for additional/related events to occur. Useful if your configuration is sensitive to the order in which ping updates arrive. Enabling this option will slow down cluster recovery under all conditions." msgstr "" #. Tag: para #, no-c-format msgid "default-resource-stickiness" msgstr "" -#. Tag: para -#, no-c-format -msgid "0" -msgstr "" - #. Tag: para #, no-c-format msgid " default-resource-stickinessCluster Option Cluster Option ClusterOptiondefault-resource-stickiness Optiondefault-resource-stickiness default-resource-stickiness Deprecated: See instead" msgstr "" #. Tag: para #, no-c-format msgid "is-managed-default" msgstr "" #. Tag: para #, no-c-format msgid " is-managed-defaultCluster Option Cluster Option ClusterOptionis-managed-default Optionis-managed-default is-managed-default Deprecated: See instead" msgstr "" #. Tag: para #, no-c-format msgid "default-action-timeout" msgstr "" #. Tag: para #, no-c-format msgid " default-action-timeoutCluster Option Cluster Option ClusterOptiondefault-action-timeout Optiondefault-action-timeout default-action-timeout Deprecated: See instead" msgstr "" #. Tag: title #, no-c-format msgid "Querying and Setting Cluster Options" msgstr "" #. Tag: para #, no-c-format msgid " QueryingCluster Option Cluster Option SettingCluster Option Cluster Option ClusterQuerying Options Querying Options ClusterSetting Options Setting Options " msgstr "" #. Tag: para #, no-c-format msgid "Cluster options can be queried and modified using the crm_attribute tool. To get the current value of cluster-delay, you can run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --query --name cluster-delay" msgstr "" #. Tag: para #, no-c-format msgid "which is more simply written as" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute -G -n cluster-delay" msgstr "" #. Tag: para #, no-c-format msgid "If a value is found, you’ll see a result like this:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute -G -n cluster-delay\n" "scope=crm_config name=cluster-delay value=60s" msgstr "" #. Tag: para #, no-c-format msgid "If no value is found, the tool will display an error:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute -G -n clusta-deway\n" "scope=crm_config name=clusta-deway value=(null)\n" "Error performing operation: No such device or address" msgstr "" #. Tag: para #, no-c-format msgid "To use a different value (for example, 30 seconds), simply run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name cluster-delay --update 30s" msgstr "" #. Tag: para #, no-c-format msgid "To go back to the cluster’s default value, you can delete the value, for example:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name cluster-delay --delete\n" "Deleted crm_config option: id=cib-bootstrap-options-cluster-delay name=cluster-delay" msgstr "" #. Tag: title #, no-c-format msgid "When Options are Listed More Than Once" msgstr "" #. Tag: para #, no-c-format msgid "If you ever see something like the following, it means that the option you’re modifying is present more than once." msgstr "" #. Tag: title #, no-c-format msgid "Deleting an option that is listed twice" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name batch-limit --delete\n" "\n" "Multiple attributes match name=batch-limit in crm_config:\n" "Value: 50 (set=cib-bootstrap-options, id=cib-bootstrap-options-batch-limit)\n" "Value: 100 (set=custom, id=custom-batch-limit)\n" "Please choose from one of the matches above and supply the 'id' with --id" msgstr "" #. Tag: para #, no-c-format msgid "In such cases, follow the on-screen instructions to perform the requested action. To determine which value is currently being used by the cluster, refer to ." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Resource-Templates.pot b/doc/Pacemaker_Explained/pot/Ch-Resource-Templates.pot index 96fc81ea81..2c5cb5d167 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Resource-Templates.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Resource-Templates.pot @@ -1,317 +1,317 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Resource Templates" msgstr "" #. Tag: para #, no-c-format msgid "If you want to create lots of resources with similar configurations, defining a resource template simplifies the task. Once defined, it can be referenced in primitives or in certain types of constraints." msgstr "" #. Tag: title #, no-c-format msgid "Configuring Resources with Templates" msgstr "" #. Tag: para #, no-c-format msgid "The primitives referencing the template will inherit all meta-attributes, instance attributes, utilization attributes and operations defined in the template. And you can define specific attributes and operations for any of the primitives. If any of these are defined in both the template and the primitive, the values defined in the primitive will take precedence over the ones defined in the template." msgstr "" #. Tag: para #, no-c-format msgid "Hence, resource templates help to reduce the amount of configuration work. If any changes are needed, they can be done to the template definition and will take effect globally in all resource definitions referencing that template." msgstr "" #. Tag: para #, no-c-format msgid "Resource templates have a syntax similar to that of primitives." msgstr "" #. Tag: title #, no-c-format msgid "Resource template for a migratable Xen virtual machine" msgstr "" #. Tag: programlisting #, no-c-format msgid "<template id=\"vm-template\" class=\"ocf\" provider=\"heartbeat\" type=\"Xen\">\n" " <meta_attributes id=\"vm-template-meta_attributes\">\n" " <nvpair id=\"vm-template-meta_attributes-allow-migrate\" name=\"allow-migrate\" value=\"true\"/>\n" " </meta_attributes>\n" " <utilization id=\"vm-template-utilization\">\n" " <nvpair id=\"vm-template-utilization-memory\" name=\"memory\" value=\"512\"/>\n" " </utilization>\n" " <operations>\n" " <op id=\"vm-template-monitor-15s\" interval=\"15s\" name=\"monitor\" timeout=\"60s\"/>\n" " <op id=\"vm-template-start-0\" interval=\"0\" name=\"start\" timeout=\"60s\"/>\n" " </operations>\n" "</template>" msgstr "" #. Tag: para #, no-c-format msgid "Once you define a resource template, you can use it in primitives by specifying the template property." msgstr "" #. Tag: title #, no-c-format msgid "Xen primitive resource using a resource template" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"vm1\" template=\"vm-template\">\n" " <instance_attributes id=\"vm1-instance_attributes\">\n" " <nvpair id=\"vm1-instance_attributes-name\" name=\"name\" value=\"vm1\"/>\n" " <nvpair id=\"vm1-instance_attributes-xmfile\" name=\"xmfile\" value=\"/etc/xen/shared-vm/vm1\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, the new primitive vm1 will inherit everything from vm-template. For example, the equivalent of the above two examples would be:" msgstr "" #. Tag: title #, no-c-format msgid "Equivalent Xen primitive resource not using a resource template" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"vm1\" class=\"ocf\" provider=\"heartbeat\" type=\"Xen\">\n" " <meta_attributes id=\"vm-template-meta_attributes\">\n" " <nvpair id=\"vm-template-meta_attributes-allow-migrate\" name=\"allow-migrate\" value=\"true\"/>\n" " </meta_attributes>\n" " <utilization id=\"vm-template-utilization\">\n" " <nvpair id=\"vm-template-utilization-memory\" name=\"memory\" value=\"512\"/>\n" " </utilization>\n" " <operations>\n" " <op id=\"vm-template-monitor-15s\" interval=\"15s\" name=\"monitor\" timeout=\"60s\"/>\n" " <op id=\"vm-template-start-0\" interval=\"0\" name=\"start\" timeout=\"60s\"/>\n" " </operations>\n" " <instance_attributes id=\"vm1-instance_attributes\">\n" " <nvpair id=\"vm1-instance_attributes-name\" name=\"name\" value=\"vm1\"/>\n" " <nvpair id=\"vm1-instance_attributes-xmfile\" name=\"xmfile\" value=\"/etc/xen/shared-vm/vm1\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "If you want to overwrite some attributes or operations, add them to the particular primitive’s definition." msgstr "" #. Tag: title #, no-c-format msgid "Xen resource overriding template values" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"vm2\" template=\"vm-template\">\n" " <meta_attributes id=\"vm2-meta_attributes\">\n" " <nvpair id=\"vm2-meta_attributes-allow-migrate\" name=\"allow-migrate\" value=\"false\"/>\n" " </meta_attributes>\n" " <utilization id=\"vm2-utilization\">\n" " <nvpair id=\"vm2-utilization-memory\" name=\"memory\" value=\"1024\"/>\n" " </utilization>\n" " <instance_attributes id=\"vm2-instance_attributes\">\n" " <nvpair id=\"vm2-instance_attributes-name\" name=\"name\" value=\"vm2\"/>\n" " <nvpair id=\"vm2-instance_attributes-xmfile\" name=\"xmfile\" value=\"/etc/xen/shared-vm/vm2\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"vm2-monitor-30s\" interval=\"30s\" name=\"monitor\" timeout=\"120s\"/>\n" " <op id=\"vm2-stop-0\" interval=\"0\" name=\"stop\" timeout=\"60s\"/>\n" " </operations>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, the new primitive vm2 has special attribute values. Its monitor operation has a longer timeout and interval, and the primitive has an additional stop operation." msgstr "" #. Tag: para #, no-c-format msgid "To see the resulting definition of a resource, run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --query-xml --resource vm2" msgstr "" #. Tag: para #, no-c-format msgid "To see the raw definition of a resource in the CIB, run:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --query-xml-raw --resource vm2" msgstr "" #. Tag: title #, no-c-format msgid "Referencing Templates in Constraints" msgstr "" #. Tag: para #, no-c-format msgid "A resource template can be referenced in the following types of constraints:" msgstr "" #. Tag: para #, no-c-format msgid "order constraints (see )" msgstr "" #. Tag: para #, no-c-format msgid "colocation constraints (see )" msgstr "" #. Tag: para #, no-c-format msgid "rsc_ticket constraints (for multi-site clusters as described in )" msgstr "" #. Tag: para #, no-c-format msgid "Resource templates referenced in constraints stand for all primitives which are derived from that template. This means, the constraint applies to all primitive resources referencing the resource template. Referencing resource templates in constraints is an alternative to resource sets and can simplify the cluster configuration considerably." msgstr "" #. Tag: para #, no-c-format msgid "For example, given the example templates earlier in this section:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_colocation id=\"vm-template-colo-base-rsc\" rsc=\"vm-template\" rsc-role=\"Started\" with-rsc=\"base-rsc\" score=\"INFINITY\"/>" msgstr "" #. Tag: para #, no-c-format msgid "would colocate all VMs with base-rsc and is the equivalent of the following constraint configuration:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_colocation id=\"vm-colo-base-rsc\" score=\"INFINITY\">\n" " <resource_set id=\"vm-colo-base-rsc-0\" sequential=\"false\" role=\"Started\">\n" " <resource_ref id=\"vm1\"/>\n" " <resource_ref id=\"vm2\"/>\n" " </resource_set>\n" " <resource_set id=\"vm-colo-base-rsc-1\">\n" " <resource_ref id=\"base-rsc\"/>\n" " </resource_set>\n" "</rsc_colocation>" msgstr "" #. Tag: para #, no-c-format msgid "In a colocation constraint, only one template may be referenced from either rsc or with-rsc; the other reference must be a regular resource." msgstr "" #. Tag: title #, no-c-format msgid "Referencing Resource Templates in Sequential Resource Sets" msgstr "" #. Tag: para #, no-c-format msgid "Resource templates can also be referenced in resource sets." msgstr "" #. Tag: para #, no-c-format msgid "For example:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_order id=\"order1\" score=\"INFINITY\">\n" " <resource_set id=\"order1-0\">\n" " <resource_ref id=\"base-rsc\"/>\n" " <resource_ref id=\"vm-template\"/>\n" " <resource_ref id=\"top-rsc\"/>\n" " </resource_set>\n" "</rsc_order>" msgstr "" #. Tag: para #, no-c-format msgid "is the equivalent of the following constraint configuration:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_order id=\"order1\" score=\"INFINITY\">\n" " <resource_set id=\"order1-0\">\n" " <resource_ref id=\"base-rsc\"/>\n" " <resource_ref id=\"vm1\"/>\n" " <resource_ref id=\"vm2\"/>\n" " <resource_ref id=\"top-rsc\"/>\n" " </resource_set>\n" "</rsc_order>" msgstr "" #. Tag: title #, no-c-format msgid "Referencing Resource Templates in Parallel Resource Sets" msgstr "" #. Tag: para #, no-c-format msgid "If the resources referencing the template can run in parallel:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_order id=\"order2\" score=\"INFINITY\">\n" " <resource_set id=\"order2-0\">\n" " <resource_ref id=\"base-rsc\"/>\n" " </resource_set>\n" " <resource_set id=\"order2-1\" sequential=\"false\">\n" " <resource_ref id=\"vm-template\"/>\n" " </resource_set>\n" " <resource_set id=\"order2-2\">\n" " <resource_ref id=\"top-rsc\"/>\n" " </resource_set>\n" "</rsc_order>" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_order id=\"order2\" score=\"INFINITY\">\n" " <resource_set id=\"order2-0\">\n" " <resource_ref id=\"base-rsc\"/>\n" " </resource_set>\n" " <resource_set id=\"order2-1\" sequential=\"false\">\n" " <resource_ref id=\"vm1\"/>\n" " <resource_ref id=\"vm2\"/>\n" " </resource_set>\n" " <resource_set id=\"order2-2\">\n" " <resource_ref id=\"top-rsc\"/>\n" " </resource_set>\n" "</rsc_order>" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Resources.pot b/doc/Pacemaker_Explained/pot/Ch-Resources.pot index db8be236ab..fbf648f144 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Resources.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Resources.pot @@ -1,1230 +1,1255 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Cluster Resources" msgstr "" #. Tag: title #, no-c-format msgid "What is a Cluster Resource?" msgstr "" #. Tag: para #, no-c-format msgid " Resource " msgstr "" #. Tag: para #, no-c-format msgid "A resource is a service made highly available by a cluster. The simplest type of resource, a primitive resource, is described in this section. More complex forms, such as groups and clones, are described in later sections." msgstr "" #. Tag: para #, no-c-format msgid "Every primitive resource has a resource agent. A resource agent is an external program that abstracts the service it provides and present a consistent view to the cluster." msgstr "" #. Tag: para #, no-c-format msgid "This allows the cluster to be agnostic about the resources it manages. The cluster doesn’t need to understand how the resource works because it relies on the resource agent to do the right thing when given a start, stop or monitor command. For this reason, it is crucial that resource agents are well-tested." msgstr "" #. Tag: para #, no-c-format msgid "Typically, resource agents come in the form of shell scripts. However, they can be written using any technology (such as C, Python or Perl) that the author is comfortable with." msgstr "" #. Tag: title #, no-c-format msgid "Resource Classes" msgstr "" #. Tag: para #, no-c-format msgid " Resourceclass class " msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker supports several classes of agents:" msgstr "" #. Tag: para #, no-c-format msgid "OCF" msgstr "" #. Tag: para #, no-c-format msgid "LSB" msgstr "" #. Tag: para #, no-c-format msgid "Upstart" msgstr "" #. Tag: para #, no-c-format msgid "Systemd" msgstr "" #. Tag: para #, no-c-format msgid "Service" msgstr "" #. Tag: para #, no-c-format msgid "Fencing" msgstr "" #. Tag: para #, no-c-format msgid "Nagios Plugins" msgstr "" #. Tag: title #, no-c-format msgid "Open Cluster Framework" msgstr "" #. Tag: para #, no-c-format msgid " ResourceOCF OCF OCFResources Resources Open Cluster FrameworkResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "The OCF standard See http://www.opencf.org/cgi-bin/viewcvs.cgi/specs/ra/resource-agent-api.txt?rev=HEAD  — at least as it relates to resource agents. The Pacemaker implementation has been somewhat extended from the OCF specs, but none of those changes are incompatible with the original OCF specification. is basically an extension of the Linux Standard Base conventions for init scripts to:" msgstr "" #. Tag: para #, no-c-format msgid "support parameters," msgstr "" #. Tag: para #, no-c-format msgid "make them self-describing, and" msgstr "" #. Tag: para #, no-c-format msgid "make them extensible" msgstr "" #. Tag: para #, no-c-format msgid "OCF specs have strict definitions of the exit codes that actions must return. The resource-agents source code includes the ocf-tester script, which can be useful in this regard. " msgstr "" #. Tag: para #, no-c-format msgid "The cluster follows these specifications exactly, and giving the wrong exit code will cause the cluster to behave in ways you will likely find puzzling and annoying. In particular, the cluster needs to distinguish a completely stopped resource from one which is in some erroneous and indeterminate state." msgstr "" #. Tag: para #, no-c-format msgid "Parameters are passed to the resource agent as environment variables, with the special prefix OCF_RESKEY_. So, a parameter which the user thinks of as ip will be passed to the resource agent as OCF_RESKEY_ip. The number and purpose of the parameters is left to the resource agent; however, the resource agent should use the meta-data command to advertise any that it supports." msgstr "" #. Tag: para #, no-c-format msgid "The OCF class is the most preferred as it is an industry standard, highly flexible (allowing parameters to be passed to agents in a non-positional manner) and self-describing." msgstr "" #. Tag: para #, no-c-format msgid "For more information, see the reference and ." msgstr "" #. Tag: title #, no-c-format msgid "Linux Standard Base" msgstr "" #. Tag: para #, no-c-format msgid " ResourceLSB LSB LSBResources Resources Linux Standard BaseResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "LSB resource agents are those found in /etc/init.d." msgstr "" #. Tag: para #, no-c-format msgid "Generally, they are provided by the OS distribution and, in order to be used with the cluster, they must conform to the LSB Spec. See http://refspecs.linux-foundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html for the LSB Spec as it relates to init scripts. " msgstr "" #. Tag: para #, no-c-format msgid "Many distributions claim LSB compliance but ship with broken init scripts. For details on how to check whether your init script is LSB-compatible, see . Common problematic violations of the LSB standard include:" msgstr "" #. Tag: para #, no-c-format msgid "Not implementing the status operation at all" msgstr "" #. Tag: para #, no-c-format msgid "Not observing the correct exit status codes for start/stop/status actions" msgstr "" #. Tag: para #, no-c-format msgid "Starting a started resource returns an error" msgstr "" #. Tag: para #, no-c-format msgid "Stopping a stopped resource returns an error" msgstr "" #. Tag: para #, no-c-format msgid "Remember to make sure the computer is not configured to start any services at boot time — that should be controlled by the cluster." msgstr "" #. Tag: para #, no-c-format msgid " ResourceSystemd Systemd SystemdResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "Some newer distributions have replaced the old \"SysV\" style of initialization daemons and scripts with an alternative called Systemd." msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker is able to manage these services if they are present." msgstr "" #. Tag: para #, no-c-format msgid "Instead of init scripts, systemd has unit files. Generally, the services (unit files) are provided by the OS distribution, but there are online guides for converting from init scripts. For example, http://0pointer.de/blog/projects/systemd-for-admins-3.html" msgstr "" #. Tag: para #, no-c-format msgid " ResourceUpstart Upstart UpstartResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "Some newer distributions have replaced the old \"SysV\" style of initialization daemons (and scripts) with an alternative called Upstart." msgstr "" #. Tag: para #, no-c-format msgid "Instead of init scripts, upstart has jobs. Generally, the services (jobs) are provided by the OS distribution." msgstr "" #. Tag: title #, no-c-format msgid "System Services" msgstr "" #. Tag: para #, no-c-format msgid " ResourceSystem Services System Services System ServiceResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "Since there are various types of system services (systemd, upstart, and lsb), Pacemaker supports a special service alias which intelligently figures out which one applies to a given cluster node." msgstr "" #. Tag: para #, no-c-format msgid "This is particularly useful when the cluster contains a mix of systemd, upstart, and lsb." msgstr "" #. Tag: para #, no-c-format msgid "In order, Pacemaker will try to find the named service as:" msgstr "" #. Tag: para #, no-c-format msgid "an LSB init script" msgstr "" #. Tag: para #, no-c-format msgid "a Systemd unit file" msgstr "" #. Tag: para #, no-c-format msgid "an Upstart job" msgstr "" #. Tag: title #, no-c-format msgid "STONITH" msgstr "" #. Tag: para #, no-c-format msgid " ResourceSTONITH STONITH STONITHResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "The STONITH class is used exclusively for fencing-related resources. This is discussed later in ." msgstr "" #. Tag: para #, no-c-format msgid " ResourceNagios Plugins Nagios Plugins Nagios PluginsResources Resources " msgstr "" #. Tag: para #, no-c-format msgid "Nagios Plugins The project has two independent forks, hosted at https://www.nagios-plugins.org/ and https://www.monitoring-plugins.org/. Output from both projects' plugins is similar, so plugins from either project can be used with pacemaker. allow us to monitor services on remote hosts." msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker is able to do remote monitoring with the plugins if they are present." msgstr "" #. Tag: para #, no-c-format msgid "A common use case is to configure them as resources belonging to a resource container (usually a virtual machine), and the container will be restarted if any of them has failed. Another use is to configure them as ordinary resources to be used for monitoring hosts or services via the network." msgstr "" #. Tag: para #, no-c-format msgid "The supported parameters are same as the long options of the plugin." msgstr "" #. Tag: title #, no-c-format msgid "Resource Properties" msgstr "" #. Tag: para #, no-c-format msgid "These values tell the cluster which resource agent to use for the resource, where to find that resource agent and what standards it conforms to." msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Primitive Resource" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid "Your name for the resource idResource Resource ResourcePropertyid Propertyid id " msgstr "" #. Tag: para #, no-c-format msgid "class" msgstr "" #. Tag: para #, no-c-format msgid "The standard the resource agent conforms to. Allowed values: lsb, nagios, ocf, service, stonith, systemd, upstart classResource Resource ResourcePropertyclass Propertyclass class " msgstr "" #. Tag: para #, no-c-format msgid "type" msgstr "" #. Tag: para #, no-c-format msgid "The name of the Resource Agent you wish to use. E.g. IPaddr or Filesystem typeResource Resource ResourcePropertytype Propertytype type " msgstr "" #. Tag: para #, no-c-format msgid "provider" msgstr "" #. Tag: para #, no-c-format msgid "The OCF spec allows multiple vendors to supply the same resource agent. To use the OCF resource agents supplied by the Heartbeat project, you would specify heartbeat here. providerResource Resource ResourcePropertyprovider Propertyprovider provider " msgstr "" #. Tag: para #, no-c-format msgid "The XML definition of a resource can be queried with the crm_resource tool. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --resource Email --query-xml" msgstr "" #. Tag: para #, no-c-format msgid "might produce:" msgstr "" #. Tag: title #, no-c-format msgid "A system resource definition" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Email\" class=\"service\" type=\"exim\"/>" msgstr "" #. Tag: para #, no-c-format msgid "One of the main drawbacks to system services (LSB, systemd or Upstart) resources is that they do not allow any parameters!" msgstr "" #. Tag: title #, no-c-format msgid "An OCF resource definition" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <instance_attributes id=\"Public-IP-params\">\n" " <nvpair id=\"Public-IP-ip\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Resource Options" msgstr "" #. Tag: para #, no-c-format msgid "Resources have two types of options: meta-attributes and instance attributes. Meta-attributes apply to any type of resource, while instance attributes are specific to each resource agent." msgstr "" #. Tag: title #, no-c-format msgid "Resource Meta-Attributes" msgstr "" #. Tag: para #, no-c-format msgid "Meta-attributes are used by the cluster to decide how a resource should behave and can be easily set using the --meta option of the crm_resource command." msgstr "" #. Tag: title #, no-c-format msgid "Meta-attributes of a Primitive Resource" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: para #, no-c-format msgid "priority" msgstr "" #. Tag: para #, no-c-format msgid "0" msgstr "" #. Tag: para #, no-c-format msgid "If not all resources can be active, the cluster will stop lower priority resources in order to keep higher priority ones active. priorityResource Option Resource Option ResourceOptionpriority Optionpriority priority " msgstr "" #. Tag: para #, no-c-format msgid "target-role" msgstr "" #. Tag: para #, no-c-format -msgid "started" +msgid "Started" msgstr "" #. Tag: para #, no-c-format msgid "What state should the cluster attempt to keep this resource in? Allowed values:" msgstr "" #. Tag: para #, no-c-format -msgid "stopped: Force the resource to be stopped" +msgid "Stopped: Force the resource to be stopped" msgstr "" #. Tag: para #, no-c-format -msgid "started: Allow the resource to be started (In the case of multi-state resources, they will not be promoted to master)" +msgid "Started: Allow the resource to be started (and in the case of multi-state resources, promoted to master if appropriate)" msgstr "" #. Tag: para #, no-c-format -msgid "master: Allow the resource to be started and, if appropriate, promoted target-roleResource Option Resource Option ResourceOptiontarget-role Optiontarget-role target-role " +msgid "Slave: Allow the resource to be started, but only in Slave mode if the resource is multi-state" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Master: Equivalent to Started target-roleResource Option Resource Option ResourceOptiontarget-role Optiontarget-role target-role " msgstr "" #. Tag: para #, no-c-format msgid "is-managed" msgstr "" #. Tag: para #, no-c-format msgid "TRUE" msgstr "" #. Tag: para #, no-c-format msgid "Is the cluster allowed to start and stop the resource? Allowed values: true, false is-managedResource Option Resource Option ResourceOptionis-managed Optionis-managed is-managed " msgstr "" #. Tag: para #, no-c-format msgid "resource-stickiness" msgstr "" #. Tag: para #, no-c-format msgid "value of resource-stickiness in the rsc_defaults section" msgstr "" #. Tag: para #, no-c-format msgid "How much does the resource prefer to stay where it is? resource-stickinessResource Option Resource Option ResourceOptionresource-stickiness Optionresource-stickiness resource-stickiness " msgstr "" #. Tag: para #, no-c-format msgid "requires" msgstr "" #. Tag: para #, no-c-format msgid "fencing (unless stonith-enabled is false or class is stonith, in which case it defaults to quorum)" msgstr "" #. Tag: para #, no-c-format -msgid "Conditions under which the resource can be started (Since 1.1.8) Allowed values:" +msgid "Conditions under which the resource can be started (since 1.1.8) Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "nothing: can always be started" msgstr "" #. Tag: para #, no-c-format msgid "quorum: The cluster can only start this resource if a majority of the configured nodes are active" msgstr "" #. Tag: para #, no-c-format msgid "fencing: The cluster can only start this resource if a majority of the configured nodes are active and any failed or unknown nodes have been powered off" msgstr "" #. Tag: para #, no-c-format -msgid "unfencing: The cluster can only start this resource if a majority of the configured nodes are active and any failed or unknown nodes have been powered off and only on nodes that have been unfenced" +msgid "unfencing: The cluster can only start this resource if a majority of the configured nodes are active and any failed or unknown nodes have been powered off and only on nodes that have been unfenced (since 1.1.9)" msgstr "" #. Tag: para #, no-c-format msgid " requiresResource Option Resource Option ResourceOptionrequires Optionrequires requires " msgstr "" #. Tag: para #, no-c-format msgid "migration-threshold" msgstr "" #. Tag: para #, no-c-format msgid "INFINITY" msgstr "" #. Tag: para #, no-c-format -msgid "How many failures may occur for this resource on a node, before this node is marked ineligible to host this resource. A value of INFINITY indicates that this feature is disabled. migration-thresholdResource Option Resource Option ResourceOptionmigration-threshold Optionmigration-threshold migration-threshold " +msgid "How many failures may occur for this resource on a node, before this node is marked ineligible to host this resource. A value of 0 indicates that this feature is disabled (the node will never be marked ineligible); by constrast, the cluster treats INFINITY (the default) as a very large but finite number. This option has an effect only if the failed operation has on-fail=restart (the default), and additionally for failed start operations, if the cluster property start-failure-is-fatal is false. migration-thresholdResource Option Resource Option ResourceOptionmigration-threshold Optionmigration-threshold migration-threshold " msgstr "" #. Tag: para #, no-c-format msgid "failure-timeout" msgstr "" #. Tag: para #, no-c-format -msgid "How many seconds to wait before acting as if the failure had not occurred, and potentially allowing the resource back to the node on which it failed. A value of 0 indicates that this feature is disabled. failure-timeoutResource Option Resource Option ResourceOptionfailure-timeout Optionfailure-timeout failure-timeout " +msgid "How many seconds to wait before acting as if the failure had not occurred, and potentially allowing the resource back to the node on which it failed. A value of 0 indicates that this feature is disabled. As with any time-based actions, this is not guaranteed to be checked more frequently than the value of cluster-recheck-interval (see ). failure-timeoutResource Option Resource Option ResourceOptionfailure-timeout Optionfailure-timeout failure-timeout " msgstr "" #. Tag: para #, no-c-format msgid "multiple-active" msgstr "" #. Tag: para #, no-c-format msgid "stop_start" msgstr "" #. Tag: para #, no-c-format msgid "What should the cluster do if it ever finds the resource active on more than one node? Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "block: mark the resource as unmanaged" msgstr "" #. Tag: para #, no-c-format msgid "stop_only: stop all active instances and leave them that way" msgstr "" #. Tag: para #, no-c-format msgid "stop_start: stop all active instances and start the resource in one location only" msgstr "" #. Tag: para #, no-c-format msgid " multiple-activeResource Option Resource Option ResourceOptionmultiple-active Optionmultiple-active multiple-active " msgstr "" +#. Tag: para +#, no-c-format +msgid "allow-migrate" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TRUE for ocf:pacemaker:remote resources, FALSE otherwise" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Whether the cluster should try to \"live migrate\" this resource when it needs to be moved (see )" +msgstr "" + #. Tag: para #, no-c-format msgid "remote-node" msgstr "" #. Tag: para #, no-c-format msgid "The name of the remote-node this resource defines. This both enables the resource as a remote-node and defines the unique name used to identify the remote-node. If no other parameters are set, this value will also be assumed as the hostname to connect to at the port specified by remote-port. WARNING: This value cannot overlap with any resource or node IDs. If not specified, this feature is disabled." msgstr "" #. Tag: para #, no-c-format msgid "remote-port" msgstr "" #. Tag: para #, no-c-format msgid "3121" msgstr "" #. Tag: para #, no-c-format msgid "Port to use for the guest connection to pacemaker_remote" msgstr "" #. Tag: para #, no-c-format msgid "remote-addr" msgstr "" #. Tag: para #, no-c-format msgid "value of remote-node" msgstr "" #. Tag: para #, no-c-format msgid "The IP address or hostname to connect to if remote-node’s name is not the hostname of the guest." msgstr "" #. Tag: para #, no-c-format msgid "remote-connect-timeout" msgstr "" #. Tag: para #, no-c-format msgid "60s" msgstr "" #. Tag: para #, no-c-format msgid "How long before a pending guest connection will time out." msgstr "" #. Tag: para #, no-c-format msgid "Support for remote nodes was added in pacemaker 1.1.10. If you are using an earlier version, options related to remote nodes will not be available." msgstr "" #. Tag: para #, no-c-format msgid "As an example of setting resource options, if you performed the following commands on an LSB Email resource:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --meta --resource Email --set-parameter priority --parameter-value 100\n" "# crm_resource -m -r Email -p multiple-active -v block" msgstr "" #. Tag: para #, no-c-format msgid "the resulting resource definition might be:" msgstr "" #. Tag: title #, no-c-format msgid "An LSB resource with cluster options" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Email\" class=\"lsb\" type=\"exim\">\n" " <meta_attributes id=\"Email-meta_attributes\">\n" " <nvpair id=\"Email-meta_attributes-priority\" name=\"priority\" value=\"100\"/>\n" " <nvpair id=\"Email-meta_attributes-multiple-active\" name=\"multiple-active\" value=\"block\"/>\n" " </meta_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Setting Global Defaults for Resource Meta-Attributes" msgstr "" #. Tag: para #, no-c-format msgid "To set a default value for a resource option, add it to the rsc_defaults section with crm_attribute. For example," msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --type rsc_defaults --name is-managed --update false" msgstr "" #. Tag: para #, no-c-format msgid "would prevent the cluster from starting or stopping any of the resources in the configuration (unless of course the individual resources were specifically enabled by having their is-managed set to true)." msgstr "" #. Tag: title #, no-c-format msgid "Resource Instance Attributes" msgstr "" #. Tag: para #, no-c-format msgid "The resource agents of some resource classes (lsb, systemd and upstart not among them) can be given parameters which determine how they behave and which instance of a service they control." msgstr "" #. Tag: para #, no-c-format msgid "If your resource agent supports parameters, you can add them with the crm_resource command. For example," msgstr "" #. Tag: screen #, no-c-format msgid "# crm_resource --resource Public-IP --set-parameter ip --parameter-value 192.0.2.2" msgstr "" #. Tag: para #, no-c-format msgid "would create an entry in the resource like this:" msgstr "" #. Tag: title #, no-c-format msgid "An example OCF resource with instance attributes" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "For an OCF resource, the result would be an environment variable called OCF_RESKEY_ip with a value of 192.0.2.2." msgstr "" #. Tag: para #, no-c-format msgid "The list of instance attributes supported by an OCF resource agent can be found by calling the resource agent with the meta-data command. The output contains an XML description of all the supported attributes, their purpose and default values." msgstr "" #. Tag: title #, no-c-format msgid "Displaying the metadata for the Dummy resource agent template" msgstr "" #. Tag: screen #, no-c-format msgid "# export OCF_ROOT=/usr/lib/ocf\n" "# $OCF_ROOT/resource.d/pacemaker/Dummy meta-data" msgstr "" #. Tag: programlisting #, no-c-format msgid "<?xml version=\"1.0\"?>\n" "<!DOCTYPE resource-agent SYSTEM \"ra-api-1.dtd\">\n" "<resource-agent name=\"Dummy\" version=\"1.0\">\n" "<version>1.0</version>\n" "\n" "<longdesc>\n" "This is a Dummy Resource Agent. It does absolutely nothing except\n" "keep track of whether its running or not.\n" "Its purpose in life is for testing and to serve as a template for RA writers.\n" "\n" "NB: Please pay attention to the timeouts specified in the actions\n" "section below. They should be meaningful for the kind of resource\n" "the agent manages. They should be the minimum advised timeouts,\n" "but they shouldn't/cannot cover _all_ possible resource\n" "instances. So, try to be neither overly generous nor too stingy,\n" "but moderate. The minimum timeouts should never be below 10 seconds.\n" "</longdesc>\n" "<shortdesc>Example stateless resource agent</shortdesc>\n" "\n" "<parameters>\n" "<parameter name=\"state\" unique=\"1\">\n" "<longdesc>\n" "Location to store the resource state in.\n" "</longdesc>\n" "<shortdesc>State file</shortdesc>\n" "<content type=\"string\" default=\"/var/run/Dummy-default.state\" />\n" "</parameter>\n" "\n" "<parameter name=\"fake\" unique=\"0\">\n" "<longdesc>\n" "Fake attribute that can be changed to cause a reload\n" "</longdesc>\n" "<shortdesc>Fake attribute that can be changed to cause a reload</shortdesc>\n" "<content type=\"string\" default=\"dummy\" />\n" "</parameter>\n" "\n" "<parameter name=\"op_sleep\" unique=\"1\">\n" "<longdesc>\n" "Number of seconds to sleep during operations. This can be used to test how\n" "the cluster reacts to operation timeouts.\n" "</longdesc>\n" "<shortdesc>Operation sleep duration in seconds.</shortdesc>\n" "<content type=\"string\" default=\"0\" />\n" "</parameter>\n" "\n" "</parameters>\n" "\n" "<actions>\n" "<action name=\"start\" timeout=\"20\" />\n" "<action name=\"stop\" timeout=\"20\" />\n" "<action name=\"monitor\" timeout=\"20\" interval=\"10\" depth=\"0\"/>\n" "<action name=\"reload\" timeout=\"20\" />\n" "<action name=\"migrate_to\" timeout=\"20\" />\n" "<action name=\"migrate_from\" timeout=\"20\" />\n" "<action name=\"validate-all\" timeout=\"20\" />\n" "<action name=\"meta-data\" timeout=\"5\" />\n" "</actions>\n" "</resource-agent>" msgstr "" #. Tag: title #, no-c-format msgid "Resource Operations" msgstr "" #. Tag: para #, no-c-format msgid " ResourceAction Action " msgstr "" #. Tag: para #, no-c-format msgid "Operations are actions the cluster can perform on a resource by calling the resource agent. Resource agents must support certain common operations such as start, stop and monitor, and may implement any others." msgstr "" #. Tag: para #, no-c-format msgid "Some operations are generated by the cluster itself, for example, stopping and starting resources as needed." msgstr "" #. Tag: para #, no-c-format msgid "You can configure operations in the cluster configuration. As an example, by default the cluster will not ensure your resources stay healthy once they are started. Currently, anyway. Automatic monitoring operations may be added in a future version of Pacemaker. To instruct the cluster to do this, you need to add a monitor operation to the resource’s definition." msgstr "" #. Tag: title #, no-c-format msgid "An OCF resource with a recurring health check" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <operations>\n" " <op id=\"public-ip-check\" name=\"monitor\" interval=\"60s\"/>\n" " </operations>\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Properties of an Operation" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the operation. idAction Property Action Property ActionPropertyid Propertyid id " msgstr "" #. Tag: para #, no-c-format msgid "name" msgstr "" #. Tag: para #, no-c-format msgid "The action to perform. This can be any action supported by the agent; common values include monitor, start, and stop. nameAction Property Action Property ActionPropertyname Propertyname name " msgstr "" #. Tag: para #, no-c-format msgid "interval" msgstr "" #. Tag: para #, no-c-format msgid "How frequently (in seconds) to perform the operation. A value of 0 means never. A positive value defines a recurring action, which is typically used with monitor. intervalAction Property Action Property ActionPropertyinterval Propertyinterval interval " msgstr "" #. Tag: para #, no-c-format msgid "timeout" msgstr "" #. Tag: para #, no-c-format msgid "How long to wait before declaring the action has failed timeoutAction Property Action Property ActionPropertytimeout Propertytimeout timeout " msgstr "" #. Tag: para #, no-c-format msgid "on-fail" msgstr "" #. Tag: para #, no-c-format msgid "restart (except for stop operations, which default to fence when STONITH is enabled and block otherwise)" msgstr "" #. Tag: para #, no-c-format msgid "The action to take if this action ever fails. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "ignore: Pretend the resource did not fail." msgstr "" #. Tag: para #, no-c-format msgid "block: Don’t perform any further operations on the resource." msgstr "" #. Tag: para #, no-c-format msgid "stop: Stop the resource and do not start it elsewhere." msgstr "" #. Tag: para #, no-c-format msgid "restart: Stop the resource and start it again (possibly on a different node)." msgstr "" #. Tag: para #, no-c-format msgid "fence: STONITH the node on which the resource failed." msgstr "" #. Tag: para #, no-c-format msgid "standby: Move all resources away from the node on which the resource failed." msgstr "" #. Tag: para #, no-c-format msgid " on-failAction Property Action Property ActionPropertyon-fail Propertyon-fail on-fail " msgstr "" #. Tag: para #, no-c-format msgid "enabled" msgstr "" #. Tag: para #, no-c-format msgid "If false, ignore this operation definition. This is typically used to pause a particular recurring monitor operation; for instance, it can complement the respective resource being unmanaged (is-managed=false), as this alone will not block any configured monitoring. Disabling the operation does not suppress all actions of the given type. Allowed values: true, false. enabledAction Property Action Property ActionPropertyenabled Propertyenabled enabled " msgstr "" #. Tag: para #, no-c-format msgid "record-pending" msgstr "" +#. Tag: para +#, no-c-format +msgid "FALSE" +msgstr "" + #. Tag: para #, no-c-format msgid "If true, the intention to perform the operation is recorded so that GUIs and CLI tools can indicate that an operation is in progress. This is best set as an operation default (see next section). Allowed values: true, false. enabledAction Property Action Property ActionPropertyenabled Propertyenabled enabled " msgstr "" #. Tag: para #, no-c-format msgid "role" msgstr "" #. Tag: para #, no-c-format msgid "Run the operation only on node(s) that the cluster thinks should be in the specified role. This only makes sense for recurring monitor operations. Allowed (case-sensitive) values: Stopped, Started, and in the case of multi-state resources, Slave and Master. roleAction Property Action Property ActionPropertyrole Propertyrole role " msgstr "" #. Tag: title #, no-c-format msgid "Monitoring Resources for Failure" msgstr "" #. Tag: para #, no-c-format msgid "When Pacemaker first starts a resource, it runs one-time monitor operations (referred to as probes) to ensure the resource is running where it’s supposed to be, and not running where it’s not supposed to be. (This behavior can be affected by the resource-discovery location constraint property.)" msgstr "" #. Tag: para #, no-c-format msgid "Other than those initial probes, Pacemaker will not (by default) check that the resource continues to stay healthy. As in the example above, you must configure monitor operations explicitly to perform these checks." msgstr "" #. Tag: para #, no-c-format msgid "By default, a monitor operation will ensure that the resource is running where it is supposed to. The target-role property can be used for further checking." msgstr "" #. Tag: para #, no-c-format msgid "For example, if a resource has one monitor operation with interval=10 role=Started and a second monitor operation with interval=11 role=Stopped, the cluster will run the first monitor on any nodes it thinks should be running the resource, and the second monitor on any nodes that it thinks should not be running the resource (for the truly paranoid, who want to know when an administrator manually starts a service by mistake)." msgstr "" #. Tag: title #, no-c-format msgid "Monitoring Resources When Administration is Disabled" msgstr "" #. Tag: para #, no-c-format msgid "Recurring monitor operations behave differently under various administrative settings:" msgstr "" #. Tag: para #, no-c-format msgid "When a resource is unmanaged (by setting is-managed=false): No monitors will be stopped." msgstr "" #. Tag: para #, no-c-format msgid "If the unmanaged resource is stopped on a node where the cluster thinks it should be running, the cluster will detect and report that it is not, but it will not consider the monitor failed, and will not try to start the resource until it is managed again." msgstr "" #. Tag: para #, no-c-format msgid "Starting the unmanaged resource on a different node is strongly discouraged and will at least cause the cluster to consider the resource failed, and may require the resource’s target-role to be set to Stopped then Started to be recovered." msgstr "" #. Tag: para #, no-c-format msgid "When a node is put into standby: All resources will be moved away from the node, and all monitor operations will be stopped on the node, except those with role=Stopped. Monitor operations with role=Stopped will be started on the node if appropriate." msgstr "" #. Tag: para #, no-c-format msgid "When the cluster is put into maintenance mode: All resources will be marked as unmanaged. All monitor operations will be stopped, except those with role=Stopped. As with single unmanaged resources, starting a resource on a node other than where the cluster expects it to be will cause problems." msgstr "" #. Tag: title #, no-c-format msgid "Setting Global Defaults for Operations" msgstr "" #. Tag: para #, no-c-format msgid "You can change the global default values for operation properties in a given cluster. These are defined in an op_defaults section of the CIB’s configuration section, and can be set with crm_attribute. For example," msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --type op_defaults --name timeout --update 20s" msgstr "" #. Tag: para #, no-c-format msgid "would default each operation’s timeout to 20 seconds. If an operation’s definition also includes a value for timeout, then that value would be used for that operation instead." msgstr "" #. Tag: title #, no-c-format msgid "When Implicit Operations Take a Long Time" msgstr "" #. Tag: para #, no-c-format msgid "The cluster will always perform a number of implicit operations: start, stop and a non-recurring monitor operation used at startup to check whether the resource is already active. If one of these is taking too long, then you can create an entry for them and specify a longer timeout." msgstr "" #. Tag: title #, no-c-format msgid "An OCF resource with custom timeouts for its implicit actions" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <operations>\n" " <op id=\"public-ip-startup\" name=\"monitor\" interval=\"0\" timeout=\"90s\"/>\n" " <op id=\"public-ip-start\" name=\"start\" interval=\"0\" timeout=\"180s\"/>\n" " <op id=\"public-ip-stop\" name=\"stop\" interval=\"0\" timeout=\"15min\"/>\n" " </operations>\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Multiple Monitor Operations" msgstr "" #. Tag: para #, no-c-format msgid "Provided no two operations (for a single resource) have the same name and interval, you can have as many monitor operations as you like. In this way, you can do a superficial health check every minute and progressively more intense ones at higher intervals." msgstr "" #. Tag: para #, no-c-format msgid "To tell the resource agent what kind of check to perform, you need to provide each monitor with a different value for a common parameter. The OCF standard creates a special parameter called OCF_CHECK_LEVEL for this purpose and dictates that it is \"made available to the resource agent without the normal OCF_RESKEY prefix\"." msgstr "" #. Tag: para #, no-c-format msgid "Whatever name you choose, you can specify it by adding an instance_attributes block to the op tag. It is up to each resource agent to look for the parameter and decide how to use it." msgstr "" #. Tag: title #, no-c-format msgid "An OCF resource with two recurring health checks, performing different levels of checks specified via OCF_CHECK_LEVEL." msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <operations>\n" " <op id=\"public-ip-health-60\" name=\"monitor\" interval=\"60\">\n" " <instance_attributes id=\"params-public-ip-depth-60\">\n" " <nvpair id=\"public-ip-depth-60\" name=\"OCF_CHECK_LEVEL\" value=\"10\"/>\n" " </instance_attributes>\n" " </op>\n" " <op id=\"public-ip-health-300\" name=\"monitor\" interval=\"300\">\n" " <instance_attributes id=\"params-public-ip-depth-300\">\n" " <nvpair id=\"public-ip-depth-300\" name=\"OCF_CHECK_LEVEL\" value=\"20\"/>\n" -" </instance_attributes>\n" +" </instance_attributes>\n" " </op>\n" " </operations>\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-level\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Disabling a Monitor Operation" msgstr "" #. Tag: para #, no-c-format msgid "The easiest way to stop a recurring monitor is to just delete it. However, there can be times when you only want to disable it temporarily. In such cases, simply add enabled=\"false\" to the operation’s definition." msgstr "" #. Tag: title #, no-c-format msgid "Example of an OCF resource with a disabled health check" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Public-IP\" class=\"ocf\" type=\"IPaddr\" provider=\"heartbeat\">\n" " <operations>\n" " <op id=\"public-ip-check\" name=\"monitor\" interval=\"60s\" enabled=\"false\"/>\n" " </operations>\n" " <instance_attributes id=\"params-public-ip\">\n" " <nvpair id=\"public-ip-addr\" name=\"ip\" value=\"192.0.2.2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "This can be achieved from the command line by executing:" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin --modify --xml-text '<op id=\"public-ip-check\" enabled=\"false\"/>'" msgstr "" #. Tag: para #, no-c-format msgid "Once you’ve done whatever you needed to do, you can then re-enable it with" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin --modify --xml-text '<op id=\"public-ip-check\" enabled=\"true\"/>'" msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Rules.pot b/doc/Pacemaker_Explained/pot/Ch-Rules.pot index f97eb12b36..a1f76f423d 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Rules.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Rules.pot @@ -1,807 +1,857 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Rules" msgstr "" #. Tag: para #, no-c-format msgid " ResourceConstraintRule ConstraintRule Rule " msgstr "" #. Tag: para #, no-c-format msgid "Rules can be used to make your configuration more dynamic. One common example is to set one value for resource-stickiness during working hours, to prevent resources from being moved back to their most preferred location, and another on weekends when no-one is around to notice an outage." msgstr "" #. Tag: para #, no-c-format msgid "Another use of rules might be to assign machines to different processing groups (using a node attribute) based on time and to then use that attribute when creating location constraints." msgstr "" #. Tag: para #, no-c-format msgid "Each rule can contain a number of expressions, date-expressions and even other rules. The results of the expressions are combined based on the rule’s boolean-op field to determine if the rule ultimately evaluates to true or false. What happens next depends on the context in which the rule is being used." msgstr "" #. Tag: title #, no-c-format msgid "Rule Properties" msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Rule" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "role" msgstr "" #. Tag: para #, no-c-format -msgid "started" +msgid "Started" msgstr "" #. Tag: para #, no-c-format -msgid "Limits the rule to apply only when the resource is in the specified role. Allowed values are started, slave, and master. A rule with role=\"master\" cannot determine the initial location of a clone instance and will only affect which of the active instances will be promoted. roleConstraint Rule Constraint Rule ConstraintRulerole Rulerole role " +msgid "Limits the rule to apply only when the resource is in the specified role. Allowed values are Started, Slave, and Master. A rule with role=\"Master\" cannot determine the initial location of a clone instance and will only affect which of the active instances will be promoted. roleConstraint Rule Constraint Rule ConstraintRulerole Rulerole role " msgstr "" #. Tag: para #, no-c-format msgid "score" msgstr "" #. Tag: para #, no-c-format msgid "The score to apply if the rule evaluates to true. Limited to use in rules that are part of location constraints. scoreConstraint Rule Constraint Rule ConstraintRulescore Rulescore score " msgstr "" #. Tag: para #, no-c-format msgid "score-attribute" msgstr "" #. Tag: para #, no-c-format msgid "The node attribute to look up and use as a score if the rule evaluates to true. Limited to use in rules that are part of location constraints. score-attributeConstraint Rule Constraint Rule ConstraintRulescore-attribute Rulescore-attribute score-attribute " msgstr "" #. Tag: para #, no-c-format msgid "boolean-op" msgstr "" #. Tag: para #, no-c-format msgid "and" msgstr "" #. Tag: para #, no-c-format msgid "How to combine the result of multiple expression objects. Allowed values are and and or. boolean-opConstraint Rule Constraint Rule ConstraintRuleboolean-op Ruleboolean-op boolean-op " msgstr "" #. Tag: title #, no-c-format msgid "Node Attribute Expressions" msgstr "" #. Tag: para #, no-c-format msgid " ResourceConstraintAttribute Expression ConstraintAttribute Expression Attribute Expression " msgstr "" #. Tag: para #, no-c-format -msgid "Expression objects are used to control a resource based on the attributes defined by a node or nodes. In addition to any attributes added by the administrator, each node has a built-in node attribute called #uname that can also be used." +msgid "Expression objects are used to control a resource based on the attributes defined by a node or nodes." msgstr "" #. Tag: title #, no-c-format msgid "Properties of an Expression" msgstr "" #. Tag: para #, no-c-format msgid "value" msgstr "" #. Tag: para #, no-c-format msgid "User-supplied value for comparison valueConstraint Expression Constraint Expression ConstraintAttribute Expressionvalue Attribute Expressionvalue value " msgstr "" #. Tag: para #, no-c-format msgid "attribute" msgstr "" #. Tag: para #, no-c-format msgid "The node attribute to test attributeConstraint Expression Constraint Expression ConstraintAttribute Expressionattribute Attribute Expressionattribute attribute " msgstr "" #. Tag: para #, no-c-format msgid "type" msgstr "" #. Tag: para #, no-c-format msgid "string" msgstr "" #. Tag: para #, no-c-format msgid "Determines how the value(s) should be tested. Allowed values are string, integer, and version. typeConstraint Expression Constraint Expression ConstraintAttribute Expressiontype Attribute Expressiontype type " msgstr "" #. Tag: para #, no-c-format msgid "operation" msgstr "" #. Tag: para #, no-c-format msgid "The comparison to perform. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "lt: True if the value of the node’s attribute is less than value" msgstr "" #. Tag: para #, no-c-format msgid "gt: True if the value of the node’s attribute is greater than value" msgstr "" #. Tag: para #, no-c-format msgid "lte: True if the value of the node’s attribute is less than or equal to value" msgstr "" #. Tag: para #, no-c-format msgid "gte: True if the value of the node’s attribute is greater than or equal to value" msgstr "" #. Tag: para #, no-c-format msgid "eq: True if the value of the node’s attribute is equal to value" msgstr "" #. Tag: para #, no-c-format msgid "ne: True if the value of the node’s attribute is not equal to value" msgstr "" #. Tag: para #, no-c-format msgid "defined: True if the node has the named attribute" msgstr "" #. Tag: para #, no-c-format msgid "not_defined: True if the node does not have the named attribute operationConstraint Expression Constraint Expression ConstraintAttribute Expressionoperation Attribute Expressionoperation operation " msgstr "" +#. Tag: para +#, no-c-format +msgid "In addition to any attributes added by the administrator, the cluster defines special, built-in node attributes for each node that can also be used." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Built-in node attributes" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Name" +msgstr "" + +#. Tag: entry +#, no-c-format +msgid "Value" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "#uname" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Node name" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "#kind" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Node type. Possible values are cluster, remote, and container. Kind is remote for Pacemaker Remote nodes created with the ocf:pacemaker:remote resource, and container for Pacemaker Remote guest nodes (a legacy name unrelated to the now-common use of \"container\" for resource isolation). (since 1.1.13)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "#ra-version" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The installed version of the resource agent on the node, as defined by the version attribute of the resource-agent tag in the agent’s metadata. Valid only within rules controlling resource options. This can be useful during rolling upgrades of a backward-incompatible resource agent. (coming in 1.1.17)" +msgstr "" + #. Tag: title #, no-c-format msgid "Time- and Date-Based Expressions" msgstr "" #. Tag: para #, no-c-format msgid " Time Based Expressions ResourceConstraintDate/Time Expression ConstraintDate/Time Expression Date/Time Expression " msgstr "" #. Tag: para #, no-c-format msgid "As the name suggests, date_expressions are used to control a resource or cluster option based on the current date/time. They may contain an optional date_spec and/or duration object depending on the context." msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Date Expression" msgstr "" #. Tag: para #, no-c-format msgid "start" msgstr "" #. Tag: para #, no-c-format msgid "A date/time conforming to the ISO8601 specification. startConstraint Expression Constraint Expression ConstraintDate/Time Expressionstart Date/Time Expressionstart start " msgstr "" #. Tag: para #, no-c-format msgid "end" msgstr "" #. Tag: para #, no-c-format msgid "A date/time conforming to the ISO8601 specification. Can be inferred by supplying a value for start and a duration. endConstraint Expression Constraint Expression ConstraintDate/Time Expressionend Date/Time Expressionend end " msgstr "" #. Tag: para #, no-c-format msgid "Compares the current date/time with the start and/or end date, depending on the context. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "gt: True if the current date/time is after start" msgstr "" #. Tag: para #, no-c-format msgid "lt: True if the current date/time is before end" msgstr "" #. Tag: para #, no-c-format -msgid "in-range: True if the current date/time is after start and before end" +msgid "in_range: True if the current date/time is after start and before end" msgstr "" #. Tag: para #, no-c-format -msgid "date-spec: True if the current date/time matches a date_spec object (described below) operationConstraint Expression Constraint Expression ConstraintDate/Time Expressionoperation Date/Time Expressionoperation operation " +msgid "date_spec: True if the current date/time matches a date_spec object (described below) operationConstraint Expression Constraint Expression ConstraintDate/Time Expressionoperation Date/Time Expressionoperation operation " msgstr "" #. Tag: para #, no-c-format msgid "As these comparisons (except for date_spec) include the time, the eq, neq, gte and lte operators have not been implemented since they would only be valid for a single second." msgstr "" #. Tag: title #, no-c-format msgid "Date Specifications" msgstr "" #. Tag: para #, no-c-format msgid " Date Specification ResourceConstraintDate Specification ConstraintDate Specification Date Specification " msgstr "" #. Tag: para #, no-c-format msgid "date_spec objects are used to create cron-like expressions relating to time. Each field can contain a single number or a single range. Instead of defaulting to zero, any field not supplied is ignored." msgstr "" #. Tag: para #, no-c-format msgid "For example, monthdays=\"1\" matches the first day of every month and hours=\"09-17\" matches the hours between 9am and 5pm (inclusive). At this time, multiple ranges (e.g. weekdays=\"1,2\" or weekdays=\"1-2,5-6\") are not supported; depending on demand, this might be implemented in a future release." msgstr "" #. Tag: title #, no-c-format msgid "Properties of a Date Specification" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the object idDate Specification Date Specification ConstraintDate Specificationid Date Specificationid id " msgstr "" #. Tag: para #, no-c-format msgid "hours" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 0-23 hoursDate Specification Date Specification ConstraintDate Specificationhours Date Specificationhours hours " msgstr "" #. Tag: para #, no-c-format msgid "monthdays" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 1-31 (depending on month and year) monthdaysDate Specification Date Specification ConstraintDate Specificationmonthdays Date Specificationmonthdays monthdays " msgstr "" #. Tag: para #, no-c-format msgid "weekdays" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 1-7 (1=Monday, 7=Sunday) weekdaysDate Specification Date Specification ConstraintDate Specificationweekdays Date Specificationweekdays weekdays " msgstr "" #. Tag: para #, no-c-format msgid "yeardays" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 1-366 (depending on the year) yeardaysDate Specification Date Specification ConstraintDate Specificationyeardays Date Specificationyeardays yeardays " msgstr "" #. Tag: para #, no-c-format msgid "months" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 1-12 monthsDate Specification Date Specification ConstraintDate Specificationmonths Date Specificationmonths months " msgstr "" #. Tag: para #, no-c-format msgid "weeks" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values: 1-53 (depending on weekyear) weeksDate Specification Date Specification ConstraintDate Specificationweeks Date Specificationweeks weeks " msgstr "" #. Tag: para #, no-c-format msgid "years" msgstr "" #. Tag: para #, no-c-format msgid "Year according to the Gregorian calendar yearsDate Specification Date Specification ConstraintDate Specificationyears Date Specificationyears years " msgstr "" #. Tag: para #, no-c-format msgid "weekyears" msgstr "" #. Tag: para #, no-c-format msgid "Year in which the week started; e.g. 1 January 2005 can be specified as 2005-001 Ordinal, 2005-01-01 Gregorian or 2004-W53-6 Weekly and thus would match years=\"2005\" or weekyears=\"2004\" weekyearsDate Specification Date Specification ConstraintDate Specificationweekyears Date Specificationweekyears weekyears " msgstr "" #. Tag: para #, no-c-format msgid "moon" msgstr "" #. Tag: para #, no-c-format msgid "Allowed values are 0-7 (0 is new, 4 is full moon). Seriously, you can use this. This was implemented to demonstrate the ease with which new comparisons could be added. moonDate Specification Date Specification ConstraintDate Specificationmoon Date Specificationmoon moon " msgstr "" #. Tag: title #, no-c-format msgid "Durations" msgstr "" #. Tag: para #, no-c-format msgid " Duration ResourceConstraintDuration ConstraintDuration Duration " msgstr "" #. Tag: para #, no-c-format -msgid "Durations are used to calculate a value for end when one is not supplied to in-range operations. They contain the same fields as date_spec objects but without the limitations (e.g. you can have a duration of 19 months). As with date_specs, any field not supplied is ignored." +msgid "Durations are used to calculate a value for end when one is not supplied to in_range operations. They contain the same fields as date_spec objects but without the limitations (e.g. you can have a duration of 19 months). As with date_specs, any field not supplied is ignored." msgstr "" #. Tag: title #, no-c-format msgid "Sample Time-Based Expressions" msgstr "" #. Tag: para #, no-c-format msgid "A small sample of how time-based expressions can be used:" msgstr "" #. Tag: title #, no-c-format msgid "True if now is any time in the year 2005" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule1\">\n" " <date_expression id=\"date_expr1\" start=\"2005-001\" operation=\"in_range\">\n" " <duration years=\"1\"/>\n" " </date_expression>\n" "</rule>" msgstr "" #. Tag: title #, no-c-format msgid "Equivalent expression" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule2\">\n" " <date_expression id=\"date_expr2\" operation=\"date_spec\">\n" " <date_spec years=\"2005\"/>\n" " </date_expression>\n" "</rule>" msgstr "" #. Tag: title #, no-c-format msgid "9am-5pm Monday-Friday" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule3\">\n" " <date_expression id=\"date_expr3\" operation=\"date_spec\">\n" " <date_spec hours=\"9-16\" days=\"1-5\"/>\n" " </date_expression>\n" "</rule>" msgstr "" #. Tag: para #, no-c-format msgid "Please note that the 16 matches up to 16:59:59, as the numeric value (hour) still matches!" msgstr "" #. Tag: title #, no-c-format msgid "9am-6pm Monday through Friday or anytime Saturday" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule4\" boolean_op=\"or\">\n" " <date_expression id=\"date_expr4-1\" operation=\"date_spec\">\n" " <date_spec hours=\"9-16\" days=\"1-5\"/>\n" " </date_expression>\n" " <date_expression id=\"date_expr4-2\" operation=\"date_spec\">\n" " <date_spec days=\"6\"/>\n" " </date_expression>\n" "</rule>" msgstr "" #. Tag: title #, no-c-format msgid "9am-5pm or 9pm-12am Monday through Friday" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule5\" boolean_op=\"and\">\n" " <rule id=\"rule5-nested1\" boolean_op=\"or\">\n" " <date_expression id=\"date_expr5-1\" operation=\"date_spec\">\n" " <date_spec hours=\"9-16\"/>\n" " </date_expression>\n" " <date_expression id=\"date_expr5-2\" operation=\"date_spec\">\n" " <date_spec hours=\"21-23\"/>\n" " </date_expression>\n" " </rule>\n" " <date_expression id=\"date_expr5-3\" operation=\"date_spec\">\n" " <date_spec days=\"1-5\"/>\n" " </date_expression>\n" " </rule>" msgstr "" #. Tag: title #, no-c-format msgid "Mondays in March 2005" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule6\" boolean_op=\"and\">\n" " <date_expression id=\"date_expr6-1\" operation=\"date_spec\">\n" " <date_spec weekdays=\"1\"/>\n" " </date_expression>\n" " <date_expression id=\"date_expr6-2\" operation=\"in_range\"\n" " start=\"2005-03-01\" end=\"2005-04-01\"/>\n" " </rule>" msgstr "" #. Tag: para #, no-c-format msgid "Because no time is specified with the above dates, 00:00:00 is implied. This means that the range includes all of 2005-03-01 but none of 2005-04-01. You may wish to write end=\"2005-03-31T23:59:59\" to avoid confusion." msgstr "" #. Tag: title #, no-c-format msgid "A full moon on Friday the 13th" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"rule7\" boolean_op=\"and\">\n" " <date_expression id=\"date_expr7\" operation=\"date_spec\">\n" " <date_spec weekdays=\"5\" monthdays=\"13\" moon=\"4\"/>\n" " </date_expression>\n" "</rule>" msgstr "" #. Tag: title #, no-c-format msgid "Using Rules to Determine Resource Location" msgstr "" #. Tag: para #, no-c-format msgid " RuleDetermine Resource Location Determine Resource Location ResourceLocationDetermine by Rules LocationDetermine by Rules Determine by Rules " msgstr "" #. Tag: para #, no-c-format msgid "A location constraint may contain rules. When the constraint’s outermost rule evaluates to false, the cluster treats the constraint as if it were not there. When the rule evaluates to true, the node’s preference for running the resource is updated with the score associated with the rule." msgstr "" #. Tag: para #, no-c-format msgid "If this sounds familiar, it is because you have been using a simplified syntax for location constraint rules already. Consider the following location constraint:" msgstr "" #. Tag: title #, no-c-format msgid "Prevent myApacheRsc from running on c001n03" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"dont-run-apache-on-c001n03\" rsc=\"myApacheRsc\"\n" " score=\"-INFINITY\" node=\"c001n03\"/>" msgstr "" #. Tag: para #, no-c-format msgid "This constraint can be more verbosely written as:" msgstr "" #. Tag: title #, no-c-format msgid "Prevent myApacheRsc from running on c001n03 - expanded version" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_location id=\"dont-run-apache-on-c001n03\" rsc=\"myApacheRsc\">\n" " <rule id=\"dont-run-apache-rule\" score=\"-INFINITY\">\n" " <expression id=\"dont-run-apache-expr\" attribute=\"#uname\"\n" " operation=\"eq\" value=\"c00n03\"/>\n" " </rule>\n" "</rsc_location>" msgstr "" #. Tag: para #, no-c-format msgid "The advantage of using the expanded form is that one can then add extra clauses to the rule, such as limiting the rule such that it only applies during certain times of the day or days of the week." msgstr "" #. Tag: title #, no-c-format msgid "Location Rules Based on Other Node Properties" msgstr "" #. Tag: para #, no-c-format msgid "The expanded form allows us to match on node properties other than its name. If we rated each machine’s CPU power such that the cluster had the following nodes section:" msgstr "" #. Tag: title #, no-c-format msgid "A sample nodes section for use with score-attribute" msgstr "" #. Tag: programlisting #, no-c-format msgid "<nodes>\n" " <node id=\"uuid1\" uname=\"c001n01\" type=\"normal\">\n" " <instance_attributes id=\"uuid1-custom_attrs\">\n" " <nvpair id=\"uuid1-cpu_mips\" name=\"cpu_mips\" value=\"1234\"/>\n" " </instance_attributes>\n" " </node>\n" " <node id=\"uuid2\" uname=\"c001n02\" type=\"normal\">\n" " <instance_attributes id=\"uuid2-custom_attrs\">\n" " <nvpair id=\"uuid2-cpu_mips\" name=\"cpu_mips\" value=\"5678\"/>\n" " </instance_attributes>\n" " </node>\n" "</nodes>" msgstr "" #. Tag: para #, no-c-format msgid "then we could prevent resources from running on underpowered machines with this rule:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rule id=\"need-more-power-rule\" score=\"-INFINITY\">\n" " <expression id=\"need-more-power-expr\" attribute=\"cpu_mips\"\n" " operation=\"lt\" value=\"3000\"/>\n" "</rule>" msgstr "" #. Tag: title #, no-c-format msgid "Using score-attribute Instead of score" msgstr "" #. Tag: para #, no-c-format msgid "When using score-attribute instead of score, each node matched by the rule has its score adjusted differently, according to its value for the named node attribute. Thus, in the previous example, if a rule used score-attribute=\"cpu_mips\", c001n01 would have its preference to run the resource increased by 1234 whereas c001n02 would have its preference increased by 5678." msgstr "" #. Tag: title #, no-c-format msgid "Using Rules to Control Resource Options" msgstr "" #. Tag: para #, no-c-format msgid "Often some cluster nodes will be different from their peers. Sometimes, these differences — e.g. the location of a binary or the names of network interfaces — require resources to be configured differently depending on the machine they’re hosted on." msgstr "" #. Tag: para #, no-c-format msgid "By defining multiple instance_attributes objects for the resource and adding a rule to each, we can easily handle these special cases." msgstr "" #. Tag: para #, no-c-format msgid "In the example below, mySpecialRsc will use eth1 and port 9999 when run on node1, eth2 and port 8888 on node2 and default to eth0 and port 9999 for all other nodes." msgstr "" #. Tag: title #, no-c-format msgid "Defining different resource options based on the node name" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"mySpecialRsc\" class=\"ocf\" type=\"Special\" provider=\"me\">\n" " <instance_attributes id=\"special-node1\" score=\"3\">\n" " <rule id=\"node1-special-case\" score=\"INFINITY\" >\n" " <expression id=\"node1-special-case-expr\" attribute=\"#uname\"\n" " operation=\"eq\" value=\"node1\"/>\n" " </rule>\n" " <nvpair id=\"node1-interface\" name=\"interface\" value=\"eth1\"/>\n" " </instance_attributes>\n" " <instance_attributes id=\"special-node2\" score=\"2\" >\n" " <rule id=\"node2-special-case\" score=\"INFINITY\">\n" " <expression id=\"node2-special-case-expr\" attribute=\"#uname\"\n" " operation=\"eq\" value=\"node2\"/>\n" " </rule>\n" " <nvpair id=\"node2-interface\" name=\"interface\" value=\"eth2\"/>\n" " <nvpair id=\"node2-port\" name=\"port\" value=\"8888\"/>\n" " </instance_attributes>\n" " <instance_attributes id=\"defaults\" score=\"1\" >\n" " <nvpair id=\"default-interface\" name=\"interface\" value=\"eth0\"/>\n" " <nvpair id=\"default-port\" name=\"port\" value=\"9999\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "The order in which instance_attributes objects are evaluated is determined by their score (highest to lowest). If not supplied, score defaults to zero, and objects with an equal score are processed in listed order. If the instance_attributes object has no rule or a rule that evaluates to true, then for any parameter the resource does not yet have a value for, the resource will use the parameter values defined by the instance_attributes." msgstr "" #. Tag: para #, no-c-format msgid "For example, given the configuration above, if the resource is placed on node1:" msgstr "" #. Tag: para #, no-c-format msgid "special-node1 has the highest score (3) and so is evaluated first; its rule evaluates to true, so interface is set to eth1." msgstr "" #. Tag: para #, no-c-format msgid "special-node2 is evaluated next with score 2, but its rule evaluates to false, so it is ignored." msgstr "" #. Tag: para #, no-c-format msgid "defaults is evaluated last with score 1, and has no rule, so its values are examined; interface is already defined, so the value here is not used, but port is not yet defined, so port is set to 9999." msgstr "" #. Tag: title #, no-c-format msgid "Using Rules to Control Cluster Options" msgstr "" #. Tag: para #, no-c-format msgid " RuleControlling Cluster Options Controlling Cluster Options ClusterSetting Options with Rules Setting Options with Rules " msgstr "" #. Tag: para #, no-c-format msgid "Controlling cluster options is achieved in much the same manner as specifying different resource options on different nodes." msgstr "" #. Tag: para #, no-c-format msgid "The difference is that because they are cluster options, one cannot (or should not, because they won’t work) use attribute-based expressions. The following example illustrates how to set a different resource-stickiness value during and outside work hours. This allows resources to automatically move back to their most preferred hosts, but at a time that (in theory) does not interfere with business activities." msgstr "" #. Tag: title #, no-c-format msgid "Change resource-stickiness during working hours" msgstr "" #. Tag: programlisting #, no-c-format msgid "<rsc_defaults>\n" " <meta_attributes id=\"core-hours\" score=\"2\">\n" " <rule id=\"core-hour-rule\" score=\"0\">\n" " <date_expression id=\"nine-to-five-Mon-to-Fri\" operation=\"date_spec\">\n" " <date_spec id=\"nine-to-five-Mon-to-Fri-spec\" hours=\"9-16\" weekdays=\"1-5\"/>\n" " </date_expression>\n" " </rule>\n" " <nvpair id=\"core-stickiness\" name=\"resource-stickiness\" value=\"INFINITY\"/>\n" " </meta_attributes>\n" " <meta_attributes id=\"after-hours\" score=\"1\" >\n" " <nvpair id=\"after-stickiness\" name=\"resource-stickiness\" value=\"0\"/>\n" " </meta_attributes>\n" "</rsc_defaults>" msgstr "" #. Tag: title #, no-c-format msgid "Ensuring Time-Based Rules Take Effect" msgstr "" #. Tag: para #, no-c-format msgid "A Pacemaker cluster is an event-driven system. As such, it won’t recalculate the best place for resources to run unless something (like a resource failure or configuration change) happens. This can mean that a location constraint that only allows resource X to run between 9am and 5pm is not enforced." msgstr "" #. Tag: para #, no-c-format msgid "If you rely on time-based rules, the cluster-recheck-interval cluster option (which defaults to 15 minutes) is essential. This tells the cluster to periodically recalculate the ideal state of the cluster." msgstr "" #. Tag: para #, no-c-format msgid "For example, if you set cluster-recheck-interval=\"5m\", then sometime between 09:00 and 09:05 the cluster would notice that it needs to start resource X, and between 17:00 and 17:05 it would realize that X needed to be stopped. The timing of the actual start and stop actions depends on what other actions the cluster may need to perform first." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Status.pot b/doc/Pacemaker_Explained/pot/Ch-Status.pot index 8c4f651df1..38e1754f8c 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Status.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Status.pot @@ -1,632 +1,632 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Status — Here be dragons" msgstr "" #. Tag: para #, no-c-format msgid "Most users never need to understand the contents of the status section and can be happy with the output from crm_mon." msgstr "" #. Tag: para #, no-c-format msgid "However for those with a curious inclination, this section attempts to provide an overview of its contents." msgstr "" #. Tag: title #, no-c-format msgid "Node Status" msgstr "" #. Tag: para #, no-c-format msgid " NodeStatus Status Status of a Node " msgstr "" #. Tag: para #, no-c-format msgid "In addition to the cluster’s configuration, the CIB holds an up-to-date representation of each cluster node in the status section." msgstr "" #. Tag: title #, no-c-format msgid "A bare-bones status entry for a healthy node cl-virt-1" msgstr "" #. Tag: programlisting #, no-c-format msgid " <node_state id=\"cl-virt-1\" uname=\"cl-virt-2\" ha=\"active\" in_ccm=\"true\" crmd=\"online\" join=\"member\" expected=\"member\" crm-debug-origin=\"do_update_resource\">\n" " <transient_attributes id=\"cl-virt-1\"/>\n" " <lrm id=\"cl-virt-1\"/>\n" " </node_state>" msgstr "" #. Tag: para #, no-c-format msgid "Users are highly recommended not to modify any part of a node’s state directly. The cluster will periodically regenerate the entire section from authoritative sources, so any changes should be done with the tools appropriate to those sources." msgstr "" #. Tag: title #, no-c-format msgid "Authoritative Sources for State Information" msgstr "" #. Tag: entry #, no-c-format msgid "CIB Object" msgstr "" #. Tag: entry #, no-c-format msgid "Authoritative Source" msgstr "" #. Tag: para #, no-c-format msgid "node_state" msgstr "" #. Tag: para #, no-c-format msgid "crmd" msgstr "" #. Tag: para #, no-c-format msgid "transient_attributes" msgstr "" #. Tag: para #, no-c-format msgid "attrd" msgstr "" #. Tag: para #, no-c-format msgid "lrm" msgstr "" #. Tag: para #, no-c-format msgid "lrmd" msgstr "" #. Tag: para #, no-c-format msgid "The fields used in the node_state objects are named as they are largely for historical reasons and are rooted in Pacemaker’s origins as the Heartbeat resource manager. They have remained unchanged to preserve compatibility with older versions." msgstr "" #. Tag: title #, no-c-format msgid "Node Status Fields" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid " idNode Status Node Status NodeStatusid Statusid id Unique identifier for the node. Corosync-based clusters use a numeric counter, while Heartbeat clusters use a (barely) human-readable UUID." msgstr "" #. Tag: para #, no-c-format msgid "uname" msgstr "" #. Tag: para #, no-c-format msgid " unameNode Status Node Status NodeStatusuname Statusuname uname The node’s machine name (output from uname -n)." msgstr "" #. Tag: para #, no-c-format msgid "ha" msgstr "" #. Tag: para #, no-c-format msgid " haNode Status Node Status NodeStatusha Statusha ha Is the cluster software active on this node? Allowed values: active, dead." msgstr "" #. Tag: para #, no-c-format msgid "in_ccm" msgstr "" #. Tag: para #, no-c-format msgid " in_ccmNode Status Node Status NodeStatusin_ccm Statusin_ccm in_ccm Is the node a member of the cluster? Allowed values: true, false." msgstr "" #. Tag: para #, no-c-format msgid "crmd" msgstr "" #. Tag: para #, no-c-format msgid " crmdNode Status Node Status NodeStatuscrmd Statuscrmd crmd Is the crmd process active on the node? Allowed values: online, offline." msgstr "" #. Tag: para #, no-c-format msgid "join" msgstr "" #. Tag: para #, no-c-format msgid " joinNode Status Node Status NodeStatusjoin Statusjoin join Does the node participate in hosting resources? Allowed values: down, pending, member, banned." msgstr "" #. Tag: para #, no-c-format msgid "expected" msgstr "" #. Tag: para #, no-c-format msgid " expectedNode Status Node Status NodeStatusexpected Statusexpected expected Expected value for join." msgstr "" #. Tag: para #, no-c-format msgid "crm-debug-origin" msgstr "" #. Tag: para #, no-c-format msgid " crm-debug-originNode Status Node Status NodeStatuscrm-debug-origin Statuscrm-debug-origin crm-debug-origin The origin of the most recent change(s). For diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "The cluster uses these fields to determine whether, at the node level, the node is healthy or is in a failed state and needs to be fenced." msgstr "" #. Tag: title #, no-c-format msgid "Transient Node Attributes" msgstr "" #. Tag: para #, no-c-format msgid "Like regular node attributes, the name/value pairs listed in the transient_attributes section help to describe the node. However they are forgotten by the cluster when the node goes offline. This can be useful, for instance, when you want a node to be in standby mode (not able to run resources) just until the next reboot." msgstr "" #. Tag: para #, no-c-format msgid "In addition to any values the administrator sets, the cluster will also store information about failed resources here." msgstr "" #. Tag: title #, no-c-format msgid "A set of transient node attributes for node cl-virt-1" msgstr "" #. Tag: programlisting #, no-c-format msgid "<transient_attributes id=\"cl-virt-1\">\n" " <instance_attributes id=\"status-cl-virt-1\">\n" " <nvpair id=\"status-cl-virt-1-pingd\" name=\"pingd\" value=\"3\"/>\n" " <nvpair id=\"status-cl-virt-1-probe_complete\" name=\"probe_complete\" value=\"true\"/>\n" " <nvpair id=\"status-cl-virt-1-fail-count-pingd:0\" name=\"fail-count-pingd:0\" value=\"1\"/>\n" " <nvpair id=\"status-cl-virt-1-last-failure-pingd:0\" name=\"last-failure-pingd:0\" value=\"1239009742\"/>\n" " </instance_attributes>\n" "</transient_attributes>" msgstr "" #. Tag: para #, no-c-format msgid "In the above example, we can see that the pingd:0 resource has failed once, at 09:22:22 UTC 6 April 2009. You can use the standard date command to print a human-readable version of any seconds-since-epoch value, for example date -d @1239009742. We also see that the node is connected to three pingd peers and that all known resources have been checked for on this machine (probe_complete)." msgstr "" #. Tag: title #, no-c-format msgid "Operation History" msgstr "" #. Tag: para #, no-c-format msgid " Operation History " msgstr "" #. Tag: para #, no-c-format msgid "A node’s resource history is held in the lrm_resources tag (a child of the lrm tag). The information stored here includes enough information for the cluster to stop the resource safely if it is removed from the configuration section. Specifically, the resource’s id, class, type and provider are stored." msgstr "" #. Tag: title #, no-c-format msgid "A record of the apcstonith resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<lrm_resource id=\"apcstonith\" type=\"apcmastersnmp\" class=\"stonith\"/>" msgstr "" #. Tag: para #, no-c-format msgid "Additionally, we store the last job for every combination of resource, action and interval. The concatenation of the values in this tuple are used to create the id of the lrm_rsc_op object." msgstr "" #. Tag: title #, no-c-format msgid "Contents of an lrm_rsc_op job" msgstr "" #. Tag: para #, no-c-format msgid " idAction Status Action Status ActionStatusid Statusid id " msgstr "" #. Tag: para #, no-c-format msgid "Identifier for the job constructed from the resource’s id, operation and interval." msgstr "" #. Tag: para #, no-c-format msgid "call-id" msgstr "" #. Tag: para #, no-c-format msgid " call-idAction Status Action Status ActionStatuscall-id Statuscall-id call-id " msgstr "" #. Tag: para #, no-c-format msgid "The job’s ticket number. Used as a sort key to determine the order in which the jobs were executed." msgstr "" #. Tag: para #, no-c-format msgid "operation" msgstr "" #. Tag: para #, no-c-format msgid " operationAction Status Action Status ActionStatusoperation Statusoperation operation " msgstr "" #. Tag: para #, no-c-format msgid "The action the resource agent was invoked with." msgstr "" #. Tag: para #, no-c-format msgid "interval" msgstr "" #. Tag: para #, no-c-format msgid " intervalAction Status Action Status ActionStatusinterval Statusinterval interval " msgstr "" #. Tag: para #, no-c-format msgid "The frequency, in milliseconds, at which the operation will be repeated. A one-off job is indicated by 0." msgstr "" #. Tag: para #, no-c-format msgid "op-status" msgstr "" #. Tag: para #, no-c-format msgid " op-statusAction Status Action Status ActionStatusop-status Statusop-status op-status " msgstr "" #. Tag: para #, no-c-format msgid "The job’s status. Generally this will be either 0 (done) or -1 (pending). Rarely used in favor of rc-code." msgstr "" #. Tag: para #, no-c-format msgid "rc-code" msgstr "" #. Tag: para #, no-c-format msgid " rc-codeAction Status Action Status ActionStatusrc-code Statusrc-code rc-code " msgstr "" #. Tag: para #, no-c-format msgid "The job’s result. Refer to for details on what the values here mean and how they are interpreted." msgstr "" #. Tag: para #, no-c-format msgid "last-run" msgstr "" #. Tag: para #, no-c-format msgid " last-runAction Status Action Status ActionStatuslast-run Statuslast-run last-run " msgstr "" #. Tag: para #, no-c-format msgid "Machine-local date/time, in seconds since epoch, at which the job was executed. For diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "last-rc-change" msgstr "" #. Tag: para #, no-c-format msgid " last-rc-changeAction Status Action Status ActionStatuslast-rc-change Statuslast-rc-change last-rc-change " msgstr "" #. Tag: para #, no-c-format msgid "Machine-local date/time, in seconds since epoch, at which the job first returned the current value of rc-code. For diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "exec-time" msgstr "" #. Tag: para #, no-c-format msgid " exec-timeAction Status Action Status ActionStatusexec-time Statusexec-time exec-time " msgstr "" #. Tag: para #, no-c-format msgid "Time, in milliseconds, that the job was running for. For diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "queue-time" msgstr "" #. Tag: para #, no-c-format msgid " queue-timeAction Status Action Status ActionStatusqueue-time Statusqueue-time queue-time " msgstr "" #. Tag: para #, no-c-format msgid "Time, in seconds, that the job was queued for in the LRMd. For diagnostic purposes." msgstr "" #. Tag: para #, no-c-format msgid "crm_feature_set" msgstr "" #. Tag: para #, no-c-format msgid " crm_feature_setAction Status Action Status ActionStatuscrm_feature_set Statuscrm_feature_set crm_feature_set " msgstr "" #. Tag: para #, no-c-format msgid "The version which this job description conforms to. Used when processing op-digest." msgstr "" #. Tag: para #, no-c-format msgid "transition-key" msgstr "" #. Tag: para #, no-c-format msgid " transition-keyAction Status Action Status ActionStatustransition-key Statustransition-key transition-key " msgstr "" #. Tag: para #, no-c-format msgid "A concatenation of the job’s graph action number, the graph number, the expected result and the UUID of the crmd instance that scheduled it. This is used to construct transition-magic (below)." msgstr "" #. Tag: para #, no-c-format msgid "transition-magic" msgstr "" #. Tag: para #, no-c-format msgid " transition-magicAction Status Action Status ActionStatustransition-magic Statustransition-magic transition-magic " msgstr "" #. Tag: para #, no-c-format msgid "A concatenation of the job’s op-status, rc-code and transition-key. Guaranteed to be unique for the life of the cluster (which ensures it is part of CIB update notifications) and contains all the information needed for the crmd to correctly analyze and process the completed job. Most importantly, the decomposed elements tell the crmd if the job entry was expected and whether it failed." msgstr "" #. Tag: para #, no-c-format msgid "op-digest" msgstr "" #. Tag: para #, no-c-format msgid " op-digestAction Status Action Status ActionStatusop-digest Statusop-digest op-digest " msgstr "" #. Tag: para #, no-c-format msgid "An MD5 sum representing the parameters passed to the job. Used to detect changes to the configuration, to restart resources if necessary." msgstr "" #. Tag: para #, no-c-format msgid " crm-debug-originAction Status Action Status ActionStatuscrm-debug-origin Statuscrm-debug-origin crm-debug-origin " msgstr "" #. Tag: para #, no-c-format msgid "The origin of the current values. For diagnostic purposes." msgstr "" #. Tag: title #, no-c-format msgid "Simple Operation History Example" msgstr "" #. Tag: title #, no-c-format msgid "A monitor operation (determines current state of the apcstonith resource)" msgstr "" #. Tag: programlisting #, no-c-format msgid "<lrm_resource id=\"apcstonith\" type=\"apcmastersnmp\" class=\"stonith\">\n" " <lrm_rsc_op id=\"apcstonith_monitor_0\" operation=\"monitor\" call-id=\"2\"\n" " rc-code=\"7\" op-status=\"0\" interval=\"0\"\n" " crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.1\"\n" " op-digest=\"2e3da9274d3550dc6526fb24bfcbcba0\"\n" " transition-key=\"22:2:7:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " transition-magic=\"0:7;22:2:7:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " last-run=\"1239008085\" last-rc-change=\"1239008085\" exec-time=\"10\" queue-time=\"0\"/>\n" "</lrm_resource>" msgstr "" #. Tag: para #, no-c-format msgid "In the above example, the job is a non-recurring monitor operation often referred to as a \"probe\" for the apcstonith resource." msgstr "" #. Tag: para #, no-c-format msgid "The cluster schedules probes for every configured resource on a node when the node first starts, in order to determine the resource’s current state before it takes any further action." msgstr "" #. Tag: para #, no-c-format msgid "From the transition-key, we can see that this was the 22nd action of the 2nd graph produced by this instance of the crmd (2668bbeb-06d5-40f9-936d-24cb7f87006a)." msgstr "" #. Tag: para #, no-c-format msgid "The third field of the transition-key contains a 7, which indicates that the job expects to find the resource inactive. By looking at the rc-code property, we see that this was the case." msgstr "" #. Tag: para #, no-c-format msgid "As that is the only job recorded for this node, we can conclude that the cluster started the resource elsewhere." msgstr "" #. Tag: title #, no-c-format msgid "Complex Operation History Example" msgstr "" #. Tag: title #, no-c-format msgid "Resource history of a pingd clone with multiple jobs" msgstr "" #. Tag: programlisting #, no-c-format msgid "<lrm_resource id=\"pingd:0\" type=\"pingd\" class=\"ocf\" provider=\"pacemaker\">\n" " <lrm_rsc_op id=\"pingd:0_monitor_30000\" operation=\"monitor\" call-id=\"34\"\n" " rc-code=\"0\" op-status=\"0\" interval=\"30000\"\n" " crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.1\"\n" " transition-key=\"10:11:0:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " ...\n" " last-run=\"1239009741\" last-rc-change=\"1239009741\" exec-time=\"10\" queue-time=\"0\"/>\n" " <lrm_rsc_op id=\"pingd:0_stop_0\" operation=\"stop\"\n" " crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.1\" call-id=\"32\"\n" " rc-code=\"0\" op-status=\"0\" interval=\"0\"\n" " transition-key=\"11:11:0:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " ...\n" " last-run=\"1239009741\" last-rc-change=\"1239009741\" exec-time=\"10\" queue-time=\"0\"/>\n" " <lrm_rsc_op id=\"pingd:0_start_0\" operation=\"start\" call-id=\"33\"\n" " rc-code=\"0\" op-status=\"0\" interval=\"0\"\n" " crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.1\"\n" " transition-key=\"31:11:0:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " ...\n" " last-run=\"1239009741\" last-rc-change=\"1239009741\" exec-time=\"10\" queue-time=\"0\" />\n" " <lrm_rsc_op id=\"pingd:0_monitor_0\" operation=\"monitor\" call-id=\"3\"\n" " rc-code=\"0\" op-status=\"0\" interval=\"0\"\n" " crm-debug-origin=\"do_update_resource\" crm_feature_set=\"3.0.1\"\n" " transition-key=\"23:2:7:2668bbeb-06d5-40f9-936d-24cb7f87006a\"\n" " ...\n" " last-run=\"1239008085\" last-rc-change=\"1239008085\" exec-time=\"20\" queue-time=\"0\"/>\n" " </lrm_resource>" msgstr "" #. Tag: para #, no-c-format msgid "When more than one job record exists, it is important to first sort them by call-id before interpreting them." msgstr "" #. Tag: para #, no-c-format msgid "Once sorted, the above example can be summarized as:" msgstr "" #. Tag: para #, no-c-format msgid "A non-recurring monitor operation returning 7 (not running), with a call-id of 3" msgstr "" #. Tag: para #, no-c-format msgid "A stop operation returning 0 (success), with a call-id of 32" msgstr "" #. Tag: para #, no-c-format msgid "A start operation returning 0 (success), with a call-id of 33" msgstr "" #. Tag: para #, no-c-format msgid "A recurring monitor returning 0 (success), with a call-id of 34" msgstr "" #. Tag: para #, no-c-format msgid "The cluster processes each job record to build up a picture of the resource’s state. After the first and second entries, it is considered stopped, and after the third it considered active." msgstr "" #. Tag: para #, no-c-format msgid "Based on the last operation, we can tell that the resource is currently active." msgstr "" #. Tag: para #, no-c-format msgid "Additionally, from the presence of a stop operation with a lower call-id than that of the start operation, we can conclude that the resource has been restarted. Specifically this occurred as part of actions 11 and 31 of transition 11 from the crmd instance with the key 2668bbeb…. This information can be helpful for locating the relevant section of the logs when looking for the source of a failure." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Stonith.pot b/doc/Pacemaker_Explained/pot/Ch-Stonith.pot index d3ef340bed..68f84425b6 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Stonith.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Stonith.pot @@ -1,1262 +1,1272 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "STONITH" msgstr "" #. Tag: para #, no-c-format msgid " STONITHConfiguration Configuration " msgstr "" #. Tag: title #, no-c-format msgid "What Is STONITH?" msgstr "" #. Tag: para #, no-c-format msgid "STONITH (an acronym for \"Shoot The Other Node In The Head\"), also called fencing, protects your data from being corrupted by rogue 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 a remote power switch (such as many on-board IPMI 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 "Special Treatment of STONITH Resources" msgstr "" #. Tag: para #, no-c-format msgid "STONITH resources are somewhat special in Pacemaker." msgstr "" #. Tag: para #, no-c-format msgid "STONITH may be initiated by pacemaker or by other parts of the cluster (such as resources like DRBD or DLM). To accommodate this, pacemaker does not require the STONITH resource to be in the started state in order to be used, thus allowing reliable use of STONITH devices in such a case." msgstr "" #. Tag: para #, no-c-format msgid "In pacemaker versions 1.1.9 and earlier, this feature either did not exist or did not work well. Only \"running\" STONITH resources could be used by Pacemaker for fencing, and if another component tried to fence a node while Pacemaker was moving STONITH resources, the fencing could fail." msgstr "" #. Tag: para #, no-c-format msgid "All nodes have access to STONITH devices' definitions and instantiate them on-the-fly when needed, but preference is given to verified instances, which are the ones that are started according to the cluster’s knowledge." msgstr "" #. Tag: para #, no-c-format msgid "In the case of a cluster split, the partition with a verified instance will have a slight advantage, because the STONITH daemon in the other partition will have to hear from all its current peers before choosing a node to perform the fencing." msgstr "" #. Tag: para #, no-c-format msgid "Fencing resources do work the same as regular resources in some respects:" msgstr "" #. Tag: para #, no-c-format msgid "target-role can be used to enable or disable the resource" msgstr "" #. Tag: para #, no-c-format msgid "Location constraints can be used to prevent a specific node from using the resource" msgstr "" #. Tag: para #, no-c-format msgid "Currently there is a limitation that fencing resources may only have one set of meta-attributes and one set of instance attributes. This can be revisited if it becomes a significant limitation for people." msgstr "" #. Tag: para #, no-c-format msgid "See the table below or run man stonithd to see special instance attributes that may be set for any fencing resource, regardless of fence agent." msgstr "" #. Tag: title #, no-c-format msgid "Properties of Fencing Resources" msgstr "" #. Tag: entry #, no-c-format msgid "Field" msgstr "" #. Tag: entry #, no-c-format msgid "Type" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "stonith-timeout" msgstr "" #. Tag: para #, no-c-format msgid "NA" msgstr "" #. Tag: para #, no-c-format msgid "Older versions used this to override the default period to wait for a STONITH (reboot, on, off) action to complete for this device. It has been replaced by the pcmk_reboot_timeout and pcmk_off_timeout properties. stonith-timeoutFencing Fencing FencingPropertystonith-timeout Propertystonith-timeout stonith-timeout " msgstr "" #. Tag: para #, no-c-format msgid "priority" msgstr "" #. Tag: para #, no-c-format msgid "integer" msgstr "" #. Tag: para #, no-c-format msgid "0" msgstr "" #. Tag: para #, no-c-format msgid "The priority of the STONITH resource. Devices are tried in order of highest priority to lowest. priorityFencing Fencing FencingPropertypriority Propertypriority priority " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_host_map" msgstr "" #. Tag: para #, no-c-format msgid "string" msgstr "" #. Tag: para #, no-c-format msgid "A mapping of host names to ports numbers for devices that do not support host names. Example: node1:1;node2:2,3 tells the cluster to use port 1 for node1 and ports 2 and 3 for node2. pcmk_host_mapFencing Fencing FencingPropertypcmk_host_map Propertypcmk_host_map pcmk_host_map " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_host_list" msgstr "" #. Tag: para #, no-c-format msgid "A list of machines controlled by this device (optional unless pcmk_host_check is static-list). pcmk_host_listFencing Fencing FencingPropertypcmk_host_list Propertypcmk_host_list pcmk_host_list " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_host_check" msgstr "" #. Tag: para #, no-c-format msgid "dynamic-list" msgstr "" #. Tag: para #, no-c-format msgid "How to determine which machines are controlled by the device. Allowed values:" msgstr "" #. Tag: para #, no-c-format msgid "dynamic-list: query the device" msgstr "" #. Tag: para #, no-c-format msgid "static-list: check the pcmk_host_list attribute" msgstr "" #. Tag: para #, no-c-format msgid "none: assume every device can fence every machine" msgstr "" #. Tag: para #, no-c-format msgid " pcmk_host_checkFencing Fencing FencingPropertypcmk_host_check Propertypcmk_host_check pcmk_host_check " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_delay_max" msgstr "" #. Tag: para #, no-c-format msgid "time" msgstr "" #. Tag: para #, no-c-format msgid "0s" msgstr "" #. Tag: para #, no-c-format msgid "Enable a random delay of up to the time specified before executing stonith actions. This is sometimes used in two-node clusters to ensure that the nodes don’t fence each other at the same time." msgstr "" #. Tag: para #, no-c-format msgid " pcmk_delay_maxFencing Fencing FencingPropertypcmk_delay_max Propertypcmk_delay_max pcmk_delay_max " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_action_limit" msgstr "" #. Tag: para #, no-c-format msgid "1" msgstr "" #. Tag: para #, no-c-format msgid "The maximum number of actions that can be performed in parallel on this device, if the cluster option concurrent-fencing is true. -1 is unlimited." msgstr "" #. Tag: para #, no-c-format msgid " pcmk_action_limitFencing Fencing FencingPropertypcmk_action_limit Propertypcmk_action_limit pcmk_action_limit " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_host_argument" msgstr "" #. Tag: para #, no-c-format msgid "port" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Which parameter should be supplied to the resource agent to identify the node to be fenced. Some devices do not support the standard port parameter or may provide additional ones. Use this to specify an alternate, device-specific parameter. A value of none tells the cluster not to supply any additional parameters. pcmk_host_argumentFencing Fencing FencingPropertypcmk_host_argument Propertypcmk_host_argument pcmk_host_argument " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_reboot_action" msgstr "" #. Tag: para #, no-c-format msgid "reboot" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The command to send to the resource agent in order to reboot a node. Some devices do not support the standard commands or may provide additional ones. Use this to specify an alternate, device-specific command. pcmk_reboot_actionFencing Fencing FencingPropertypcmk_reboot_action Propertypcmk_reboot_action pcmk_reboot_action " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_reboot_timeout" msgstr "" #. Tag: para #, no-c-format msgid "60s" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Specify an alternate timeout to use for reboot actions instead of the value of stonith-timeout. Some devices need much more or less time to complete than normal. Use this to specify an alternate, device-specific timeout. pcmk_reboot_timeoutFencing Fencing FencingPropertypcmk_reboot_timeout Propertypcmk_reboot_timeout pcmk_reboot_timeout stonith-timeoutFencing Fencing FencingPropertystonith-timeout Propertystonith-timeout stonith-timeout " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_reboot_retries" msgstr "" #. Tag: para #, no-c-format msgid "2" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The maximum number of times to retry the reboot command within the timeout period. Some devices do not support multiple connections, and operations may fail if the device is busy with another task, so Pacemaker will automatically retry the operation, if there is time remaining. Use this option to alter the number of times Pacemaker retries before giving up. pcmk_reboot_retriesFencing Fencing FencingPropertypcmk_reboot_retries Propertypcmk_reboot_retries pcmk_reboot_retries " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_off_action" msgstr "" #. Tag: para #, no-c-format msgid "off" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The command to send to the resource agent in order to shut down a node. Some devices do not support the standard commands or may provide additional ones. Use this to specify an alternate, device-specific command. pcmk_off_actionFencing Fencing FencingPropertypcmk_off_action Propertypcmk_off_action pcmk_off_action " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_off_timeout" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Specify an alternate timeout to use for off actions instead of the value of stonith-timeout. Some devices need much more or less time to complete than normal. Use this to specify an alternate, device-specific timeout. pcmk_off_timeoutFencing Fencing FencingPropertypcmk_off_timeout Propertypcmk_off_timeout pcmk_off_timeout stonith-timeoutFencing Fencing FencingPropertystonith-timeout Propertystonith-timeout stonith-timeout " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_off_retries" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The maximum number of times to retry the off command within the timeout period. Some devices do not support multiple connections, and operations may fail if the device is busy with another task, so Pacemaker will automatically retry the operation, if there is time remaining. Use this option to alter the number of times Pacemaker retries before giving up. pcmk_off_retriesFencing Fencing FencingPropertypcmk_off_retries Propertypcmk_off_retries pcmk_off_retries " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_list_action" msgstr "" #. Tag: para #, no-c-format msgid "list" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The command to send to the resource agent in order to list nodes. Some devices do not support the standard commands or may provide additional ones. Use this to specify an alternate, device-specific command. pcmk_list_actionFencing Fencing FencingPropertypcmk_list_action Propertypcmk_list_action pcmk_list_action " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_list_timeout" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Specify an alternate timeout to use for list actions instead of the value of stonith-timeout. Some devices need much more or less time to complete than normal. Use this to specify an alternate, device-specific timeout. pcmk_list_timeoutFencing Fencing FencingPropertypcmk_list_timeout Propertypcmk_list_timeout pcmk_list_timeout " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_list_retries" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The maximum number of times to retry the list command within the timeout period. Some devices do not support multiple connections, and operations may fail if the device is busy with another task, so Pacemaker will automatically retry the operation, if there is time remaining. Use this option to alter the number of times Pacemaker retries before giving up. pcmk_list_retriesFencing Fencing FencingPropertypcmk_list_retries Propertypcmk_list_retries pcmk_list_retries " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_monitor_action" msgstr "" #. Tag: para #, no-c-format msgid "monitor" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The command to send to the resource agent in order to report extended status. Some devices do not support the standard commands or may provide additional ones. Use this to specify an alternate, device-specific command. pcmk_monitor_actionFencing Fencing FencingPropertypcmk_monitor_action Propertypcmk_monitor_action pcmk_monitor_action " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_monitor_timeout" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Specify an alternate timeout to use for monitor actions instead of the value of stonith-timeout. Some devices need much more or less time to complete than normal. Use this to specify an alternate, device-specific timeout. pcmk_monitor_timeoutFencing Fencing FencingPropertypcmk_monitor_timeout Propertypcmk_monitor_timeout pcmk_monitor_timeout " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_monitor_retries" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The maximum number of times to retry the monitor command within the timeout period. Some devices do not support multiple connections, and operations may fail if the device is busy with another task, so Pacemaker will automatically retry the operation, if there is time remaining. Use this option to alter the number of times Pacemaker retries before giving up. pcmk_monitor_retriesFencing Fencing FencingPropertypcmk_monitor_retries Propertypcmk_monitor_retries pcmk_monitor_retries " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_status_action" msgstr "" #. Tag: para #, no-c-format msgid "status" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The command to send to the resource agent in order to report status. Some devices do not support the standard commands or may provide additional ones. Use this to specify an alternate, device-specific command. pcmk_status_actionFencing Fencing FencingPropertypcmk_status_action Propertypcmk_status_action pcmk_status_action " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_status_timeout" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. Specify an alternate timeout to use for status actions instead of the value of stonith-timeout. Some devices need much more or less time to complete than normal. Use this to specify an alternate, device-specific timeout. pcmk_status_timeoutFencing Fencing FencingPropertypcmk_status_timeout Propertypcmk_status_timeout pcmk_status_timeout " msgstr "" #. Tag: para #, no-c-format msgid "pcmk_status_retries" msgstr "" #. Tag: para #, no-c-format msgid "Advanced use only. The maximum number of times to retry the status command within the timeout period. Some devices do not support multiple connections, and operations may fail if the device is busy with another task, so Pacemaker will automatically retry the operation, if there is time remaining. Use this option to alter the number of times Pacemaker retries before giving up. pcmk_status_retriesFencing Fencing FencingPropertypcmk_status_retries Propertypcmk_status_retries pcmk_status_retries " msgstr "" #. Tag: title #, no-c-format msgid "Configuring STONITH" msgstr "" #. Tag: para #, no-c-format msgid "Higher-level configuration shells include functionality to simplify the process below, particularly the step for deciding which parameters are required. However since this document deals only with core components, you should refer to the STONITH section of the Clusters from Scratch guide for those details." msgstr "" #. Tag: para #, no-c-format msgid "Find the correct driver:" msgstr "" #. Tag: screen #, no-c-format msgid "# stonith_admin --list-installed" msgstr "" #. Tag: para #, no-c-format msgid "Find the required parameters associated with the device (replacing $AGENT_NAME with the name obtained from the previous step):" msgstr "" #. Tag: screen #, no-c-format msgid "# stonith_admin --metadata --agent $AGENT_NAME" msgstr "" #. Tag: para #, no-c-format msgid "Create a file called stonith.xml containing a primitive resource with a class of stonith, a type equal to the agent name obtained earlier, and a parameter for each of the values returned in the previous step." msgstr "" #. Tag: para #, no-c-format msgid "If the device does not know how to fence nodes based on their uname, you may also need to set the special pcmk_host_map parameter. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "If the device does not support the list command, you may also need to set the special pcmk_host_list and/or pcmk_host_check parameters. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "If the device does not expect the victim to be specified with the port parameter, you may also need to set the special pcmk_host_argument parameter. See man stonithd for details." msgstr "" #. Tag: para #, no-c-format msgid "Upload it into the CIB using cibadmin:" msgstr "" #. Tag: screen #, no-c-format msgid "# cibadmin -C -o resources --xml-file stonith.xml" msgstr "" #. Tag: para #, no-c-format msgid "Set stonith-enabled to true:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute -t crm_config -n stonith-enabled -v true" msgstr "" #. Tag: para #, no-c-format msgid "Once the stonith resource is running, you can test it by executing the following (although you might want to stop the cluster on that machine first):" msgstr "" #. Tag: screen #, no-c-format msgid "# stonith_admin --reboot nodename" msgstr "" #. Tag: title #, no-c-format msgid "Example STONITH Configuration" msgstr "" #. Tag: para #, no-c-format msgid "Assume we have an chassis containing four nodes and an IPMI device active on 192.0.2.1. We would choose the fence_ipmilan driver, and obtain the following list of parameters:" msgstr "" #. Tag: title #, no-c-format msgid "Obtaining a list of STONITH Parameters" msgstr "" #. Tag: screen #, no-c-format msgid "# stonith_admin --metadata -a fence_ipmilan" msgstr "" #. Tag: programlisting #, no-c-format msgid "<resource-agent name=\"fence_ipmilan\" shortdesc=\"Fence agent for IPMI over LAN\">\n" " <symlink name=\"fence_ilo3\" shortdesc=\"Fence agent for HP iLO3\"/>\n" " <symlink name=\"fence_ilo4\" shortdesc=\"Fence agent for HP iLO4\"/>\n" " <symlink name=\"fence_idrac\" shortdesc=\"Fence agent for Dell iDRAC\"/>\n" " <symlink name=\"fence_imm\" shortdesc=\"Fence agent for IBM Integrated Management Module\"/>\n" " <longdesc>\n" " </longdesc>\n" " <vendor-url>\n" " </vendor-url>\n" " <parameters>\n" " <parameter name=\"auth\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-A\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"ipaddr\" unique=\"0\" required=\"1\">\n" " <getopt mixed=\"-a\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"passwd\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-p\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"passwd_script\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-S\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"lanplus\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-P\"/>\n" " <content type=\"boolean\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"login\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-l\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"action\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-o\"/>\n" " <content type=\"string\" default=\"reboot\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"timeout\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-t\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"cipher\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-C\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"method\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-M\"/>\n" " <content type=\"string\" default=\"onoff\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"power_wait\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-T\"/>\n" " <content type=\"string\" default=\"2\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"delay\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-f\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"privlvl\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-L\"/>\n" " <content type=\"string\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " <parameter name=\"verbose\" unique=\"0\" required=\"0\">\n" " <getopt mixed=\"-v\"/>\n" " <content type=\"boolean\"/>\n" " <shortdesc>\n" " </shortdesc>\n" " </parameter>\n" " </parameters>\n" " <actions>\n" " <action name=\"on\"/>\n" " <action name=\"off\"/>\n" " <action name=\"reboot\"/>\n" " <action name=\"status\"/>\n" " <action name=\"diag\"/>\n" " <action name=\"list\"/>\n" " <action name=\"monitor\"/>\n" " <action name=\"metadata\"/>\n" " <action name=\"stop\" timeout=\"20s\"/>\n" " <action name=\"start\" timeout=\"20s\"/>\n" " </actions>\n" "</resource-agent>" msgstr "" #. Tag: para #, no-c-format msgid "Based on that, we would create a STONITH resource fragment that might look like this:" msgstr "" #. Tag: title #, no-c-format msgid "An IPMI-based STONITH Resource" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"Fencing\" class=\"stonith\" type=\"fence_ipmilan\" >\n" " <instance_attributes id=\"Fencing-params\" >\n" " <nvpair id=\"Fencing-passwd\" name=\"passwd\" value=\"testuser\" />\n" " <nvpair id=\"Fencing-login\" name=\"login\" value=\"abc123\" />\n" " <nvpair id=\"Fencing-ipaddr\" name=\"ipaddr\" value=\"192.0.2.1\" />\n" " <nvpair id=\"Fencing-pcmk_host_list\" name=\"pcmk_host_list\" value=\"pcmk-1 pcmk-2\" />\n" " </instance_attributes>\n" " <operations >\n" " <op id=\"Fencing-monitor-10m\" interval=\"10m\" name=\"monitor\" timeout=\"300s\" />\n" " </operations>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "Finally, we need to enable STONITH:" msgstr "" #. Tag: title #, no-c-format msgid "Advanced STONITH Configurations" msgstr "" #. Tag: para #, no-c-format msgid "Some people consider that having one fencing device is a single point of failure Not true, since a node or resource must fail before fencing even has a chance to; others prefer removing the node from the storage and network instead of turning it off." msgstr "" #. Tag: para #, no-c-format msgid "Whatever the reason, Pacemaker supports fencing nodes with multiple devices through a feature called fencing topologies." msgstr "" #. Tag: para #, no-c-format msgid "Simply create the individual devices as you normally would, then define one or more fencing-level entries in the fencing-topology section of the configuration." msgstr "" #. Tag: para #, no-c-format -msgid "Each fencing level is attempted in order of ascending index. Allowed indexes are 0 to 9." +msgid "Each fencing level is attempted in order of ascending index. Allowed values are 1 through 9." msgstr "" #. Tag: para #, no-c-format msgid "If a device fails, processing terminates for the current level. No further devices in that level are exercised, and the next level is attempted instead." msgstr "" #. Tag: para #, no-c-format msgid "If the operation succeeds for all the listed devices in a level, the level is deemed to have passed." msgstr "" #. Tag: para #, no-c-format msgid "The operation is finished when a level has passed (success), or all levels have been attempted (failed)." msgstr "" #. Tag: para #, no-c-format msgid "If the operation failed, the next step is determined by the Policy Engine and/or crmd." msgstr "" #. Tag: para #, no-c-format msgid "Some possible uses of topologies include:" msgstr "" #. Tag: para #, no-c-format msgid "Try poison-pill and fail back to power" msgstr "" #. Tag: para #, no-c-format msgid "Try disk and network, and fall back to power if either fails" msgstr "" #. Tag: para #, no-c-format msgid "Initiate a kdump and then poweroff the node" msgstr "" #. Tag: title #, no-c-format msgid "Properties of Fencing Levels" msgstr "" #. Tag: para #, no-c-format msgid "id" msgstr "" #. Tag: para #, no-c-format msgid "A unique name for the level idfencing-level fencing-level Fencingfencing-levelid fencing-levelid id " msgstr "" #. Tag: para #, no-c-format msgid "target" msgstr "" #. Tag: para #, no-c-format msgid "The name of a single node to which this level applies targetfencing-level fencing-level Fencingfencing-leveltarget fencing-leveltarget target " msgstr "" #. Tag: para #, no-c-format msgid "target-pattern" msgstr "" #. Tag: para #, no-c-format msgid "A regular expression matching the names of nodes to which this level applies (since 1.1.14) target-patternfencing-level fencing-level Fencingfencing-leveltarget-pattern fencing-leveltarget-pattern target-pattern " msgstr "" #. Tag: para #, no-c-format msgid "target-attribute" msgstr "" #. Tag: para #, no-c-format -msgid "The name of a node attribute that is set for nodes to which this level applies (since 1.1.14) target-attributefencing-level fencing-level Fencingfencing-leveltarget-attribute fencing-leveltarget-attribute target-attribute " +msgid "The name of a node attribute that is set (to target-value) for nodes to which this level applies (since 1.1.14) target-attributefencing-level fencing-level Fencingfencing-leveltarget-attribute fencing-leveltarget-attribute target-attribute " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "target-value" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The node attribute value (of target-attribute) that is set for nodes to which this level applies (since 1.1.14) target-attributefencing-level fencing-level Fencingfencing-leveltarget-attribute fencing-leveltarget-attribute target-attribute " msgstr "" #. Tag: para #, no-c-format msgid "index" msgstr "" #. Tag: para #, no-c-format -msgid "The order in which to attempt the levels. Levels are attempted in ascending order until one succeeds. indexfencing-level fencing-level Fencingfencing-levelindex fencing-levelindex index " +msgid "The order in which to attempt the levels. Levels are attempted in ascending order until one succeeds. Valid values are 1 through 9. indexfencing-level fencing-level Fencingfencing-levelindex fencing-levelindex index " msgstr "" #. Tag: para #, no-c-format msgid "devices" msgstr "" #. Tag: para #, no-c-format msgid "A comma-separated list of devices that must all be tried for this level devicesfencing-level fencing-level Fencingfencing-leveldevices fencing-leveldevices devices " msgstr "" #. Tag: title #, no-c-format msgid "Fencing topology with different devices for different nodes" msgstr "" #. Tag: programlisting #, no-c-format msgid " <cib crm_feature_set=\"3.0.6\" validate-with=\"pacemaker-1.2\" admin_epoch=\"1\" epoch=\"0\" num_updates=\"0\">\n" " <configuration>\n" " ...\n" " <fencing-topology>\n" " <!-- For pcmk-1, try poison-pill and fail back to power -->\n" " <fencing-level id=\"f-p1.1\" target=\"pcmk-1\" index=\"1\" devices=\"poison-pill\"/>\n" " <fencing-level id=\"f-p1.2\" target=\"pcmk-1\" index=\"2\" devices=\"power\"/>\n" "\n" " <!-- For pcmk-2, try disk and network, and fail back to power -->\n" " <fencing-level id=\"f-p2.1\" target=\"pcmk-2\" index=\"1\" devices=\"disk,network\"/>\n" " <fencing-level id=\"f-p2.2\" target=\"pcmk-2\" index=\"2\" devices=\"power\"/>\n" " </fencing-topology>\n" " ...\n" " <configuration>\n" " <status/>\n" "</cib>" msgstr "" #. Tag: title #, no-c-format msgid "Example Dual-Layer, Dual-Device Fencing Topologies" msgstr "" #. Tag: para #, no-c-format msgid "The following example illustrates an advanced use of fencing-topology in a cluster with the following properties:" msgstr "" #. Tag: para #, no-c-format msgid "3 nodes (2 active prod-mysql nodes, 1 prod_mysql-rep in standby for quorum purposes)" msgstr "" #. Tag: para #, no-c-format msgid "the active nodes have an IPMI-controlled power board reached at 192.0.2.1 and 192.0.2.2" msgstr "" #. Tag: para #, no-c-format msgid "the active nodes also have two independent PSUs (Power Supply Units) connected to two independent PDUs (Power Distribution Units) reached at 198.51.100.1 (port 10 and port 11) and 203.0.113.1 (port 10 and port 11)" msgstr "" #. Tag: para #, no-c-format msgid "the first fencing method uses the fence_ipmi agent" msgstr "" #. Tag: para #, no-c-format msgid "the second fencing method uses the fence_apc_snmp agent targetting 2 fencing devices (one per PSU, either port 10 or 11)" msgstr "" #. Tag: para #, no-c-format msgid "fencing is only implemented for the active nodes and has location constraints" msgstr "" #. Tag: para #, no-c-format msgid "fencing topology is set to try IPMI fencing first then default to a \"sure-kill\" dual PDU fencing" msgstr "" #. Tag: para #, no-c-format msgid "In a normal failure scenario, STONITH will first select fence_ipmi to try to kill the faulty node. Using a fencing topology, if that first method fails, STONITH will then move on to selecting fence_apc_snmp twice:" msgstr "" #. Tag: para #, no-c-format msgid "once for the first PDU" msgstr "" #. Tag: para #, no-c-format msgid "again for the second PDU" msgstr "" #. Tag: para #, no-c-format msgid "The fence action is considered successful only if both PDUs report the required status. If any of them fails, STONITH loops back to the first fencing method, fence_ipmi, and so on until the node is fenced or fencing action is cancelled." msgstr "" #. Tag: title #, no-c-format msgid "First fencing method: single IPMI device" msgstr "" #. Tag: para #, no-c-format msgid "Each cluster node has it own dedicated IPMI channel that can be called for fencing using the following primitives:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive class=\"stonith\" id=\"fence_prod-mysql1_ipmi\" type=\"fence_ipmilan\">\n" " <instance_attributes id=\"fence_prod-mysql1_ipmi-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"192.0.2.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-passwd\" name=\"passwd\" value=\"finishme\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-verbose\" name=\"verbose\" value=\"true\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-lanplus\" name=\"lanplus\" value=\"true\"/>\n" " </instance_attributes>\n" "</primitive>\n" "<primitive class=\"stonith\" id=\"fence_prod-mysql2_ipmi\" type=\"fence_ipmilan\">\n" " <instance_attributes id=\"fence_prod-mysql2_ipmi-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"192.0.2.2\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-passwd\" name=\"passwd\" value=\"finishme\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-verbose\" name=\"verbose\" value=\"true\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-lanplus\" name=\"lanplus\" value=\"true\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Second fencing method: dual PDU devices" msgstr "" #. Tag: para #, no-c-format msgid "Each cluster node also has two distinct power channels controlled by two distinct PDUs. That means a total of 4 fencing devices configured as follows:" msgstr "" #. Tag: para #, no-c-format msgid "Node 1, PDU 1, PSU 1 @ port 10" msgstr "" #. Tag: para #, no-c-format msgid "Node 1, PDU 2, PSU 2 @ port 10" msgstr "" #. Tag: para #, no-c-format msgid "Node 2, PDU 1, PSU 1 @ port 11" msgstr "" #. Tag: para #, no-c-format msgid "Node 2, PDU 2, PSU 2 @ port 11" msgstr "" #. Tag: para #, no-c-format msgid "The matching fencing agents are configured as follows:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive class=\"stonith\" id=\"fence_prod-mysql1_apc1\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql1_apc1-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"198.51.100.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-port\" name=\"port\" value=\"10\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " </instance_attributes>\n" "</primitive>\n" "<primitive class=\"stonith\" id=\"fence_prod-mysql1_apc2\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql1_apc2-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"203.0.113.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-port\" name=\"port\" value=\"10\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " </instance_attributes>\n" "</primitive>\n" "<primitive class=\"stonith\" id=\"fence_prod-mysql2_apc1\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql2_apc1-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"198.51.100.1\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-port\" name=\"port\" value=\"11\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " </instance_attributes>\n" "</primitive>\n" "<primitive class=\"stonith\" id=\"fence_prod-mysql2_apc2\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql2_apc2-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"203.0.113.1\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-port\" name=\"port\" value=\"11\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " </instance_attributes>\n" "</primitive>" msgstr "" #. Tag: title #, no-c-format msgid "Location Constraints" msgstr "" #. Tag: para #, no-c-format msgid "To prevent STONITH from trying to run a fencing agent on the same node it is supposed to fence, constraints are placed on all the fencing primitives:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<constraints>\n" " <rsc_location id=\"l_fence_prod-mysql1_ipmi\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_ipmi\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_ipmi\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_ipmi\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql1_apc2\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_apc2\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql1_apc1\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_apc1\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_apc1\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_apc1\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_apc2\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_apc2\" score=\"-INFINITY\"/>\n" "</constraints>" msgstr "" #. Tag: title #, no-c-format msgid "Fencing topology" msgstr "" #. Tag: para #, no-c-format msgid "Now that all the fencing resources are defined, it’s time to create the right topology. We want to first fence using IPMI and if that does not work, fence both PDUs to effectively and surely kill the node." msgstr "" #. Tag: programlisting #, no-c-format msgid "<fencing-topology>\n" " <fencing-level devices=\"fence_prod-mysql1_ipmi\" id=\"fencing-2\" index=\"1\" target=\"prod-mysql1\"/>\n" " <fencing-level devices=\"fence_prod-mysql1_apc1,fence_prod-mysql1_apc2\" id=\"fencing-3\" index=\"2\" target=\"prod-mysql1\"/>\n" " <fencing-level devices=\"fence_prod-mysql2_ipmi\" id=\"fencing-0\" index=\"1\" target=\"prod-mysql2\"/>\n" " <fencing-level devices=\"fence_prod-mysql2_apc1,fence_prod-mysql2_apc2\" id=\"fencing-1\" index=\"2\" target=\"prod-mysql2\"/>\n" "</fencing-topology>" msgstr "" #. Tag: para #, no-c-format msgid "Please note, in fencing-topology, the lowest index value determines the priority of the first fencing method." msgstr "" #. Tag: title #, no-c-format msgid "Final configuration" msgstr "" #. Tag: para #, no-c-format msgid "Put together, the configuration looks like this:" msgstr "" #. Tag: programlisting #, no-c-format msgid "<cib admin_epoch=\"0\" crm_feature_set=\"3.0.7\" epoch=\"292\" have-quorum=\"1\" num_updates=\"29\" validate-with=\"pacemaker-1.2\">\n" " <configuration>\n" " <crm_config>\n" " <cluster_property_set id=\"cib-bootstrap-options\">\n" " <nvpair id=\"cib-bootstrap-options-stonith-enabled\" name=\"stonith-enabled\" value=\"true\"/>\n" " <nvpair id=\"cib-bootstrap-options-stonith-action\" name=\"stonith-action\" value=\"off\"/>\n" " <nvpair id=\"cib-bootstrap-options-expected-quorum-votes\" name=\"expected-quorum-votes\" value=\"3\"/>\n" " ...\n" " </cluster_property_set>\n" " </crm_config>\n" " <nodes>\n" " <node id=\"prod-mysql1\" uname=\"prod-mysql1\">\n" " <node id=\"prod-mysql2\" uname=\"prod-mysql2\"/>\n" " <node id=\"prod-mysql-rep1\" uname=\"prod-mysql-rep1\"/>\n" " <instance_attributes id=\"prod-mysql-rep1\">\n" " <nvpair id=\"prod-mysql-rep1-standby\" name=\"standby\" value=\"on\"/>\n" " </instance_attributes>\n" " </node>\n" " </nodes>\n" " <resources>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql1_ipmi\" type=\"fence_ipmilan\">\n" " <instance_attributes id=\"fence_prod-mysql1_ipmi-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"192.0.2.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-passwd\" name=\"passwd\" value=\"finishme\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-verbose\" name=\"verbose\" value=\"true\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " <nvpair id=\"fence_prod-mysql1_ipmi-instance_attributes-lanplus\" name=\"lanplus\" value=\"true\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql2_ipmi\" type=\"fence_ipmilan\">\n" " <instance_attributes id=\"fence_prod-mysql2_ipmi-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"192.0.2.2\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-passwd\" name=\"passwd\" value=\"finishme\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-verbose\" name=\"verbose\" value=\"true\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " <nvpair id=\"fence_prod-mysql2_ipmi-instance_attributes-lanplus\" name=\"lanplus\" value=\"true\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql1_apc1\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql1_apc1-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"198.51.100.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-port\" name=\"port\" value=\"10\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc1-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql1_apc2\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql1_apc2-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"203.0.113.1\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-port\" name=\"port\" value=\"10\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql1_apc2-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql1\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql2_apc1\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql2_apc1-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"198.51.100.1\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-port\" name=\"port\" value=\"11\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc1-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " </instance_attributes>\n" " </primitive>\n" " <primitive class=\"stonith\" id=\"fence_prod-mysql2_apc2\" type=\"fence_apc_snmp\">\n" " <instance_attributes id=\"fence_prod-mysql2_apc2-instance_attributes\">\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-ipaddr\" name=\"ipaddr\" value=\"203.0.113.1\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-action\" name=\"action\" value=\"off\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-port\" name=\"port\" value=\"11\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-login\" name=\"login\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-passwd\" name=\"passwd\" value=\"fencing\"/>\n" " <nvpair id=\"fence_prod-mysql2_apc2-instance_attributes-pcmk_host_list\" name=\"pcmk_host_list\" value=\"prod-mysql2\"/>\n" " </instance_attributes>\n" " </primitive>\n" " </resources>\n" " <constraints>\n" " <rsc_location id=\"l_fence_prod-mysql1_ipmi\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_ipmi\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_ipmi\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_ipmi\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql1_apc2\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_apc2\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql1_apc1\" node=\"prod-mysql1\" rsc=\"fence_prod-mysql1_apc1\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_apc1\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_apc1\" score=\"-INFINITY\"/>\n" " <rsc_location id=\"l_fence_prod-mysql2_apc2\" node=\"prod-mysql2\" rsc=\"fence_prod-mysql2_apc2\" score=\"-INFINITY\"/>\n" " </constraints>\n" " <fencing-topology>\n" " <fencing-level devices=\"fence_prod-mysql1_ipmi\" id=\"fencing-2\" index=\"1\" target=\"prod-mysql1\"/>\n" " <fencing-level devices=\"fence_prod-mysql1_apc1,fence_prod-mysql1_apc2\" id=\"fencing-3\" index=\"2\" target=\"prod-mysql1\"/>\n" " <fencing-level devices=\"fence_prod-mysql2_ipmi\" id=\"fencing-0\" index=\"1\" target=\"prod-mysql2\"/>\n" " <fencing-level devices=\"fence_prod-mysql2_apc1,fence_prod-mysql2_apc2\" id=\"fencing-1\" index=\"2\" target=\"prod-mysql2\"/>\n" " </fencing-topology>\n" " ...\n" " </configuration>\n" "</cib>" msgstr "" #. Tag: title #, no-c-format msgid "Remapping Reboots" msgstr "" #. Tag: para #, no-c-format msgid "When the cluster needs to reboot a node, whether because stonith-action is reboot or because a reboot was manually requested (such as by stonith_admin --reboot), it will remap that to other commands in two cases:" msgstr "" #. Tag: para #, no-c-format msgid "If the chosen fencing device does not support the reboot command, the cluster will ask it to perform off instead." msgstr "" #. Tag: para #, no-c-format msgid "If a fencing topology level with multiple devices must be executed, the cluster will ask all the devices to perform off, then ask the devices to perform on." msgstr "" #. Tag: para #, no-c-format msgid "To understand the second case, consider the example of a node with redundant power supplies connected to intelligent power switches. Rebooting one switch and then the other would have no effect on the node. Turning both switches off, and then on, actually reboots the node." msgstr "" #. Tag: para #, no-c-format msgid "In such a case, the fencing operation will be treated as successful as long as the off commands succeed, because then it is safe for the cluster to recover any resources that were on the node. Timeouts and errors in the on phase will be logged but ignored." msgstr "" #. Tag: para #, no-c-format msgid "When a reboot operation is remapped, any action-specific timeout for the remapped action will be used (for example, pcmk_off_timeout will be used when executing the off command, not pcmk_reboot_timeout)." msgstr "" #. Tag: para #, no-c-format msgid "In Pacemaker versions 1.1.13 and earlier, reboots will not be remapped in the second case. To achieve the same effect, separate fencing devices for off and on actions must be configured." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Ch-Utilization.pot b/doc/Pacemaker_Explained/pot/Ch-Utilization.pot index ba87400325..5d437315ea 100644 --- a/doc/Pacemaker_Explained/pot/Ch-Utilization.pot +++ b/doc/Pacemaker_Explained/pot/Ch-Utilization.pot @@ -1,362 +1,362 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Utilization and Placement Strategy" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker decides where to place a resource according to the resource allocation scores on every node. The resource will be allocated to the node where the resource has the highest score." msgstr "" #. Tag: para #, no-c-format msgid "If the resource allocation scores on all the nodes are equal, by the default placement strategy, Pacemaker will choose a node with the least number of allocated resources for balancing the load. If the number of resources on each node is equal, the first eligible node listed in the CIB will be chosen to run the resource." msgstr "" #. Tag: para #, no-c-format msgid "Often, in real-world situations, different resources use significantly different proportions of a node’s capacities (memory, I/O, etc.). We cannot balance the load ideally just according to the number of resources allocated to a node. Besides, if resources are placed such that their combined requirements exceed the provided capacity, they may fail to start completely or run with degraded performance." msgstr "" #. Tag: para #, no-c-format msgid "To take these factors into account, Pacemaker allows you to configure:" msgstr "" #. Tag: para #, no-c-format msgid "The capacity a certain node provides." msgstr "" #. Tag: para #, no-c-format msgid "The capacity a certain resource requires." msgstr "" #. Tag: para #, no-c-format msgid "An overall strategy for placement of resources." msgstr "" #. Tag: title #, no-c-format msgid "Utilization attributes" msgstr "" #. Tag: para #, no-c-format msgid "To configure the capacity that a node provides or a resource requires, you can use utilization attributes in node and resource objects. You can name utilization attributes according to your preferences and define as many name/value pairs as your configuration needs. However, the attributes' values must be integers." msgstr "" #. Tag: title #, no-c-format msgid "Specifying CPU and RAM capacities of two nodes" msgstr "" #. Tag: programlisting #, no-c-format msgid "<node id=\"node1\" type=\"normal\" uname=\"node1\">\n" " <utilization id=\"node1-utilization\">\n" " <nvpair id=\"node1-utilization-cpu\" name=\"cpu\" value=\"2\"/>\n" " <nvpair id=\"node1-utilization-memory\" name=\"memory\" value=\"2048\"/>\n" " </utilization>\n" "</node>\n" "<node id=\"node2\" type=\"normal\" uname=\"node2\">\n" " <utilization id=\"node2-utilization\">\n" " <nvpair id=\"node2-utilization-cpu\" name=\"cpu\" value=\"4\"/>\n" " <nvpair id=\"node2-utilization-memory\" name=\"memory\" value=\"4096\"/>\n" " </utilization>\n" "</node>" msgstr "" #. Tag: title #, no-c-format msgid "Specifying CPU and RAM consumed by several resources" msgstr "" #. Tag: programlisting #, no-c-format msgid "<primitive id=\"rsc-small\" class=\"ocf\" provider=\"pacemaker\" type=\"Dummy\">\n" " <utilization id=\"rsc-small-utilization\">\n" " <nvpair id=\"rsc-small-utilization-cpu\" name=\"cpu\" value=\"1\"/>\n" " <nvpair id=\"rsc-small-utilization-memory\" name=\"memory\" value=\"1024\"/>\n" " </utilization>\n" "</primitive>\n" "<primitive id=\"rsc-medium\" class=\"ocf\" provider=\"pacemaker\" type=\"Dummy\">\n" " <utilization id=\"rsc-medium-utilization\">\n" " <nvpair id=\"rsc-medium-utilization-cpu\" name=\"cpu\" value=\"2\"/>\n" " <nvpair id=\"rsc-medium-utilization-memory\" name=\"memory\" value=\"2048\"/>\n" " </utilization>\n" "</primitive>\n" "<primitive id=\"rsc-large\" class=\"ocf\" provider=\"pacemaker\" type=\"Dummy\">\n" " <utilization id=\"rsc-large-utilization\">\n" " <nvpair id=\"rsc-large-utilization-cpu\" name=\"cpu\" value=\"3\"/>\n" " <nvpair id=\"rsc-large-utilization-memory\" name=\"memory\" value=\"3072\"/>\n" " </utilization>\n" "</primitive>" msgstr "" #. Tag: para #, no-c-format msgid "A node is considered eligible for a resource if it has sufficient free capacity to satisfy the resource’s requirements. The nature of the required or provided capacities is completely irrelevant to Pacemaker — it just makes sure that all capacity requirements of a resource are satisfied before placing a resource to a node." msgstr "" #. Tag: title #, no-c-format msgid "Placement Strategy" msgstr "" #. Tag: para #, no-c-format msgid "After you have configured the capacities your nodes provide and the capacities your resources require, you need to set the placement-strategy in the global cluster options, otherwise the capacity configurations have no effect." msgstr "" #. Tag: para #, no-c-format msgid "Four values are available for the placement-strategy:" msgstr "" #. Tag: term #, no-c-format msgid "default" msgstr "" #. Tag: para #, no-c-format msgid "Utilization values are not taken into account at all. Resources are allocated according to allocation scores. If scores are equal, resources are evenly distributed across nodes." msgstr "" #. Tag: term #, no-c-format msgid "utilization" msgstr "" #. Tag: para #, no-c-format msgid "Utilization values are taken into account only when deciding whether a node is considered eligible (i.e. whether it has sufficient free capacity to satisfy the resource’s requirements). Load-balancing is still done based on the number of resources allocated to a node." msgstr "" #. Tag: term #, no-c-format msgid "balanced" msgstr "" #. Tag: para #, no-c-format msgid "Utilization values are taken into account when deciding whether a node is eligible to serve a resource and when load-balancing, so an attempt is made to spread the resources in a way that optimizes resource performance." msgstr "" #. Tag: term #, no-c-format msgid "minimal" msgstr "" #. Tag: para #, no-c-format msgid "Utilization values are taken into account only when deciding whether a node is eligible to serve a resource. For load-balancing, an attempt is made to concentrate the resources on as few nodes as possible, thereby enabling possible power savings on the remaining nodes." msgstr "" #. Tag: para #, no-c-format msgid "Set placement-strategy with crm_attribute:" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_attribute --name placement-strategy --update balanced" msgstr "" #. Tag: para #, no-c-format msgid "Now Pacemaker will ensure the load from your resources will be distributed evenly throughout the cluster, without the need for convoluted sets of colocation constraints." msgstr "" #. Tag: title #, no-c-format msgid "Allocation Details" msgstr "" #. Tag: title #, no-c-format msgid "Which node is preferred to get consumed first when allocating resources?" msgstr "" #. Tag: para #, no-c-format msgid "The node with the highest node weight gets consumed first. Node weight is a score maintained by the cluster to represent node health." msgstr "" #. Tag: para #, no-c-format msgid "If multiple nodes have the same node weight:" msgstr "" #. Tag: para #, no-c-format msgid "If placement-strategy is default or utilization, the node that has the least number of allocated resources gets consumed first." msgstr "" #. Tag: para #, no-c-format msgid "If their numbers of allocated resources are equal, the first eligible node listed in the CIB gets consumed first." msgstr "" #. Tag: para #, no-c-format msgid "If placement-strategy is balanced, the node that has the most free capacity gets consumed first." msgstr "" #. Tag: para #, no-c-format msgid "If the free capacities of the nodes are equal, the node that has the least number of allocated resources gets consumed first." msgstr "" #. Tag: para #, no-c-format msgid "If placement-strategy is minimal, the first eligible node listed in the CIB gets consumed first." msgstr "" #. Tag: title #, no-c-format msgid "Which node has more free capacity?" msgstr "" #. Tag: para #, no-c-format msgid "If only one type of utilization attribute has been defined, free capacity is a simple numeric comparison." msgstr "" #. Tag: para #, no-c-format msgid "If multiple types of utilization attributes have been defined, then the node that is numerically highest in the the most attribute types has the most free capacity. For example:" msgstr "" #. Tag: para #, no-c-format msgid "If nodeA has more free cpus, and nodeB has more free memory, then their free capacities are equal." msgstr "" #. Tag: para #, no-c-format msgid "If nodeA has more free cpus, while nodeB has more free memory and storage, then nodeB has more free capacity." msgstr "" #. Tag: title #, no-c-format msgid "Which resource is preferred to be assigned first?" msgstr "" #. Tag: para #, no-c-format msgid "The resource that has the highest priority (see ) gets allocated first." msgstr "" #. Tag: para #, no-c-format msgid "If their priorities are equal, check whether they are already running. The resource that has the highest score on the node where it’s running gets allocated first, to prevent resource shuffling." msgstr "" #. Tag: para #, no-c-format msgid "If the scores above are equal or the resources are not running, the resource has the highest score on the preferred node gets allocated first." msgstr "" #. Tag: para #, no-c-format msgid "If the scores above are equal, the first runnable resource listed in the CIB gets allocated first." msgstr "" #. Tag: title #, no-c-format msgid "Limitations and Workarounds" msgstr "" #. Tag: para #, no-c-format msgid "The type of problem Pacemaker is dealing with here is known as the knapsack problem and falls into the NP-complete category of computer science problems — a fancy way of saying \"it takes a really long time to solve\"." msgstr "" #. Tag: para #, no-c-format msgid "Clearly in a HA cluster, it’s not acceptable to spend minutes, let alone hours or days, finding an optional solution while services remain unavailable." msgstr "" #. Tag: para #, no-c-format msgid "So instead of trying to solve the problem completely, Pacemaker uses a best effort algorithm for determining which node should host a particular service. This means it arrives at a solution much faster than traditional linear programming algorithms, but by doing so at the price of leaving some services stopped." msgstr "" #. Tag: para #, no-c-format msgid "In the contrived example at the start of this section:" msgstr "" #. Tag: para #, no-c-format msgid "rsc-small would be allocated to node1" msgstr "" #. Tag: para #, no-c-format msgid "rsc-medium would be allocated to node2" msgstr "" #. Tag: para #, no-c-format msgid "rsc-large would remain inactive" msgstr "" #. Tag: para #, no-c-format msgid "Which is not ideal." msgstr "" #. Tag: para #, no-c-format msgid "There are various approaches to dealing with the limitations of pacemaker’s placement strategy:" msgstr "" #. Tag: term #, no-c-format msgid "Ensure you have sufficient physical capacity." msgstr "" #. Tag: para #, no-c-format msgid "It might sound obvious, but if the physical capacity of your nodes is (close to) maxed out by the cluster under normal conditions, then failover isn’t going to go well. Even without the utilization feature, you’ll start hitting timeouts and getting secondary failures." msgstr "" #. Tag: term #, no-c-format msgid "Build some buffer into the capabilities advertised by the nodes." msgstr "" #. Tag: para #, no-c-format msgid "Advertise slightly more resources than we physically have, on the (usually valid) assumption that a resource will not use 100% of the configured amount of CPU, memory and so forth all the time. This practice is sometimes called overcommit." msgstr "" #. Tag: term #, no-c-format msgid "Specify resource priorities." msgstr "" #. Tag: para #, no-c-format msgid "If the cluster is going to sacrifice services, it should be the ones you care about (comparatively) the least. Ensure that resource priorities are properly set so that your most important resources are scheduled first." msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Pacemaker_Explained.pot b/doc/Pacemaker_Explained/pot/Pacemaker_Explained.pot index f715ca374e..0779b0581f 100644 --- a/doc/Pacemaker_Explained/pot/Pacemaker_Explained.pot +++ b/doc/Pacemaker_Explained/pot/Pacemaker_Explained.pot @@ -1,44 +1,44 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Project Documentation: " msgstr "" #. Tag: para #, no-c-format msgid "SUSE High Availibility Guide: " msgstr "" #. Tag: para #, no-c-format msgid "Heartbeat configuration: " msgstr "" #. Tag: para #, no-c-format msgid "Corosync Configuration: " msgstr "" diff --git a/doc/Pacemaker_Explained/pot/Preface.pot b/doc/Pacemaker_Explained/pot/Preface.pot index 01aa1cc95d..1f366bf020 100644 --- a/doc/Pacemaker_Explained/pot/Preface.pot +++ b/doc/Pacemaker_Explained/pot/Preface.pot @@ -1,19 +1,19 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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/Pacemaker_Explained/pot/Revision_History.pot b/doc/Pacemaker_Explained/pot/Revision_History.pot index 886c776f17..62420935c8 100644 --- a/doc/Pacemaker_Explained/pot/Revision_History.pot +++ b/doc/Pacemaker_Explained/pot/Revision_History.pot @@ -1,79 +1,89 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "" #. Tag: member #, no-c-format msgid "Cleanup and reformatting of docbook xml complete" msgstr "" #. Tag: member #, no-c-format msgid "Split book into chapters and pass validation" msgstr "" #. Tag: member #, no-c-format msgid "Re-organize book for use with Publican" msgstr "" #. Tag: member #, no-c-format msgid "Converted to asciidoc (which is converted to docbook for use with Publican)" msgstr "" #. Tag: firstname #, no-c-format msgid "Ken" msgstr "" #. Tag: surname #, no-c-format msgid "Gaillot" msgstr "" #. Tag: member #, no-c-format msgid "Update for clarity, stylistic consistency and current command-line syntax" msgstr "" #. Tag: member #, no-c-format msgid "Update for Pacemaker 1.1.14" msgstr "" #. Tag: member #, no-c-format msgid "Update for Pacemaker 1.1.15" msgstr "" +#. Tag: member +#, no-c-format +msgid "Overhaul upgrade documentation, and document node health strategies" +msgstr "" + +#. Tag: member +#, no-c-format +msgid "Update for Pacemaker 1.1.16" +msgstr "" + diff --git a/doc/Pacemaker_Remote/pot/Author_Group.pot b/doc/Pacemaker_Remote/pot/Author_Group.pot index 3b4203d1d1..bf98059974 100644 --- a/doc/Pacemaker_Remote/pot/Author_Group.pot +++ b/doc/Pacemaker_Remote/pot/Author_Group.pot @@ -1,34 +1,34 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "David" msgstr "" #. Tag: surname #, no-c-format msgid "Vossel" msgstr "" #. Tag: orgname #, no-c-format msgid "Red Hat" msgstr "" #. Tag: contrib #, no-c-format msgid "Primary author" msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Book_Info.pot b/doc/Pacemaker_Remote/pot/Book_Info.pot index d2a6a8e310..b05dd8738e 100644 --- a/doc/Pacemaker_Remote/pot/Book_Info.pot +++ b/doc/Pacemaker_Remote/pot/Book_Info.pot @@ -1,74 +1,74 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Pacemaker Remote" msgstr "" #. Tag: subtitle #, no-c-format msgid "Scaling High Availablity Clusters" msgstr "" #. Tag: para #, no-c-format msgid "The document exists as both a reference and deployment guide for the Pacemaker Remote service." msgstr "" #. Tag: para #, no-c-format msgid "The example commands in this document will use:" msgstr "" #. Tag: para #, no-c-format msgid "&DISTRO; &DISTRO_VERSION; as the host operating system" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker Remote to perform resource management within guest nodes and remote nodes" msgstr "" #. Tag: para #, no-c-format msgid "KVM for virtualization" msgstr "" #. Tag: para #, no-c-format msgid "libvirt to manage guest nodes" msgstr "" #. Tag: para #, no-c-format msgid "Corosync to provide messaging and membership services on cluster nodes" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker to perform resource management on cluster nodes" msgstr "" #. Tag: para #, no-c-format msgid "pcs as the cluster configuration toolset" msgstr "" #. Tag: para #, no-c-format msgid "The concepts are the same for other distributions, virtualization platforms, toolsets, and messaging layers, and should be easily adaptable." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-Alternatives.pot b/doc/Pacemaker_Remote/pot/Ch-Alternatives.pot index f79938fd9c..56442f3139 100644 --- a/doc/Pacemaker_Remote/pot/Ch-Alternatives.pot +++ b/doc/Pacemaker_Remote/pot/Ch-Alternatives.pot @@ -1,109 +1,109 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Alternative Configurations" msgstr "" #. Tag: para #, no-c-format msgid "These alternative configurations may be appropriate in limited cases, such as a test cluster, but are not the best method in most situations. They are presented here for completeness and as an example of pacemaker’s flexibility to suit your needs." msgstr "" #. Tag: title #, no-c-format msgid "Virtual Machines as Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "The preferred use of virtual machines in a pacemaker cluster is as a cluster resource, whether opaque or as a guest node. However, it is possible to run the full cluster stack on a virtual node instead." msgstr "" #. Tag: para #, no-c-format msgid "This is commonly used to set up test environments; a single physical host (that does not participate in the cluster) runs two or more virtual machines, all running the full cluster stack. This can be used to simulate a larger cluster for testing purposes." msgstr "" #. Tag: para #, no-c-format msgid "In a production environment, fencing becomes more complicated, especially if the underlying hosts run any services besides the clustered VMs. If the VMs are not guaranteed a minimum amount of host resources, CPU and I/O contention can cause timing issues for cluster components." msgstr "" #. Tag: para #, no-c-format msgid "Another situation where this approach is sometimes used is when the cluster owner leases the VMs from a provider and does not have direct access to the underlying host. The main concerns in this case are proper fencing (usually via a custom resource agent that communicates with the provider’s APIs) and maintaining a static IP address between reboots, as well as resource contention issues." msgstr "" #. Tag: title #, no-c-format msgid "Virtual Machines as Remote Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Virtual machines may be configured following the process for remote nodes rather than guest nodes (i.e., using an ocf:pacemaker:remote resource rather than letting the cluster manage the VM directly)." msgstr "" #. Tag: para #, no-c-format msgid "This is mainly useful in testing, to use a single physical host to simulate a larger cluster involving remote nodes. Pacemaker’s Cluster Test Suite (CTS) uses this approach to test remote node functionality." msgstr "" #. Tag: title #, no-c-format msgid "Containers as Guest Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Containers,https://en.wikipedia.org/wiki/Operating-system-level_virtualization and in particular Linux containers (LXC) and Docker, have become a popular method of isolating services in a resource-efficient manner." msgstr "" #. Tag: para #, no-c-format msgid "The preferred means of integrating containers into Pacemaker is as a cluster resource, whether opaque or using Pacemaker’s built-in resource isolation support.Documentation for this support is planned but not yet available." msgstr "" #. Tag: para #, no-c-format msgid "However, it is possible to run pacemaker_remote inside a container, following the process for guest nodes. This is not recommended but can be useful, for example, in testing scenarios, to simulate a large number of guest nodes." msgstr "" #. Tag: para #, no-c-format msgid "The configuration process is very similar to that described for guest nodes using virtual machines. Key differences:" msgstr "" #. Tag: para #, no-c-format msgid "The underlying host must install the libvirt driver for the desired container technology — for example, the libvirt-daemon-lxc package to get the libvirt-lxc driver for LXC containers." msgstr "" #. Tag: para #, no-c-format msgid "Libvirt XML definitions must be generated for the containers. The pacemaker-cts package includes a script for this purpose, /usr/share/pacemaker/tests/cts/lxc_autogen.sh. Run it with the --help option for details on how to use it. It is intended for testing purposes only, and hardcodes various parameters that would need to be set appropriately in real usage. Of course, you can create XML definitions manually, following the appropriate libvirt driver documentation." msgstr "" #. Tag: para #, no-c-format msgid "To share the authentication key, either share the host’s /etc/pacemaker directory with the container, or copy the key into the container’s filesystem." msgstr "" #. Tag: para #, no-c-format msgid "The VirtualDomain resource for a container will need force_stop=\"true\" and an appropriate hypervisor option, for example hypervisor=\"lxc:///\" for LXC containers." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-Baremetal-Tutorial.pot b/doc/Pacemaker_Remote/pot/Ch-Baremetal-Tutorial.pot index 1d1bc56c28..25d3249fad 100644 --- a/doc/Pacemaker_Remote/pot/Ch-Baremetal-Tutorial.pot +++ b/doc/Pacemaker_Remote/pot/Ch-Baremetal-Tutorial.pot @@ -1,458 +1,458 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Remote Node Walk-through" msgstr "" #. Tag: para #, no-c-format msgid "What this tutorial is: An in-depth walk-through of how to get Pacemaker to integrate a remote node into the cluster as a node capable of running cluster resources." msgstr "" #. Tag: para #, no-c-format msgid "What this tutorial is not: A realistic deployment scenario. The steps shown here are meant to get users familiar with the concept of remote nodes as quickly as possible." msgstr "" #. Tag: para #, no-c-format msgid "This tutorial requires three machines: two to act as cluster nodes, and a third to act as the remote node." msgstr "" #. Tag: title #, no-c-format msgid "Configure Remote Node" msgstr "" #. Tag: title #, no-c-format msgid "Configure Firewall on Remote Node" msgstr "" #. Tag: para #, no-c-format msgid "Allow cluster-related services through the local firewall:" msgstr "" #. Tag: screen #, no-c-format msgid "# firewall-cmd --permanent --add-service=high-availability\n" "success\n" "# firewall-cmd --reload\n" "success" msgstr "" #. Tag: para #, no-c-format msgid "If you are using iptables directly, or some other firewall solution besides firewalld, simply open the following ports, which can be used by various clustering components: TCP ports 2224, 3121, and 21064, and UDP port 5405." msgstr "" #. Tag: para #, no-c-format msgid "If you run into any problems during testing, you might want to disable the firewall and SELinux entirely until you have everything working. This may create significant security issues and should not be performed on machines that will be exposed to the outside world, but may be appropriate during development and testing on a protected host." msgstr "" #. Tag: para #, no-c-format msgid "To disable security measures:" msgstr "" #. Tag: screen #, no-c-format msgid "# setenforce 0\n" "# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" "# systemctl disable firewalld.service\n" "# systemctl stop firewalld.service\n" "# iptables --flush" msgstr "" #. Tag: title #, no-c-format msgid "Configure pacemaker_remote on Remote Node" msgstr "" #. Tag: para #, no-c-format msgid "Install the pacemaker_remote daemon on the remote node." msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y pacemaker-remote resource-agents pcs" msgstr "" #. Tag: para #, no-c-format msgid "Create a location for the shared authentication key:" msgstr "" #. Tag: screen #, no-c-format msgid "# mkdir -p --mode=0750 /etc/pacemaker\n" "# chgrp haclient /etc/pacemaker" msgstr "" #. Tag: para #, no-c-format msgid "All nodes (both cluster nodes and remote nodes) must have the same authentication key installed for the communication to work correctly. If you already have a key on an existing node, copy it to the new remote node. Otherwise, create a new key, for example:" msgstr "" #. Tag: screen #, no-c-format msgid "# dd if=/dev/urandom of=/etc/pacemaker/authkey bs=4096 count=1" msgstr "" #. Tag: para #, no-c-format msgid "Now start and enable the pacemaker_remote daemon on the remote node." msgstr "" #. Tag: screen #, no-c-format msgid "# systemctl enable pacemaker_remote.service\n" "# systemctl start pacemaker_remote.service" msgstr "" #. Tag: para #, no-c-format msgid "Verify the start is successful." msgstr "" #. Tag: screen #, no-c-format msgid "# systemctl status pacemaker_remote\n" "pacemaker_remote.service - Pacemaker Remote Service\n" " Loaded: loaded (/usr/lib/systemd/system/pacemaker_remote.service; enabled)\n" " Active: active (running) since Fri 2015-08-21 15:21:20 CDT; 20s ago\n" " Main PID: 21273 (pacemaker_remot)\n" " CGroup: /system.slice/pacemaker_remote.service\n" " └─21273 /usr/sbin/pacemaker_remoted\n" "\n" "Aug 21 15:21:20 remote1 systemd[1]: Starting Pacemaker Remote Service...\n" "Aug 21 15:21:20 remote1 systemd[1]: Started Pacemaker Remote Service.\n" "Aug 21 15:21:20 remote1 pacemaker_remoted[21273]: notice: crm_add_logfile: Additional logging available in /var/log/pacemaker.log\n" "Aug 21 15:21:20 remote1 pacemaker_remoted[21273]: notice: lrmd_init_remote_tls_server: Starting a tls listener on port 3121.\n" "Aug 21 15:21:20 remote1 pacemaker_remoted[21273]: notice: bind_and_listen: Listening on address ::" msgstr "" #. Tag: title #, no-c-format msgid "Verify Connection to Remote Node" msgstr "" #. Tag: para #, no-c-format msgid "Before moving forward, it’s worth verifying that the cluster nodes can contact the remote node on port 3121. Here’s a trick you can use. Connect using ssh from each of the cluster nodes. The connection will get destroyed, but how it is destroyed tells you whether it worked or not." msgstr "" #. Tag: para #, no-c-format msgid "First, add the remote node’s hostname (we’re using remote1 in this tutorial) to the cluster nodes' /etc/hosts files if you haven’t already. This is required unless you have DNS set up in a way where remote1’s address can be discovered." msgstr "" #. Tag: para #, no-c-format msgid "Execute the following on each cluster node, replacing the IP address with the actual IP address of the remote node." msgstr "" #. Tag: screen #, no-c-format msgid "# cat << END >> /etc/hosts\n" "192.168.122.10 remote1\n" "END" msgstr "" #. Tag: para #, no-c-format msgid "If running the ssh command on one of the cluster nodes results in this output before disconnecting, the connection works:" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 remote1\n" "ssh_exchange_identification: read: Connection reset by peer" msgstr "" #. Tag: para #, no-c-format msgid "If you see one of these, the connection is not working:" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 remote1\n" "ssh: connect to host remote1 port 3121: No route to host" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 remote1\n" "ssh: connect to host remote1 port 3121: Connection refused" msgstr "" #. Tag: para #, no-c-format msgid "Once you can successfully connect to the remote node from the both cluster nodes, move on to setting up Pacemaker on the cluster nodes." msgstr "" #. Tag: title #, no-c-format msgid "Configure Cluster Nodes" msgstr "" #. Tag: title #, no-c-format msgid "Configure Firewall on Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "On each cluster node, allow cluster-related services through the local firewall, following the same procedure as in ." msgstr "" #. Tag: title #, no-c-format msgid "Install Pacemaker on Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "On the two cluster nodes, install the following packages." msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y pacemaker corosync pcs resource-agents" msgstr "" #. Tag: title #, no-c-format msgid "Copy Authentication Key to Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Create a location for the shared authentication key, and copy it from any existing node:" msgstr "" #. Tag: screen #, no-c-format msgid "# mkdir -p --mode=0750 /etc/pacemaker\n" "# chgrp haclient /etc/pacemaker\n" "# scp remote1:/etc/pacemaker/authkey /etc/pacemaker/authkey" msgstr "" #. Tag: title #, no-c-format msgid "Configure Corosync on Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Corosync handles Pacemaker’s cluster membership and messaging. The corosync config file is located in /etc/corosync/corosync.conf. That config file must be initialized with information about the two cluster nodes before pacemaker can start." msgstr "" #. Tag: para #, no-c-format msgid "To initialize the corosync config file, execute the following pcs command on both nodes, filling in the information in <> with your nodes' information." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster setup --force --local --name mycluster <node1 ip or hostname> <node2 ip or hostname>" msgstr "" #. Tag: title #, no-c-format msgid "Start Pacemaker on Cluster Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Start the cluster stack on both cluster nodes using the following command." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster start" msgstr "" #. Tag: para #, no-c-format msgid "Verify corosync membership" msgstr "" #. Tag: literallayout #, no-c-format msgid "# pcs status corosync\n" "Membership information\n" "----------------------\n" " Nodeid Votes Name\n" " 1 1 node1 (local)" msgstr "" #. Tag: para #, no-c-format msgid "Verify Pacemaker status. At first, the pcs cluster status output will look like this." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 21 16:14:05 2015\n" "Last change: Fri Aug 21 14:02:14 2015\n" "Stack: corosync\n" "Current DC: NONE\n" "Version: 1.1.12-a14efad\n" "1 Nodes configured, unknown expected votes\n" "0 Resources configured" msgstr "" #. Tag: para #, no-c-format msgid "After about a minute, you should see your two cluster nodes come online." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Aug 21 16:16:32 2015\n" "Last change: Fri Aug 21 14:02:14 2015\n" "Stack: corosync\n" "Current DC: node1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "2 Nodes configured\n" "0 Resources configured\n" "\n" "Online: [ node1 node2 ]" msgstr "" #. Tag: para #, no-c-format msgid "For the sake of this tutorial, we are going to disable stonith to avoid having to cover fencing device configuration." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs property set stonith-enabled=false" msgstr "" #. Tag: title #, no-c-format msgid "Integrate Remote Node into Cluster" msgstr "" #. Tag: para #, no-c-format msgid "Integrating a remote node into the cluster is achieved through the creation of a remote node connection resource. The remote node connection resource both establishes the connection to the remote node and defines that the remote node exists. Note that this resource is actually internal to Pacemaker’s crmd component. A metadata file for this resource can be found in the /usr/lib/ocf/resource.d/pacemaker/remote file that describes what options are available, but there is no actual ocf:pacemaker:remote resource agent script that performs any work." msgstr "" #. Tag: para #, no-c-format msgid "Define the remote node connection resource to our remote node, remote1, using the following command on any cluster node." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create remote1 ocf:pacemaker:remote" msgstr "" #. Tag: para #, no-c-format msgid "That’s it. After a moment you should see the remote node come online." msgstr "" #. Tag: screen #, no-c-format msgid "Cluster name: mycluster\n" "Last updated: Fri Aug 21 17:13:09 2015\n" "Last change: Fri Aug 21 17:02:02 2015\n" "Stack: corosync\n" "Current DC: node1 (1) - partition with quorum\n" "Version: 1.1.12-a14efad\n" "3 Nodes configured\n" "1 Resources configured\n" "\n" "\n" "Online: [ node1 node2 ]\n" "RemoteOnline: [ remote1 ]\n" "\n" "Full list of resources:\n" "\n" " remote1 (ocf::pacemaker:remote): Started node1\n" "\n" "PCSD Status:\n" " node1: Online\n" " node2: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Starting Resources on Remote Node" msgstr "" #. Tag: para #, no-c-format msgid "Once the remote node is integrated into the cluster, starting resources on a remote node is the exact same as on cluster nodes. Refer to the Clusters from Scratch document for examples of resource creation." msgstr "" #. Tag: para #, no-c-format msgid "Never involve a remote node connection resource in a resource group, colocation constraint, or order constraint." msgstr "" #. Tag: title #, no-c-format msgid "Fencing Remote Nodes" msgstr "" #. Tag: para #, no-c-format msgid "Remote nodes are fenced the same way as cluster nodes. No special considerations are required. Configure fencing resources for use with remote nodes the same as you would with cluster nodes." msgstr "" #. Tag: para #, no-c-format msgid "Note, however, that remote nodes can never initiate a fencing action. Only cluster nodes are capable of actually executing a fencing operation against another node." msgstr "" #. Tag: title #, no-c-format msgid "Accessing Cluster Tools from a Remote Node" msgstr "" #. Tag: para #, no-c-format msgid "Besides allowing the cluster to manage resources on a remote node, pacemaker_remote has one other trick. The pacemaker_remote daemon allows nearly all the pacemaker tools (crm_resource, crm_mon, crm_attribute, crm_master, etc.) to work on remote nodes natively." msgstr "" #. Tag: para #, no-c-format msgid "Try it: Run crm_mon on the remote node after pacemaker has integrated it into the cluster. These tools just work. These means resource agents such as master/slave resources which need access to tools like crm_master work seamlessly on the remote nodes." msgstr "" #. Tag: para #, no-c-format msgid "Higher-level command shells such as pcs may have partial support on remote nodes, but it is recommended to run them from a cluster node." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-Example.pot b/doc/Pacemaker_Remote/pot/Ch-Example.pot index 869200d5a5..f8b6fd11dc 100644 --- a/doc/Pacemaker_Remote/pot/Ch-Example.pot +++ b/doc/Pacemaker_Remote/pot/Ch-Example.pot @@ -1,174 +1,174 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Guest Node Quick Example" msgstr "" #. Tag: para #, no-c-format msgid "If you already know how to use Pacemaker, you’ll likely be able to grasp this new concept of guest nodes by reading through this quick example without having to sort through all the detailed walk-through steps. Here are the key configuration ingredients that make this possible using libvirt and KVM virtual guests. These steps strip everything down to the very basics. guest node nodeguest node guest node " msgstr "" #. Tag: title #, no-c-format msgid "Mile-High View of Configuration Steps" msgstr "" #. Tag: para #, no-c-format msgid "Give each virtual machine that will be used as a guest node a static network address and unique hostname." msgstr "" #. Tag: para #, no-c-format msgid "Put the same authentication key with the path /etc/pacemaker/authkey on every cluster node and virtual machine. This secures remote communication." msgstr "" #. Tag: para #, no-c-format msgid "Run this command if you want to make a somewhat random key:" msgstr "" #. Tag: screen #, no-c-format msgid "dd if=/dev/urandom of=/etc/pacemaker/authkey bs=4096 count=1" msgstr "" #. Tag: para #, no-c-format msgid "Install pacemaker_remote on every virtual machine, enabling it to start at boot, and if a local firewall is used, allow the node to accept connections on TCP port 3121." msgstr "" #. Tag: screen #, no-c-format msgid "yum install pacemaker-remote resource-agents\n" "systemctl enable pacemaker_remote\n" "firewall-cmd --add-port 3121/tcp --permanent" msgstr "" #. Tag: para #, no-c-format msgid "If you just want to see this work, you may want to simply disable the local firewall and put SELinux in permissive mode while testing. This creates security risks and should not be done on a production machine exposed to the Internet, but can be appropriate for a protected test machine." msgstr "" #. Tag: para #, no-c-format msgid "Create a Pacemaker resource to launch each virtual machine, using the remote-node meta-attribute to let Pacemaker know this will be a guest node capable of running resources." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create vm-guest1 VirtualDomain hypervisor=\"qemu:///system\" config=\"vm-guest1.xml\" meta remote-node=\"guest1\"" msgstr "" #. Tag: para #, no-c-format msgid "The above command will create CIB XML similar to the following:" msgstr "" #. Tag: programlisting #, no-c-format msgid " <primitive class=\"ocf\" id=\"vm-guest1\" provider=\"heartbeat\" type=\"VirtualDomain\">\n" " <instance_attributes id=\"vm-guest-instance_attributes\">\n" " <nvpair id=\"vm-guest1-instance_attributes-hypervisor\" name=\"hypervisor\" value=\"qemu:///system\"/>\n" " <nvpair id=\"vm-guest1-instance_attributes-config\" name=\"config\" value=\"guest1.xml\"/>\n" " </instance_attributes>\n" " <operations>\n" " <op id=\"vm-guest1-interval-30s\" interval=\"30s\" name=\"monitor\"/>\n" " </operations>\n" " <meta_attributes id=\"vm-guest1-meta_attributes\">\n" " <nvpair id=\"vm-guest1-meta_attributes-remote-node\" name=\"remote-node\" value=\"guest1\"/>\n" " </meta_attributes>\n" " </primitive>" msgstr "" #. Tag: para #, no-c-format msgid "In the example above, the meta-attribute remote-node=\"guest1\" tells Pacemaker that this resource is a guest node with the hostname guest1. The cluster will attempt to contact the virtual machine’s pacemaker_remote service at the hostname guest1 after it launches." msgstr "" #. Tag: para #, no-c-format msgid "The ID of the resource creating the virtual machine (vm-guest1 in the above example) must be different from the virtual machine’s uname (guest1 in the above example). Pacemaker will create an implicit internal resource for the pacemaker_remote connection to the guest, named with the value of remote-node, so that value cannot be used as the name of any other resource." msgstr "" #. Tag: title #, no-c-format msgid "Using a Guest Node" msgstr "" #. Tag: para #, no-c-format msgid "Guest nodes will show up in crm_mon output as normal:" msgstr "" #. Tag: title #, no-c-format msgid "Example crm_mon output after guest1 is integrated into cluster" msgstr "" #. Tag: screen #, no-c-format msgid "Last updated: Wed Mar 13 13:52:39 2013\n" "Last change: Wed Mar 13 13:25:17 2013 via crmd on node1\n" "Stack: corosync\n" "Current DC: node1 (24815808) - partition with quorum\n" "Version: 1.1.10\n" "2 Nodes configured, unknown expected votes\n" "2 Resources configured.\n" "\n" "Online: [ node1 guest1]\n" "\n" "vm-guest1 (ocf::heartbeat:VirtualDomain): Started node1" msgstr "" #. Tag: para #, no-c-format msgid "Now, you could place a resource, such as a webserver, on guest1:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create webserver apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=30s\n" "# pcs constraint location webserver prefers guest1" msgstr "" #. Tag: para #, no-c-format msgid "Now, the crm_mon output would show:" msgstr "" #. Tag: screen #, no-c-format msgid "Last updated: Wed Mar 13 13:52:39 2013\n" "Last change: Wed Mar 13 13:25:17 2013 via crmd on node1\n" "Stack: corosync\n" "Current DC: node1 (24815808) - partition with quorum\n" "Version: 1.1.10\n" "2 Nodes configured, unknown expected votes\n" "2 Resources configured.\n" "\n" "Online: [ node1 guest1]\n" "\n" "vm-guest1 (ocf::heartbeat:VirtualDomain): Started node1\n" "webserver (ocf::heartbeat::apache): Started guest1" msgstr "" #. Tag: para #, no-c-format msgid "It is worth noting that after guest1 is integrated into the cluster, nearly all the Pacemaker command-line tools immediately become available to the guest node. This means things like crm_mon, crm_resource, and crm_attribute will work natively on the guest node, as long as the connection between the guest node and a cluster node exists. This is particularly important for any master/slave resources executing on the guest node that need access to crm_master to set transient attributes." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-Intro.pot b/doc/Pacemaker_Remote/pot/Ch-Intro.pot index 4616770a77..fecba84c9e 100644 --- a/doc/Pacemaker_Remote/pot/Ch-Intro.pot +++ b/doc/Pacemaker_Remote/pot/Ch-Intro.pot @@ -1,374 +1,374 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Scaling a Pacemaker Cluster" msgstr "" #. Tag: title #, no-c-format msgid "Overview" msgstr "" #. Tag: para #, no-c-format msgid "In a basic Pacemaker high-availability cluster,See the Pacemaker documentation, especially Clusters From Scratch and Pacemaker Explained, for basic information about high-availability using Pacemaker each node runs the full cluster stack of corosync and all Pacemaker components. This allows great flexibility but limits scalability to around 16 nodes." msgstr "" #. Tag: para #, no-c-format msgid "To allow for scalability to dozens or even hundreds of nodes, Pacemaker allows nodes not running the full cluster stack to integrate into the cluster and have the cluster manage their resources as if they were a cluster node." msgstr "" #. Tag: title #, no-c-format msgid "Terms" msgstr "" #. Tag: term #, no-c-format msgid "cluster node" msgstr "" #. Tag: para #, no-c-format msgid "A node running the full high-availability stack of corosync and all Pacemaker components. Cluster nodes may run cluster resources, run all Pacemaker command-line tools (crm_mon, crm_resource and so on), execute fencing actions, count toward cluster quorum, and serve as the cluster’s Designated Controller (DC). cluster node nodecluster node cluster node " msgstr "" #. Tag: term #, no-c-format msgid "pacemaker_remote" msgstr "" #. Tag: para #, no-c-format msgid "A small service daemon that allows a host to be used as a Pacemaker node without running the full cluster stack. Nodes running pacemaker_remote may run cluster resources and most command-line tools, but cannot perform other functions of full cluster nodes such as fencing execution, quorum voting or DC eligibility. The pacemaker_remote daemon is an enhanced version of Pacemaker’s local resource management daemon (LRMD). pacemaker_remote " msgstr "" #. Tag: term #, no-c-format msgid "remote node" msgstr "" #. Tag: para #, no-c-format msgid "A physical host running pacemaker_remote. Remote nodes have a special resource that manages communication with the cluster. This is sometimes referred to as the baremetal case. remote node noderemote node remote node " msgstr "" #. Tag: term #, no-c-format msgid "guest node" msgstr "" #. Tag: para #, no-c-format msgid "A virtual host running pacemaker_remote. Guest nodes differ from remote nodes mainly in that the guest node is itself a resource that the cluster manages. guest node nodeguest node guest node " msgstr "" #. Tag: para #, no-c-format msgid "Remote in this document refers to the node not being a part of the underlying corosync cluster. It has nothing to do with physical proximity. Remote nodes and guest nodes are subject to the same latency requirements as cluster nodes, which means they are typically in the same data center." msgstr "" #. Tag: para #, no-c-format msgid "It is important to distinguish the various roles a virtual machine can serve in Pacemaker clusters:" msgstr "" #. Tag: para #, no-c-format msgid "A virtual machine can run the full cluster stack, in which case it is a cluster node and is not itself managed by the cluster." msgstr "" #. Tag: para #, no-c-format msgid "A virtual machine can be managed by the cluster as a resource, without the cluster having any awareness of the services running inside the virtual machine. The virtual machine is opaque to the cluster." msgstr "" #. Tag: para #, no-c-format msgid "A virtual machine can be a cluster resource, and run pacemaker_remote to make it a guest node, allowing the cluster to manage services inside it. The virtual machine is transparent to the cluster." msgstr "" #. Tag: title #, no-c-format msgid "Support in Pacemaker Versions" msgstr "" #. Tag: para #, no-c-format -msgid "It is recommended to run Pacemaker 1.1.12 or later when using pacemaker_remote due to important bug fixes. An overview of changes in pacemaker_remote capability by version:" +msgid "It is recommended to run Pacemaker 1.1.12 or later when using pacemaker_remote due to important bug fixes. An overview of changes in pacemaker_remote capability by version (aside from bug fixes, which are included in every version):" msgstr "" #. Tag: title #, no-c-format -msgid "1.1.15" +msgid "1.1.16" msgstr "" #. Tag: para #, no-c-format -msgid "If pacemaker_remote is stopped on an active node, it will wait for the cluster to migrate all resources off before exiting, rather than exit immediately and get fenced." +msgid "Support for watchdog-based fencing (sbd) on remote nodes" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "1.1.15" msgstr "" #. Tag: para #, no-c-format -msgid "Bug fixes" +msgid "If pacemaker_remote is stopped on an active node, it will wait for the cluster to migrate all resources off before exiting, rather than exit immediately and get fenced." msgstr "" #. Tag: title #, no-c-format msgid "1.1.14" msgstr "" #. Tag: para #, no-c-format msgid "Resources that create guest nodes can be included in groups" msgstr "" #. Tag: para #, no-c-format msgid "reconnect_interval option for remote nodes" msgstr "" -#. Tag: para -#, no-c-format -msgid "Bug fixes, including a memory leak" -msgstr "" - #. Tag: title #, no-c-format msgid "1.1.13" msgstr "" #. Tag: para #, no-c-format msgid "Support for maintenance mode" msgstr "" #. Tag: para #, no-c-format msgid "Remote nodes can recover without being fenced when the cluster node hosting their connection fails" msgstr "" #. Tag: para #, no-c-format msgid "Running pacemaker_remote within LXC environments is deprecated due to newly added Pacemaker support for isolated resources" msgstr "" +#. Tag: para +#, no-c-format +msgid "#kind built-in node attribute for use with rules" +msgstr "" + #. Tag: title #, no-c-format msgid "1.1.12" msgstr "" #. Tag: para #, no-c-format msgid "Support for permanent node attributes" msgstr "" #. Tag: para #, no-c-format msgid "Support for migration" msgstr "" #. Tag: title #, no-c-format msgid "1.1.11" msgstr "" #. Tag: para #, no-c-format msgid "Support for IPv6" msgstr "" #. Tag: para #, no-c-format msgid "Support for remote nodes" msgstr "" #. Tag: para #, no-c-format msgid "Support for transient node attributes" msgstr "" #. Tag: para #, no-c-format msgid "Support for clusters with mixed endian architectures" msgstr "" -#. Tag: title -#, no-c-format -msgid "1.1.10" -msgstr "" - #. Tag: title #, no-c-format msgid "1.1.9" msgstr "" #. Tag: para #, no-c-format msgid "Initial version to include pacemaker_remote" msgstr "" #. Tag: para #, no-c-format msgid "Limited to guest nodes in KVM/LXC environments using only IPv4; all nodes' architectures must have same endianness" msgstr "" #. Tag: title #, no-c-format msgid "Guest Nodes" msgstr "" #. Tag: para #, no-c-format msgid " guest node nodeguest node guest node " msgstr "" #. Tag: para #, no-c-format msgid "\"I want a Pacemaker cluster to manage virtual machine resources, but I also want Pacemaker to be able to manage the resources that live within those virtual machines.\"" msgstr "" #. Tag: para #, no-c-format msgid "Without pacemaker_remote, the possibilities for implementing the above use case have significant limitations:" msgstr "" #. Tag: para #, no-c-format msgid "The cluster stack could be run on the physical hosts only, which loses the ability to monitor resources within the guests." msgstr "" #. Tag: para #, no-c-format msgid "A separate cluster could be on the virtual guests, which quickly hits scalability issues." msgstr "" #. Tag: para #, no-c-format msgid "The cluster stack could be run on the guests using the same cluster as the physical hosts, which also hits scalability issues and complicates fencing." msgstr "" #. Tag: para #, no-c-format msgid "With pacemaker_remote:" msgstr "" #. Tag: para #, no-c-format msgid "The physical hosts are cluster nodes (running the full cluster stack)." msgstr "" #. Tag: para #, no-c-format msgid "The virtual machines are guest nodes (running the pacemaker_remote service). Nearly zero configuration is required on the virtual machine." msgstr "" #. Tag: para #, no-c-format msgid "The cluster stack on the cluster nodes launches the virtual machines and immediately connects to the pacemaker_remote service on them, allowing the virtual machines to integrate into the cluster." msgstr "" #. Tag: para #, no-c-format msgid "The key difference here between the guest nodes and the cluster nodes is that the guest nodes do not run the cluster stack. This means they will never become the DC, initiate fencing actions or participate in quorum voting." msgstr "" #. Tag: para #, no-c-format msgid "On the other hand, this also means that they are not bound to the scalability limits associated with the cluster stack (no 16-node corosync member limits to deal with). That isn’t to say that guest nodes can scale indefinitely, but it is known that guest nodes scale horizontally much further than cluster nodes." msgstr "" #. Tag: para #, no-c-format msgid "Other than the quorum limitation, these guest nodes behave just like cluster nodes with respect to resource management. The cluster is fully capable of managing and monitoring resources on each guest node. You can build constraints against guest nodes, put them in standby, or do whatever else you’d expect to be able to do with cluster nodes. They even show up in crm_mon output as nodes." msgstr "" #. Tag: para #, no-c-format msgid "To solidify the concept, below is an example that is very similar to an actual deployment we test in our developer environment to verify guest node scalability:" msgstr "" #. Tag: para #, no-c-format msgid "16 cluster nodes running the full corosync + pacemaker stack" msgstr "" #. Tag: para #, no-c-format msgid "64 Pacemaker-managed virtual machine resources running pacemaker_remote configured as guest nodes" msgstr "" #. Tag: para #, no-c-format msgid "64 Pacemaker-managed webserver and database resources configured to run on the 64 guest nodes" msgstr "" #. Tag: para #, no-c-format msgid "With this deployment, you would have 64 webservers and databases running on 64 virtual machines on 16 hardware nodes, all of which are managed and monitored by the same Pacemaker deployment. It is known that pacemaker_remote can scale to these lengths and possibly much further depending on the specific scenario." msgstr "" #. Tag: title #, no-c-format msgid "Remote Nodes" msgstr "" #. Tag: para #, no-c-format msgid " remote node noderemote node remote node " msgstr "" #. Tag: para #, no-c-format msgid "\"I want my traditional high-availability cluster to scale beyond the limits imposed by the corosync messaging layer.\"" msgstr "" #. Tag: para #, no-c-format msgid "Ultimately, the primary advantage of remote nodes over cluster nodes is scalability. There are likely some other use cases related to geographically distributed HA clusters that remote nodes may serve a purpose in, but those use cases are not well understood at this point." msgstr "" #. Tag: para #, no-c-format msgid "Like guest nodes, remote nodes will never become the DC, initiate fencing actions or participate in quorum voting." msgstr "" #. Tag: para #, no-c-format msgid "That is not to say, however, that fencing of a remote node works any differently than that of a cluster node. The Pacemaker policy engine understands how to fence remote nodes. As long as a fencing device exists, the cluster is capable of ensuring remote nodes are fenced in the exact same way as cluster nodes." msgstr "" #. Tag: title #, no-c-format msgid "Expanding the Cluster Stack" msgstr "" #. Tag: para #, no-c-format msgid "With pacemaker_remote, the traditional view of the high-availability stack can be expanded to include a new layer:" msgstr "" #. Tag: title #, no-c-format msgid "Traditional HA Stack" msgstr "" #. Tag: title #, no-c-format msgid "HA Stack With Guest Nodes" msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-KVM-Tutorial.pot b/doc/Pacemaker_Remote/pot/Ch-KVM-Tutorial.pot index ae9f3718b9..3e230bf8af 100644 --- a/doc/Pacemaker_Remote/pot/Ch-KVM-Tutorial.pot +++ b/doc/Pacemaker_Remote/pot/Ch-KVM-Tutorial.pot @@ -1,767 +1,767 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "Guest Node Walk-through" msgstr "" #. Tag: para #, no-c-format msgid "What this tutorial is: An in-depth walk-through of how to get Pacemaker to manage a KVM guest instance and integrate that guest into the cluster as a guest node." msgstr "" #. Tag: para #, no-c-format msgid "What this tutorial is not: A realistic deployment scenario. The steps shown here are meant to get users familiar with the concept of guest nodes as quickly as possible." msgstr "" #. Tag: title #, no-c-format msgid "Configure the Physical Host" msgstr "" #. Tag: para #, no-c-format msgid "For this example, we will use a single physical host named example-host. A production cluster would likely have multiple physical hosts, in which case you would run the commands here on each one, unless noted otherwise." msgstr "" #. Tag: title #, no-c-format msgid "Configure Firewall on Host" msgstr "" #. Tag: para #, no-c-format msgid "On the physical host, allow cluster-related services through the local firewall:" msgstr "" #. Tag: screen #, no-c-format msgid "# firewall-cmd --permanent --add-service=high-availability\n" "success\n" "# firewall-cmd --reload\n" "success" msgstr "" #. Tag: para #, no-c-format msgid "If you are using iptables directly, or some other firewall solution besides firewalld, simply open the following ports, which can be used by various clustering components: TCP ports 2224, 3121, and 21064, and UDP port 5405." msgstr "" #. Tag: para #, no-c-format msgid "If you run into any problems during testing, you might want to disable the firewall and SELinux entirely until you have everything working. This may create significant security issues and should not be performed on machines that will be exposed to the outside world, but may be appropriate during development and testing on a protected host." msgstr "" #. Tag: para #, no-c-format msgid "To disable security measures:" msgstr "" #. Tag: screen #, no-c-format msgid "[root@pcmk-1 ~]# setenforce 0\n" "[root@pcmk-1 ~]# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" "[root@pcmk-1 ~]# systemctl disable firewalld.service\n" "[root@pcmk-1 ~]# systemctl stop firewalld.service\n" "[root@pcmk-1 ~]# iptables --flush" msgstr "" #. Tag: title #, no-c-format msgid "Install Cluster Software" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y pacemaker corosync pcs resource-agents" msgstr "" #. Tag: title #, no-c-format msgid "Configure Corosync" msgstr "" #. Tag: para #, no-c-format msgid "Corosync handles pacemaker’s cluster membership and messaging. The corosync config file is located in /etc/corosync/corosync.conf. That config file must be initialized with information about the cluster nodes before pacemaker can start." msgstr "" #. Tag: para #, no-c-format msgid "To initialize the corosync config file, execute the following pcs command, replacing the cluster name and hostname as desired:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster setup --force --local --name mycluster example-host" msgstr "" #. Tag: para #, no-c-format msgid "If you have multiple physical hosts, you would execute the setup command on only one host, but list all of them at the end of the command." msgstr "" #. Tag: title #, no-c-format msgid "Configure Pacemaker for Remote Node Communication" msgstr "" #. Tag: para #, no-c-format msgid "Create a place to hold an authentication key for use with pacemaker_remote:" msgstr "" #. Tag: screen #, no-c-format msgid "# mkdir -p --mode=0750 /etc/pacemaker\n" "# chgrp haclient /etc/pacemaker" msgstr "" #. Tag: para #, no-c-format msgid "Generate a key:" msgstr "" #. Tag: screen #, no-c-format msgid "# dd if=/dev/urandom of=/etc/pacemaker/authkey bs=4096 count=1" msgstr "" #. Tag: para #, no-c-format msgid "If you have multiple physical hosts, you would generate the key on only one host, and copy it to the same location on all hosts." msgstr "" #. Tag: title #, no-c-format msgid "Verify Cluster Software" msgstr "" #. Tag: para #, no-c-format msgid "Start the cluster" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster start" msgstr "" #. Tag: para #, no-c-format msgid "Verify corosync membership" msgstr "" #. Tag: literallayout #, no-c-format msgid "# pcs status corosync\n" "\n" "Membership information\n" "----------------------\n" " Nodeid Votes Name\n" " 1 1 example-host (local)" msgstr "" #. Tag: para #, no-c-format msgid "Verify pacemaker status. At first, the output will look like this:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "WARNING: no stonith devices and stonith-enabled is not false\n" "Last updated: Fri Oct 9 15:18:32 2015 Last change: Fri Oct 9 12:42:21 2015 by root via cibadmin on example-host\n" "Stack: corosync\n" "Current DC: NONE\n" "1 node and 0 resources configured\n" "\n" "Node example-host: UNCLEAN (offline)\n" "\n" "Full list of resources:\n" "\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "After a short amount of time, you should see your host as a single node in the cluster:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "WARNING: no stonith devices and stonith-enabled is not false\n" "Last updated: Fri Oct 9 15:20:05 2015 Last change: Fri Oct 9 12:42:21 2015 by root via cibadmin on example-host\n" "Stack: corosync\n" "Current DC: example-host (version 1.1.13-a14efad) - partition WITHOUT quorum\n" "1 node and 0 resources configured\n" "\n" "Online: [ example-host ]\n" "\n" "Full list of resources:\n" "\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Disable STONITH and Quorum" msgstr "" #. Tag: para #, no-c-format msgid "Now, enable the cluster to work without quorum or stonith. This is required for the sake of getting this tutorial to work with a single cluster node." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs property set stonith-enabled=false\n" "# pcs property set no-quorum-policy=ignore" msgstr "" #. Tag: para #, no-c-format msgid "The use of stonith-enabled=false is completely inappropriate for a production cluster. It tells the cluster to simply pretend that failed nodes are safely powered off. Some vendors will refuse to support clusters that have STONITH disabled. We disable STONITH here only to focus the discussion on pacemaker_remote, and to be able to use a single physical host in the example." msgstr "" #. Tag: para #, no-c-format msgid "Now, the status output should look similar to this:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Oct 9 15:22:49 2015 Last change: Fri Oct 9 15:22:46 2015 by root via cibadmin on example-host\n" "Stack: corosync\n" "Current DC: example-host (version 1.1.13-a14efad) - partition with quorum\n" "1 node and 0 resources configured\n" "\n" "Online: [ example-host ]\n" "\n" "Full list of resources:\n" "\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Go ahead and stop the cluster for now after verifying everything is in order." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs cluster stop --force" msgstr "" #. Tag: title #, no-c-format msgid "Install Virtualization Software" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y kvm libvirt qemu-system qemu-kvm bridge-utils virt-manager\n" "# systemctl enable libvirtd.service" msgstr "" #. Tag: para #, no-c-format msgid "Reboot the host." msgstr "" #. Tag: para #, no-c-format msgid "While KVM is used in this example, any virtualization platform with a Pacemaker resource agent can be used to create a guest node. The resource agent needs only to support usual commands (start, stop, etc.); Pacemaker implements the remote-node meta-attribute, independent of the agent." msgstr "" #. Tag: title #, no-c-format msgid "Configure the KVM guest" msgstr "" #. Tag: title #, no-c-format msgid "Create Guest" msgstr "" #. Tag: para #, no-c-format msgid "We will not outline here the installation steps required to create a KVM guest. There are plenty of tutorials available elsewhere that do that. Just be sure to configure the guest with a hostname and a static IP address (as an example here, we will use guest1 and 192.168.122.10)." msgstr "" #. Tag: title #, no-c-format msgid "Configure Firewall on Guest" msgstr "" #. Tag: para #, no-c-format msgid "On each guest, allow cluster-related services through the local firewall, following the same procedure as in ." msgstr "" #. Tag: title #, no-c-format msgid "Verify Connectivity" msgstr "" #. Tag: para #, no-c-format msgid "At this point, you should be able to ping and ssh into guests from hosts, and vice versa." msgstr "" #. Tag: title #, no-c-format msgid "Configure pacemaker_remote" msgstr "" #. Tag: para #, no-c-format msgid "Install pacemaker_remote, and enable it to run at start-up. Here, we also install the pacemaker package; it is not required, but it contains the dummy resource agent that we will use later for testing." msgstr "" #. Tag: screen #, no-c-format msgid "# yum install -y pacemaker pacemaker-remote resource-agents\n" "# systemctl enable pacemaker_remote.service" msgstr "" #. Tag: para #, no-c-format msgid "Copy the authentication key from a host:" msgstr "" #. Tag: screen #, no-c-format msgid "# mkdir -p --mode=0750 /etc/pacemaker\n" "# chgrp haclient /etc/pacemaker\n" "# scp root@example-host:/etc/pacemaker/authkey /etc/pacemaker" msgstr "" #. Tag: para #, no-c-format msgid "Start pacemaker_remote, and verify the start was successful:" msgstr "" #. Tag: screen #, no-c-format msgid "# systemctl start pacemaker_remote\n" "# systemctl status pacemaker_remote\n" "\n" " pacemaker_remote.service - Pacemaker Remote Service\n" " Loaded: loaded (/usr/lib/systemd/system/pacemaker_remote.service; enabled)\n" " Active: active (running) since Thu 2013-03-14 18:24:04 EDT; 2min 8s ago\n" " Main PID: 1233 (pacemaker_remot)\n" " CGroup: name=systemd:/system/pacemaker_remote.service\n" " └─1233 /usr/sbin/pacemaker_remoted\n" "\n" " Mar 14 18:24:04 guest1 systemd[1]: Starting Pacemaker Remote Service...\n" " Mar 14 18:24:04 guest1 systemd[1]: Started Pacemaker Remote Service.\n" " Mar 14 18:24:04 guest1 pacemaker_remoted[1233]: notice: lrmd_init_remote_tls_server: Starting a tls listener on port 3121." msgstr "" #. Tag: title #, no-c-format msgid "Verify Host Connection to Guest" msgstr "" #. Tag: para #, no-c-format msgid "Before moving forward, it’s worth verifying that the host can contact the guest on port 3121. Here’s a trick you can use. Connect using ssh from the host. The connection will get destroyed, but how it is destroyed tells you whether it worked or not." msgstr "" #. Tag: para #, no-c-format msgid "First add guest1 to the host machine’s /etc/hosts file if you haven’t already. This is required unless you have DNS setup in a way where guest1’s address can be discovered." msgstr "" #. Tag: screen #, no-c-format msgid "# cat << END >> /etc/hosts\n" "192.168.122.10 guest1\n" "END" msgstr "" #. Tag: para #, no-c-format msgid "If running the ssh command on one of the cluster nodes results in this output before disconnecting, the connection works:" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 guest1\n" "ssh_exchange_identification: read: Connection reset by peer" msgstr "" #. Tag: para #, no-c-format msgid "If you see one of these, the connection is not working:" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 guest1\n" "ssh: connect to host guest1 port 3121: No route to host" msgstr "" #. Tag: screen #, no-c-format msgid "# ssh -p 3121 guest1\n" "ssh: connect to host guest1 port 3121: Connection refused" msgstr "" #. Tag: para #, no-c-format msgid "Once you can successfully connect to the guest from the host, shutdown the guest. Pacemaker will be managing the virtual machine from this point forward." msgstr "" #. Tag: title #, no-c-format msgid "Integrate Guest into Cluster" msgstr "" #. Tag: para #, no-c-format msgid "Now the fun part, integrating the virtual machine you’ve just created into the cluster. It is incredibly simple." msgstr "" #. Tag: title #, no-c-format msgid "Start the Cluster" msgstr "" #. Tag: para #, no-c-format msgid "On the host, start pacemaker." msgstr "" #. Tag: para #, no-c-format msgid "Wait for the host to become the DC. The output of pcs status should look as it did in ." msgstr "" #. Tag: title #, no-c-format msgid "Integrate as Guest Node" msgstr "" #. Tag: para #, no-c-format msgid "If you didn’t already do this earlier in the verify host to guest connection section, add the KVM guest’s IP address to the host’s /etc/hosts file so we can connect by hostname. For this example:" msgstr "" #. Tag: para #, no-c-format msgid "We will use the VirtualDomain resource agent for the management of the virtual machine. This agent requires the virtual machine’s XML config to be dumped to a file on disk. To do this, pick out the name of the virtual machine you just created from the output of this list." msgstr "" #. Tag: literallayout #, no-c-format msgid "# virsh list --all\n" " Id Name State\n" "----------------------------------------------------\n" " - guest1 shut off" msgstr "" #. Tag: para #, no-c-format msgid "In my case I named it guest1. Dump the xml to a file somewhere on the host using the following command." msgstr "" #. Tag: screen #, no-c-format msgid "# virsh dumpxml guest1 > /etc/pacemaker/guest1.xml" msgstr "" #. Tag: para #, no-c-format msgid "Now just register the resource with pacemaker and you’re set!" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create vm-guest1 VirtualDomain hypervisor=\"qemu:///system\" \\\n" " config=\"/etc/pacemaker/guest1.xml\" meta remote-node=guest1" msgstr "" #. Tag: para #, no-c-format msgid "This example puts the guest XML under /etc/pacemaker because the permissions and SELinux labeling should not need any changes. If you run into trouble with this or any step, try disabling SELinux with setenforce 0. If it works after that, see SELinux documentation for how to troubleshoot, if you wish to reenable SELinux." msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker will automatically monitor pacemaker_remote connections for failure, so it is not necessary to create a recurring monitor on the VirtualDomain resource." msgstr "" #. Tag: para #, no-c-format msgid "Once the vm-guest1 resource is started you will see guest1 appear in the pcs status output as a node. The final pcs status output should look something like this." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Oct 9 18:00:45 2015 Last change: Fri Oct 9 17:53:44 2015 by root via crm_resource on example-host\n" "Stack: corosync\n" "Current DC: example-host (version 1.1.13-a14efad) - partition with quorum\n" "2 nodes and 2 resources configured\n" "\n" "Online: [ example-host ]\n" "GuestOnline: [ guest1@example-host ]\n" "\n" "Full list of resources:\n" "\n" " vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: title #, no-c-format msgid "Starting Resources on KVM Guest" msgstr "" #. Tag: para #, no-c-format msgid "The commands below demonstrate how resources can be executed on both the guest node and the cluster node." msgstr "" #. Tag: para #, no-c-format msgid "Create a few Dummy resources. Dummy resources are real resource agents used just for testing purposes. They actually execute on the host they are assigned to just like an apache server or database would, except their execution just means a file was created. When the resource is stopped, that the file it created is removed." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create FAKE1 ocf:pacemaker:Dummy\n" "# pcs resource create FAKE2 ocf:pacemaker:Dummy\n" "# pcs resource create FAKE3 ocf:pacemaker:Dummy\n" "# pcs resource create FAKE4 ocf:pacemaker:Dummy\n" "# pcs resource create FAKE5 ocf:pacemaker:Dummy" msgstr "" #. Tag: para #, no-c-format msgid "Now check your pcs status output. In the resource section, you should see something like the following, where some of the resources started on the cluster node, and some started on the guest node." msgstr "" #. Tag: screen #, no-c-format msgid "Full list of resources:\n" "\n" " vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host\n" " FAKE1 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE2 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE3 (ocf::pacemaker:Dummy): Started example-host\n" " FAKE4 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE5 (ocf::pacemaker:Dummy): Started example-host" msgstr "" #. Tag: para #, no-c-format msgid "The guest node, guest1, reacts just like any other node in the cluster. For example, pick out a resource that is running on your cluster node. For my purposes, I am picking FAKE3 from the output above. We can force FAKE3 to run on guest1 in the exact same way we would any other node." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs constraint location FAKE3 prefers guest1" msgstr "" #. Tag: para #, no-c-format msgid "Now, looking at the bottom of the pcs status output you’ll see FAKE3 is on guest1." msgstr "" #. Tag: screen #, no-c-format msgid "Full list of resources:\n" "\n" " vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host\n" " FAKE1 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE2 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE3 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE4 (ocf::pacemaker:Dummy): Started example-host\n" " FAKE5 (ocf::pacemaker:Dummy): Started example-host" msgstr "" #. Tag: title #, no-c-format msgid "Testing Recovery and Fencing" msgstr "" #. Tag: para #, no-c-format msgid "Pacemaker’s policy engine is smart enough to know fencing guest nodes associated with a virtual machine means shutting off/rebooting the virtual machine. No special configuration is necessary to make this happen. If you are interested in testing this functionality out, trying stopping the guest’s pacemaker_remote daemon. This would be equivalent of abruptly terminating a cluster node’s corosync membership without properly shutting it down." msgstr "" #. Tag: para #, no-c-format msgid "ssh into the guest and run this command." msgstr "" #. Tag: screen #, no-c-format msgid "# kill -9 `pidof pacemaker_remoted`" msgstr "" #. Tag: para #, no-c-format msgid "Within a few seconds, your pcs status output will show a monitor failure, and the guest1 node will not be shown while it is being recovered." msgstr "" #. Tag: screen #, no-c-format msgid "# pcs status\n" "Cluster name: mycluster\n" "Last updated: Fri Oct 9 18:08:35 2015 Last change: Fri Oct 9 18:07:00 2015 by root via cibadmin on example-host\n" "Stack: corosync\n" "Current DC: example-host (version 1.1.13-a14efad) - partition with quorum\n" "2 nodes and 7 resources configured\n" "\n" "Online: [ example-host ]\n" "\n" "Full list of resources:\n" "\n" " vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host\n" " FAKE1 (ocf::pacemaker:Dummy): Stopped\n" " FAKE2 (ocf::pacemaker:Dummy): Stopped\n" " FAKE3 (ocf::pacemaker:Dummy): Stopped\n" " FAKE4 (ocf::pacemaker:Dummy): Started example-host\n" " FAKE5 (ocf::pacemaker:Dummy): Started example-host\n" "\n" "Failed Actions:\n" "* guest1_monitor_30000 on example-host 'unknown error' (1): call=8, status=Error, exitreason='none',\n" " last-rc-change='Fri Oct 9 18:08:29 2015', queued=0ms, exec=0ms\n" "\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "A guest node involves two resources: the one you explicitly configured creates the guest, and Pacemaker creates an implicit resource for the pacemaker_remote connection, which will be named the same as the value of the remote-node attribute of the explicit resource. When we killed pacemaker_remote, it is the implicit resource that failed, which is why the failed action starts with guest1 and not vm-guest1." msgstr "" #. Tag: para #, no-c-format msgid "Once recovery of the guest is complete, you’ll see it automatically get re-integrated into the cluster. The final pcs status output should look something like this." msgstr "" #. Tag: screen #, no-c-format msgid "Cluster name: mycluster\n" "Last updated: Fri Oct 9 18:18:30 2015 Last change: Fri Oct 9 18:07:00 2015 by root via cibadmin on example-host\n" "Stack: corosync\n" "Current DC: example-host (version 1.1.13-a14efad) - partition with quorum\n" "2 nodes and 7 resources configured\n" "\n" "Online: [ example-host ]\n" "GuestOnline: [ guest1@example-host ]\n" "\n" "Full list of resources:\n" "\n" " vm-guest1 (ocf::heartbeat:VirtualDomain): Started example-host\n" " FAKE1 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE2 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE3 (ocf::pacemaker:Dummy): Started guest1\n" " FAKE4 (ocf::pacemaker:Dummy): Started example-host\n" " FAKE5 (ocf::pacemaker:Dummy): Started example-host\n" "\n" "Failed Actions:\n" "* guest1_monitor_30000 on example-host 'unknown error' (1): call=8, status=Error, exitreason='none',\n" " last-rc-change='Fri Oct 9 18:08:29 2015', queued=0ms, exec=0ms\n" "\n" "\n" "PCSD Status:\n" " example-host: Online\n" "\n" "Daemon Status:\n" " corosync: active/disabled\n" " pacemaker: active/disabled\n" " pcsd: active/enabled" msgstr "" #. Tag: para #, no-c-format msgid "Normally, once you’ve investigated and addressed a failed action, you can clear the failure. However Pacemaker does not yet support cleanup for the implicitly created connection resource while the explicit resource is active. If you want to clear the failed action from the status output, stop the guest resource before clearing it. For example:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource disable vm-guest1 --wait\n" "# pcs resource cleanup guest1\n" "# pcs resource enable vm-guest1" msgstr "" #. Tag: title #, no-c-format msgid "Accessing Cluster Tools from Guest Node" msgstr "" #. Tag: para #, no-c-format msgid "Besides allowing the cluster to manage resources on a guest node, pacemaker_remote has one other trick. The pacemaker_remote daemon allows nearly all the pacemaker tools (crm_resource, crm_mon, crm_attribute, crm_master, etc.) to work on guest nodes natively." msgstr "" #. Tag: para #, no-c-format msgid "Try it: Run crm_mon on the guest after pacemaker has integrated the guest node into the cluster. These tools just work. This means resource agents such as master/slave resources which need access to tools like crm_master work seamlessly on the guest nodes." msgstr "" #. Tag: para #, no-c-format msgid "Higher-level command shells such as pcs may have partial support on guest nodes, but it is recommended to run them from a cluster node." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Ch-Options.pot b/doc/Pacemaker_Remote/pot/Ch-Options.pot index a16b6653d3..945cfa2e7f 100644 --- a/doc/Pacemaker_Remote/pot/Ch-Options.pot +++ b/doc/Pacemaker_Remote/pot/Ch-Options.pot @@ -1,222 +1,232 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 Explained" msgstr "" #. Tag: para #, no-c-format msgid "The walk-through examples use some of these options, but don’t explain exactly what they mean or do. This section is meant to be the go-to resource for all the options available for configuring pacemaker_remote-based nodes. configuration " msgstr "" #. Tag: title #, no-c-format msgid "Resource Meta-Attributes for Guest Nodes" msgstr "" #. Tag: para #, no-c-format -msgid "When configuring a virtual machine to use as a guest node, these are the metadata options available to enable the resource as a guest node and define its connection parameters." +msgid "When configuring a virtual machine as a guest node, the virtual machine is created using one of the usual resource agents for that purpose (for example, ocf:heartbeat:VirtualDomain or ocf:heartbeat:Xen), with additional metadata parameters." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "No restrictions are enforced on what agents may be used to create a guest node, but obviously the agent must create a distinct environment capable of running the pacemaker_remote daemon and cluster resources. An additional requirement is that fencing the host running the guest node resource must be sufficient for ensuring the guest node is stopped. This means, for example, that not all hypervisors supported by VirtualDomain may be used to create guest nodes; if the guest can survive the hypervisor being fenced, it may not be used as a guest node." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Below are the metadata options available to enable a resource as a guest node and define its connection parameters." msgstr "" #. Tag: title #, no-c-format msgid "Meta-attributes for configuring VM resources as guest nodes" msgstr "" #. Tag: entry #, no-c-format msgid "Option" msgstr "" #. Tag: entry #, no-c-format msgid "Default" msgstr "" #. Tag: entry #, no-c-format msgid "Description" msgstr "" #. Tag: para #, no-c-format msgid "remote-node" msgstr "" #. Tag: para #, no-c-format msgid "none" msgstr "" #. Tag: para #, no-c-format msgid "The node name of the guest node this resource defines. This both enables the resource as a guest node and defines the unique name used to identify the guest node. If no other parameters are set, this value will also be assumed as the hostname to use when connecting to pacemaker_remote on the VM. This value must not overlap with any resource or node IDs." msgstr "" #. Tag: para #, no-c-format msgid "remote-port" msgstr "" #. Tag: para #, no-c-format msgid "3121" msgstr "" #. Tag: para #, no-c-format msgid "The port on the virtual machine that the cluster will use to connect to pacemaker_remote." msgstr "" #. Tag: para #, no-c-format msgid "remote-addr" msgstr "" #. Tag: para #, no-c-format msgid "value of remote-node" msgstr "" #. Tag: para #, no-c-format msgid "The IP address or hostname to use when connecting to pacemaker_remote on the VM." msgstr "" #. Tag: para #, no-c-format msgid "remote-connect-timeout" msgstr "" #. Tag: para #, no-c-format msgid "60s" msgstr "" #. Tag: para #, no-c-format msgid "How long before a pending guest connection will time out." msgstr "" #. Tag: title #, no-c-format msgid "Connection Resources for Remote Nodes" msgstr "" #. Tag: para #, no-c-format msgid "A remote node is defined by a connection resource. That connection resource has instance attributes that define where the remote node is located on the network and how to communicate with it." msgstr "" #. Tag: para #, no-c-format msgid "Descriptions of these instance attributes can be retrieved using the following pcs command:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource describe remote\n" "ocf:pacemaker:remote - remote resource agent\n" "\n" "Resource options:\n" " server: Server location to connect to. This can be an ip address or hostname.\n" " port: tcp port to connect to.\n" -" reconnect_interval: Time in seconds to wait before attempting to reconnect to\n" -" a remote node after an active connection to the remote\n" -" node has been severed. This wait is recurring. If\n" -" reconnect fails after the wait period, a new reconnect\n" -" attempt will be made after observing the wait time. When\n" -" this option is in use, pacemaker will keep attempting to\n" -" reach out and connect to the remote node indefinitely\n" -" after each wait interval." +" reconnect_interval: Interval in seconds at which Pacemaker will attempt to\n" +" reconnect to a remote node after an active connection to\n" +" the remote node has been severed. When this value is\n" +" nonzero, Pacemaker will retry the connection\n" +" indefinitely, at the specified interval. As with any\n" +" time-based actions, this is not guaranteed to be checked\n" +" more frequently than the value of the\n" +" cluster-recheck-interval cluster option." msgstr "" #. Tag: para #, no-c-format msgid "When defining a remote node’s connection resource, it is common and recommended to name the connection resource the same as the remote node’s hostname. By default, if no server option is provided, the cluster will attempt to contact the remote node using the resource name as the hostname." msgstr "" #. Tag: para #, no-c-format msgid "Example defining a remote node with the hostname remote1:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create remote1 remote" msgstr "" #. Tag: para #, no-c-format msgid "Example defining a remote node to connect to a specific IP address and port:" msgstr "" #. Tag: screen #, no-c-format msgid "# pcs resource create remote1 remote server=192.168.122.200 port=8938" msgstr "" #. Tag: title #, no-c-format msgid "Environment Variables for Daemon Start-up" msgstr "" #. Tag: para #, no-c-format msgid "Authentication and encryption of the connection between cluster nodes and nodes running pacemaker_remote is achieved using with TLS-PSK encryption/authentication over TCP (port 3121 by default). This means that both the cluster node and remote node must share the same private key. By default, this key is placed at /etc/pacemaker/authkey on each node." msgstr "" #. Tag: para #, no-c-format -msgid "You can change the default port and/or key location for Pacemaker and pacemaker_remote via environment variables. These environment variables can be enabled by placing them in the /etc/sysconfig/pacemaker file." +msgid "You can change the default port and/or key location for Pacemaker and pacemaker_remote via environment variables. How these variables are set varies by OS, but usually they are set in the /etc/sysconfig/pacemaker or /etc/default/pacemaker file." msgstr "" #. Tag: screen #, no-c-format msgid "#==#==# Pacemaker Remote\n" "# Use a custom directory for finding the authkey.\n" "PCMK_authkey_location=/etc/pacemaker/authkey\n" "#\n" "# Specify a custom port for Pacemaker Remote connections\n" "PCMK_remote_port=3121" msgstr "" #. Tag: title #, no-c-format msgid "Removing Remote Nodes and Guest Nodes" msgstr "" #. Tag: para #, no-c-format msgid "If the resource creating a guest node, or the ocf:pacemaker:remote resource creating a connection to a remote node, is removed from the configuration, the affected node will continue to show up in output as an offline node." msgstr "" #. Tag: para #, no-c-format msgid "If you want to get rid of that output, run (replacing $NODE_NAME appropriately):" msgstr "" #. Tag: screen #, no-c-format msgid "# crm_node --force --remove $NODE_NAME" msgstr "" #. Tag: para #, no-c-format -msgid "Be absolutely sure that the node’s resource has been deleted from the configuration first." +msgid "Be absolutely sure that there are no references to the node’s resource in the configuration before running the above command." msgstr "" diff --git a/doc/Pacemaker_Remote/pot/Revision_History.pot b/doc/Pacemaker_Remote/pot/Revision_History.pot index 707c7a7ee7..1690a8c7c3 100644 --- a/doc/Pacemaker_Remote/pot/Revision_History.pot +++ b/doc/Pacemaker_Remote/pot/Revision_History.pot @@ -1,69 +1,74 @@ # # AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: 0\n" -"POT-Creation-Date: 2016-05-03 17:45-0500\n" -"PO-Revision-Date: 2016-05-03 17:45-0500\n" +"POT-Creation-Date: 2016-11-02 17:32-0500\n" +"PO-Revision-Date: 2016-11-02 17:32-0500\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 "David" msgstr "" #. Tag: surname #, no-c-format msgid "Vossel" msgstr "" #. Tag: member #, no-c-format msgid "Import from Pages.app" msgstr "" #. Tag: member #, no-c-format msgid "Added Future Features Section" msgstr "" #. Tag: member #, no-c-format msgid "Added Baremetal remote-node feature documentation" msgstr "" #. Tag: firstname #, no-c-format msgid "Ken" msgstr "" #. Tag: surname #, no-c-format msgid "Gaillot" msgstr "" #. Tag: member #, no-c-format msgid "Targeted CentOS 7.1 and Pacemaker 1.1.12+, updated for current terminology and practice" msgstr "" #. Tag: member #, no-c-format msgid "Updated for Pacemaker 1.1.14" msgstr "" #. Tag: member #, no-c-format msgid "Updated for Pacemaker 1.1.15" msgstr "" +#. Tag: member +#, no-c-format +msgid "Updated for Pacemaker 1.1.16" +msgstr "" +