diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.mo b/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.mo new file mode 100644 index 0000000000..04358f638a Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.po b/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.po new file mode 100644 index 0000000000..d3130e15e0 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ap-Configuration.po @@ -0,0 +1,454 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 23:34+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Configuration Recap" +msgstr "配置扼要重述" + +#. Tag: title +#, no-c-format +msgid "Final Cluster Configuration" +msgstr "最终的集群配置文件" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone Fencing rsa-fencing \n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=”true” \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone Fencing rsa-fencing \n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=”true” \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" + +#. Tag: title +#, no-c-format +msgid "Node List" +msgstr "节点列表" + +#. Tag: para +#, no-c-format +msgid "The list of cluster nodes is automatically populated by the cluster." +msgstr "这个列表中的集群节点是集群自动添加的。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"node pcmk-1\n" +"node pcmk-2\n" +msgstr "" +"\n" +"node pcmk-1\n" +"node pcmk-2\n" + +#. Tag: title +#, no-c-format +msgid "Cluster Options" +msgstr "集群选项" + +#. Tag: para +#, no-c-format +msgid "This is where the cluster automatically stores some information about the cluster" +msgstr "这是集群自动存储集群信息的地方" + +#. Tag: para +#, no-c-format +msgid "dc-version - the version (including upstream source-code hash) of Pacemaker used on the DC" +msgstr "dc-version - DC使用的Pacemaker的版本(包括源代码的hash)" + +#. Tag: para +#, no-c-format +msgid "cluster-infrastructure - the cluster infrastructure being used (heartbeat or openais)" +msgstr "集群-基层 - 集群使用的基层软件 (heartbeat or openais/corosync)" + +#. Tag: para +#, no-c-format +msgid "expected-quorum-votes - the maximum number of nodes expected to be part of the cluster" +msgstr "expected-quorum-votes - 预期的集群最大成员数" + +#. Tag: para +#, no-c-format +msgid "and where the admin can set options that control the way the cluster operates" +msgstr "以及管理员设置集群操作的方法选项" + +#. Tag: para +#, no-c-format +msgid "stonith-enabled=true - Make use of STONITH" +msgstr "stonith-enabled=true - 使用STONITH" + +#. Tag: para +#, no-c-format +msgid "no-quorum-policy=ignore - Ignore loss of quorum and continue to host resources." +msgstr "no-quorum-policy=ignore - 忽略达不到法定人数的情况,继续运行资源" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=”true” \\\n" +"        no-quorum-policy=\"ignore\"\n" +msgstr "" +"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=”true” \\\n" +"        no-quorum-policy=\"ignore\"\n" + +#. Tag: title +#, no-c-format +msgid "Resources" +msgstr "资源" + +#. Tag: title +#, no-c-format +msgid "Default Options" +msgstr "默认选项" + +#. Tag: para +#, no-c-format +msgid "Here we configure cluster options that apply to every resource." +msgstr "这里我们设置所有资源共用的集群选项" + +#. Tag: para +#, no-c-format +msgid "resource-stickiness - Specify the aversion to moving resources to other machines" +msgstr "resource-stickiness - 资源粘稠值" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" +"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" + +#. Tag: title +#, no-c-format +msgid "Fencing" +msgstr "隔离" + +#. Tag: para +#, no-c-format +msgid "TODO: Add text here" +msgstr "TODO: Add text here" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"clone Fencing rsa-fencing\n" +msgstr "" +"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"clone Fencing rsa-fencing\n" + +#. Tag: title +#, no-c-format +msgid "Service Address" +msgstr "服务地址" + +#. Tag: para +#, no-c-format +msgid "Users of the services provided by the cluster require an unchanging address with which to access it. Additionally, we cloned the address so it will be active on both nodes. An iptables rule (created as part of the resource agent) is used to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster that we want two instances of the clone (one “request bucket” for each node) and that if one node fails, then the remaining node should hold both." +msgstr "用户需要一个不变的地址来访问集群所提供的服务。此外,我们clone了地址,以便在两个节点上都使用这个IP。一个iptables规则(resource agent的一部分)是用来确保每个请求只能由两个节点中的某一个处理。这些额外的集群选项告诉我们想要两个clone(每个节点一个“请求桶”)实例,如果一个节点失效,那么剩下的节点处理这两个请求桶。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"clone WebIP ClusterIP  \n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +msgstr "" +"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"clone WebIP ClusterIP  \n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" + +#. Tag: para +#, no-c-format +msgid "TODO: The RA should check for globally-unique=true when cloned" +msgstr "TODO: The RA should check for globally-unique=true when cloned" + +#. Tag: title +#, no-c-format +msgid "Distributed lock manager" +msgstr "分布式锁控制器" + +#. Tag: para +#, no-c-format +msgid "Cluster filesystems like GFS2 require a lock manager. This service starts the daemon that provides user-space applications (such as the GFS2 daemon) with access to the in-kernel lock manager. Since we need it to be available on all nodes in the cluster, we have it cloned." +msgstr "像GFS2集群文件系统需要一个锁管理。该服务启动守护进程,提供了访问内核中的锁管理器的用户空间应用程序(如GFS2守护进程)。因为我们需要它在集群中的所有可用节点中运行,我们把它clone。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\n" +msgstr "" +"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\n" + +#. Tag: para +#, no-c-format +msgid "TODO: Confirm interleave is no longer needed" +msgstr "TODO: Confirm interleave is no longer needed" + +#. Tag: title +#, no-c-format +msgid "GFS control daemon" +msgstr "GFS 控制守护进程" + +#. Tag: para +#, no-c-format +msgid "GFS2 also needs a user-space/kernel bridge that runs on every node. So here we have another clone, however this time we must also specify that it can only run on machines that are also running the DLM (colocation constraint) and that it can only be started after the DLM is running (order constraint). Additionally, the gfs-control clone should only care about the DLM instances it is paired with, so we need to set the interleave option." +msgstr "GFS2还需要一个user-space到kernel的桥梁,每个节点上要运行。所以在这里我们还有一个clone,但是这一次我们还必须指定它只能运行在有DLM的机器上(colocation 约束),它只能在DLM后启动 (order约束)。此外,gfs-control clone应该只关系与其配对的DLM实例,所以我们还要设置interleave 选项" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +msgstr "" +"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" + +#. Tag: title +#, no-c-format +msgid "DRBD - Shared Storage" +msgstr "DRBD - 共享存储" + +#. Tag: para +#, no-c-format +msgid "Here we define the DRBD service and specify which DRBD resource (from drbd.conf) it should manage. We make it a master/slave resource and, in order to have an active/active setup, allow both instances to be promoted by specifying master-max=2. We also set the notify option so that the cluster will tell DRBD agent when it’s peer changes state." +msgstr "在这里,我们定义了DRBD技术服务,并指定DRBD应该管理的资源(从drbd.conf)。我们让它作为主/从资源,并且为了active/active,用设置master-max=2来允许两者都晋升为master。我们还可以设置通知选项,这样,当时集群的节点的状态发生改变时,该集群将告诉DRBD的agent。 " + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +msgstr "" +"\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" + +#. Tag: title +#, no-c-format +msgid "Cluster Filesystem" +msgstr "集群文件系统" + +#. Tag: para +#, no-c-format +msgid "The cluster filesystem ensures that files are read and written correctly. We need to specify the block device (provided by DRBD), where we want it mounted and that we are using GFS2. Again it is a clone because it is intended to be active on both nodes. The additional constraints ensure that it can only be started on nodes with active gfs-control and drbd instances." +msgstr "群集文件系统可确保文件读写正确。我们需要指定我们想挂载并使用GFS2的块设备(由DRBD提供)。这又是一个clone,因为它的目的是在两个节点上都可用。这些额外的限制确保它只在有gfs-control和drbd 实例的节点上运行。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"clone WebFSClone WebFS\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +msgstr "" +"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"clone WebFSClone WebFS\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" + +#. Tag: title +#, no-c-format +msgid "Apache" +msgstr "Apache" + +#. Tag: para +#, no-c-format +msgid "Lastly we have the actual service, Apache. We need only tell the cluster where to find it’s main configuration file and restrict it to running on nodes that have the required filesystem mounted and the IP address active." +msgstr "最后我们有了真正的服务,Apache,我们只需要告诉集群在哪里可以找到它的主配置文件,并限制其只在挂载了文件系统和有可用IP节点上运行" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"clone WebSiteClone WebSite\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +msgstr "" +"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"clone WebSiteClone WebSite\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.mo b/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.mo new file mode 100644 index 0000000000..89fe7a7f7c Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.po b/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.po new file mode 100644 index 0000000000..a99c00b8cb --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ap-Corosync-Conf.po @@ -0,0 +1,179 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 23:35+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Sample Corosync.conf" +msgstr "Corosync.conf 样例" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"# Please read the Corosync.conf.5 manual page\n" +"compatibility: whitetank\n" +"\n" +"aisexec {\n" +"        # Run as root - this is necessary to be able to manage resources with Pacemaker\n" +"        user:        root\n" +"        group:        root\n" +"}\n" +"\n" +"service {\n" +"        # Load the Pacemaker Cluster Resource Manager\n" +"        ver:       0\n" +"        name:      pacemaker\n" +"        use_mgmtd: no\n" +"        use_logd:  no\n" +"}\n" +"\n" +"totem {\n" +"        version: 2\n" +"\n" +"        # How long before declaring a token lost (ms)\n" +"        token:          5000\n" +"\n" +"        # How many token retransmits before forming a new configuration\n" +"        token_retransmits_before_loss_const: 10\n" +"\n" +"        # How long to wait for join messages in the membership protocol (ms)\n" +"        join:           1000\n" +"\n" +"        # How long to wait for consensus to be achieved before starting a new\n" +"        # round of membership configuration (ms)\n" +"        consensus:      6000\n" +"\n" +"        # Turn off the virtual synchrony filter\n" +"        vsftype:        none\n" +"\n" +"        # Number of messages that may be sent by one processor on receipt of the token\n" +"        max_messages:   20\n" +"\n" +"        # Stagger sending the node join messages by 1..send_join ms\n" +"        send_join: 45\n" +"\n" +"        # Limit generated nodeids to 31-bits (positive signed integers)\n" +"        clear_node_high_bit: yes\n" +"\n" +"        # Disable encryption\n" +"        secauth:        off\n" +"\n" +"        # How many threads to use for encryption/decryption\n" +"        threads:           0\n" +"\n" +"        # Optionally assign a fixed node id (integer)\n" +"        # nodeid:         1234\n" +"\n" +"        interface {\n" +"                ringnumber: 0\n" +"\n" +"                # The following values need to be set based on your environment\n" +"                bindnetaddr: 192.168.122.0\n" +"                mcastaddr: 226.94.1.1\n" +"                mcastport: 4000\n" +"        }\n" +"}\n" +"\n" +"logging {\n" +"        debug: off\n" +"        fileline: off\n" +"        to_syslog: yes\n" +"        to_stderr: off\n" +"        syslog_facility: daemon\n" +"        timestamp: on\n" +"}\n" +"\n" +"amf {\n" +"        mode: disabled\n" +"}\n" +msgstr "" +"\n" +"# Please read the Corosync.conf.5 manual page\n" +"compatibility: whitetank\n" +"\n" +"aisexec {\n" +"        # Run as root - this is necessary to be able to manage resources with Pacemaker\n" +"        user:        root\n" +"        group:        root\n" +"}\n" +"\n" +"service {\n" +"        # Load the Pacemaker Cluster Resource Manager\n" +"        ver:       0\n" +"        name:      pacemaker\n" +"        use_mgmtd: no\n" +"        use_logd:  no\n" +"}\n" +"\n" +"totem {\n" +"        version: 2\n" +"\n" +"        # How long before declaring a token lost (ms)\n" +"        token:          5000\n" +"\n" +"        # How many token retransmits before forming a new configuration\n" +"        token_retransmits_before_loss_const: 10\n" +"\n" +"        # How long to wait for join messages in the membership protocol (ms)\n" +"        join:           1000\n" +"\n" +"        # How long to wait for consensus to be achieved before starting a new\n" +"        # round of membership configuration (ms)\n" +"        consensus:      6000\n" +"\n" +"        # Turn off the virtual synchrony filter\n" +"        vsftype:        none\n" +"\n" +"        # Number of messages that may be sent by one processor on receipt of the token\n" +"        max_messages:   20\n" +"\n" +"        # Stagger sending the node join messages by 1..send_join ms\n" +"        send_join: 45\n" +"\n" +"        # Limit generated nodeids to 31-bits (positive signed integers)\n" +"        clear_node_high_bit: yes\n" +"\n" +"        # Disable encryption\n" +"        secauth:        off\n" +"\n" +"        # How many threads to use for encryption/decryption\n" +"        threads:           0\n" +"\n" +"        # Optionally assign a fixed node id (integer)\n" +"        # nodeid:         1234\n" +"\n" +"        interface {\n" +"                ringnumber: 0\n" +"\n" +"                # The following values need to be set based on your environment\n" +"                bindnetaddr: 192.168.122.0\n" +"                mcastaddr: 226.94.1.1\n" +"                mcastport: 4000\n" +"        }\n" +"}\n" +"\n" +"logging {\n" +"        debug: off\n" +"        fileline: off\n" +"        to_syslog: yes\n" +"        to_stderr: off\n" +"        syslog_facility: daemon\n" +"        timestamp: on\n" +"}\n" +"\n" +"amf {\n" +"        mode: disabled\n" +"}\n" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.mo b/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.mo new file mode 100644 index 0000000000..641d3a1f62 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.po b/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.po new file mode 100644 index 0000000000..b7944ae720 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ap-Reading.po @@ -0,0 +1,54 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 20:03+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; 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 "Project Website" + +#. Tag: para +#, no-c-format +msgid "http://www.clusterlabs.org" +msgstr "http://www.clusterlabs.org" + +#. Tag: para +#, no-c-format +msgid "Cluster Commands" +msgstr "Cluster Commands" + +#. Tag: para +#, no-c-format +msgid "A comprehensive guide to cluster commands has been written by Novell and can be found at:" +msgstr "一个综合的指南,包含了Novell所写的集群命令,可以在这里被找到:" + +#. Tag: para +#, no-c-format +msgid "http://www.novell.com/documentation/sles11/book_sleha/index.html?page=/documentation/sles11/book_sleha/data/book_sleha.html" +msgstr "http://www.novell.com/documentation/sles11/book_sleha/index.html?page=/documentation/sles11/book_sleha/data/book_sleha.html" + +#. Tag: para +#, no-c-format +msgid "Corosync" +msgstr "Corosync" + +#. Tag: para +#, no-c-format +msgid "http://www.corosync.org" +msgstr "http://www.corosync.org" diff --git a/doc/Clusters_from_Scratch/zh-CN/Author_Group.mo b/doc/Clusters_from_Scratch/zh-CN/Author_Group.mo new file mode 100644 index 0000000000..94ebd050c2 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Author_Group.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Author_Group.po b/doc/Clusters_from_Scratch/zh-CN/Author_Group.po new file mode 100644 index 0000000000..985e810791 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Author_Group.po @@ -0,0 +1,50 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 23:35+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: firstname +#, no-c-format +msgid "Andrew" +msgstr "Andrew" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "Beekhof" + +#. Tag: orgname +#, no-c-format +msgid "Red Hat" +msgstr "Red Hat" + +#. Tag: contrib +#, no-c-format +msgid "Primary author" +msgstr "作者" + +#. Tag: firstname +#, no-c-format +msgid "Raoul" +msgstr "Raoul" + +#. Tag: surname +#, no-c-format +msgid "Scarazzini" +msgstr "Scarazzini" + +#. Tag: contrib +#, no-c-format +msgid "Italian translation" +msgstr "意大利语翻译" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Book_Info.mo b/doc/Clusters_from_Scratch/zh-CN/Book_Info.mo new file mode 100644 index 0000000000..8319f658ab Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Book_Info.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Book_Info.po b/doc/Clusters_from_Scratch/zh-CN/Book_Info.po new file mode 100644 index 0000000000..70e3dca79d --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Book_Info.po @@ -0,0 +1,75 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 23:35+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Clusters from Scratch" +msgstr "从头开始搭建集群" + +#. Tag: subtitle +#, no-c-format +msgid "Creating Active/Passive and Active/Active Clusters on Fedora" +msgstr "在Fedora上面创建主/主和主备集群" + +#. Tag: productname +#, no-c-format +msgid "Pacemaker" +msgstr "Pacemaker" + +#. 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 "本文档的主要目的是提供一站式指南,教您如何使用Pacemaker创建一个主/备模式的集群并把它转换到主/主模式。" + +#. 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 "&DISTRO; &DISTRO_VERSION; 作为基本操作系统" + +#. Tag: para +#, no-c-format +msgid "Corosync to provide messaging and membership services," +msgstr "Corosync作为通信层和提供关系管理服务" + +#. Tag: para +#, no-c-format +msgid "Pacemaker to perform resource management," +msgstr "Pacemaker来实现资源管理" + +#. Tag: para +#, no-c-format +msgid "DRBD as a cost-effective alternative to shared storage," +msgstr "DRBD 作为一个经济的共享存储方案" + +#. Tag: para +#, no-c-format +msgid "GFS2 as the cluster filesystem (in active/active mode)" +msgstr "GFS2 作为集群文件系统(主/主模式中)" + +#. Tag: para +#, no-c-format +msgid "The crm shell for displaying the configuration and making changes" +msgstr "crm shell 来显示并修改配置文件" + +#. Tag: para +#, no-c-format +msgid "Given the graphical nature of the Fedora install process, a number of screenshots are included. However the guide is primarily composed of commands, the reasons for executing them and their expected outputs." +msgstr "虽然给出了图形化安装Fedora的过程,并且有很多截图,但是本文的主要是靠命令来操作,包括为什么要运行这个命令和这些操作产生的结果。(译者注:本文中基本是crm shell来操作的,这里应该是老版本文档的遗留)" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.mo new file mode 100644 index 0000000000..6bbc094315 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.po new file mode 100644 index 0000000000..0e06b222bd --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Active.po @@ -0,0 +1,1365 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-16 00:37+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Chinese\n" +"X-Poedit-Country: CHINA\n" +"X-Poedit-SourceCharset: utf-8\n" + +#. Tag: title +#, no-c-format +msgid "Conversion to Active/Active" +msgstr "转变为Active/Active" + +#. Tag: title +#, no-c-format +msgid "Requirements" +msgstr "需求" + +#. Tag: para +#, no-c-format +msgid "The primary requirement for an Active/Active cluster is that the data required for your services are available, simultaneously, on both machines. Pacemaker makes no requirement on how this is achieved, you could use a SAN if you had one available, however since DRBD supports multiple Primaries, we can also use that." +msgstr "Active/Active集群一个主要的需求就是数据在两台机器上面都是可用并且是同步的。Pacemaker没有要求你怎么实现,你可以用SAN,但是自从DRBD支持多主模式,我们也可以用这个来实现。" + +#. Tag: para +#, no-c-format +msgid "The only hitch is that we need to use a cluster-aware filesystem (and the one we used earlier with DRBD, ext4, is not one of those). Both OCFS2 and GFS2 are supported, however here we will use GFS2 which comes with &DISTRO; &DISTRO_VERSION; ." +msgstr "唯一的限制是我们要用一个针对集群的文件系统(我们之前用的ext4,它并不是这样一个文件系统)。 OCFS2或者GFS2都是可以的,但是在&DISTRO; &DISTRO_VERSION;上面,我们用GFS2。" + +#. Tag: title +#, no-c-format +msgid "Install a Cluster Filesystem - GFS2" +msgstr "安装一个集群文件系统 - GFS2" + +#. Tag: para +#, no-c-format +msgid "The first thing to do is install gfs2-utils on each machine." +msgstr "首先我们在各个节点上面安装GFS2。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# yum install -y gfs2-utils gfs-pcmk\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Running transaction check\n" +"---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package                Arch               Version                   Repository        Size\n" +"===========================================================================================\n" +"Installing:\n" +" gfs-pcmk               x86_64             3.0.5-2.fc12              custom           101 k\n" +" gfs2-utils             x86_64             3.0.5-2.fc12              custom           208 k\n" +"Installing for dependencies:\n" +" clusterlib             x86_64             3.0.5-2.fc12              custom            65 k\n" +" dlm-pcmk               x86_64             3.0.5-2.fc12              custom            93 k\n" +" openaislib             x86_64             1.1.0-1.fc12              fedora            76 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       5 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 541 k\n" +"Downloading Packages:\n" +"(1/5): clusterlib-3.0.5-2.fc12.x86_64.rpm                                |  65 kB     00:00\n" +"(2/5): dlm-pcmk-3.0.5-2.fc12.x86_64.rpm                                  |  93 kB     00:00\n" +"(3/5): gfs-pcmk-3.0.5-2.fc12.x86_64.rpm                                  | 101 kB     00:00\n" +"(4/5): gfs2-utils-3.0.5-2.fc12.x86_64.rpm                                | 208 kB     00:00\n" +"(5/5): openaislib-1.1.0-1.fc12.x86_64.rpm                                |  76 kB     00:00\n" +"-------------------------------------------------------------------------------------------\n" +"Total                                                           992 kB/s | 541 kB     00:00\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : clusterlib-3.0.5-2.fc12.x86_64                                       1/5 \n" +"  Installing     : openaislib-1.1.0-1.fc12.x86_64                                       2/5 \n" +"  Installing     : dlm-pcmk-3.0.5-2.fc12.x86_64                                         3/5 \n" +"  Installing     : gfs-pcmk-3.0.5-2.fc12.x86_64                                         4/5 \n" +"  Installing     : gfs2-utils-3.0.5-2.fc12.x86_64                                       5/5 \n" +"\n" +"Installed:\n" +"  gfs-pcmk.x86_64 0:3.0.5-2.fc12                    gfs2-utils.x86_64 0:3.0.5-2.fc12\n" +"\n" +"Dependency Installed:\n" +"  clusterlib.x86_64 0:3.0.5-2.fc12   dlm-pcmk.x86_64 0:3.0.5-2.fc12 \n" +"  openaislib.x86_64 0:1.1.0-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 x86_64]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# yum install -y gfs2-utils gfs-pcmk\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Running transaction check\n" +"---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package                Arch               Version                   Repository        Size\n" +"===========================================================================================\n" +"Installing:\n" +" gfs-pcmk               x86_64             3.0.5-2.fc12              custom           101 k\n" +" gfs2-utils             x86_64             3.0.5-2.fc12              custom           208 k\n" +"Installing for dependencies:\n" +" clusterlib             x86_64             3.0.5-2.fc12              custom            65 k\n" +" dlm-pcmk               x86_64             3.0.5-2.fc12              custom            93 k\n" +" openaislib             x86_64             1.1.0-1.fc12              fedora            76 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       5 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 541 k\n" +"Downloading Packages:\n" +"(1/5): clusterlib-3.0.5-2.fc12.x86_64.rpm                                |  65 kB     00:00\n" +"(2/5): dlm-pcmk-3.0.5-2.fc12.x86_64.rpm                                  |  93 kB     00:00\n" +"(3/5): gfs-pcmk-3.0.5-2.fc12.x86_64.rpm                                  | 101 kB     00:00\n" +"(4/5): gfs2-utils-3.0.5-2.fc12.x86_64.rpm                                | 208 kB     00:00\n" +"(5/5): openaislib-1.1.0-1.fc12.x86_64.rpm                                |  76 kB     00:00\n" +"-------------------------------------------------------------------------------------------\n" +"Total                                                           992 kB/s | 541 kB     00:00\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : clusterlib-3.0.5-2.fc12.x86_64                                       1/5 \n" +"  Installing     : openaislib-1.1.0-1.fc12.x86_64                                       2/5 \n" +"  Installing     : dlm-pcmk-3.0.5-2.fc12.x86_64                                         3/5 \n" +"  Installing     : gfs-pcmk-3.0.5-2.fc12.x86_64                                         4/5 \n" +"  Installing     : gfs2-utils-3.0.5-2.fc12.x86_64                                       5/5 \n" +"\n" +"Installed:\n" +"  gfs-pcmk.x86_64 0:3.0.5-2.fc12                    gfs2-utils.x86_64 0:3.0.5-2.fc12\n" +"\n" +"Dependency Installed:\n" +"  clusterlib.x86_64 0:3.0.5-2.fc12   dlm-pcmk.x86_64 0:3.0.5-2.fc12 \n" +"  openaislib.x86_64 0:1.1.0-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 x86_64]#\n" + +#. Tag: title +#, no-c-format +msgid "Setup Pacemaker-GFS2 Integration" +msgstr "整合 Pacemaker-GFS2" + +#. Tag: para +#, no-c-format +msgid "GFS2 needs two services to be running, the first is the user-space interface to the kernel’s distributed lock manager (DLM). The DLM is used to co-ordinate which node(s) can access a given file (and when) and integrates with Pacemaker to obtain node membership The list of nodes the cluster considers to be available information and fencing capabilities." +msgstr "GFS2要求运行两个服务,首先是用户空间访问内核的分布式锁管理(DLM)的接口。 DLM是用来统筹哪个节点可以处理某个特定的文件,并且与Pacemaker集成来得到节点之间的关系 The list of nodes the cluster considers to be available 和隔离能力。" + +#. Tag: para +#, no-c-format +msgid "The second service is GFS2’s own control daemon which also integrates with Pacemaker to obtain node membership data." +msgstr "另外一个服务是GFS2自身的控制进程,也是与Pacemaker集成来得到节点之间的关系。" + +#. Tag: title +#, no-c-format +msgid "Add the DLM service" +msgstr "添加 DLM 服务" + +#. Tag: para +#, no-c-format +msgid "The DLM control daemon needs to run on all active cluster nodes, so we will use the shells interactive mode to create a cloned resource." +msgstr "DLM控制进程需要在所有可用的集群节点上面运行,所以我们用shell交互模式来添加一个cloned类型的资源。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new stack-glue\n" +"INFO: stack-glue shadow CIB created\n" +"crm(stack-glue)# configure primitive dlm ocf:pacemaker:controld op monitor interval=120s\n" +"crm(stack-glue)# configure clone dlm-clone dlm meta interleave=true\n" +"crm(stack-glue)# configure show xml\n" +"crm(stack-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +" op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +" meta interleave=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new stack-glue\n" +"INFO: stack-glue shadow CIB created\n" +"crm(stack-glue)# configure primitive dlm ocf:pacemaker:controld op monitor interval=120s\n" +"crm(stack-glue)# configure clone dlm-clone dlm meta interleave=true\n" +"crm(stack-glue)# configure show xml\n" +"crm(stack-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +" op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +" meta interleave=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the meaning of the interleave option" +msgstr "TODO: Explain the meaning of the interleave option" + +#. Tag: para +#, no-c-format +msgid "Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response" +msgstr "看看配置文件有没有错误,然后退出shell看看集群的反应。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(stack-glue)# cib commit stack-glue\n" +"INFO: commited 'stack-glue' shadow CIB to the cluster\n" +"crm(stack-glue)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"5 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +" Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +msgstr "" +"\n" +"crm(stack-glue)# cib commit stack-glue\n" +"INFO: commited 'stack-glue' shadow CIB to the cluster\n" +"crm(stack-glue)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"5 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +" Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" + +#. Tag: title +#, no-c-format +msgid "Add the GFS2 service" +msgstr "添加 GFS2 服务" + +#. Tag: para +#, no-c-format +msgid "Once the DLM is active, we can add the GFS2 control daemon." +msgstr "一旦DLM启动了,我们可以加上GFS2的控制进程了。" + +#. Tag: para +#, no-c-format +msgid "Use the crm shell to create the gfs-control cluster resource:" +msgstr "用crm shell来创建gfs-control这个集群资源:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new gfs-glue --force\n" +"INFO: gfs-glue shadow CIB created\n" +"crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args=\"-g 0\" op monitor interval=120s\n" +"crm(gfs-glue)# configure clone gfs-clone gfs-control meta interleave=true\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new gfs-glue --force\n" +"INFO: gfs-glue shadow CIB created\n" +"crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args=\"-g 0\" op monitor interval=120s\n" +"crm(gfs-glue)# configure clone gfs-clone gfs-control meta interleave=true\n" + +#. Tag: para +#, no-c-format +msgid "Now ensure Pacemaker only starts the gfs-control service on nodes that also have a copy of the dlm service (created above) already running" +msgstr "现在确保Pacemaker只在有dlm服务运行的节点上面启动 gfs-control 服务" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone\n" +"crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone\n" +msgstr "" +"\n" +"crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone\n" +"crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone\n" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(gfs-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +" params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +" op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +" meta interleave=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +"crm(gfs-glue)# cib commit gfs-glue\n" +"INFO: commited 'gfs-glue' shadow CIB to the cluster\n" +"crm(gfs-glue)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +" Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-1\n" +msgstr "" +"\n" +"crm(gfs-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +" params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +" op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +" meta interleave=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +"crm(gfs-glue)# cib commit gfs-glue\n" +"INFO: commited 'gfs-glue' shadow CIB to the cluster\n" +"crm(gfs-glue)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +" Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-1\n" + +#. Tag: title +#, no-c-format +msgid "Create a GFS2 Filesystem" +msgstr "创建一个 GFS2 文件系统" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "准备工作" + +#. Tag: para +#, no-c-format +msgid "Before we do anything to the existing partition, we need to make sure it is unmounted. We do this by tell the cluster to stop the WebFS resource. This will ensure that other resources (in our case, Apache) using WebFS are not only stopped, but stopped in the correct order." +msgstr "在我们对一个已存在的分区做任何操作之前,我们要确保它没有被挂载。我们告诉集群停止WebFS这个资源来确保这一点。这可以确保其他使用WebFS的资源会正确的依次关闭。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 15:18:06 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 15:18:06 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" + +#. Tag: para +#, no-c-format +msgid "Note that both Apache and WebFS have been stopped." +msgstr "注意 Apache and WebFS 两者都已经停止了。" + +#. Tag: title +#, no-c-format +msgid "Create and Populate an GFS2 Partition" +msgstr "创建并迁移数据到 GFS2 分区" + +#. Tag: para +#, no-c-format +msgid "Now that the cluster stack and integration pieces are running smoothly, we can create an GFS2 partition." +msgstr "现在集群的基层和集成部分都正常运行,我们现在创建一个GFS2分区" + +#. 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 "这个操作会清除DRBD分区上面的所有数据,请备份重要的数据。" + +#. Tag: para +#, no-c-format +msgid "We need to specify a number of additional parameters when creating a GFS2 partition." +msgstr "我们要为GFS2分区指定一系列附加的参数。" + +#. Tag: para +#, no-c-format +msgid "First we must use the -p option to specify that we want to use the the Kernel’s DLM. Next we use -j to indicate that it should reserve enough space for two journals (one per node accessing the filesystem)." +msgstr "首先我们要用 -p选项来指定我们用的是内核的DLM,然后我们用-j来表示我们为两个日志保留足够的空间(每个操作文件系统的节点各一个)。" + +#. Tag: para +#, no-c-format +msgid "Lastly, we use -t to specify the lock table name. The format for this field is clustername:fsname. For the fsname, we just need to pick something unique and descriptive and since we haven’t specified a clustername yet, we will use the default (pcmk)." +msgstr "最后,我们用-t来指定lock table的名称。这个字段的格式是 clustername:fsname(集群名称:文件系统名称)。fsname的话,我们只要用一个唯一的并且能描述我们这个集群的名称就好了,我们用默认的pcmk。" + +#. Tag: para +#, no-c-format +msgid "To specify an alternate name for the cluster, locate the service section containing “name: pacemaker” in corosync.conf and insert the following line anywhere inside the block:" +msgstr "如果要更改集群的名称,找到包含name:pacemaker的配置文件区域,然后添加如下所示的选项即可。" + +#. Tag: para +#, no-c-format +msgid "clustername: myname" +msgstr "clustername: myname" + +#. Tag: para +#, no-c-format +msgid "Do this on each node in the cluster and be sure to restart them before continuing." +msgstr "在每个节点都执行以下命令。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1\n" +"[root@pcmk-1 ~]# mkfs.gfs2 -t pcmk:web -p lock_dlm -j 2 /dev/vdb \n" +"This will destroy any data on /dev/vdb.\n" +"It appears to contain: data\n" +"\n" +"Are you sure you want to proceed? [y/n] y\n" +"\n" +"Device:                    /dev/vdb\n" +"Blocksize:                 4096\n" +"Device Size                1.00 GB (131072 blocks)\n" +"Filesystem Size:           1.00 GB (131070 blocks)\n" +"Journals:                  2\n" +"Resource Groups:           2\n" +"Locking Protocol:          \"lock_dlm\"\n" +"Lock Table:                \"pcmk:web\"\n" +"UUID:                      6B776F46-177B-BAF8-2C2B-292C0E078613\n" +"\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1\n" +"[root@pcmk-1 ~]# mkfs.gfs2 -t pcmk:web -p lock_dlm -j 2 /dev/vdb \n" +"This will destroy any data on /dev/vdb.\n" +"It appears to contain: data\n" +"\n" +"Are you sure you want to proceed? [y/n] y\n" +"\n" +"Device:                    /dev/vdb\n" +"Blocksize:                 4096\n" +"Device Size                1.00 GB (131072 blocks)\n" +"Filesystem Size:           1.00 GB (131070 blocks)\n" +"Journals:                  2\n" +"Resource Groups:           2\n" +"Locking Protocol:          \"lock_dlm\"\n" +"Lock Table:                \"pcmk:web\"\n" +"UUID:                      6B776F46-177B-BAF8-2C2B-292C0E078613\n" +"\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "Then (re)populate the new filesystem with data (web pages). For now we’ll create another variation on our home page." +msgstr "然后再迁移数据到这个新的文件系统。现在我们创建一个跟上次不一样的主页。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - GFS2</body>\n" +"</html>\n" +"END\n" +"[root@pcmk-1 ~]# umount /dev/drbd1\n" +"[root@pcmk-1 ~]# drbdadm verify wwwdata\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - GFS2</body>\n" +"</html>\n" +"END\n" +"[root@pcmk-1 ~]# umount /dev/drbd1\n" +"[root@pcmk-1 ~]# drbdadm verify wwwdata\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: title +#, no-c-format +msgid "Reconfigure the Cluster for GFS2" +msgstr "8.5. 重新为集群配置GFS2" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new GFS2\n" +"INFO: GFS2 shadow CIB created\n" +"crm(GFS2)# configure delete WebFS\n" +"crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new GFS2\n" +"INFO: GFS2 shadow CIB created\n" +"crm(GFS2)# configure delete WebFS\n" +"crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" + +#. Tag: para +#, no-c-format +msgid "Now that we’ve recreated the resource, we also need to recreate all the constraints that used it. This is because the shell will automatically remove any constraints that referenced WebFS." +msgstr "现在我们重新创建这个资源, 我们也要重建跟这个资源相关的约束条件,因为shell会自动删除跟WebFS相关的约束条件。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(GFS2)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(GFS2)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(GFS2)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"crm(GFS2)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +"crm(GFS2)# configure colocation WebFS-with-gfs-control INFINITY: WebFS gfs-clone\n" +"crm(GFS2)# configure order start-WebFS-after-gfs-control mandatory: gfs-clone WebFS\n" +"crm(GFS2)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +" params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" +"\n" +"crm(GFS2)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(GFS2)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(GFS2)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"crm(GFS2)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +"crm(GFS2)# configure colocation WebFS-with-gfs-control INFINITY: WebFS gfs-clone\n" +"crm(GFS2)# configure order start-WebFS-after-gfs-control mandatory: gfs-clone WebFS\n" +"crm(GFS2)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +" params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(GFS2)# cib commit GFS2\n" +"INFO: commited 'GFS2' shadow CIB to the cluster\n" +"crm(GFS2)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" +msgstr "" +"\n" +"crm(GFS2)# cib commit GFS2\n" +"INFO: commited 'GFS2' shadow CIB to the cluster\n" +"crm(GFS2)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" + +#. Tag: title +#, no-c-format +msgid "Reconfigure Pacemaker for Active/Active" +msgstr "重新配置 Pacemaker 为 Active/Active" + +#. Tag: para +#, no-c-format +msgid "Almost everything is in place. Recent versions of DRBD are capable of operating in Primary/Primary mode and the filesystem we’re using is cluster aware. All we need to do now is reconfigure the cluster to take advantage of this." +msgstr "基本上所有的事情都已经准备就绪了。最新的DRBD是支持 Primary/Primary(主/主)模式的,并且我们的文件系统的是针对集群的。所有我们要做的事情就是重新配置我们的集群来使用它们(的先进功能)。" + +#. Tag: para +#, no-c-format +msgid "This will involve a number of changes, so we’ll again use interactive mode." +msgstr "这次操作会改很多东西,所以我们再次使用交互模式" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"[root@pcmk-1 ~]# cib new active\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"[root@pcmk-1 ~]# cib new active\n" +" " + +#. Tag: para +#, no-c-format +msgid "There’s no point making the services active on both locations if we can’t reach them, so lets first clone the IP address. Cloned IPaddr2 resources use an iptables rule to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster how many instances of the clone we want (one “request bucket” for each node) and that if all other nodes fail, then the remaining node should hold all of them. Otherwise the requests would be simply discarded." +msgstr "如果我们不能访问这些服务,那做成 Active/Active是没有必要的,所以我们要先clone这个IP地址,克隆的IPaddr2资源用的是iptables规则来保证每个请求都只由一个节点来处理。附件的meta选项告诉集群我们要克隆多少个实例(每个节点一个\"请求桶\")。并且如果其他节点挂了,剩下的节点可以处理所有的请求。否则这些请求都会被丢弃。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now we must tell the ClusterIP how to decide which requests are processed by which hosts. To do this we must specify the clusterip_hash parameter." +msgstr "现在我们要告诉集群如何决定请求怎样分配给节点。我们要设置 clusterip_hash这个参数来实现它。" + +#. Tag: para +#, no-c-format +msgid "Open the ClusterIP resource" +msgstr "打开ClusterIP的配置" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# configure edit  ClusterIP" +msgstr "[root@pcmk-1 ~]# configure edit  ClusterIP" + +#. Tag: para +#, no-c-format +msgid "And add the following to the params line" +msgstr "在参数行添加以下内容:" + +#. Tag: screen +#, no-c-format +msgid "clusterip_hash=\"sourceip\"" +msgstr "clusterip_hash=\"sourceip\"" + +#. Tag: para +#, no-c-format +msgid "So that the complete definition looks like:" +msgstr "完整的定义就像下面一样:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" clusterip_hash=\"sourceip\" \\\n" +"        op monitor interval=\"30s\"\n" +" " +msgstr "" +"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" clusterip_hash=\"sourceip\" \\\n" +"        op monitor interval=\"30s\"\n" +" " + +#. Tag: para +#, no-c-format +msgid "Here is the full transcript" +msgstr "以下是完整的配置" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new active\n" +"INFO: active shadow CIB created\n" +"crm(active)# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone WebIP ClusterIP \\\n" +" meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: WebIP WebSite\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new active\n" +"INFO: active shadow CIB created\n" +"crm(active)# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone WebIP ClusterIP \\\n" +" meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFS gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSite WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: WebIP WebSite\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFS\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " + +#. Tag: para +#, no-c-format +msgid "Notice how any constraints that referenced ClusterIP have been updated to use WebIP instead. This is an additional benefit of using the crm shell." +msgstr "请注意所有跟ClusterIP相关的限制都已经被更新到与WebIP相关,这是使用crm shell的另一个好处。" + +#. Tag: para +#, no-c-format +msgid "Next we need to convert the filesystem and Apache resources into clones. Again, the shell will automatically update any relevant constraints." +msgstr "然后我们要把文件系统和apache资源变成clones。同样的 crm shell会自动更新相关约束。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# configure clone WebFSClone WebFS\n" +"crm(active)# configure clone WebSiteClone WebSite\n" +" " +msgstr "" +"\n" +"crm(active)# configure clone WebFSClone WebFS\n" +"crm(active)# configure clone WebSiteClone WebSite\n" +" " + +#. Tag: para +#, no-c-format +msgid "The last step is to tell the cluster that it is now allowed to promote both instances to be Primary (aka. Master)." +msgstr "最后要告诉集群现在允许把两个节点都提升为 Primary(换句话说 Master)." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# configure edit WebDataClone\n" +" " +msgstr "" +"\n" +"crm(active)# configure edit WebDataClone\n" +" " + +#. Tag: para +#, no-c-format +msgid "Change master-max to 2" +msgstr "把 master-max 改为 2" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " +msgstr "" +"\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# cib commit active\n" +"INFO: commited 'active' shadow CIB to the cluster\n" +"crm(active)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 21:37:27 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: WebIP\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: WebFSClone\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: WebSiteClone\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +" " +msgstr "" +"\n" +"crm(active)# cib commit active\n" +"INFO: commited 'active' shadow CIB to the cluster\n" +"crm(active)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 21:37:27 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: WebIP\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: WebFSClone\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +"Clone Set: WebSiteClone\n" +" Started: [ pcmk-1 pcmk-2 ]\n" +" " + +#. Tag: title +#, no-c-format +msgid "Testing Recovery" +msgstr "恢复测试" + +#. Tag: para +#, no-c-format +msgid "TODO: Put one node into standby to demonstrate failover" +msgstr "TODO: Put one node into standby to demonstrate failover" + +#~ msgid "The list of nodes the cluster considers to be available" +#~ msgstr "集群认为列表中的节点都是可用的" + +#~ msgid "information and fencing capabilities." +#~ msgstr "信息和隔离功能。" diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.mo new file mode 100644 index 0000000000..a21d3a6a8a Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.po new file mode 100644 index 0000000000..3c4bda969d --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Active-Passive.po @@ -0,0 +1,743 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-16 00:24+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Creating an Active/Passive Cluster" +msgstr "创建一个主/备集群" + +#. Tag: title +#, no-c-format +msgid "Exploring the Existing Configuration" +msgstr "浏览现有配置" + +#. Tag: para +#, no-c-format +msgid "When Pacemaker starts up, it automatically records the number and details of the nodes in the cluster as well as which stack is being used and the version of Pacemaker being used." +msgstr "当Pacemaker启动的时候,它会自动记录节点的数量和详细信息,以及基层软件(本文中是corosync)和Pacemaker的版本。" + +#. Tag: para +#, no-c-format +msgid "This is what the base configuration should look like." +msgstr "这是初始配置文件的模样:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\"\n" +msgstr "" +"\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\"\n" + +#. Tag: para +#, no-c-format +msgid "For those that are not of afraid of XML, you can see the raw configuration by appending “xml” to the previous command." +msgstr "如果有谁想看看XML格式的,你可以添加xml选项来看到原始的配置文件" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# crm configure show xml\n" +"<?xml version=\"1.0\" ?>\n" +"<cib admin_epoch=\"0\" crm_feature_set=\"3.0.1\" dc-uuid=\"pcmk-1\" epoch=\"13\" have-quorum=\"1\" num_updates=\"7\" validate-with=\"pacemaker-1.0\">\n" +"  <configuration>\n" +"    <crm_config>\n" +"      <cluster_property_set id=\"cib-bootstrap-options\">\n" +"        <nvpair id=\"cib-bootstrap-options-dc-version\" name=\"dc-version\" value=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-cluster-infrastructure\" name=\"cluster-infrastructure\" value=\"openais\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-expected-quorum-votes\" name=\"expected-quorum-votes\" value=\"2\"/>\n" +"      </cluster_property_set>\n" +"    </crm_config>\n" +"    <rsc_defaults/>\n" +"    <op_defaults/>\n" +"    <nodes>\n" +"      <node id=\"pcmk-1\" type=\"normal\" uname=\"pcmk-1\"/>\n" +"      <node id=\"pcmk-2\" type=\"normal\" uname=\"pcmk-2\"/>\n" +"    </nodes>\n" +"    <resources/>\n" +"    <constraints/>\n" +"  </configuration>\n" +"</cib>\n" +msgstr "" +"\n" +"[root@pcmk-2 ~]# crm configure show xml\n" +"<?xml version=\"1.0\" ?>\n" +"<cib admin_epoch=\"0\" crm_feature_set=\"3.0.1\" dc-uuid=\"pcmk-1\" epoch=\"13\" have-quorum=\"1\" num_updates=\"7\" validate-with=\"pacemaker-1.0\">\n" +"  <configuration>\n" +"    <crm_config>\n" +"      <cluster_property_set id=\"cib-bootstrap-options\">\n" +"        <nvpair id=\"cib-bootstrap-options-dc-version\" name=\"dc-version\" value=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-cluster-infrastructure\" name=\"cluster-infrastructure\" value=\"openais\"/>\n" +"        <nvpair id=\"cib-bootstrap-options-expected-quorum-votes\" name=\"expected-quorum-votes\" value=\"2\"/>\n" +"      </cluster_property_set>\n" +"    </crm_config>\n" +"    <rsc_defaults/>\n" +"    <op_defaults/>\n" +"    <nodes>\n" +"      <node id=\"pcmk-1\" type=\"normal\" uname=\"pcmk-1\"/>\n" +"      <node id=\"pcmk-2\" type=\"normal\" uname=\"pcmk-2\"/>\n" +"    </nodes>\n" +"    <resources/>\n" +"    <constraints/>\n" +"  </configuration>\n" +"</cib>\n" + +#. Tag: para +#, no-c-format +msgid "The last XML you’ll see in this document" +msgstr "这是本文档最后一次显示XML。(作者怨念很深啊)" + +#. Tag: para +#, no-c-format +msgid "Before we make any changes, its a good idea to check the validity of the configuration." +msgstr "在我们做出任何改变之前,我们最好检查下配置文件。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_verify -L\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" +"Errors found during check: config not valid\n" +"  -V may provide more details\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm_verify -L\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" +"Errors found during check: config not valid\n" +"  -V may provide more details\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "As you can see, the tool has found some errors." +msgstr "就像你看到的,这个工具发现了一些错误。" + +#. Tag: para +#, no-c-format +msgid "In order to guarantee the safety of your data If the data is corrupt, there is little point in continuing to make it available , Pacemaker ships with STONITH A common node fencing mechanism. Used to ensure data integrity by powering off “bad” nodes. enabled. However it also knows when no STONITH configuration has been supplied and reports this as a problem (since the cluster would not be able to make progress if a situation requiring node fencing arose)." +msgstr "为了确保您数据的安全性 如果数据是损坏的,那保证它的可用性是没有意义的 ,请使用配备STONITH 一个常见的隔离手段。用关掉坏节点电源的办法来保证数据完整 的Pacemaker。但是当没有配置STONITH的时候也会报这个错误(因为当集群中某个节点需要被隔离的时候,集群就无法工作了)。" + +#. Tag: para +#, no-c-format +msgid "For now, we will disable this feature and configure it later in the Configuring STONITH section. It is important to note that the use of STONITH is highly encouraged, turning it off tells the cluster to simply pretend that failed nodes are safely powered off. Some vendors will even refuse to support clusters that have it disabled." +msgstr "目前,我们禁用这个特性,然后在 配置STONISH 章节来配置它。这里要指出,使用STONITH是非常有必要的。关闭这个特性就是告诉集群:假装故障的节点已经安全的关机了。一些供应商甚至不允许这个特性被关闭。" + +#. Tag: para +#, no-c-format +msgid "To disable STONITH, we set the stonith-enabled cluster option to false." +msgstr "我们将 stonith-enabled设置为 false 来关闭STONITH" + +#. Tag: para +#, no-c-format +msgid "crm configure property stonith-enabled=false" +msgstr "crm configure property stonith-enabled=false" + +#. Tag: para +#, no-c-format +msgid "crm_verify -L" +msgstr "crm_verify -L" + +#. Tag: para +#, no-c-format +msgid "With the new cluster option set, the configuration is now valid." +msgstr "设置完这个选项以后,校验配置文件就正常了。" + +#. Tag: title +#, no-c-format +msgid "Adding a Resource" +msgstr "添加一个资源" + +#. Tag: para +#, no-c-format +msgid "The first thing we should do is configure an IP address. Regardless of where the cluster service(s) are running, we need a consistent address to contact them on. Here I will choose and add 192.168.122.101 as the floating address, give it the imaginative name ClusterIP and tell the cluster to check that its running every 30 seconds." +msgstr "首先要做的是配置一个IP地址,不管集群服务在哪运行,我们要一个固定的地址来提供服务。在这里我选择192.168.122.101作为浮动IP,给它取一个好记的名字 ClusterIP 并且告诉集群 每30秒检查它一次" + +#. Tag: para +#, no-c-format +msgid "The chosen address must not be one already associated with a physical node" +msgstr "选择的IP地址不能被节点所占用" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=192.168.122.101 cidr_netmask=32 \\ \n" +"        op monitor interval=30s\n" +msgstr "" +"\n" +"crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=192.168.122.101 cidr_netmask=32 \\ \n" +"        op monitor interval=30s\n" + +#. Tag: para +#, no-c-format +msgid "The other important piece of information here is ocf:heartbeat:IPaddr2. This tells Pacemaker three things about the resource you want to add. The first field, ocf, is the standard to which the resource script conforms to and where to find it. The second field is specific to OCF resources and tells the cluster which namespace to find the resource script in, in this case heartbeat. The last field indicates the name of the resource script." +msgstr "另外一个重要的信息是 ocf:heartbeat:IPaddr2。这告诉Pacemaker三件事情,第一个部分,ocf,指明了这个资源采用的标准(类型)以及在哪能找到它。第二个部分标明这个资源脚本的在OCF中的名字空间,在这个例子中是heartbeat。最后一个部分指明了资源脚本的名称。" + +#. Tag: para +#, no-c-format +msgid "To obtain a list of the available resource classes, run" +msgstr "可以运行下面的命令来获得可用的资源类" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm ra classes\n" +"heartbeat\n" +"lsb\n" +"ocf / heartbeat pacemaker\n" +"stonith\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm ra classes\n" +"heartbeat\n" +"lsb\n" +"ocf / heartbeat pacemaker\n" +"stonith\n" + +#. Tag: para +#, no-c-format +msgid "To then find all the OCF resource agents provided by Pacemaker and Heartbeat, run" +msgstr "找到OCF中Pacemaker和Heartbeat提供的资源脚本,运行下面的命令" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm ra list ocf pacemaker\n" +"ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld\n" +"ping           pingd          \n" +"[root@pcmk-1 ~]# crm ra list ocf heartbeat\n" +"AoEtarget              AudibleAlarm           ClusterMon             Delay\n" +"Dummy                  EvmsSCC                Evmsd                  Filesystem\n" +"ICP                    IPaddr                 IPaddr2                IPsrcaddr\n" +"LVM                    LinuxSCSI              MailTo                 ManageRAID\n" +"ManageVE               Pure-FTPd              Raid1                  Route\n" +"SAPDatabase            SAPInstance            SendArp                ServeRAID\n" +"SphinxSearchDaemon     Squid                  Stateful               SysInfo\n" +"VIPArip                VirtualDomain          WAS                    WAS6\n" +"WinPopup               Xen                    Xinetd                 anything\n" +"apache                 db2                    drbd                   eDir88\n" +"iSCSILogicalUnit       iSCSITarget            ids                    iscsi\n" +"ldirectord             mysql                  mysql-proxy            nfsserver\n" +"oracle                 oralsnr                pgsql                  pingd\n" +"portblock              rsyncd                 scsi2reservation       sfex\n" +"tomcat                 vmware                 \n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm ra list ocf pacemaker\n" +"ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld\n" +"ping           pingd          \n" +"[root@pcmk-1 ~]# crm ra list ocf heartbeat\n" +"AoEtarget              AudibleAlarm           ClusterMon             Delay\n" +"Dummy                  EvmsSCC                Evmsd                  Filesystem\n" +"ICP                    IPaddr                 IPaddr2                IPsrcaddr\n" +"LVM                    LinuxSCSI              MailTo                 ManageRAID\n" +"ManageVE               Pure-FTPd              Raid1                  Route\n" +"SAPDatabase            SAPInstance            SendArp                ServeRAID\n" +"SphinxSearchDaemon     Squid                  Stateful               SysInfo\n" +"VIPArip                VirtualDomain          WAS                    WAS6\n" +"WinPopup               Xen                    Xinetd                 anything\n" +"apache                 db2                    drbd                   eDir88\n" +"iSCSILogicalUnit       iSCSITarget            ids                    iscsi\n" +"ldirectord             mysql                  mysql-proxy            nfsserver\n" +"oracle                 oralsnr                pgsql                  pingd\n" +"portblock              rsyncd                 scsi2reservation       sfex\n" +"tomcat                 vmware                 \n" +"[root@pcmk-1 ~]#\n" + +#. 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 "现在检查下IP 资源是不是已经添加了,并且看看是否处在可用状态。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +" op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:23:48 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +" op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:23:48 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n" + +#. Tag: title +#, no-c-format +msgid "Perform a Failover" +msgstr " 做一次失效备援" + +#. Tag: para +#, no-c-format +msgid "Being a high-availability cluster, we should test failover of our new resource before moving on." +msgstr "作为一个高可用的集群,我们在继续本文档之前,我们要需要测试失效备援 。" + +#. Tag: para +#, no-c-format +msgid "First, find the node on which the IP address is running." +msgstr "首先,找到IP资源现在在哪个节点上运行。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm resource status ClusterIP\n" +"resource ClusterIP is running on: pcmk-1\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm resource status ClusterIP\n" +"resource ClusterIP is running on: pcmk-1\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "Shut down Corosync on that machine." +msgstr "关闭那个节点上面的Corosync服务:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync): [ OK ]\n" +"Waiting for services to unload: [ OK ]\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync): [ OK ]\n" +"Waiting for services to unload: [ OK ]\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "Once Corosync is no longer running, go to the other node and check the cluster status with crm_mon." +msgstr "当Corosync停止运行以后,我们到另外一个节点用crm_mon来检查集群状态." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:27:35 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +msgstr "" +"\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:27:35 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" + +#. Tag: para +#, no-c-format +msgid "There are three things to notice about the cluster’s current state. The first is that, as expected, pcmk-1 is now offline. However we can also see that ClusterIP isn’t running anywhere!" +msgstr "关于集群状态,我们有三个地方需要注意,首先,如我们所料pcmk-1已经下线了,然而我们发现ClusterIP不在任何地方运行!" + +#. Tag: title +#, no-c-format +msgid "Quorum and Two-Node Clusters" +msgstr "法定人数和双节点集群" + +#. Tag: para +#, no-c-format +msgid "This is because the cluster no longer has quorum, as can be seen by the text “partition WITHOUT quorum” (emphasised green) in the output above. In order to reduce the possibility of data corruption, Pacemaker’s default behavior is to stop all resources if the cluster does not have quorum." +msgstr "这是因为集群已经达不到“法定人数”了,就像我们看到的“partition WITHOUT quorum” (用绿色强调的)。为了避免数据遭到破坏,当Pacemaker发现集群达不到法定人数时,就会停止所有的资源。" + +#. Tag: para +#, no-c-format +msgid "A cluster is said to have quorum when more than half the known or expected nodes are online, or for the mathematically inclined, whenever the following equation is true:" +msgstr "当有半数以上的节点在线时,这个集群就认为自己拥有法定人数了,是“合法”的,换而言之就是下面的公式:" + +#. Tag: para +#, no-c-format +msgid "total_nodes - 1 < 2 * active_nodes" +msgstr "总节点数 - 1 < 2 * 可用的节点" + +#. Tag: para +#, no-c-format +msgid "Therefore a two-node cluster only has quorum when both nodes are running, which is no longer the case for our cluster. This would normally make the creation of a two-node cluster pointless Actually some would argue that two-node clusters are always pointless, but that is an argument for another time. , however it is possible to control how Pacemaker behaves when quorum is lost. In particular, we can tell the cluster to simply ignore quorum altogether." +msgstr "因此在双节点的集群中,只有当两者都在线时才是合法的。 这个规则会让 双节点的集群 毫无意义,但是我们可以控制Pacemaker发现集群达不到法定人数时候的行为。简单来说,我们告诉集群忽略它 。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure property no-quorum-policy=ignore\n" +"[root@pcmk-1 ~]# crm configure show \n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure property no-quorum-policy=ignore\n" +"[root@pcmk-1 ~]# crm configure show \n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" + +#. Tag: para +#, no-c-format +msgid "After a few moments, the cluster will start the IP address on the remaining node. Note that the cluster still does not have quorum." +msgstr "过了一会,集群会在剩下的那个节点上启动这个IP。请注意集群现在依然没有达到法定人数。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:30:18 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n" +msgstr "" +"\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:30:18 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n" + +#. Tag: para +#, no-c-format +msgid "Now simulate node recovery by restarting the cluster stack on pcmk-1 and check the cluster’s status." +msgstr "现在模拟节点恢复,我们启动 pcmk-1 上面的Corosync服务,然后检查集群状态。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ] \n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:32:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ] \n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:32:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" + +#. Tag: para +#, no-c-format +msgid "Here we see something that some may consider surprising, the IP is back running at its original location!" +msgstr "现在我们可以看到让某些人惊奇的事情,IP资源回到原来那个节点(pcmk-1)上去了。" + +#. Tag: title +#, no-c-format +msgid "Prevent Resources from Moving after Recovery" +msgstr "防止资源在节点恢复后移动" + +#. Tag: para +#, no-c-format +msgid "In some circumstances it is highly desirable to prevent healthy resources from being moved around the cluster. Move resources almost always requires a period of downtime and for complex services like Oracle databases, this period can be quite long." +msgstr "一些环境中会要求尽量避免资源在节点之间移动。移动资源通常意味着一段时间内无法提供服务,某些复杂的服务,比如Oracle数据库,这个时间可能会很长。" + +#. Tag: para +#, no-c-format +msgid "To address this, Pacemaker has the concept of resource stickiness which controls how much a service prefers to stay running where it is. You may like to think of it as the “cost” of any downtime. By default, Pacemaker assumes there is zero cost associated with moving resources and will do so to achieve “optimal It should be noted that Pacemaker’s definition of optimal may not always agree with that of a human’s. The order in which Pacemaker processes lists of resources and nodes create implicit preferences (required in order to create a stabile solution) in situations where the administrator had not explicitly specified some. ” resource placement. We can specify a different stickiness for every resource, but it is often sufficient to change the default." +msgstr "为了达到这个效果,Pacemaker 有一个叫做 资源黏性值 的概念,它能够控制一个服务(资源)有多想呆在它正在运行的节点上。你可以把它认为是无法提供服务的“代价” 这里要注意的是Pacemaker定义的代价跟人们所想的不一样。如果管理员没有明确的指定参数(创建稳定环境所必须的),那么资源个节点在Pacemaker处理列表中的顺序会隐式地创建参数 ”。 Pacemaker为了达到最优分布各个资源的目的,默认设置这个值为0。我们可以为每个资源定义不同的黏性值,但一般来说,更改默认黏性值就够了。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm configure rsc_defaults resource-stickiness=100\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +" resource-stickiness=\"100\"\n" +msgstr "" +"\n" +"crm configure rsc_defaults resource-stickiness=100\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +" resource-stickiness=\"100\"\n" + +#. Tag: para +#, no-c-format +msgid "If we now retry the failover test, we see that as expected ClusterIP still moves to pcmk-2 when pcmk-1 is taken offline." +msgstr "现在我们重新尝试失效援备测试,我们可以看到,正如我们所料,当pcmk-1不在线的时候ClusterIP还是移动到了pcmk-2" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync):               [  OK  ]\n" +"Waiting for services to unload:                            [  OK  ]\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1\n" +"============\n" +"Last updated: Fri Aug 28 15:39:38 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync):               [  OK  ]\n" +"Waiting for services to unload:                            [  OK  ]\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1\n" +"============\n" +"Last updated: Fri Aug 28 15:39:38 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" + +#. Tag: para +#, no-c-format +msgid "However when we bring pcmk-1 back online, ClusterIP now remains running on pcmk-2." +msgstr "但是当我们把pcmk-1恢复在线后,ClusterIP现在还是跑在pcmk-2上面。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:41:23 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:41:23 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" + +#~ msgid "In order to guarantee the safety of your data" +#~ msgstr "为了保持你的数据的安全性" + +#~ msgid "If the data is corrupt, there is little point in continuing to make it available" +#~ msgstr "如果数据是异常的, 那保证它的可用性是没有意义的。" + +#~ msgid ", Pacemaker ships with STONITH" +#~ msgstr ",Pacemaker与STONITH一起工作" + +#~ msgid "A common node fencing mechanism. Used to ensure data integrity by powering off “bad” nodes." +#~ msgstr "一个常见的隔离途径。用关闭“坏”节点的电源的方法来保证数据完整。" + +#~ msgid "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 "但是当没有配置STONITH的时候也会报这个错误,(因为 当集群需要隔离的时候,集群就无法工作了。)" + +#~ msgid "Therefore a two-node cluster only has quorum when both nodes are running, which is no longer the case for our cluster. This would normally make the creation of a two-node cluster pointless" +#~ msgstr "因此 两个节点的集群 只有在两者都在线时才是合法的。 这个规则会让 两个节点的集群 毫无意义," + +#~ msgid "Actually some would argue that two-node clusters are always pointless, but that is an argument for another time." +#~ msgstr "事实上某些人会说双节点集群本身就是没有意义的,但这不是现在我们要讨论的问题。" + +#~ msgid ", however it is possible to control how Pacemaker behaves when quorum is lost. In particular, we can tell the cluster to simply ignore quorum altogether." +#~ msgstr "但是我们可以控制Pacemaker达不到法定人数时候的行为。简单来说,我们告诉集群忽略它 。" + +#~ msgid "To address this, Pacemaker has the concept of resource stickiness which controls how much a service prefers to stay running where it is. You may like to think of it as the “cost” of any downtime. By default, Pacemaker assumes there is zero cost associated with moving resources and will do so to achieve “optimal" +#~ msgstr "为了达到这个效果,Pacemaker 有一个叫做 资源黏性值 的概念,它能够控制一个服务(资源)有多想呆在它正在运行的节点上。你可以把它认为是无法提供服务的“代价" + +#~ msgid "It should be noted that Pacemaker’s definition of optimal may not always agree with that of a human’s. The order in which Pacemaker processes lists of resources and nodes create implicit preferences (required in order to create a stabile solution) in situations where the administrator had not explicitly specified some." +#~ msgstr "这里要注意的是Pacemaker定义的代价通常跟常人认为的不一样。如果管理员没有明确的指定顺序,Pacemaker处理列表中的资源和节点顺序隐式地定义了参数(创建稳定的方案所需要的)。" + +#~ msgid "” resource placement. We can specify a different stickiness for every resource, but it is often sufficient to change the default." +#~ msgstr "”。 Pacemaker默认这个值为0,以达到最优分布各个资源的目的。我们可以为每个资源定义不同的黏性值,但一般来说,更改默认黏性值就够了。" diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.mo new file mode 100644 index 0000000000..77e55664ea Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.po new file mode 100644 index 0000000000..fc758e7a77 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Apache.po @@ -0,0 +1,904 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:36\n" +"PO-Revision-Date: 2010-12-15 23:37+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Apache - Adding More Services" +msgstr "Apache - 添加更多的服务" + +#. Tag: para +#, no-c-format +msgid "Now that we have a basic but functional active/passive two-node cluster, we’re ready to add some real services. We’re going to start with Apache because its a feature of many clusters and relatively simple to configure." +msgstr "现在我们有了一个基本的但是功能齐全的双节点集群,我们已经可以往里面加些真的服务了。我们准备启动一个Apache服务,因为它是许多集群的主角,并且相对来说比较容易配置。" + +#. Tag: title +#, no-c-format +msgid "Installation" +msgstr "安装Apache" + +#. Tag: para +#, no-c-format +msgid "Before continuing, we need to make sure Apache is installed on both hosts." +msgstr "在继续之前,我们先确保两个节点安装了Apache." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@ppcmk-1 ~]# yum install -y httpd\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Running transaction check\n" +"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=======================================================================================\n" +" Package               Arch             Version                Repository         Size\n" +"=======================================================================================\n" +"Installing:\n" +" httpd               x86_64           2.2.13-2.fc12            rawhide           735 k\n" +"Installing for dependencies:\n" +" apr                 x86_64           1.3.9-2.fc12             rawhide           117 k\n" +" apr-util            x86_64           1.3.9-2.fc12             rawhide            84 k\n" +" apr-util-ldap       x86_64           1.3.9-2.fc12             rawhide            15 k\n" +" httpd-tools         x86_64           2.2.13-2.fc12            rawhide            63 k\n" +" mailcap             noarch           2.1.30-1.fc12            rawhide            25 k\n" +"\n" +"Transaction Summary\n" +"=======================================================================================\n" +"Install       6 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 1.0 M\n" +"Downloading Packages:\n" +"(1/6): apr-1.3.9-2.fc12.x86_64.rpm                                   | 117 kB     00:00     \n" +"(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm                             |  84 kB     00:00     \n" +"(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm                         |  15 kB     00:00     \n" +"(4/6): httpd-2.2.13-2.fc12.x86_64.rpm                               | 735 kB     00:00     \n" +"(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm                         |  63 kB     00:00     \n" +"(6/6): mailcap-2.1.30-1.fc12.noarch.rpm                             |  25 kB     00:00     \n" +"----------------------------------------------------------------------------------------\n" +"Total                                                       875 kB/s | 1.0 MB     00:01     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : apr-1.3.9-2.fc12.x86_64                                         1/6 \n" +"  Installing     : apr-util-1.3.9-2.fc12.x86_64                                     2/6 \n" +"  Installing     : apr-util-ldap-1.3.9-2.fc12.x86_64                               3/6 \n" +"  Installing     : httpd-tools-2.2.13-2.fc12.x86_64                                 4/6 \n" +"  Installing     : mailcap-2.1.30-1.fc12.noarch                                     5/6 \n" +"  Installing     : httpd-2.2.13-2.fc12.x86_64                                       6/6 \n" +"\n" +"Installed:\n" +"  httpd.x86_64 0:2.2.13-2.fc12                                                         \n" +"\n" +"Dependency Installed:\n" +"  apr.x86_64 0:1.3.9-2.fc12            apr-util.x86_64 0:1.3.9-2.fc12\n" +"  apr-util-ldap.x86_64 0:1.3.9-2.fc12  httpd-tools.x86_64 0:2.2.13-2.fc12\n" +"  mailcap.noarch 0:2.1.30-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@ppcmk-1 ~]# yum install -y httpd\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Running transaction check\n" +"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=======================================================================================\n" +" Package               Arch             Version                Repository         Size\n" +"=======================================================================================\n" +"Installing:\n" +" httpd               x86_64           2.2.13-2.fc12            rawhide           735 k\n" +"Installing for dependencies:\n" +" apr                 x86_64           1.3.9-2.fc12             rawhide           117 k\n" +" apr-util            x86_64           1.3.9-2.fc12             rawhide            84 k\n" +" apr-util-ldap       x86_64           1.3.9-2.fc12             rawhide            15 k\n" +" httpd-tools         x86_64           2.2.13-2.fc12            rawhide            63 k\n" +" mailcap             noarch           2.1.30-1.fc12            rawhide            25 k\n" +"\n" +"Transaction Summary\n" +"=======================================================================================\n" +"Install       6 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 1.0 M\n" +"Downloading Packages:\n" +"(1/6): apr-1.3.9-2.fc12.x86_64.rpm                                   | 117 kB     00:00     \n" +"(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm                             |  84 kB     00:00     \n" +"(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm                         |  15 kB     00:00     \n" +"(4/6): httpd-2.2.13-2.fc12.x86_64.rpm                               | 735 kB     00:00     \n" +"(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm                         |  63 kB     00:00     \n" +"(6/6): mailcap-2.1.30-1.fc12.noarch.rpm                             |  25 kB     00:00     \n" +"----------------------------------------------------------------------------------------\n" +"Total                                                       875 kB/s | 1.0 MB     00:01     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : apr-1.3.9-2.fc12.x86_64                                         1/6 \n" +"  Installing     : apr-util-1.3.9-2.fc12.x86_64                                     2/6 \n" +"  Installing     : apr-util-ldap-1.3.9-2.fc12.x86_64                               3/6 \n" +"  Installing     : httpd-tools-2.2.13-2.fc12.x86_64                                 4/6 \n" +"  Installing     : mailcap-2.1.30-1.fc12.noarch                                     5/6 \n" +"  Installing     : httpd-2.2.13-2.fc12.x86_64                                       6/6 \n" +"\n" +"Installed:\n" +"  httpd.x86_64 0:2.2.13-2.fc12                                                         \n" +"\n" +"Dependency Installed:\n" +"  apr.x86_64 0:1.3.9-2.fc12            apr-util.x86_64 0:1.3.9-2.fc12\n" +"  apr-util-ldap.x86_64 0:1.3.9-2.fc12  httpd-tools.x86_64 0:2.2.13-2.fc12\n" +"  mailcap.noarch 0:2.1.30-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "Also, we need the wget tool in order for the cluster to be able to check the status of the Apache server." +msgstr "同样的,为了检测Apache服务器,我们要安装wget这个工具。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# yum install -y wget\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package        Arch             Version                      Repository               Size\n" +"===========================================================================================\n" +"Installing:\n" +" wget         x86_64          1.11.4-5.fc12                   rawhide                393 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       1 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 393 k\n" +"Downloading Packages:\n" +"wget-1.11.4-5.fc12.x86_64.rpm                                            | 393 kB     00:00     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : wget-1.11.4-5.fc12.x86_64                                            1/1 \n" +"\n" +"Installed:\n" +"  wget.x86_64 0:1.11.4-5.fc12\n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# yum install -y wget\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package        Arch             Version                      Repository               Size\n" +"===========================================================================================\n" +"Installing:\n" +" wget         x86_64          1.11.4-5.fc12                   rawhide                393 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       1 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 393 k\n" +"Downloading Packages:\n" +"wget-1.11.4-5.fc12.x86_64.rpm                                            | 393 kB     00:00     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : wget-1.11.4-5.fc12.x86_64                                            1/1 \n" +"\n" +"Installed:\n" +"  wget.x86_64 0:1.11.4-5.fc12\n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "准备工作" + +#. Tag: para +#, no-c-format +msgid "First we need to create a page for Apache to serve up. On Fedora the default Apache docroot is /var/www/html, so we’ll create an index file there." +msgstr "首先我们为Apache创建一个主页。在Fedora上面默认的Apache docroot是/var/www/html,所以我们在这个目录下面建立一个主页。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-1</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-1</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "For the moment, we will simplify things by serving up only a static site and manually sync the data between the two nodes. So run the command again on pcmk-2." +msgstr "为了方便,我们简化所用的页面并人工地在两个节点直接同步数据。所以在pcmk-2上面运行这个命令。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-2</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-2 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-2</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-2 ~]#\n" + +#. Tag: title +#, no-c-format +msgid "Enable the Apache status URL" +msgstr "开启 Apache status URL" + +#. Tag: para +#, no-c-format +msgid "In order to monitor the health of your Apache instance, and recover it if it fails, the resource agent used by Pacemaker assumes the server-status URL is available. Look for the following in /etc/httpd/conf/httpd.conf and make sure it is not disabled or commented out:" +msgstr "为了监控Apache实例的健康状态,并在它挂掉的时候恢复Apache服务,资源agent会假设 server-status URL是可用的。查看/etc/httpd/conf/httpd.conf并确保下面的选项没有被禁用或注释掉。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"<Location /server-status>\n" +" SetHandler server-status\n" +" Order deny,allow\n" +" Deny from all\n" +" Allow from 127.0.0.1\n" +"</Location>\n" +"\t " +msgstr "" +"\n" +"<Location /server-status>\n" +" SetHandler server-status\n" +" Order deny,allow\n" +" Deny from all\n" +" Allow from 127.0.0.1\n" +"</Location>\n" +"\t " + +#. Tag: title +#, no-c-format +msgid "Update the Configuration" +msgstr "更新配置文件" + +#. Tag: para +#, no-c-format +msgid "At this point, Apache is ready to go, all that needs to be done is to add it to the cluster. Lets call the resource WebSite. We need to use an OCF script called apache in the heartbeat namespace Compare the key used here ocf:heartbeat:apache with the one we used earlier for the IP address: ocf:heartbeat:IPaddr2 , the only required parameter is the path to the main Apache configuration file and we’ll tell the cluster to check once a minute that apache is still running." +msgstr "现在 ,Apache已经可以添加到集群中了。我们管这个资源叫WebSite。我们需要用一个叫做apache的OCF脚本,这个脚本在heartbeat这个名字空间里,唯一一个需要设定的参数就是Apache的主配置文件路径,并且我们告诉集群每一分钟检测一次Apache是否运行。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +" op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +" op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" + +#. Tag: para +#, no-c-format +msgid "After a short delay, we should see the cluster start apache" +msgstr "过了一会,我们可以看到集群把apache启动起来了。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:12:49 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:12:49 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" + +#. Tag: para +#, no-c-format +msgid "Wait a moment, the WebSite resource isn’t running on the same host as our IP address!" +msgstr "等等!WebSite这个资源跟IP没有跑在同一个节点上面!" + +#. Tag: title +#, no-c-format +msgid "Ensuring Resources Run on the Same Host" +msgstr "确保资源在同一个节点运行" + +#. Tag: para +#, no-c-format +msgid "To reduce the load on any one machine, Pacemaker will generally try to spread the configured resources across the cluster nodes. However we can tell the cluster that two resources are related and need to run on the same host (or not at all). Here we instruct the cluster that WebSite can only run on the host that ClusterIP is active on. If ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere." +msgstr "为了减少每个机器的负载,Pacemaker会智能地尝试将资源分散到各个节点上面。 然而我们可以告诉集群某两个资源是有联系并且要在同一个节点运行(或不同的节点运行)。这里我们告诉集群WebSite只能在有ClusterIP的节点上运行。如果ClusterIP在哪个节点都不存在,那么WebSite也不能运行。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:14:34 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:14:34 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" + +#. Tag: title +#, no-c-format +msgid "Controlling Resource Start/Stop Ordering" +msgstr "控制资源的启动停止顺序" + +#. Tag: para +#, no-c-format +msgid "When Apache starts, it binds to the available IP addresses. It doesn’t know about any addresses we add afterwards, so not only do they need to run on the same node, but we need to make sure ClusterIP is already active before we start WebSite. We do this by adding an ordering constraint. We need to give it a name (chose something descriptive like apache-after-ip), indicate that its mandatory (so that any recovery for ClusterIP will also trigger recovery of WebSite) and list the two resources in the order we need them to start." +msgstr "当Apache启动了,它跟可用的IP绑在了一起。它不会知道我们后来添加的IP,所以我们不仅需要控制他们在相同的节点运行,也要确保ClusterIP在WebSite之前就启动了。我们用添加ordering约束来达到这个效果。我们需要给这个order取个名字(apache-after-ip之类 描述性的),并指出他是托管的(这样当ClusterIP恢复了,同时会触发WebSite的恢复) 并且写明了这两个资源的启动顺序。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure order apache-after-ip mandatory: ClusterIP WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure order apache-after-ip mandatory: ClusterIP WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" + +#. Tag: title +#, no-c-format +msgid "Specifying a Preferred Location" +msgstr "指定优先的 Location" + +#. Tag: para +#, no-c-format +msgid "Pacemaker does not rely on any sort of hardware symmetry between nodes, so it may well be that one machine is more powerful than the other. In such cases it makes sense to host the resources there if it is available. To do this we create a location constraint. Again we give it a descriptive name (prefer-pcmk-1), specify the resource we want to run there (WebSite), how badly we’d like it to run there (we’ll use 50 for now, but in a two-node situation almost any value above 0 will do) and the host’s name." +msgstr "Pacemaker 并不要求你机器的硬件配置是相同的,可能某些机器比另外的机器配置要好。这种状况下我们会希望设置:当某个节点可用时,资源就要跑在上面之类的规则。为了达到这个效果我们创建location约束。同样的,我们给他取一个描述性的名字(prefer-pcmk-1),指明我们想在上面跑WebSite这个服务,多想在上面跑(我们现在指定分值为50,但是在双节点的集群状态下,任何大于0的值都可以达到想要的效果),以及目标节点的名字:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:17:35 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:17:35 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n" + +#. Tag: para +#, no-c-format +msgid "Wait a minute, the resources are still on pcmk-2!" +msgstr "等等,资源还是在pcmk-2上面跑的!" + +#. Tag: para +#, no-c-format +msgid "Even though we now prefer pcmk-1 over pcmk-2, that preference is (intentionally) less than the resource stickiness (how much we preferred not to have unnecessary downtime)." +msgstr "即使我们更希望资源在pcmk-1上面运行,但是 这个优先值还是比资源黏性值要小。" + +#. Tag: para +#, no-c-format +msgid "To see the current placement scores, you can use a tool called ptest" +msgstr "如果要看现在的分值,可以用ptest这个命令" + +#. Tag: para +#, no-c-format +msgid "ptest -sL" +msgstr "ptest -sL" + +#. Tag: para +#, no-c-format +msgid "Include output" +msgstr "Include output" + +#. Tag: para +#, no-c-format +msgid "There is a way to force them to move though..." +msgstr "这里有个办法强制地移动资源" + +#. Tag: title +#, no-c-format +msgid "Manually Moving Resources Around the Cluster" +msgstr "在集群中手工地移动资源" + +#. Tag: para +#, no-c-format +msgid "There are always times when an administrator needs to override the cluster and force resources to move to a specific location. Underneath we use location constraints like the one we created above, happily you don’t need to care. Just provide the name of the resource and the intended location, we’ll do the rest." +msgstr "经常性的会有管理员想要无视集群然后强制把资源移动到指定的地方。 底层的操作就像我们上面创建的location约束一样。只要提供资源和目标地址,我们会补全剩余部分。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm resource move WebSite pcmk-1\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:19:24 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +"Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n" +"For the curious, we can see the effect of this command by examining the configuration\n" +"crm configure show\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location cli-prefer-WebSite WebSite \\\n" +" rule $id=\"cli-prefer-rule-WebSite\" inf: #uname eq pcmk-1\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm resource move WebSite pcmk-1\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:19:24 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +"Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n" +"For the curious, we can see the effect of this command by examining the configuration\n" +"crm configure show\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location cli-prefer-WebSite WebSite \\\n" +" rule $id=\"cli-prefer-rule-WebSite\" inf: #uname eq pcmk-1\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" + +#. Tag: para +#, no-c-format +msgid "Highlighted is the automated constraint used to move the resources to pcmk-1" +msgstr "斜体部分是用来移动资源到pcmk-1约束,它是自动生成的。" + +#. Tag: title +#, no-c-format +msgid "Giving Control Back to the Cluster" +msgstr "把控制权交还给集群" + +#. Tag: para +#, no-c-format +msgid "Once we’ve finished whatever activity that required us to move the resources to pcmk-1, in our case nothing, we can then allow the cluster to resume normal operation with the unmove command. Since we previously configured a default stickiness, the resources will remain on pcmk-1." +msgstr "当我们完成那些要求要资源移动到pcmk-1的操作--在我们的例子里面啥都没干 --我们可以用unmove命令把集群恢复到强制移动前的状态。因为我们之前配置了默认的资源黏性值,恢复了以后资源还是会在pcmk-1上面。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm resource unmove WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm resource unmove WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=\"2\" \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=\"100\"\n" + +#. Tag: para +#, no-c-format +msgid "Note that the automated constraint is now gone. If we check the cluster status, we can also see that as expected the resources are still active on pcmk-1." +msgstr "可以看到自动生成的约束已经没有了。如果我们查看集群的状态,我们也可以看到就如我们所预期的,资源还是在pcmk-1上面跑" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:20:53 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +" ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +" WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:20:53 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +" ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +" WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" + +#~ msgid "At this point, Apache is ready to go, all that needs to be done is to add it to the cluster. Lets call the resource WebSite. We need to use an OCF script called apache in the heartbeat namespace" +#~ msgstr "现在 ,Apache已经可以添加到集群中了。我们管这个资源叫WebSite。我们需要用一个叫做apache的OCF脚本" + +#~ msgid "Compare the key used here ocf:heartbeat:apache with the one we used earlier for the IP address: ocf:heartbeat:IPaddr2" +#~ msgstr "把我现在所用的关键字ocf:heartbeat:apache 跟之前IP地址所用的比较一下: ocf:heartbeat:IPaddr2" + +#~ msgid ", the only required parameter is the path to the main Apache configuration file and we’ll tell the cluster to check once a minute that apache is still running." +#~ msgstr ",这个脚本在heartbeat这个名字空间里,唯一一个需要设定的参数就是Apache的主配置文件路径,并且我们告诉集群每一分钟检测一次apache是否运行。" diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.mo new file mode 100644 index 0000000000..28bf4e6fd6 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.po new file mode 100644 index 0000000000..3f3c1496e1 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Installation.po @@ -0,0 +1,1452 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-16 00:16+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Installation" +msgstr "安装" + +#. Tag: title +#, no-c-format +msgid "OS Installation" +msgstr "安装操作系统" + +#. Tag: para +#, no-c-format +msgid "Detailed instructions for installing Fedora are available at http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/ in a number of languages. The abbreviated version is as follows..." +msgstr "详细的安装手册在http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/。下文是一个简短的版本..." + +#. Tag: para +#, no-c-format +msgid "Point your browser to http://fedoraproject.org/en/get-fedora-all, locate the Install Media section and download the install DVD that matches your hardware." +msgstr "在你的浏览器中打开 http://fedoraproject.org/en/get-fedora-all,找到Install Media部分并下载适合你硬件的安装DVD文件。" + +#. Tag: para +#, no-c-format +msgid "Burn the disk image to a DVD http://docs.fedoraproject.org/readme-burning-isos/en-US.html and boot from it. Or use the image to boot a virtual machine as I have done here. After clicking through the welcome screen, select your language and keyboard layout http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " +msgstr "烧录一个DVD光盘 http://docs.fedoraproject.org/readme-burning-isos/en-US.html 并从它启动。或者就像我一样启动一个虚拟机。 在点击欢迎界面的NETX后 ,我们要开始选择语言和键盘类型 http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Welcome" +msgstr "安装Fedora - 欢迎 " + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Good choice" +msgstr "安装Fedora: 好的选择!" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Storage Devices" +msgstr "安装Fedora - 存储设备" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Storage Devices" +msgstr "安装Fedora: 存储设备" + +#. Tag: para +#, no-c-format +msgid "Assign your machine a host name. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-networkconfig-fedora.html I happen to control the clusterlabs.org domain name, so I will use that here." +msgstr "给你的机器取个名字。 http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-networkconfig-fedora.html 我可以使用clusterlabs.org这个域名,所以在这里我用这个域名。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Hostname" +msgstr "安装Fedora -机器名" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose a hostname" +msgstr "安装Fedora: 选择一个机器名" + +#. Tag: para +#, no-c-format +msgid "You will then be prompted to indicate the machine’s physical location and to supply a root password. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-account_configuration.html " +msgstr "然后你会被提示选择机器所在地并设定root密码。 http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-account_configuration.html " + +#. Tag: para +#, no-c-format +msgid "Now select where you want Fedora installed. http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html As I don’t care about any existing data, I will accept the default and allow Fedora to use the complete drive. However I want to reserve some space for DRBD, so I'll check the Review and modify partitioning layout box." +msgstr "如然后你选择想在哪安装Fedora http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html 。 如果你像我一样不在意已存在的数据,就选择默认让Fedora来使用完整的驱动器。然而我想为DRBD保留一些空间,所以我勾选了Review and modify partitioning layout。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Type" +msgstr "安装Fedora - 安装类型" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose an installation type" +msgstr "安装Fedora: 选择安装类型" + +#. Tag: para +#, no-c-format +msgid "By default, Fedora will give all the space to the / (aka. root) partition. Wel'll take some back so we can use DRBD." +msgstr "默认的话,Fedora会将所有的空间都分配给/ (aka. 根)分区。我们要保留一点给DRBD。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Default Partitioning" +msgstr "安装Fedora - 默认分区" + +#. Tag: para +#, no-c-format +msgid "The finalized partition layout should look something like the diagram below." +msgstr "完整的分区应该像下面一样。" + +#. Tag: para +#, no-c-format +msgid "If you plan on following the DRBD or GFS2 portions of this guide, you should reserve at least 1Gb of space on each machine from which to create a shared volume." +msgstr "如果你想试验本文档中关于DRBD或者GFS2的部分,你要为每个节点保留至少1Gb的空间。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Partitioning" +msgstr "安装Fedora - 自定义分区" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Create a partition to use (later) for website data" +msgstr "安装Fedora: 创建一个网站存放数据用的分区" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bootloader" +msgstr "安装Fedora - Bootloader" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Unless you have a strong reason not to, accept the default bootloader location" +msgstr "安装Fedora: 除非有非常强力的理由,不然选择默认的bootloader安装位置" + +#. Tag: para +#, no-c-format +msgid "Next choose which software should be installed. Change the selection to Web Server since we plan on using Apache. Don't enable updates yet, we'll do that (and install any extra software we need) later. After you click next, Fedora will begin installing." +msgstr "然后我们选择应该安装什么软件。因为我们想用Apache,所以选择Web Server。现在不要开启Update源,我们一会操作它。点击下一步,开始安装Fedora。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Software" +msgstr "安装Fedora - 软件" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Software selection" +msgstr "安装Fedora: 软件选择" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installing" +msgstr "安装Fedora - 安装中" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Go grab something to drink, this may take a while" +msgstr "安装Fedora: 去搞点东西喝喝 这要一会儿" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Complete" +msgstr "安装Fedora - 安装完成" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Stage 1, completed" +msgstr "安装Fedora: Stage 1, 完成" + +#. Tag: para +#, no-c-format +msgid "Once the node reboots, follow the on screen instructions http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/ch-firstboot.html to create a system user and configure the time." +msgstr "一旦系统重启完毕你可以看到以下界面 http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/ch-firstboot.html ,然后配置用户和设定时间。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - First Boot" +msgstr "安装Fedora - 第一次启动" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Create Non-privileged User" +msgstr "安装Fedora - 创建非特权用户" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon" +msgstr "安装Fedora: 创建非特权用户,请注意密码,一会你要用到它的。" + +#. 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 "强烈建议开启NTP时间同步,这样可以使集群更好的同步配置文件以及使日志文件有更好的可读性。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Date and Time" +msgstr "安装Fedora - 日期和时间" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Enable NTP to keep the times on all your nodes consistent" +msgstr "安装Fedora : 启用NTP来保证所有节点时间同步" + +#. Tag: para +#, no-c-format +msgid "Click through the next screens until you reach the login window. Click on the user you created and supply the password you indicated earlier." +msgstr "点击next会进入登入界面,点击你创建的用户并输入之前设定的密码。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Networking" +msgstr "安装Fedora -自定义网络" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click here to configure networking" +msgstr "安装Fedora: 点击这里来配置网络" + +#. Tag: para +#, no-c-format +msgid "Do not accept the default network settings. Cluster machines should never obtain an ip address via DHCP. Here I will use the internal addresses for the clusterlab.org network." +msgstr "不要使用默认的网络设置,集群永远不会靠DHCP来管理IP,这里我使用clusterslab的内部IP。" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Specify Network Preferences" +msgstr "安装Fedora - 指定网络参数" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Specify network settings for your machine, never choose DHCP" +msgstr "安装Fedora: 设定你的网络,永远不要选择DHCP" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Activate Networking" +msgstr "安装Fedora - 激活网络" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click the big green button to activate your changes" +msgstr "安装Fedora:点击绿色按钮来应用你的更改" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bring up the Terminal" +msgstr "安装Fedora - 打开终端" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Down to business, fire up the command line" +msgstr "安装Fedora:开始干活,打开终端" + +#. Tag: para +#, no-c-format +msgid "That was the last screenshot, from here on in we’re going to be working from the terminal." +msgstr "这是最后一个截屏了,剩下的我们都用命令行来操作。" + +#. Tag: title +#, no-c-format +msgid "Cluster Software Installation" +msgstr "集群软件安装" + +#. Tag: para +#, no-c-format +msgid "Go to the terminal window you just opened and switch to the super user (aka. \"root\") account with the su command. You will need to supply the password you entered earlier during the installation process." +msgstr "打开一个终端,然后使用su命令切换到超级用户(root)。输入之前安装时候设定的密码:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[beekhof@pcmk-1 ~]$ su -\n" +"Password:\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" +"\n" +"[beekhof@pcmk-1 ~]$ su -\n" +"Password:\n" +"[root@pcmk-1 ~]#\n" +" " + +#. Tag: para +#, no-c-format +msgid "Note that the username (the text before the @ symbol) now indicates we’re running as the super user “root”." +msgstr "注意用户名 (@符号左边的字符串) 显示我们现在使用的是root用户." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ip addr\n" +"1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n" +" link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n" +" inet 127.0.0.1/8 scope host lo\n" +" inet6 ::1/128 scope host \n" +" valid_lft forever preferred_lft forever\n" +"2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n" +" link/ether 00:0c:29:6f:e1:58 brd ff:ff:ff:ff:ff:ff\n" +" inet 192.168.9.41/24 brd 192.168.9.255 scope global eth0\n" +" inet6 ::20c:29ff:fe6f:e158/64 scope global dynamic \n" +" valid_lft 2591667sec preferred_lft 604467sec\n" +" inet6 2002:57ae:43fc:0:20c:29ff:fe6f:e158/64 scope global dynamic \n" +" valid_lft 2591990sec preferred_lft 604790sec\n" +" inet6 fe80::20c:29ff:fe6f:e158/64 scope link \n" +" valid_lft forever preferred_lft forever\n" +"[root@pcmk-1 ~]# ping -c 1 www.google.com\n" +"PING www.l.google.com (74.125.39.99) 56(84) bytes of data.\n" +"64 bytes from fx-in-f99.1e100.net (74.125.39.99): icmp_seq=1 ttl=56 time=16.7 ms\n" +"\n" +"--- www.l.google.com ping statistics ---\n" +"1 packets transmitted, 1 received, 0% packet loss, time 20ms\n" +"rtt min/avg/max/mdev = 16.713/16.713/16.713/0.000 ms\n" +"[root@pcmk-1 ~]# /sbin/chkconfig network on\n" +"[root@pcmk-1 ~]# \n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# ip addr\n" +"1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n" +" link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n" +" inet 127.0.0.1/8 scope host lo\n" +" inet6 ::1/128 scope host \n" +" valid_lft forever preferred_lft forever\n" +"2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000\n" +" link/ether 00:0c:29:6f:e1:58 brd ff:ff:ff:ff:ff:ff\n" +" inet 192.168.9.41/24 brd 192.168.9.255 scope global eth0\n" +" inet6 ::20c:29ff:fe6f:e158/64 scope global dynamic \n" +" valid_lft 2591667sec preferred_lft 604467sec\n" +" inet6 2002:57ae:43fc:0:20c:29ff:fe6f:e158/64 scope global dynamic \n" +" valid_lft 2591990sec preferred_lft 604790sec\n" +" inet6 fe80::20c:29ff:fe6f:e158/64 scope link \n" +" valid_lft forever preferred_lft forever\n" +"[root@pcmk-1 ~]# ping -c 1 www.google.com\n" +"PING www.l.google.com (74.125.39.99) 56(84) bytes of data.\n" +"64 bytes from fx-in-f99.1e100.net (74.125.39.99): icmp_seq=1 ttl=56 time=16.7 ms\n" +"\n" +"--- www.l.google.com ping statistics ---\n" +"1 packets transmitted, 1 received, 0% packet loss, time 20ms\n" +"rtt min/avg/max/mdev = 16.713/16.713/16.713/0.000 ms\n" +"[root@pcmk-1 ~]# /sbin/chkconfig network on\n" +"[root@pcmk-1 ~]# \n" +" " + +#. Tag: title +#, no-c-format +msgid "Security Shortcuts" +msgstr "安全提示" + +#. Tag: para +#, no-c-format +msgid "To simplify this guide and focus on the aspects directly connected to clustering, we will now disable the machine’s firewall and SELinux installation. Both of these actions create significant security issues and should not be performed on machines that will be exposed to the outside world." +msgstr "为了简化本文档并更好的关注集群方面的问题,我们现在在先禁用防火墙和SELinux。这些操作都会导致重大的安全问题,并不推荐对公网上的集群这样做。" + +#. Tag: para +#, no-c-format +msgid "TODO: Create an Appendix that deals with (at least) re-enabling the firewall." +msgstr "TODO: Create an Appendix that deals with (at least) re-enabling the firewall." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" +"[root@pcmk-1 ~]# /sbin/chkconfig --del iptables\n" +"[root@pcmk-1 ~]# service iptables stop\n" +"iptables: Flushing firewall rules: [ OK ]\n" +"iptables: Setting chains to policy ACCEPT: filter [ OK ]\n" +"iptables: Unloading modules: [ OK ]\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/SELINUX=enforcing/SELINUX=permissive/g\" /etc/selinux/config\n" +"[root@pcmk-1 ~]# /sbin/chkconfig --del iptables\n" +"[root@pcmk-1 ~]# service iptables stop\n" +"iptables: Flushing firewall rules: [ OK ]\n" +"iptables: Setting chains to policy ACCEPT: filter [ OK ]\n" +"iptables: Unloading modules: [ OK ]\n" +" " + +#. Tag: para +#, no-c-format +msgid "You will need to reboot for the SELinux changes to take effect. Otherwise you will see something like this when you start corosync:" +msgstr "你需要重启来保证SELinux正确关闭。不然你启动corosync的时候将看到以下提示:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"\t" +msgstr "" +"\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync \"getattr\" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"\t" + +#. Tag: title +#, no-c-format +msgid "Install the Cluster Software" +msgstr "安装集群软件" + +#. Tag: para +#, no-c-format +msgid "Since version 12, Fedora comes with recent versions of everything you need, so simply fire up the shell and run:" +msgstr "从Fedora 12开始,你需要的东西都已经准备好了,只需在终端命令行运行以下命令:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora.repo\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora-updates.repo\n" +"[root@pcmk-1 ~]# yum install -y pacemaker corosync\n" +"Loaded plugins: presto, refresh-packagekit\n" +"fedora/metalink \t | 22 kB 00:00 \n" +"fedora-debuginfo/metalink \t | 16 kB 00:00 \n" +"fedora-debuginfo \t | 3.2 kB 00:00 \n" +"fedora-debuginfo/primary_db \t | 1.4 MB 00:04 \n" +"fedora-source/metalink \t | 22 kB 00:00 \n" +"fedora-source \t | 3.2 kB 00:00 \n" +"fedora-source/primary_db \t | 3.0 MB 00:05 \n" +"updates/metalink \t | 26 kB 00:00 \n" +"updates \t | 2.6 kB 00:00 \n" +"updates/primary_db \t | 1.1 kB 00:00 \n" +"updates-debuginfo/metalink \t | 18 kB 00:00 \n" +"updates-debuginfo \t | 2.6 kB 00:00 \n" +"updates-debuginfo/primary_db \t | 1.1 kB 00:00 \n" +"updates-source/metalink \t | 25 kB 00:00 \n" +"updates-source \t | 2.6 kB 00:00 \n" +"updates-source/primary_db \t | 1.1 kB 00:00 \n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" +"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" +"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" +"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" +"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" +"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" +"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" +"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" +"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" +"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" +"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" +"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" +"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" +"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" +"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" +"--> Running transaction check\n" +"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora.repo\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/enabled=0/enabled=1/g\" /etc/yum.repos.d/fedora-updates.repo\n" +"[root@pcmk-1 ~]# yum install -y pacemaker corosync\n" +"Loaded plugins: presto, refresh-packagekit\n" +"fedora/metalink \t | 22 kB 00:00 \n" +"fedora-debuginfo/metalink \t | 16 kB 00:00 \n" +"fedora-debuginfo \t | 3.2 kB 00:00 \n" +"fedora-debuginfo/primary_db \t | 1.4 MB 00:04 \n" +"fedora-source/metalink \t | 22 kB 00:00 \n" +"fedora-source \t | 3.2 kB 00:00 \n" +"fedora-source/primary_db \t | 3.0 MB 00:05 \n" +"updates/metalink \t | 26 kB 00:00 \n" +"updates \t | 2.6 kB 00:00 \n" +"updates/primary_db \t | 1.1 kB 00:00 \n" +"updates-debuginfo/metalink \t | 18 kB 00:00 \n" +"updates-debuginfo \t | 2.6 kB 00:00 \n" +"updates-debuginfo/primary_db \t | 1.1 kB 00:00 \n" +"updates-source/metalink \t | 25 kB 00:00 \n" +"updates-source \t | 2.6 kB 00:00 \n" +"updates-source/primary_db \t | 1.1 kB 00:00 \n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" +"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" +"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" +"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" +"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" +"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" +"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" +"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" +"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" +"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" +"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" +"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" +"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" +"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" +"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" +"--> Running transaction check\n" +"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +" " + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"==========================================================================================\n" +" Package Arch Version Repository Size\n" +"==========================================================================================\n" +"Installing:\n" +" corosync x86_64 1.2.1-1.fc13 fedora 136 k\n" +" pacemaker x86_64 1.1.1-1.fc13 fedora 543 k\n" +"Installing for dependencies:\n" +" OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k\n" +" PyXML x86_64 0.8.4-17.fc13 fedora 906 k\n" +" cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k\n" +" cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k\n" +" corosynclib x86_64 1.2.1-1.fc13 fedora 145 k\n" +" heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k\n" +" heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k\n" +" libesmtp x86_64 1.0.4-12.fc12 fedora 54 k\n" +" libibverbs x86_64 1.1.3-4.fc13 fedora 42 k\n" +" libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k\n" +" libnet x86_64 1.1.4-3.fc12 fedora 49 k\n" +" librdmacm x86_64 1.0.10-2.fc13 fedora 22 k\n" +" lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k\n" +" net-snmp x86_64 1:5.5-12.fc13 fedora 295 k\n" +" net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M\n" +" openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k\n" +" pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k\n" +" perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k\n" +" resource-agents x86_64 3.0.10-1.fc13 fedora 357 k\n" +"\n" +"Transaction Summary\n" +"=========================================================================================\n" +"Install 21 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 5.7 M\n" +"Installed size: 20 M\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"updates-testing/prestodelta | 164 kB 00:00 \n" +"fedora/prestodelta | 150 B 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 5.7 M\n" +"(1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 \n" +"(2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 \n" +"(3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 \n" +"(4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 \n" +"(5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 \n" +"(6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 \n" +"(7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 \n" +"(8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 \n" +"(9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 \n" +"(10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 \n" +"(11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 \n" +"(12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 \n" +"(13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 \n" +"(14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 \n" +"(15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 \n" +"(16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 \n" +"(17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 \n" +"(18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 \n" +"(19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 \n" +"(20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 \n" +"(21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 \n" +"----------------------------------------------------------------------------------------\n" +"Total 539 kB/s | 5.7 MB 00:10 \n" +"warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY\n" +"fedora/gpgkey | 3.2 kB 00:00 ... \n" +"Importing GPG key 0xE8E40FDE \"Fedora (13) <fedora@fedoraproject.org%gt;\" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" +" " +msgstr "" +"\n" +"==========================================================================================\n" +" Package Arch Version Repository Size\n" +"==========================================================================================\n" +"Installing:\n" +" corosync x86_64 1.2.1-1.fc13 fedora 136 k\n" +" pacemaker x86_64 1.1.1-1.fc13 fedora 543 k\n" +"Installing for dependencies:\n" +" OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k\n" +" PyXML x86_64 0.8.4-17.fc13 fedora 906 k\n" +" cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k\n" +" cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k\n" +" corosynclib x86_64 1.2.1-1.fc13 fedora 145 k\n" +" heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k\n" +" heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k\n" +" libesmtp x86_64 1.0.4-12.fc12 fedora 54 k\n" +" libibverbs x86_64 1.1.3-4.fc13 fedora 42 k\n" +" libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k\n" +" libnet x86_64 1.1.4-3.fc12 fedora 49 k\n" +" librdmacm x86_64 1.0.10-2.fc13 fedora 22 k\n" +" lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k\n" +" net-snmp x86_64 1:5.5-12.fc13 fedora 295 k\n" +" net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M\n" +" openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k\n" +" pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k\n" +" perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k\n" +" resource-agents x86_64 3.0.10-1.fc13 fedora 357 k\n" +"\n" +"Transaction Summary\n" +"=========================================================================================\n" +"Install 21 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 5.7 M\n" +"Installed size: 20 M\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"updates-testing/prestodelta | 164 kB 00:00 \n" +"fedora/prestodelta | 150 B 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 5.7 M\n" +"(1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 \n" +"(2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 \n" +"(3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 \n" +"(4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 \n" +"(5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 \n" +"(6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 \n" +"(7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 \n" +"(8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 \n" +"(9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 \n" +"(10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 \n" +"(11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 \n" +"(12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 \n" +"(13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 \n" +"(14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 \n" +"(15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 \n" +"(16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 \n" +"(17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 \n" +"(18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 \n" +"(19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 \n" +"(20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 \n" +"(21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 \n" +"----------------------------------------------------------------------------------------\n" +"Total 539 kB/s | 5.7 MB 00:10 \n" +"warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY\n" +"fedora/gpgkey | 3.2 kB 00:00 ... \n" +"Importing GPG key 0xE8E40FDE \"Fedora (13) <fedora@fedoraproject.org%gt;\" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" +" " + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 \n" +" Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 \n" +" Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 \n" +" Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 \n" +" Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 \n" +" Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 \n" +" Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 \n" +" Installing : corosync-1.2.1-1.fc13.x86_64 8/21 \n" +" Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 \n" +" Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 \n" +" Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 \n" +" Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 \n" +" Installing : libnet-1.1.4-3.fc12.x86_64 13/21 \n" +" Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 \n" +" Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 \n" +" Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 \n" +" Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 \n" +" Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 \n" +" Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 \n" +" Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 \n" +" Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 \n" +"\n" +"Installed:\n" +" corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 \n" +"\n" +"Dependency Installed:\n" +" OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 \n" +" PyXML.x86_64 0:0.8.4-17.fc13 \n" +" cluster-glue.x86_64 0:1.0.2-1.fc13 \n" +" cluster-glue-libs.x86_64 0:1.0.2-1.fc13 \n" +" corosynclib.x86_64 0:1.2.1-1.fc13 \n" +" heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" libesmtp.x86_64 0:1.0.4-12.fc12 \n" +" libibverbs.x86_64 0:1.1.3-4.fc13 \n" +" libmlx4.x86_64 0:1.0.1-5.fc13 \n" +" libnet.x86_64 0:1.1.4-3.fc12 \n" +" librdmacm.x86_64 0:1.0.10-2.fc13 \n" +" lm_sensors-libs.x86_64 0:3.1.2-2.fc13 \n" +" net-snmp.x86_64 1:5.5-12.fc13 \n" +" net-snmp-libs.x86_64 1:5.5-12.fc13 \n" +" openhpi-libs.x86_64 0:2.14.1-3.fc13 \n" +" pacemaker-libs.x86_64 0:1.1.1-1.fc13 \n" +" perl-TimeDate.noarch 1:1.20-1.fc13 \n" +" resource-agents.x86_64 0:3.0.10-1.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]# \n" +" " +msgstr "" +"\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 \n" +" Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 \n" +" Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 \n" +" Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 \n" +" Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 \n" +" Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 \n" +" Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 \n" +" Installing : corosync-1.2.1-1.fc13.x86_64 8/21 \n" +" Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 \n" +" Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 \n" +" Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 \n" +" Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 \n" +" Installing : libnet-1.1.4-3.fc12.x86_64 13/21 \n" +" Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 \n" +" Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 \n" +" Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 \n" +" Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 \n" +" Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 \n" +" Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 \n" +" Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 \n" +" Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 \n" +"\n" +"Installed:\n" +" corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 \n" +"\n" +"Dependency Installed:\n" +" OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 \n" +" PyXML.x86_64 0:0.8.4-17.fc13 \n" +" cluster-glue.x86_64 0:1.0.2-1.fc13 \n" +" cluster-glue-libs.x86_64 0:1.0.2-1.fc13 \n" +" corosynclib.x86_64 0:1.2.1-1.fc13 \n" +" heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" libesmtp.x86_64 0:1.0.4-12.fc12 \n" +" libibverbs.x86_64 0:1.1.3-4.fc13 \n" +" libmlx4.x86_64 0:1.0.1-5.fc13 \n" +" libnet.x86_64 0:1.1.4-3.fc12 \n" +" librdmacm.x86_64 0:1.0.10-2.fc13 \n" +" lm_sensors-libs.x86_64 0:3.1.2-2.fc13 \n" +" net-snmp.x86_64 1:5.5-12.fc13 \n" +" net-snmp-libs.x86_64 1:5.5-12.fc13 \n" +" openhpi-libs.x86_64 0:2.14.1-3.fc13 \n" +" pacemaker-libs.x86_64 0:1.1.1-1.fc13 \n" +" perl-TimeDate.noarch 1:1.20-1.fc13 \n" +" resource-agents.x86_64 0:3.0.10-1.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]# \n" +" " + +#. Tag: title +#, no-c-format +msgid "Before You Continue" +msgstr "写在开始之前" + +#. Tag: para +#, no-c-format +msgid "Repeat the Installation steps so that you have 2 Fedora nodes with the cluster software installed." +msgstr "在另一台Fedora 12机器上面重复以上操作步骤,这样你就有2台安装了集群软件的节点了。" + +#. Tag: para +#, no-c-format +msgid "For the purposes of this document, the additional node is called pcmk-2 with address 192.168.122.42." +msgstr "在这篇文档中, 另外一个节点叫 pcmk-2 并且IP地址为 192.168.122.42。" + +#. Tag: title +#, no-c-format +msgid "Setup" +msgstr "安装" + +#. Tag: title +#, no-c-format +msgid "Finalize Networking" +msgstr "设定网络" + +#. Tag: para +#, no-c-format +msgid "Confirm that you can communicate with the two new nodes:" +msgstr "确认这两个新节点能够通讯:" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by IP address" +msgstr "通过IP地址来检查连接" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +"\t ping -c 3 192.168.122.102\n" +"[root@pcmk-1 ~]# ping -c 3 192.168.122.102\n" +"PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data.\n" +"64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms\n" +"\n" +"--- 192.168.122.102 ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2000ms\n" +"rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms\n" +"\t" +msgstr "" +"\n" +"\t ping -c 3 192.168.122.102\n" +"[root@pcmk-1 ~]# ping -c 3 192.168.122.102\n" +"PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data.\n" +"64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms\n" +"\n" +"--- 192.168.122.102 ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2000ms\n" +"rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms\n" +"\t" + +#. Tag: para +#, no-c-format +msgid "Now we need to make sure we can communicate with the machines by their name. If you have a DNS server, add additional entries for the three machines. Otherwise, you’ll need to add the machines to /etc/hosts . Below are the entries for my cluster nodes:" +msgstr "现在我们需要确认我们能通过机器名访问这两台机器,如果你有一个DNS服务器,为这两台节点做域名解析。" + +#. Tag: title +#, no-c-format +msgid "Set up /etc/hosts entries" +msgstr "否则,我们修改/etc/hosts文件来达到相同的效果:" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +"\t grep pcmk /etc/hosts\n" +"[root@pcmk-1 ~]# grep pcmk /etc/hosts\n" +"192.168.122.101 pcmk-1.clusterlabs.org pcmk-1\n" +"192.168.122.102 pcmk-2.clusterlabs.org pcmk-2\n" +"\t" +msgstr "" +"\n" +"\t grep pcmk /etc/hosts\n" +"[root@pcmk-1 ~]# grep pcmk /etc/hosts\n" +"192.168.122.101 pcmk-1.clusterlabs.org pcmk-1\n" +"192.168.122.102 pcmk-2.clusterlabs.org pcmk-2\n" +"\t" + +#. Tag: para +#, no-c-format +msgid "We can now verify the setup by again using ping:" +msgstr "现在让我们ping一下:" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by Hostname" +msgstr "通过机器名检查连接" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +"\t ping -c 3 pcmk-2\n" +"[root@pcmk-1 ~]# ping -c 3 pcmk-2\n" +"PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data.\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms\n" +"\n" +"--- pcmk-2.clusterlabs.org ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2001ms\n" +"rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms\n" +"\t" +msgstr "" +"\n" +"\t ping -c 3 pcmk-2\n" +"[root@pcmk-1 ~]# ping -c 3 pcmk-2\n" +"PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data.\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms\n" +"\n" +"--- pcmk-2.clusterlabs.org ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2001ms\n" +"rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms\n" +"\t" + +#. Tag: title +#, no-c-format +msgid "Configure SSH" +msgstr "配置SSH" + +#. 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 "SSH 是一个方便又安全来的用来远程传输文件或运行命令 的工具. 在这个文档中, 我们创建ssh key(用 -N “” 选项)来免去登入要输入密码的麻烦。" + +#. Tag: para +#, no-c-format +msgid "Unprotected SSH keys, those without a password, are not recommended for servers exposed to the outside world." +msgstr "不推荐在公网的机器上采用未用密码保护的ssh-key" + +#. 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 "创建并激活一个新的SSH密钥" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N \"\"\n" +"Generating public/private dsa key pair.\n" +"Your identification has been saved in /root/.ssh/id_dsa.\n" +"Your public key has been saved in /root/.ssh/id_dsa.pub.\n" +"The key fingerprint is:\n" +"91:09:5c:82:5a:6a:50:08:4e:b2:0c:62:de:cc:74:44 root@pcmk-1.clusterlabs.org\n" +"\n" +"The key's randomart image is:\n" +"+--[ DSA 1024]----+\n" +"|==.ooEo.. |\n" +"|X O + .o o |\n" +"| * A + |\n" +"| + . |\n" +"| . S |\n" +"| |\n" +"| |\n" +"| |\n" +"| |\n" +"+-----------------+\n" +"[root@pcmk-1 ~]# cp .ssh/id_dsa.pub .ssh/authorized_keys\n" +"[root@pcmk-1 ~]#\n" +"\t" +msgstr "" +"\n" +"[root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N \"\"\n" +"Generating public/private dsa key pair.\n" +"Your identification has been saved in /root/.ssh/id_dsa.\n" +"Your public key has been saved in /root/.ssh/id_dsa.pub.\n" +"The key fingerprint is:\n" +"91:09:5c:82:5a:6a:50:08:4e:b2:0c:62:de:cc:74:44 root@pcmk-1.clusterlabs.org\n" +"\n" +"The key's randomart image is:\n" +"+--[ DSA 1024]----+\n" +"|==.ooEo.. |\n" +"|X O + .o o |\n" +"| * A + |\n" +"| + . |\n" +"| . S |\n" +"| |\n" +"| |\n" +"| |\n" +"| |\n" +"+-----------------+\n" +"[root@pcmk-1 ~]# cp .ssh/id_dsa.pub .ssh/authorized_keys\n" +"[root@pcmk-1 ~]#\n" +"\t" + +#. Tag: para +#, no-c-format +msgid "Install the key on the other nodes and test that you can now run commands remotely, without being prompted" +msgstr "在其他节点安装这个密钥并测试你是否可以执行命令而不用输入密码" + +#. Tag: title +#, no-c-format +msgid "Installing the SSH Key on Another Host" +msgstr "在另一个机器上面安装SSH密钥" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# scp -r .ssh pcmk-2:\n" +"The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" +"RSA key fingerprint is b1:2b:55:93:f1:d9:52:2b:0f:f2:8a:4e:ae:c6:7c:9a.\n" +"Are you sure you want to continue connecting (yes/no)? yes\n" +"Warning: Permanently added 'pcmk-2,192.168.122.102' (RSA) to the list of known hosts.\n" +"root@pcmk-2's password: \n" +"id_dsa.pub 100% 616 0.6KB/s 00:00 \n" +"id_dsa 100% 672 0.7KB/s 00:00 \n" +"known_hosts 100% 400 0.4KB/s 00:00 \n" +"authorized_keys 100% 616 0.6KB/s 00:00 \n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- uname -n\n" +"pcmk-2\n" +"[root@pcmk-1 ~]#\n" +"\t" +msgstr "" +"\n" +"[root@pcmk-1 ~]# scp -r .ssh pcmk-2:\n" +"The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" +"RSA key fingerprint is b1:2b:55:93:f1:d9:52:2b:0f:f2:8a:4e:ae:c6:7c:9a.\n" +"Are you sure you want to continue connecting (yes/no)? yes\n" +"Warning: Permanently added 'pcmk-2,192.168.122.102' (RSA) to the list of known hosts.\n" +"root@pcmk-2's password: \n" +"id_dsa.pub 100% 616 0.6KB/s 00:00 \n" +"id_dsa 100% 672 0.7KB/s 00:00 \n" +"known_hosts 100% 400 0.4KB/s 00:00 \n" +"authorized_keys 100% 616 0.6KB/s 00:00 \n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- uname -n\n" +"pcmk-2\n" +"[root@pcmk-1 ~]#\n" +"\t" + +#. Tag: title +#, no-c-format +msgid "Short Node Names" +msgstr "简化节点名称" + +#. Tag: para +#, no-c-format +msgid "During installation, we filled in the machine’s fully qualifier domain name (FQDN) which can be rather long when it appears in cluster logs and status output. See for yourself how the machine identifies itself:" +msgstr "在安装过程中,我们发现FQDN域名太长了,不利于在日志或状态界面中查看,我们用以下操作来简化机器名:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1.clusterlabs.org\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1.clusterlabs.org\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " + +#. Tag: para +#, no-c-format +msgid "The output from the second command is fine, but we really don’t need the domain name included in the basic host details. To address this, we need to update /etc/sysconfig/network. This is what it should look like before we start." +msgstr "第二个命令的输出是正常的,但是我们真的不需要这么详细的输出,我们更改/etc/sysconfig/network文件来达到简化的目的。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1.clusterlabs.org\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1.clusterlabs.org\n" +"GATEWAY=192.168.122.1\n" +" " + +#. Tag: para +#, no-c-format +msgid "All we need to do now is strip off the domain name portion, which is stored elsewhere anyway." +msgstr "我们要做的只是要把域名后面的部分去掉。" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" +msgstr "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" + +#. Tag: para +#, no-c-format +msgid "Now confirm the change was successful. The revised file contents should look something like this." +msgstr "现在cat一下看看更改是否成功了。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1\n" +"GATEWAY=192.168.122.1\n" +" " + +#. Tag: para +#, no-c-format +msgid "However we’re not finished. The machine wont normally see the shortened host name until about it reboots, but we can force it to update." +msgstr "然而到这里还没结束,机器还没接受新的配置文件,我们强制它生效。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# source /etc/sysconfig/network\n" +"[root@pcmk-1 ~]# hostname $HOSTNAME\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# source /etc/sysconfig/network\n" +"[root@pcmk-1 ~]# hostname $HOSTNAME\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now check the machine is using the correct names" +msgstr "现在我们看看是否按达到我们预期的效果:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now repeat on pcmk-2." +msgstr "现在在pcmk-2上面重复以上操作." + +#. Tag: title +#, no-c-format +msgid "Configuring Corosync" +msgstr "配置 Corosync" + +#. Tag: para +#, no-c-format +msgid "Choose a port number and multi-cast http://en.wikipedia.org/wiki/Multicast address. http://en.wikipedia.org/wiki/Multicast_address " +msgstr "选择一个组播 http://en.wikipedia.org/wiki/Multicast 端口和地址。 http://en.wikipedia.org/wiki/Multicast_address " + +#. Tag: para +#, no-c-format +msgid "Be sure that the values you chose do not conflict with any existing clusters you might have. For advice on choosing a multi-cast address, see http://www.29west.com/docs/THPM/multicast-address-assignment.html " +msgstr "请注意你选择的端口和地址不能跟已存在的集群冲突,关于组播地址的选择,可以参考 http://www.29west.com/docs/THPM/multicast-address-assignment.html " + +#. Tag: para +#, no-c-format +msgid "For this document, I have chosen port 4000 and used 226.94.1.1 as the multi-cast address." +msgstr "在这个文档中,我选择端口4000并且用226.94.1.1作为组播地址:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# export ais_port=4000\n" +"[root@pcmk-1 ~]# export ais_mcast=226.94.1.1\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# export ais_port=4000\n" +"[root@pcmk-1 ~]# export ais_mcast=226.94.1.1\n" +" " + +#. Tag: para +#, no-c-format +msgid "Next we automatically determine the hosts address. By not using the full address, we make the configuration suitable to be copied to other nodes." +msgstr "然后我们用下面的命令自动获得机器的地址。为了让配置文件能够在机器上面的各个机器通用,我们不使用完整的IP地址而使用网络地址。(译者注:corosync配置文件中的监听地址一项可以填写网络地址,corosync会自动匹配应该监听在哪个地址而不是0.0.0.0)" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# export ais_addr=`ip addr | grep \"inet \" | tail -n 1 | awk '{print $4}' | sed s/255/0/`" +msgstr "[root@pcmk-1 ~]# export ais_addr=`ip addr | grep \"inet \" | tail -n 1 | awk '{print $4}' | sed s/255/0/`" + +#. Tag: para +#, no-c-format +msgid "Display and verify the configuration options" +msgstr "显示并检查配置的环境变量是否正确" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# env | grep ais_\n" +"ais_mcast=226.94.1.1\n" +"ais_port=4000\n" +"ais_addr=192.168.122.0\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# env | grep ais_\n" +"ais_mcast=226.94.1.1\n" +"ais_port=4000\n" +"ais_addr=192.168.122.0\n" +" " + +#. Tag: para +#, no-c-format +msgid "Once you’re happy with the chosen values, update the Corosync configuration" +msgstr "确认以上输出没有错误以后,我们用以下命令来配置corosync" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastaddr:.*/mcastaddr:\\ $ais_mcast/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastport:.*/mcastport:\\ $ais_port/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*bindnetaddr:.*/bindnetaddr:\\ $ais_addr/g\" /etc/corosync/corosync.conf\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastaddr:.*/mcastaddr:\\ $ais_mcast/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*mcastport:.*/mcastport:\\ $ais_port/g\" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak \"s/.*bindnetaddr:.*/bindnetaddr:\\ $ais_addr/g\" /etc/corosync/corosync.conf\n" +" " + +#. Tag: para +#, no-c-format +msgid "Finally, tell Corosync to start Pacemaker" +msgstr "最后,告诉corosync要启动pacemaker" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk\n" +"service {\n" +" # Load the Pacemaker Cluster Resource Manager\n" +" name: pacemaker\n" +" ver: 0\n" +"}\n" +"END\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk\n" +"service {\n" +" # Load the Pacemaker Cluster Resource Manager\n" +" name: pacemaker\n" +" ver: 0\n" +"}\n" +"END\n" +" " + +#. Tag: para +#, no-c-format +msgid "The final configuration should look something like the sample in the appendix." +msgstr "最后配置文件应该看起来像下面的样子。" + +#. Tag: title +#, no-c-format +msgid "Propagate the Configuration" +msgstr " 传送配置文件" + +#. Tag: para +#, no-c-format +msgid "Now we need to copy the changes so far to the other node:" +msgstr "然后我们把配置文件拷贝到其他节点:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done\n" +"corosync.conf 100% 1528 1.5KB/s 00:00\n" +"hosts 100% 281 0.3KB/s 00:00\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done\n" +"corosync.conf 100% 1528 1.5KB/s 00:00\n" +"hosts 100% 281 0.3KB/s 00:00\n" +"[root@pcmk-1 ~]#\n" +" " + +#~ msgid "Burn the disk image to a DVD" +#~ msgstr "把整个镜像刻录成一个DVD光盘" + +#~ msgid " http://docs.fedoraproject.org/readme-burning-isos/en-US.html " +#~ msgstr " http://docs.fedoraproject.org/readme-burning-isos/en-US.html " + +#~ msgid "and boot from it. Or use the image to boot a virtual machine as I have done here. After clicking through the welcome screen, select your language and keyboard layout" +#~ msgstr "并从它启动。或者就像我一样启动一个虚拟机. 在点击欢迎界面的NETX后 ,我们要开始选择语言和键盘类型" + +#~ msgid " http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " +#~ msgstr " http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " + +#~ msgid "Assign your machine a host name." +#~ msgstr "给你的机器取个名字。" + +#~ msgid "I happen to control the clusterlabs.org domain name, so I will use that here." +#~ msgstr "我正好能控制clusterlabs.org 这个域名,所以我用这个名字。" + +#~ msgid "You will then be prompted to indicate the machine’s physical location and to supply a root password." +#~ msgstr "然后你会被提示选择机器所在地并设定root密码" + +#~ msgid "Now select where you want Fedora installed." +#~ msgstr "然后你选择想在把Fedora安装在哪" + +#~ msgid "http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html" +#~ msgstr "http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html" + +#~ msgid "Once the node reboots, follow the on screen instructions" +#~ msgstr "一旦系统重启完毕你可以看到以下界面" + +#~ msgid "to create a system user and configure the time." +#~ msgstr ",然后配置用户和设定时间。" + +#~ msgid "Choose a port number and multi-cast" +#~ msgstr "选择一个组播" + +#~ msgid "http://en.wikipedia.org/wiki/Multicast" +#~ msgstr "http://en.wikipedia.org/wiki/Multicast" + +#~ msgid "address." +#~ msgstr "端口和地址。" + +#~ msgid "http://en.wikipedia.org/wiki/Multicast_address" +#~ msgstr "http://en.wikipedia.org/wiki/Multicast_address" diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.mo new file mode 100644 index 0000000000..1459a0cadb Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.po new file mode 100644 index 0000000000..da907014d8 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Intro.po @@ -0,0 +1,287 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-16 00:15+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Read-Me-First" +msgstr "Read-Me-First" + +#. Tag: title +#, no-c-format +msgid "The Scope of this Document" +msgstr "本文范围" + +#. Tag: para +#, no-c-format +msgid "The purpose of this document is to definitively explain the concepts used to configure Pacemaker. To achieve this best, it will focus exclusively on the XML syntax used to configure the CIB." +msgstr "本文的目的是透彻地解释用于配置Pacemaker的概念。为了达到最好的效果,本文会主要关注于用于配置CIB的XML格式。" + +#. Tag: para +#, no-c-format +msgid "For those that are allergic to XML, Pacemaker comes with a cluster shell and a Python based GUI exists, however these tools will not be covered at all in this document It is hoped however, that having understood the concepts explained here, that the functionality of these tools will also be more readily understood. , precisely because they hide the XML." +msgstr "对于那些特别讨厌XML的人,Pacemaker有一个集群shell和基于Python的GUI,但是本文没有包含这些工具的使用 明白了本文的内容以后,会更容易理解那些工具的功能,当然这只是希望。 , 正是因为它们隐藏了XML细节。(译者注:本文中基本是crm shell来操作的,这里应该是老版本文档的遗留)" + +#. Tag: para +#, no-c-format +msgid "Additionally, this document is NOT a step-by-step how-to guide for configuring a specific clustering scenario. Although such guides exist, the purpose of this document is to provide an understanding of the building blocks that can be used to construct any type of Pacemaker cluster." +msgstr "此外,本文不是一个手把手地教你配置特定集群方案的how-to guide。尽管有很多这样的内容,但是本文的主要目的是让大家理解配置Pacemaker所需要用到的各种组件。" + +#. Tag: title +#, no-c-format +msgid "What Is Pacemaker?" +msgstr "什么是Pacemaker?" + +#. Tag: para +#, no-c-format +msgid "Pacemaker is a cluster resource manager. It achieves maximum availability for your cluster services (aka. resources) by detecting and recovering from node and resource-level failures by making use of the messaging and membership capabilities provided by your preferred cluster infrastructure (either Corosync or Heartbeat)." +msgstr "Pacemaker是一个集群资源管理者。他用资源级别的监测和恢复来保证集群服务(aka. 资源)的最大可用性。它可以用你所擅长的基础组件(Corosync或者是Heartbeat)来实现通信和关系管理。" + +#. Tag: para +#, no-c-format +msgid "Pacemaker's key features include:" +msgstr "Pacemaker包含以下的关键特性:" + +#. Tag: para +#, no-c-format +msgid "Detection and recovery of node and service-level failures" +msgstr "监测并恢复节点和服务级别的故障" + +#. Tag: para +#, no-c-format +msgid "Storage agnostic, no requirement for shared storage" +msgstr "存储无关,并不需要共享存储" + +#. Tag: para +#, no-c-format +msgid "Resource agnostic, anything that can be scripted can be clustered" +msgstr "资源无关,任何能用脚本控制的资源都可以作为服务" + +#. Tag: para +#, no-c-format +msgid "Supports STONITH for ensuring data integrity" +msgstr "支持使用STONITH来保证数据一致性。" + +#. 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 "clusters 支持 quorate(法定人数)resource(资源) 驱动的集群" + +#. 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 "可以设定集群范围内的ordering, colocation and anti-colocation" + +#. Tag: para +#, no-c-format +msgid "Support for advanced services type" +msgstr "支持高级的服务模式" + +#. Tag: para +#, no-c-format +msgid "Clones: for services which need to be active on multiple nodes" +msgstr "Clones:为那些要在多个节点运行的服务所准备的" + +#. Tag: para +#, no-c-format +msgid "Multi-state: for services with multiple modes (eg. master/slave, primary/secondary)" +msgstr "Multi-state:为那些有多种模式的服务准备的。(比如.主从, 主备)" + +#. Tag: para +#, no-c-format +msgid "Unified, scriptable, cluster shell" +msgstr "统一的,可脚本控制的cluster shell" + +#. Tag: title +#, no-c-format +msgid "Types of Pacemaker Clusters" +msgstr "Pacemaker 集群的种类" + +#. 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 "Pacemaker对你的环境没有特定的要求,这使得它支持任何的冗余配置,包括 Active/Active, Active/Passive, N+1, N+M, N-to-1 and N-to-N。" + +#. Tag: title +#, no-c-format +msgid "Active/Passive Redundancy" +msgstr "Active/Passive 冗余" + +#. Tag: caption +#, no-c-format +msgid "Two-node Active/Passive clusters using Pacemaker and DRBD are a cost-effective solution for many High Availability situations." +msgstr "使用Pacemaker和DRBD的双节点主备方案作为一种经济的解决方案被很多高可用环境所采用。" + +#. Tag: title +#, no-c-format +msgid "Shared Failover" +msgstr "共享失效备援" + +#. Tag: caption +#, no-c-format +msgid "By supporting many nodes, Pacemaker can dramatically reduce hardware costs by allowing several active/passive clusters to be combined and share a common backup node" +msgstr "正是因为支持很多节点,Pacemaker可以让多个主备模式的集群集成起来并共享一个备用节点,从而大幅度的减少硬件成本" + +#. Tag: title +#, no-c-format +msgid "N to N Redundancy" +msgstr "N to N 冗余" + +#. Tag: caption +#, no-c-format +msgid "When shared storage is available, every node can potentially be used for failover. Pacemaker can even run multiple copies of services to spread out the workload." +msgstr "当有共享存储设备是,每个节点都成为潜在的备援节点。Pacemaker甚至可以在不同的节点上跑相同的服务来负载均衡。" + +#. Tag: title +#, no-c-format +msgid "Pacemaker Architecture" +msgstr "Pacemaker 架构" + +#. Tag: para +#, no-c-format +msgid "At the highest level, the cluster is made up of three pieces:" +msgstr "在最高一个层次,集群由三个部分组成:" + +#. Tag: para +#, no-c-format +msgid "Core cluster infrastructure providing messaging and membership functionality (illustrated in red)" +msgstr "提供消息和集群关系功能的集群核心基础组件(标红的部分)" + +#. Tag: para +#, no-c-format +msgid "Non-cluster aware components (illustrated in blue). In a Pacemaker cluster, these pieces include not only the scripts that knows how to start, stop and monitor resources, but also a local daemon that masks the differences between the different standards these scripts implement." +msgstr "集群无关的组件(蓝色的部分)。在Pacemaker架构中,这部分不仅包含有怎么样启动,关闭,监控资源的脚本,而且还有一个本地的守护进程来消除这些脚本实现的(采用的)不同标准之间的差异" + +#. Tag: para +#, no-c-format +msgid "A brain (illustrated in green) that processes and reacts to events from the cluster (nodes leaving or joining) and resources (eg. monitor failures) as well as configuration changes from the administrator. In response to all of these events, Pacemaker will compute the ideal state of the cluster and plot a path to achieve it. This may include moving resources, stopping nodes and even forcing them offline with remote power switches." +msgstr "大脑(绿色部分)处理并响应来自集群和资源的事件(比如节点的离开和加入,资源的失效) ,以及管理员对配置文件的修改。在对所有这些事件的响应中,Pacemaker会计算集群理想的状态,并规划一个途径来实现它。这个操作可能会包含移动资源,停止节点,甚至使用远程电源管理来强制使他们下线。" + +#. Tag: title +#, no-c-format +msgid "Conceptual Stack Overview" +msgstr "概念层次总览" + +#. Tag: caption +#, no-c-format +msgid "Conceptual overview of the cluster stack" +msgstr "集群概念层次总览" + +#. Tag: para +#, no-c-format +msgid "When combined with Corosync, Pacemaker also supports popular open source cluster filesystems Even though Pacemaker also supports Heartbeat, the filesystems need to use the stack for messaging and membership and Corosync seems to be what they're standardizing on. Technically it would be possible for them to support Heartbeat as well, however there seems little interest in this. Due to recent standardization within the cluster filesystem community, they make use of a common distributed lock manager which makes use of Corosync for its messaging capabilities and Pacemaker for its membership (which nodes are up/down) and fencing services." +msgstr "当与Corosync集成时,Pacemaker也支持常见的开源集群文件系统 尽管Pacemaker也支持Heartbeat,但是文件系统也要用基层软件来通信和维护节点关系,Corosync看来是他们的标准,技术上来说,让它们支持Heartbeat也是可能的,但是看起来他们没多大兴趣 ,根据来着集群文件系统社区的最新标准,他们用一个通用的分布式锁控制器,它靠Corosync通信并且用Pacemaker管理成员关系(哪些节点是开启或关闭的)和隔离服务。" + +#. Tag: title +#, no-c-format +msgid "The Pacemaker Stack" +msgstr "Pacemaker 层次" + +#. Tag: caption +#, no-c-format +msgid "The Pacemaker stack when running on Corosync" +msgstr "Pacemaker采用Corosync时的层次" + +#. Tag: title +#, no-c-format +msgid "Internal Components" +msgstr "内部组件" + +#. Tag: para +#, no-c-format +msgid "Pacemaker itself is composed of four key components (illustrated below in the same color scheme as the previous diagram):" +msgstr "Pacemaker本身由四个关键组件组成:" + +#. Tag: para +#, no-c-format +msgid "CIB (aka. Cluster Information Base)" +msgstr "CIB (aka. 集群信息基础)" + +#. Tag: para +#, no-c-format +msgid "CRMd (aka. Cluster Resource Management daemon)" +msgstr "CRMd (aka. 集群资源管理守护进程)" + +#. Tag: para +#, no-c-format +msgid "PEngine (aka. PE or Policy Engine)" +msgstr "PEngine (aka. PE or 策略引擎)" + +#. Tag: para +#, no-c-format +msgid "STONITHd" +msgstr "STONITHd" + +#. Tag: caption +#, no-c-format +msgid "Subsystems of a Pacemaker cluster running on Corosync" +msgstr "基于Corosync的Pacemaker的子系统" + +#. 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 "CIB用XML来展示集群的配置和资源的当前状态。 CIB的内容会自动地在集群之间同步,并被PEngine用来来计算集群的理想状态和如何达到这个理想状态。" + +#. Tag: para +#, no-c-format +msgid "This list of instructions is then fed to the DC (Designated Co-ordinator). Pacemaker centralizes all cluster decision making by electing one of the CRMd instances to act as a master. Should the elected CRMd process, or the node it is on, fail... a new one is quickly established." +msgstr "这个指令列表然后会被交给DC(指定协调者)。 Pacemaker会推举一个CRMd实例作为master来集中做出所有决策。如果推举的CRMd繁忙中,或者这个节点不够稳定... 一个新的master会马上被推举出来。" + +#. Tag: para +#, no-c-format +msgid "The DC carries out the PEngine's instructions in the required order by passing them to either the LRMd (Local Resource Management daemon) or CRMd peers on other nodes via the cluster messaging infrastructure (which in turn passes them on to their LRMd process)." +msgstr "DC会按顺序处理PEngine的指令,然后把他们发送给LRMd(本地资源管理守护进程) 或者通过集群消息层发送给其他CRMd成员(就是把这些指令依次传给LRMd)。" + +#. 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 "节点会把他们所有操作的日志发给DC,然后根据预期的结果和实际的结果(之间的差异), 执行下一个等待中的命令,或者取消操作,并让PEngine根据非预期的结果重新计算集群的理想状态。" + +#. Tag: para +#, no-c-format +msgid "In some cases, it may be necessary to power off nodes in order to protect shared data or complete resource recovery. For this Pacemaker comes with STONITHd. STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and is usually implemented with a remote power switch. In Pacemaker, STONITH devices are modeled as resources (and configured in the CIB) to enable them to be easily monitored for failure, however STONITHd takes care of understanding the STONITH topology such that its clients simply request a node be fenced and it does the rest." +msgstr "在某些情况下,可能会需要关闭节点的电源来保证共享数据的完整性或是完全地恢复资源。为此Pacemaker引入了STONITHd。STONITH是 Shoot-The-Other-Node-In-The-Head(爆其他节点的头)的缩写,并且通常是靠远程电源开关来实现的。在Pacemaker中,STONITH设备被当成资源(并且是在CIB中配置)从而轻松地监控,然而STONITHd会注意理解STONITH拓扑,比如它的客户端请求隔离一个节点,它会重启那个机器。(译者注:就是说不同的爆头设备驱动会对相同的请求有不同的理解,这些都是在驱动中定义的。)" + +#~ msgid "For those that are allergic to XML, Pacemaker comes with a cluster shell and a Python based GUI exists, however these tools will not be covered at all in this document" +#~ msgstr "对于那些特别讨厌XML的人,Pacemaker有一个集群shell和基于Python的GUI,但是本文没有包含这些工具的使用" + +#~ msgid "It is hoped however, that having understood the concepts explained here, that the functionality of these tools will also be more readily understood." +#~ msgstr "这只是希望,如果理解了这里的内容,那些工具的功能可以更好理解。" + +#~ msgid ", precisely because they hide the XML." +#~ msgstr ", 正是因为它们隐藏了XML细节" + +#~ msgid "When combined with Corosync, Pacemaker also supports popular open source cluster filesystems" +#~ msgstr "当与Corosync集成时,Pacemaker也支持常见的开源集群文件系统" + +#~ msgid "Even though Pacemaker also supports Heartbeat, the filesystems need to use the stack for messaging and membership and Corosync seems to be what they're standardizing on. Technically it would be possible for them to support Heartbeat as well, however there seems little interest in this." +#~ msgstr "虽然Pacemaker也支持Heartbeat,文件系统也需要一个基层软件来通信和保持关系,Corosync看起来是他们的标准。技术上来说,他们支持Heartbeat也是可能的,但是看起来他们没什么兴趣。" + +#~ msgid "Due to recent standardization within the cluster filesystem community, they make use of a common distributed lock manager which makes use of Corosync for its messaging capabilities and Pacemaker for its membership (which nodes are up/down) and fencing services." +#~ msgstr ",根据来着集群文件系统社区的最新标准,他们用一个通用的分布式锁控制器,它用Corosync来通信并且用Pacemaker来管理关系(那些节点是开启或关闭的)和隔离服务。" diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.mo new file mode 100644 index 0000000000..d92894cb03 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.po new file mode 100644 index 0000000000..aed63967db --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Shared-Storage.po @@ -0,0 +1,1058 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-16 00:32+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Replicated Storage with DRBD" +msgstr "用DRBD同步存储" + +#. Tag: para +#, no-c-format +msgid "Even if you’re serving up static websites, having to manually synchronize the contents of that website to all the machines in the cluster is not ideal. For dynamic websites, such as a wiki, its not even an option. Not everyone care afford network-attached storage but somehow the data needs to be kept in sync. Enter DRBD which can be thought of as network based RAID-1. See http://www.drbd.org/ for more details." +msgstr "就算你用的是静态站点,手工在各个节点之间同步文件也不是个好主意。如果是动态站点,那根本不会考虑这个。用NAS不是所有人都能负担得起,但是有些数据还是要同步。用用DRBD: 它被认为是网络RAID-1。访问 See http://www.drbd.org/获得更详细介绍" + +#. Tag: title +#, no-c-format +msgid "Install the DRBD Packages" +msgstr "安装DRBD软件包" + +#. Tag: para +#, no-c-format +msgid "Since its inclusion in the upstream 2.6.33 kernel, everything needed to use DRBD ships with &DISTRO; &DISTRO_VERSION;. All you need to do is install it:" +msgstr "在2.6.33以上的内核中,所以DRBD要的东西都在 &DISTRO; &DISTRO_VERSION;中存在了,你只要安装它就好了。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# yum install -y drbd-pacemaker\n" +"Loaded plugins: presto, refresh-packagekit\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=================================================================================\n" +" Package Arch Version Repository Size\n" +"=================================================================================\n" +"Installing:\n" +" drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" +"Installing for dependencies:\n" +" drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" +"\n" +"Transaction Summary\n" +"=================================================================================\n" +"Install 2 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 184 k\n" +"Installed size: 427 k\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"fedora/prestodelta | 1.7 kB 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 184 k\n" +"(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" +"(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" +"---------------------------------------------------------------------------------\n" +"Total 45 kB/s | 184 kB 00:04 \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" +" Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" +"\n" +"Installed:\n" +" drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Dependency Installed:\n" +" drbd-utils.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# yum install -y drbd-pacemaker\n" +"Loaded plugins: presto, refresh-packagekit\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=================================================================================\n" +" Package Arch Version Repository Size\n" +"=================================================================================\n" +"Installing:\n" +" drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" +"Installing for dependencies:\n" +" drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" +"\n" +"Transaction Summary\n" +"=================================================================================\n" +"Install 2 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 184 k\n" +"Installed size: 427 k\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"fedora/prestodelta | 1.7 kB 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 184 k\n" +"(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" +"(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" +"---------------------------------------------------------------------------------\n" +"Total 45 kB/s | 184 kB 00:04 \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" +" Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" +"\n" +"Installed:\n" +" drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Dependency Installed:\n" +" drbd-utils.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +" " + +#. Tag: title +#, no-c-format +msgid "Configure DRBD" +msgstr "配置DRBD" + +#. Tag: para +#, no-c-format +msgid "Before we configure DRBD, we need to set aside some disk for it to use." +msgstr "在我们设置之前,我们要创建一些空的磁盘分区给它。" + +#. Tag: title +#, no-c-format +msgid "Create A Partition for DRBD" +msgstr "为DRBD创建一个分区" + +#. Tag: para +#, no-c-format +msgid "If you have more than 1Gb free, feel free to use it. For this guide however, 1Gb is plenty of space for a single html file and sufficient for later holding the GFS2 metadata." +msgstr "如果你有1Gb以上的空间,就用那么多吧, 在这个指南中根本用不到这么多空间。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume \"drbd-demo\" created\n" +"[root@pcmk-1 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume \"drbd-demo\" created\n" +"[root@pcmk-1 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " + +#. Tag: para +#, no-c-format +msgid "Repeat this on the second node, be sure to use the same size partition." +msgstr "在另外一个节点上面执行相同的操作,请确保使用了相同大小的分区。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  lv_root VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap VolGroup -wi-ao 500.00M                                      \n" +"[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume \"drbd-demo\" created\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " +msgstr "" +"\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  lv_root VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap VolGroup -wi-ao 500.00M                                      \n" +"[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume \"drbd-demo\" created\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " + +#. Tag: title +#, no-c-format +msgid "Write the DRBD Config" +msgstr "配置DRBD" + +#. Tag: para +#, no-c-format +msgid "There is no series of commands for build a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf" +msgstr "没有命令来自动生成DRBD配置文件,所以我们要简单的拷贝下面的配置文件并粘贴到/etc/drbd.conf" + +#. Tag: para +#, no-c-format +msgid "Detailed information on the directives used in this configuration (and other alternatives) is available from http://www.drbd.org/users-guide/ch-configure.html" +msgstr "想知道配置文件的详细信息,请访问 http://www.drbd.org/users-guide/ch-configure.html" + +#. Tag: para +#, no-c-format +msgid "Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide." +msgstr "请注意要替换掉name和address选项以符合您的试验环境。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"global { \n" +"  usage-count yes; \n" +"}\n" +"common {\n" +"  protocol C;\n" +"}\n" +"resource wwwdata {\n" +"  meta-disk internal;\n" +"  device    /dev/drbd1;\n" +"  syncer {\n" +"    verify-alg sha1;\n" +"  }\n" +"  net { \n" +"    allow-two-primaries; \n" +"  }\n" +"  on pcmk-1 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.101:7789; \n" +"  }\n" +"  on \n" +"pcmk-2 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.102:7789; \n" +"  }\n" +"}\n" +" " +msgstr "" +"\n" +"global { \n" +"  usage-count yes; \n" +"}\n" +"common {\n" +"  protocol C;\n" +"}\n" +"resource wwwdata {\n" +"  meta-disk internal;\n" +"  device    /dev/drbd1;\n" +"  syncer {\n" +"    verify-alg sha1;\n" +"  }\n" +"  net { \n" +"    allow-two-primaries; \n" +"  }\n" +"  on pcmk-1 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.101:7789; \n" +"  }\n" +"  on \n" +"pcmk-2 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.102:7789; \n" +"  }\n" +"}\n" +" " + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the reason for the allow-two-primaries option" +msgstr "TODO: Explain the reason for the allow-two-primaries option" + +#. Tag: title +#, no-c-format +msgid "Initialize and Load DRBD" +msgstr "初始化并载入DRBD" + +#. Tag: para +#, no-c-format +msgid "With the configuration in place, we can now perform the DRBD initialization" +msgstr "配置完成以后,我们可以来执行初始化了" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" +"md_offset 12578816\n" +"al_offset 12546048\n" +"bm_offset 12541952\n" +"\n" +"Found some data \n" +" ==> This might destroy existing data! <==\n" +"\n" +"Do you want to proceed?\n" +"[need to type 'yes' to confirm] yes\n" +"\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" +"md_offset 12578816\n" +"al_offset 12546048\n" +"bm_offset 12541952\n" +"\n" +"Found some data \n" +" ==> This might destroy existing data! <==\n" +"\n" +"Do you want to proceed?\n" +"[need to type 'yes' to confirm] yes\n" +"\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now load the DRBD kernel module and confirm that everything is sane" +msgstr "现在讲DRBD的模块载入内核并检测是不是都正常" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# modprobe drbd\n" +"[root@pcmk-1 ~]# drbdadm up wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +"[root@pcmk-1 ~]# \n" +"\n" +"Repeat on the second node\n" +"drbdadm --force create-md wwwdata \n" +"modprobe drbd\n" +"drbdadm up wwwdata\n" +"cat /proc/drbd\n" +"[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +"[root@pcmk-2 ~]# modprobe drbd\n" +"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" +"[root@pcmk-2 ~]# drbdadm up wwwdata\n" +"[root@pcmk-2 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# modprobe drbd\n" +"[root@pcmk-1 ~]# drbdadm up wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +"[root@pcmk-1 ~]# \n" +"\n" +"Repeat on the second node\n" +"drbdadm --force create-md wwwdata \n" +"modprobe drbd\n" +"drbdadm up wwwdata\n" +"cat /proc/drbd\n" +"[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +"[root@pcmk-2 ~]# modprobe drbd\n" +"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" +"[root@pcmk-2 ~]# drbdadm up wwwdata\n" +"[root@pcmk-2 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now we need to tell DRBD which set of data to use. Since both sides contain garbage, we can run the following on pcmk-1:" +msgstr "现在我们要告诉DRBD要用那个数据(那个节点作为主)。因为两边都有一些废数据,我们要在pcmk-1上面执行一下命令。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" +"    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" +"        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" +"        finish: 0:00:37 speed: 240 (240) K/sec\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" +"    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" +"    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" +"        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" +"        finish: 0:00:37 speed: 240 (240) K/sec\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" +"    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" +" " + +#. Tag: para +#, no-c-format +msgid "pcmk-1 is now in the Primary state which allows it to be written to. Which means its a good point at which to create a filesystem and populate it with some data to serve up via our WebSite resource." +msgstr "pcmk-1现在是处于Primary(主)状态了,它允许写入了。这意味着可以在上面创建文件系统并把一些数据放进去,并且用WebSite这个资源来展现。" + +#. Tag: title +#, no-c-format +msgid "Populate DRBD with Data" +msgstr "向DRBD中添加数据" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" +"mke2fs 1.41.4 (27-Jan-2009)\n" +"Filesystem label=\n" +"OS type: Linux\n" +"Block size=1024 (log=0)\n" +"Fragment size=1024 (log=0)\n" +"3072 inodes, 12248 blocks\n" +"612 blocks (5.00%) reserved for the super user\n" +"First data block=1\n" +"Maximum filesystem blocks=12582912\n" +"2 block groups\n" +"8192 blocks per group, 8192 fragments per group\n" +"1536 inodes per group\n" +"Superblock backups stored on blocks: \n" +"        8193\n" +"\n" +"Writing inode tables: done                            \n" +"Creating journal (1024 blocks): done\n" +"Writing superblocks and filesystem accounting information: done\n" +"\n" +"This filesystem will be automatically checked every 26 mounts or\n" +"180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" +"\n" +"Now mount the newly created filesystem so we can create our index file\n" +"mount /dev/drbd1 /mnt/\n" +"cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - drbd</body>\n" +"</html>\n" +"END\n" +"umount /dev/drbd1\n" +"[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"> <html>\n" +"> <body>My Test Site - drbd</body>\n" +"> </html>\n" +"> END\n" +"[root@pcmk-1 ~]# umount /dev/drbd1\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" +"mke2fs 1.41.4 (27-Jan-2009)\n" +"Filesystem label=\n" +"OS type: Linux\n" +"Block size=1024 (log=0)\n" +"Fragment size=1024 (log=0)\n" +"3072 inodes, 12248 blocks\n" +"612 blocks (5.00%) reserved for the super user\n" +"First data block=1\n" +"Maximum filesystem blocks=12582912\n" +"2 block groups\n" +"8192 blocks per group, 8192 fragments per group\n" +"1536 inodes per group\n" +"Superblock backups stored on blocks: \n" +"        8193\n" +"\n" +"Writing inode tables: done                            \n" +"Creating journal (1024 blocks): done\n" +"Writing superblocks and filesystem accounting information: done\n" +"\n" +"This filesystem will be automatically checked every 26 mounts or\n" +"180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" +"\n" +"Now mount the newly created filesystem so we can create our index file\n" +"mount /dev/drbd1 /mnt/\n" +"cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - drbd</body>\n" +"</html>\n" +"END\n" +"umount /dev/drbd1\n" +"[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"> <html>\n" +"> <body>My Test Site - drbd</body>\n" +"> </html>\n" +"> END\n" +"[root@pcmk-1 ~]# umount /dev/drbd1\n" +" " + +#. Tag: title +#, no-c-format +msgid "Configure the Cluster for DRBD" +msgstr "在集群中配置DRBD" + +#. Tag: para +#, no-c-format +msgid "One handy feature of the crm shell is that you can use it in interactive mode to make several changes atomically." +msgstr "crm shell一个便捷的特性是可以工作在交互模式下并自动的变更配置中的相关部分。" + +#. Tag: para +#, no-c-format +msgid "First we launch the shell. The prompt will change to indicate you’re in interactive mode." +msgstr "首先我们打开shell。提示会指出你现在是在交互模式下。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"cib crm(live)#\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"cib crm(live)#\n" +" " + +#. Tag: para +#, no-c-format +msgid "Next we must create a working copy or the current configuration. This is where all our changes will go. The cluster will not see any of them until we say its ok. Notice again how the prompt changes, this time to indicate that we’re no longer looking at the live cluster." +msgstr "然后我们创建一个当前配置文件的副本。我们在这个副本里更改配置。直到我们提交这个副本之前集群不会应用这些更改。请注意提示符的变更,现在它指出我们看到的已经不是当前(live)集群的配置文件。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"cib crm(live)# cib new drbd\n" +"INFO: drbd shadow CIB created\n" +"crm(drbd)#\n" +" " +msgstr "" +"\n" +"cib crm(live)# cib new drbd\n" +"INFO: drbd shadow CIB created\n" +"crm(drbd)#\n" +" " + +#. Tag: para +#, no-c-format +msgid "Now we can create our DRBD clone and display the revised configuration." +msgstr "现在我们可以创建DRBD clone,然后看看修改过后的配置文件。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" +"        op monitor interval=60s\n" +"crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" +"        clone-max=2 clone-node-max=1 notify=true\n" +"crm(drbd)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +" params drbd_resource=\"wwwdata\" \\\n" +" op monitor interval=\"60s\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"ms WebDataClone WebData \\\n" +" meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " +msgstr "" +"\n" +"crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" +"        op monitor interval=60s\n" +"crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" +"        clone-max=2 clone-node-max=1 notify=true\n" +"crm(drbd)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +" params drbd_resource=\"wwwdata\" \\\n" +" op monitor interval=\"60s\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"ms WebDataClone WebData \\\n" +" meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " + +#. Tag: para +#, no-c-format +msgid "Once we’re happy with the changes, we can tell the cluster to start using them and use crm_mon to check everything is functioning." +msgstr "一旦你确认这些修改没问题,我们就提交这个副本,然后用crm_mon来看看修改是否生效了。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(drbd)# cib commit drbd\n" +"INFO: commited 'drbd' shadow CIB to the cluster\n" +"crm(drbd)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 09:37:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"3 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" +"Master/Slave Set: WebDataClone\n" +" Masters: [ pcmk-2 ]\n" +" Slaves: [ pcmk-1 ]\n" +" " +msgstr "" +"\n" +"crm(drbd)# cib commit drbd\n" +"INFO: commited 'drbd' shadow CIB to the cluster\n" +"crm(drbd)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 09:37:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"3 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" +"Master/Slave Set: WebDataClone\n" +" Masters: [ pcmk-2 ]\n" +" Slaves: [ pcmk-1 ]\n" +" " + +#. Tag: para +#, no-c-format +msgid "Include details on adding a second DRBD resource" +msgstr "Include details on adding a second DRBD resource" + +#. Tag: para +#, no-c-format +msgid "Now that DRBD is functioning we can configure a Filesystem resource to use it. In addition to the filesystem’s definition, we also need to tell the cluster where it can be located (only on the DRBD Primary) and when it is allowed to start (after the Primary was promoted)." +msgstr "现在DRBD已经工作了,我们可以配置一个Filesystem资源来使用它。 此外,对于这个文件系统的定义,同样的我们告诉集群这个文件系统能在哪运行(主DRBD运行的节点)以及什么时候可以启动(在主DRBD启动以后)。" + +#. Tag: para +#, no-c-format +msgid "Once again we’ll use the shell’s interactive mode" +msgstr "我们再一次的使用交互模式的crm shell" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new fs\n" +"INFO: fs shadow CIB created\n" +"crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new fs\n" +"INFO: fs shadow CIB created\n" +"crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +" " + +#. 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 "我们也要告诉集群Apache也要运行在同样的节点上,而且文件系统要在Apache之前启动。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +" " +msgstr "" +"\n" +"crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +" " + +#. Tag: para +#, no-c-format +msgid "Time to review the updated configuration:" +msgstr "审视一下你的配置:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n" +"        op monitor interval=\"30s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"1\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"colocation website-with-ip inf: WebSite ClusterIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"order WebSite-after-WebFS inf: WebFS WebSite\n" +"order apache-after-ip inf: ClusterIP WebSite\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"false\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +" " + +#. Tag: para +#, no-c-format +msgid "After reviewing the new configuration, we again upload it and watch the cluster put it into effect." +msgstr "看完以后,我们提交它并看看有没有生效。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(fs)# cib commit fs\n" +"INFO: commited 'fs' shadow CIB to the cluster\n" +"crm(fs)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:08:44 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite (ocf::heartbeat:apache): Started pcmk-1\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" +" " +msgstr "" +"\n" +"crm(fs)# cib commit fs\n" +"INFO: commited 'fs' shadow CIB to the cluster\n" +"crm(fs)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:08:44 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite (ocf::heartbeat:apache): Started pcmk-1\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"WebFS (ocf::heartbeat:Filesystem): Started pcmk-1\n" +" " + +#. Tag: title +#, no-c-format +msgid "Testing Migration" +msgstr "迁移测试" + +#. Tag: para +#, no-c-format +msgid "We could shut down the active node again, but another way to safely simulate recovery is to put the node into what is called “standby mode”. Nodes in this state tell the cluster that they are not allowed to run resources. Any resources found active there will be moved elsewhere. This feature can be particularly useful when updating the resources’ packages." +msgstr "我们可以再次关掉在运行的那个节点,但是安全的方法是把节点设置为standby模式。节点在这个状态下面等于告诉集群它不能运行任何资源,任何在这个节点上面运行的资源都会被移动到其他地方。这个特性在更新资源安装包的时候特别的方便。(确实!)" + +#. Tag: para +#, no-c-format +msgid "Put the local node into standby mode and observe the cluster move all the resources to the other node. Note also that the node’s status will change to indicate that it can no longer host resources." +msgstr "把一个本地节点设置为standby模式并观察集群把所有资源移动到另外一个节点了。并且注意节点的状态改变为不能运行任何的资源。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm node standby\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:09:57 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Node pcmk-1: standby\n" +"Online: [ pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Stopped: [ WebData:1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm node standby\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:09:57 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Node pcmk-1: standby\n" +"Online: [ pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Stopped: [ WebData:1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " + +#. 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 "当我在pcmk-1上面操作完了--本例中没有任何操作,我们只是想让资源移动移动--我们可以让节点变回正常的集群成员。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm node online\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:13:25 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Slaves: [ pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm node online\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:13:25 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Slaves: [ pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " + +#. Tag: para +#, no-c-format +msgid "Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1." +msgstr "注意我们设置的资源黏性值阻止了资源迁移回pcmk-1" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.mo new file mode 100644 index 0000000000..08b029c4ba Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.po new file mode 100644 index 0000000000..e0ace3a9a1 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Stonith.po @@ -0,0 +1,270 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-16 00:38+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Configure STONITH" +msgstr "配置 STONITH" + +#. Tag: title +#, no-c-format +msgid "Why You Need STONITH" +msgstr "为什么需要 STONITH" + +#. Tag: para +#, no-c-format +msgid "STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and it protects your data from being corrupted by rouge nodes or concurrent access." +msgstr "STONITH 是爆其他节点的头( Shoot-The-Other-Node-In-The-Head)的缩写,它能保护你的数据不被不正常的节点破坏或是并发写入。" + +#. 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 "因为如果一个节点没有相应,但并不代表它没有在操作你的数据,100%保证数据安全的做法就是在允许另外一个节点操作数据之前,使用STONITH来保证节点真的下线了。" + +#. 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 "STONITH另外一个用场是在当集群服务无法停止的时候。这个时候,集群可以用STONITH来强制使节点下线,从而可以安全的得在其他地方启动服务。" + +#. Tag: title +#, no-c-format +msgid "What STONITH Device Should You Use" +msgstr "你该用什么样的STONITH设备。" + +#. 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 "重要的一点是STONITH设备可以让集群区分节点故障和网络故障。" + +#. Tag: para +#, no-c-format +msgid "The biggest mistake people make in choosing a STONITH device is to use remote power switch (such as many onboard IMPI controllers) that shares power with the node it controls. In such cases, the cluster cannot be sure if the node is really offline, or active and suffering from a network fault." +msgstr "人们常常犯得一个错误就是选择远程电源开关作为STONITH设备(比如许多主板自带的IPMI控制器) 。在那种情况下,集群不能分辨节点是真正的下线了,还是网络无法连通了。" + +#. 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 "同样地, 任何依靠可用节点的设备(比如测试用的基于SSH的“设备”)都是不适当的。" + +#. Tag: title +#, no-c-format +msgid "Configuring STONITH" +msgstr "配置STONITH" + +#. Tag: para +#, no-c-format +msgid "Find the correct driver: stonith -L" +msgstr "找到正确的STONITH驱动: stonith -L" + +#. Tag: para +#, no-c-format +msgid "Since every device is different, the parameters needed to configure it will vary. To find out the parameters required by the device: stonith -t {type} -n" +msgstr "因为设备的不同, 配置的参数也不一样。 想看设备所需设置的参数,可以用: stonith -t {type} -n" + +#. Tag: para +#, no-c-format +msgid "Hopefully the developers chose names that make sense, if not you can query for some additional information by finding an active cluster node and running:" +msgstr "希望开发者选择了合适的名称,如果不是这样,你可以在活动的机器上面执行以下命令来获得更多信息。" + +#. Tag: screen +#, no-c-format +msgid "lrmadmin -M stonith {type} pacemaker\n" +msgstr "lrmadmin -M stonith {type} pacemaker\n" + +#. Tag: para +#, no-c-format +msgid "The output should be XML formatted text containing additional parameter descriptions" +msgstr "输出应该是XML格式的文本文件,它包含了更详细的描述" + +#. Tag: para +#, no-c-format +msgid "Create a file called stonith.xml containing a primitive resource with a class of stonith, a type of {type} and a parameter for each of the values returned in step 2" +msgstr "创建stonith.xml文件 包含了一个原始的源,它定义了资stonith类下面的某个type和这个type所需的参数。" + +#. Tag: para +#, no-c-format +msgid "Create a clone from the primitive resource if the device can shoot more than one node and supports multiple simultaneous connections." +msgstr "如果这个设备可以击杀多个设备并且支持从多个节点连接过来,那我们从这个原始资源创建一个克隆。" + +#. Tag: para +#, no-c-format +msgid "Upload it into the CIB using cibadmin: cibadmin -C -o resources --xml-file stonith.xml" +msgstr "使用cibadmin来更新CIB配置文件:cibadmin -C -o resources --xml-file stonith.xml" + +#. Tag: title +#, no-c-format +msgid "Example" +msgstr "例子" + +#. Tag: para +#, no-c-format +msgid "Assuming we have an IBM BladeCenter containing our two nodes and the management interface is active on 192.168.122.31, then we would chose the external/ibmrsa driver in step 2 and obtain the following list of parameters" +msgstr "假设我们有一个 包含两个节点的IBM BladeCenter,控制界面的IP是192.168.122.31,然后我们选择 external/ibmrsa作为驱动,然后配置下面列表当中的参数。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"stonith -t external/ibmrsa -n\n" +"[root@pcmk-1 ~]# stonith -t external/ibmrsa -n\n" +"hostname  ipaddr  userid  passwd  type\n" +msgstr "" +"\n" +"stonith -t external/ibmrsa -n\n" +"[root@pcmk-1 ~]# stonith -t external/ibmrsa -n\n" +"hostname  ipaddr  userid  passwd  type\n" + +#. Tag: para +#, no-c-format +msgid "Assuming we know the username and password for the management interface, we would create a STONITH resource with the shell" +msgstr "假设我们知道管理界面的用户名和密码,我们要创建一个STONITH的资源:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new stonith\n" +"INFO: stonith shadow CIB created\n" +"crm(stonith)# configure primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"crm(stonith)# configure clone Fencing rsa-fencing\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new stonith\n" +"INFO: stonith shadow CIB created\n" +"crm(stonith)# configure primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval=\"60s\"\n" +"crm(stonith)# configure clone Fencing rsa-fencing\n" + +#. Tag: para +#, no-c-format +msgid "And finally, since we disabled it earlier, we need to re-enable STONITH" +msgstr "最后,我们要重新打开之前禁用的STONITH:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(stonith)# configure property stonith-enabled=\"true\"\n" +"crm(stonith)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +" params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +" op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone Fencing rsa-fencing \n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"true\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" +"\n" +"crm(stonith)# configure property stonith-enabled=\"true\"\n" +"crm(stonith)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/drbd/by-res/wwwdata\" directory=\"/var/www/html\" fstype=”gfs2”\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n" +"        op monitor interval=\"1min\"\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval=\"30s\"\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval=\"120s\"\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval=\"120s\"\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +" params hostname=”pcmk-1 pcmk-2\" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +" op monitor interval=\"60s\"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max=\"2\" master-node-max=\"1\" clone-max=\"2\" clone-node-max=\"1\" notify=\"true\"\n" +"clone Fencing rsa-fencing \n" +"clone WebFSClone WebFS\n" +"clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"clone WebSiteClone WebSite\n" +"clone dlm-clone dlm \\\n" +"        meta interleave=\"true\"\n" +"clone gfs-clone gfs-control \\\n" +"        meta interleave=\"true\"\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"colocation gfs-with-dlm inf: gfs-clone dlm-clone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"order start-gfs-after-dlm inf: dlm-clone gfs-clone\n" +"property $id=\"cib-bootstrap-options\" \\\n" +"        dc-version=\"1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\" \\\n" +"        cluster-infrastructure=\"openais\" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=\"true\" \\\n" +"        no-quorum-policy=\"ignore\"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.mo new file mode 100644 index 0000000000..a23badd0f9 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.po new file mode 100644 index 0000000000..1cec95a601 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Tools.po @@ -0,0 +1,238 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-15 23:43+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Using Pacemaker Tools" +msgstr "使用Pacemaker工具" + +#. 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 "在万恶的旧社会,配置Pacemaker需要管理员具备读写XML的能力。 根据UNIX精神,也有许多不同的查询和配置集群的命令。" + +#. Tag: para +#, no-c-format +msgid "Since Pacemaker 1.0, this has all changed and we have an integrated, scriptable, cluster shell that hides all the messy XML scaffolding. It even allows you to queue up several changes at once and commit them atomically." +msgstr "自从Pacemaker 1.0,这一切都改变了,我们有了一个集成的脚本化的集群控制shell,它把麻烦的XML配置隐藏了起来。它甚至允许你一次做出许多修改并自动提交(并检测是否合法)。" + +#. Tag: para +#, no-c-format +msgid "Take some time to familiarize yourself with what it can do." +msgstr "让我们花点时间熟悉一下它能做什么。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm --help\n" +"\n" +"usage:\n" +"    crm [-D display_type]\n" +"    crm [-D display_type] args\n" +"    crm [-D display_type] [-f file]\n" +"\n" +"    Use crm without arguments for an interactive session.\n" +"    Supply one or more arguments for a \"single-shot\" use.\n" +"    Specify with -f a file which contains a script. Use '-' for\n" +"    standard input or use pipe/redirection.\n" +"\n" +"    crm displays cli format configurations using a color scheme\n" +"    and/or in uppercase. Pick one of \"color\" or \"uppercase\", or\n" +"    use \"-D color,uppercase\" if you want colorful uppercase.\n" +"    Get plain output by \"-D plain\". The default may be set in\n" +"    user preferences (options).\n" +"\n" +"Examples:\n" +"\n" +"    # crm -f stopapp2.cli\n" +"    # crm < stopapp2.cli\n" +"    # crm resource stop global_www\n" +"    # crm status\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm --help\n" +"\n" +"usage:\n" +"    crm [-D display_type]\n" +"    crm [-D display_type] args\n" +"    crm [-D display_type] [-f file]\n" +"\n" +"    Use crm without arguments for an interactive session.\n" +"    Supply one or more arguments for a \"single-shot\" use.\n" +"    Specify with -f a file which contains a script. Use '-' for\n" +"    standard input or use pipe/redirection.\n" +"\n" +"    crm displays cli format configurations using a color scheme\n" +"    and/or in uppercase. Pick one of \"color\" or \"uppercase\", or\n" +"    use \"-D color,uppercase\" if you want colorful uppercase.\n" +"    Get plain output by \"-D plain\". The default may be set in\n" +"    user preferences (options).\n" +"\n" +"Examples:\n" +"\n" +"    # crm -f stopapp2.cli\n" +"    # crm < stopapp2.cli\n" +"    # crm resource stop global_www\n" +"    # crm status\n" + +#. Tag: para +#, no-c-format +msgid "The primary tool for monitoring the status of the cluster is crm_mon (also available as crm status). It can be run in a variety of modes and has a number of output options. To find out about any of the tools that come with Pacemaker, simply invoke them with the --help option or consult the included man pages. Both sets of output are created from the tool, and so will always be in sync with each other and the tool itself." +msgstr "监控集群状态的主要命令是 crm_mon(跟crm status是一样的效果)。它可以运行在很多模式下并且有许多输出选项。如果要查看Pacemaker相应的工具,可以通过--help或者man pages来查看。这些输出都是靠命令来生成的,所以它总是会在各个节点和工具之间同步。" + +#. Tag: para +#, no-c-format +msgid "Additionally, the Pacemaker version and supported cluster stack(s) is available via the --version option." +msgstr "此外,Pacemaker的版本和支持的stack(本文中是corosync)可以通过 --version选项看到" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_mon --version\n" +"crm_mon 1.0.5 for OpenAIS and Heartbeat (Build: 462f1569a43740667daf7b0f6b521742e9eb8fa7)\n" +"\n" +"Written by Andrew Beekhof\n" +"[root@pcmk-1 ~]# crm_mon --help\n" +"crm_mon - Provides a summary of cluster's current state.\n" +"\n" +"Outputs varying levels of detail in a number of different formats.\n" +"\n" +"Usage: crm_mon mode [options]\n" +"Options:\n" +" -?, --help                 This text\n" +" -$, --version             Version information\n" +" -V, --verbose             Increase debug output\n" +"\n" +"Modes:\n" +" -h, --as-html=value        Write cluster status to the named file\n" +" -w, --web-cgi             Web mode with output suitable for cgi\n" +" -s, --simple-status       Display the cluster status once as a simple one line output (suitable for nagios)\n" +" -S, --snmp-traps=value    Send SNMP traps to this station\n" +" -T, --mail-to=value        Send Mail alerts to this user.  See also --mail-from, --mail-host, --mail-prefix\n" +"\n" +"Display Options:\n" +" -n, --group-by-node       Group resources by node\n" +" -r, --inactive             Display inactive resources\n" +" -f, --failcounts           Display resource fail counts\n" +" -o, --operations           Display resource operation history\n" +" -t, --timing-details       Display resource operation history with timing details\n" +"\n" +"\n" +"Additional Options:\n" +" -i, --interval=value           Update frequency in seconds\n" +" -1, --one-shot                 Display the cluster status once on the console and exit\n" +" -N, --disable-ncurses          Disable the use of ncurses\n" +" -d, --daemonize                Run in the background as a daemon\n" +" -p, --pid-file=value           (Advanced) Daemon pid file location\n" +" -F, --mail-from=value          Mail alerts should come from the named user\n" +" -H, --mail-host=value          Mail alerts should be sent via the named host\n" +" -P, --mail-prefix=value        Subjects for mail alerts should start with this string\n" +" -E, --external-agent=value     A program to run when resource operations take place.\n" +" -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone).\n" +"\n" +"Examples:\n" +"\n" +"Display the cluster´s status on the console with updates as they occur:\n" +"        # crm_mon\n" +"\n" +"Display the cluster´s status on the console just once then exit:\n" +"        # crm_mon\n" +"\n" +"Display your cluster´s status, group resources by node, and include inactive resources in the list:\n" +"        # crm_mon --group-by-node --inactive\n" +"\n" +"Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:\n" +"        # crm_mon --daemonize --as-html /path/to/docroot/filename.html\n" +"\n" +"Start crm_mon as a background daemon and have it send email alerts:\n" +"        # crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com\n" +"\n" +"Start crm_mon as a background daemon and have it send SNMP alerts:\n" +"        # crm_mon --daemonize --snmp-traps snmptrapd.example.com\n" +"\n" +"Report bugs to pacemaker@oss.clusterlabs.org\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# crm_mon --version\n" +"crm_mon 1.0.5 for OpenAIS and Heartbeat (Build: 462f1569a43740667daf7b0f6b521742e9eb8fa7)\n" +"\n" +"Written by Andrew Beekhof\n" +"[root@pcmk-1 ~]# crm_mon --help\n" +"crm_mon - Provides a summary of cluster's current state.\n" +"\n" +"Outputs varying levels of detail in a number of different formats.\n" +"\n" +"Usage: crm_mon mode [options]\n" +"Options:\n" +" -?, --help                 This text\n" +" -$, --version             Version information\n" +" -V, --verbose             Increase debug output\n" +"\n" +"Modes:\n" +" -h, --as-html=value        Write cluster status to the named file\n" +" -w, --web-cgi             Web mode with output suitable for cgi\n" +" -s, --simple-status       Display the cluster status once as a simple one line output (suitable for nagios)\n" +" -S, --snmp-traps=value    Send SNMP traps to this station\n" +" -T, --mail-to=value        Send Mail alerts to this user.  See also --mail-from, --mail-host, --mail-prefix\n" +"\n" +"Display Options:\n" +" -n, --group-by-node       Group resources by node\n" +" -r, --inactive             Display inactive resources\n" +" -f, --failcounts           Display resource fail counts\n" +" -o, --operations           Display resource operation history\n" +" -t, --timing-details       Display resource operation history with timing details\n" +"\n" +"\n" +"Additional Options:\n" +" -i, --interval=value           Update frequency in seconds\n" +" -1, --one-shot                 Display the cluster status once on the console and exit\n" +" -N, --disable-ncurses          Disable the use of ncurses\n" +" -d, --daemonize                Run in the background as a daemon\n" +" -p, --pid-file=value           (Advanced) Daemon pid file location\n" +" -F, --mail-from=value          Mail alerts should come from the named user\n" +" -H, --mail-host=value          Mail alerts should be sent via the named host\n" +" -P, --mail-prefix=value        Subjects for mail alerts should start with this string\n" +" -E, --external-agent=value     A program to run when resource operations take place.\n" +" -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone).\n" +"\n" +"Examples:\n" +"\n" +"Display the cluster´s status on the console with updates as they occur:\n" +"        # crm_mon\n" +"\n" +"Display the cluster´s status on the console just once then exit:\n" +"        # crm_mon\n" +"\n" +"Display your cluster´s status, group resources by node, and include inactive resources in the list:\n" +"        # crm_mon --group-by-node --inactive\n" +"\n" +"Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:\n" +"        # crm_mon --daemonize --as-html /path/to/docroot/filename.html\n" +"\n" +"Start crm_mon as a background daemon and have it send email alerts:\n" +"        # crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com\n" +"\n" +"Start crm_mon as a background daemon and have it send SNMP alerts:\n" +"        # crm_mon --daemonize --snmp-traps snmptrapd.example.com\n" +"\n" +"Report bugs to pacemaker@oss.clusterlabs.org\n" + +#. 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 "如果SNMP或者email选项没有出现在选项中,说明pacemaker编译的时候没有打开对他们的支持,你需要联系提供这个发行版本的人,或者自己编译。" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.mo b/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.mo new file mode 100644 index 0000000000..0f05027ea9 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.po b/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.po new file mode 100644 index 0000000000..4310367b70 --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Ch-Verification.po @@ -0,0 +1,212 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-16 00:39+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Verify Cluster Installation" +msgstr "检验集群的安装" + +#. Tag: title +#, no-c-format +msgid "Verify Corosync Installation" +msgstr "检验Corosync的安装" + +#. Tag: para +#, no-c-format +msgid "Start Corosync on the first node" +msgstr "在第一个节点启动Corosync:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" + +#. Tag: para +#, no-c-format +msgid "Check the cluster started correctly and that an initial membership was able to form" +msgstr "查看集群是否正确启动并且已经可以与其他节点建立集群关系" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep -e \"corosync.*network interface\" -e \"Corosync Cluster Engine\" -e \"Successfully read main configuration file\" /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service.\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'.\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# grep -e \"corosync.*network interface\" -e \"Corosync Cluster Engine\" -e \"Successfully read main configuration file\" /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service.\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'.\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" + +#. Tag: para +#, no-c-format +msgid "With one node functional, its now safe to start Corosync on the second node as well." +msgstr "第一个节点正常以后,我们可以安全地启动第二个节点。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]#\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]#\n" + +#. Tag: para +#, no-c-format +msgid "Check the cluster formed correctly" +msgstr "检查集群关系有没有正确建立:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" + +#. Tag: title +#, no-c-format +msgid "Verify Pacemaker Installation" +msgstr "检查Pacemaker的安装" + +#. Tag: para +#, no-c-format +msgid "Now that we have confirmed that Corosync is functional we can check the rest of the stack." +msgstr "现在我们已经确认Corosync正常,我们可以开始检查其他部分是否正常." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep pcmk_startup /var/log/messages\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# grep pcmk_startup /var/log/messages\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1\n" + +#. Tag: para +#, no-c-format +msgid "Now verify the Pacemaker processes have been started" +msgstr "现在确认pacemaker进程是否正常启动了:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ps axf\n" +"  PID TTY      STAT   TIME COMMAND\n" +"    2 ?        S<     0:00 [kthreadd]\n" +"    3 ?        S<     0:00  \\_ [migration/0]\n" +"... lots of processes ...\n" +" 2166 pts/0    SLl    0:01 /usr/sbin/corosync\n" +" 2172 ?        SLs    0:00  \\_ /usr/lib64/heartbeat/stonithd\n" +" 2173 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/cib\n" +" 2174 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/lrmd\n" +" 2175 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/attrd\n" +" 2176 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/pengine\n" +" 2177 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/crmd\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# ps axf\n" +"  PID TTY      STAT   TIME COMMAND\n" +"    2 ?        S<     0:00 [kthreadd]\n" +"    3 ?        S<     0:00  \\_ [migration/0]\n" +"... lots of processes ...\n" +" 2166 pts/0    SLl    0:01 /usr/sbin/corosync\n" +" 2172 ?        SLs    0:00  \\_ /usr/lib64/heartbeat/stonithd\n" +" 2173 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/cib\n" +" 2174 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/lrmd\n" +" 2175 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/attrd\n" +" 2176 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/pengine\n" +" 2177 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/crmd\n" + +#. Tag: para +#, no-c-format +msgid "And finally, check for any ERRORs during startup, there shouldn’t be any, and display the cluster’s status." +msgstr "最后我们检查启动的过程中有没有错误,按照常理应该没有任何错误并显示集群当前的状态。" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Aug 27 16:54:55 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"0 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +msgstr "" +"\n" +"[root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Aug 27 16:54:55 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"0 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" + diff --git a/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.mo b/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.mo new file mode 100644 index 0000000000..3f584c3fa9 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.po b/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.po new file mode 100644 index 0000000000..82ac7dc6db --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Clusters_from_Scratch.po @@ -0,0 +1,14 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T12:27:01\n" +"PO-Revision-Date: 2010-12-15 19:18+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" diff --git a/doc/Clusters_from_Scratch/zh-CN/Preface.mo b/doc/Clusters_from_Scratch/zh-CN/Preface.mo new file mode 100644 index 0000000000..385145dd22 Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Preface.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Preface.po b/doc/Clusters_from_Scratch/zh-CN/Preface.po new file mode 100644 index 0000000000..3be044a84d --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Preface.po @@ -0,0 +1,19 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-15 19:18+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Preface" +msgstr "前言" diff --git a/doc/Clusters_from_Scratch/zh-CN/Revision_History.mo b/doc/Clusters_from_Scratch/zh-CN/Revision_History.mo new file mode 100644 index 0000000000..3c0abd656f Binary files /dev/null and b/doc/Clusters_from_Scratch/zh-CN/Revision_History.mo differ diff --git a/doc/Clusters_from_Scratch/zh-CN/Revision_History.po b/doc/Clusters_from_Scratch/zh-CN/Revision_History.po new file mode 100644 index 0000000000..186cf8342f --- /dev/null +++ b/doc/Clusters_from_Scratch/zh-CN/Revision_History.po @@ -0,0 +1,35 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-12-15T23:32:37\n" +"PO-Revision-Date: 2010-12-15 23:43+0800\n" +"Last-Translator: Charlie Chen \n" +"Language-Team: None\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; 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 "Andrew" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "Beekhof" + +#. Tag: member +#, no-c-format +msgid "Import from Pages.app" +msgstr "Import from Pages.app" +