diff --git a/doc/Clusters_from_Scratch/en-US/Ap-Configuration.xml b/doc/Clusters_from_Scratch/en-US/Ap-Configuration.xml index 9b135ea684..0add20ae3e 100644 --- a/doc/Clusters_from_Scratch/en-US/Ap-Configuration.xml +++ b/doc/Clusters_from_Scratch/en-US/Ap-Configuration.xml @@ -1,274 +1,274 @@ %BOOK_ENTITIES; ]> - + Configuration Recap
Final Cluster Configuration [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" primitive rsa-fencing stonith::external/ibmrsa \         params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \         op monitor interval="60s" ms WebDataClone WebData \         meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone Fencing rsa-fencing clone WebFSClone WebFS clone WebIP ClusterIP  \         meta globally-unique=”true” clone-max=”2” clone-node-max=”2” clone WebSiteClone WebSite clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \         meta interleave="true" colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone colocation fs_on_drbd inf: WebFSClone WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSiteClone WebIP order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start order WebSite-after-WebFS inf: WebFSClone WebSiteClone order apache-after-ip inf: WebIP WebSiteClone order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled=”true” \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100”
Node List The list of cluster nodes is automatically populated by the cluster. node pcmk-1 node pcmk-2
Cluster Options This is where the cluster automatically stores some information about the cluster dc-version - the version (including upstream source-code hash) of Pacemaker used on the DC cluster-infrastructure - the cluster infrastructure being used (heartbeat or openais) expected-quorum-votes - the maximum number of nodes expected to be part of the cluster and where the admin can set options that control the way the cluster operates stonith-enabled=true - Make use of STONITH no-quorum-policy=ignore - Ignore loss of quorum and continue to host resources. property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled=”true” \         no-quorum-policy="ignore"
Resources
Default Options Here we configure cluster options that apply to every resource. resource-stickiness - Specify the aversion to moving resources to other machines rsc_defaults $id="rsc-options" \         resource-stickiness=”100”
Fencing TODO: Add text here primitive rsa-fencing stonith::external/ibmrsa \         params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \         op monitor interval="60s" clone Fencing rsa-fencing
Service Address 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. primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \         op monitor interval="30s" clone WebIP ClusterIP           meta globally-unique=”true” clone-max=”2” clone-node-max=”2” TODO: The RA should check for globally-unique=true when cloned
Distributed lock manager 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. primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" clone dlm-clone dlm \         meta interleave="true TODO: Confirm interleave is no longer needed
GFS control daemon 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. primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" clone gfs-clone gfs-control \         meta interleave="true" colocation gfs-with-dlm inf: gfs-clone dlm-clone order start-gfs-after-dlm inf: dlm-clone gfs-clone
DRBD - Shared Storage 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. primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" ms WebDataClone WebData \         meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
Cluster Filesystem 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. primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” clone WebFSClone WebFS colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone colocation fs_on_drbd inf: WebFSClone WebDataClone:Master order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone
Apache 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. primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" clone WebSiteClone WebSite colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone colocation website-with-ip inf: WebSiteClone WebIP order apache-after-ip inf: WebIP WebSiteClone order WebSite-after-WebFS inf: WebFSClone WebSiteClone
diff --git a/doc/Clusters_from_Scratch/en-US/Ap-Corosync-Conf.xml b/doc/Clusters_from_Scratch/en-US/Ap-Corosync-Conf.xml index 655046ccc8..bf0c0ed9ec 100644 --- a/doc/Clusters_from_Scratch/en-US/Ap-Corosync-Conf.xml +++ b/doc/Clusters_from_Scratch/en-US/Ap-Corosync-Conf.xml @@ -1,88 +1,88 @@ %BOOK_ENTITIES; ]> - + Sample Corosync.conf # Please read the Corosync.conf.5 manual page compatibility: whitetank aisexec {         # Run as root - this is necessary to be able to manage resources with Pacemaker         user:        root         group:        root } service {         # Load the Pacemaker Cluster Resource Manager         ver:       0         name:      pacemaker         use_mgmtd: no         use_logd:  no } totem {         version: 2         # How long before declaring a token lost (ms)         token:          5000         # How many token retransmits before forming a new configuration         token_retransmits_before_loss_const: 10         # How long to wait for join messages in the membership protocol (ms)         join:           1000         # How long to wait for consensus to be achieved before starting a new         # round of membership configuration (ms)         consensus:      2500         # Turn off the virtual synchrony filter         vsftype:        none         # Number of messages that may be sent by one processor on receipt of the token         max_messages:   20         # Stagger sending the node join messages by 1..send_join ms         send_join: 45         # Limit generated nodeids to 31-bits (positive signed integers)         clear_node_high_bit: yes         # Disable encryption         secauth:        off         # How many threads to use for encryption/decryption         threads:           0         # Optionally assign a fixed node id (integer)         # nodeid:         1234         interface {                 ringnumber: 0                 # The following values need to be set based on your environment                 bindnetaddr: 192.168.122.0                 mcastaddr: 226.94.1.1                 mcastport: 4000         } } logging {         debug: off         fileline: off         to_syslog: yes         to_stderr: off         syslog_facility: daemon         timestamp: on } amf {         mode: disabled } diff --git a/doc/Clusters_from_Scratch/en-US/Ap-Reading.xml b/doc/Clusters_from_Scratch/en-US/Ap-Reading.xml index bcbc60e849..7dabd982b4 100644 --- a/doc/Clusters_from_Scratch/en-US/Ap-Reading.xml +++ b/doc/Clusters_from_Scratch/en-US/Ap-Reading.xml @@ -1,30 +1,30 @@ %BOOK_ENTITIES; ]> - + Further Reading Project Website http://www.clusterlabs.org Cluster Commands A comprehensive guide to cluster commands has been written by Novell and can be found at: http://www.novell.com/documentation/sles11/book_sleha/index.html?page=/documentation/sles11/book_sleha/data/book_sleha.html Corosync http://www.corosync.org diff --git a/doc/Clusters_from_Scratch/en-US/Book_Info.xml b/doc/Clusters_from_Scratch/en-US/Book_Info.xml index 9584259e7a..803cfe5553 100644 --- a/doc/Clusters_from_Scratch/en-US/Book_Info.xml +++ b/doc/Clusters_from_Scratch/en-US/Book_Info.xml @@ -1,66 +1,66 @@ %BOOK_ENTITIES; ]> - + Clusters from Scratch Creating Active/Passive and Active/Active Clusters on Fedora Pacemaker 1.1 3 0 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. The example cluster will use: &DISTRO; &DISTRO_VERSION; as the host operating system Corosync to provide messaging and membership services, Pacemaker to perform resource management, DRBD as a cost-effective alternative to shared storage, GFS2 as the cluster filesystem (in active/active mode) The crm shell for displaying the configuration and making changes 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. diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Active-Active.xml b/doc/Clusters_from_Scratch/en-US/Ch-Active-Active.xml index d8a6b86a0c..9649dee761 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Active-Active.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Active-Active.xml @@ -1,711 +1,711 @@ %BOOK_ENTITIES; ]> - + Conversion to Active/Active
Requirements 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. 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; .
Install a Cluster Filesystem - GFS2 The first thing to do is install gfs2-utils on each machine. [root@pcmk-1 ~]# yum install -y gfs2-utils gfs-pcmk Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated --> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64 --> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64 --> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64 --> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64 --> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64 --> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64 ---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated --> Running transaction check ---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated ---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated ---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated --> Finished Dependency Resolution Dependencies Resolved ===========================================================================================  Package                Arch               Version                   Repository        Size =========================================================================================== Installing:  gfs-pcmk               x86_64             3.0.5-2.fc12              custom           101 k  gfs2-utils             x86_64             3.0.5-2.fc12              custom           208 k Installing for dependencies:  clusterlib             x86_64             3.0.5-2.fc12              custom            65 k  dlm-pcmk               x86_64             3.0.5-2.fc12              custom            93 k  openaislib             x86_64             1.1.0-1.fc12              fedora            76 k Transaction Summary =========================================================================================== Install       5 Package(s) Upgrade       0 Package(s) Total download size: 541 k Downloading Packages: (1/5): clusterlib-3.0.5-2.fc12.x86_64.rpm                                |  65 kB     00:00 (2/5): dlm-pcmk-3.0.5-2.fc12.x86_64.rpm                                  |  93 kB     00:00 (3/5): gfs-pcmk-3.0.5-2.fc12.x86_64.rpm                                  | 101 kB     00:00 (4/5): gfs2-utils-3.0.5-2.fc12.x86_64.rpm                                | 208 kB     00:00 (5/5): openaislib-1.1.0-1.fc12.x86_64.rpm                                |  76 kB     00:00 ------------------------------------------------------------------------------------------- Total                                                           992 kB/s | 541 kB     00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction   Installing     : clusterlib-3.0.5-2.fc12.x86_64                                       1/5   Installing     : openaislib-1.1.0-1.fc12.x86_64                                       2/5   Installing     : dlm-pcmk-3.0.5-2.fc12.x86_64                                         3/5   Installing     : gfs-pcmk-3.0.5-2.fc12.x86_64                                         4/5   Installing     : gfs2-utils-3.0.5-2.fc12.x86_64                                       5/5 Installed:   gfs-pcmk.x86_64 0:3.0.5-2.fc12                    gfs2-utils.x86_64 0:3.0.5-2.fc12 Dependency Installed:   clusterlib.x86_64 0:3.0.5-2.fc12   dlm-pcmk.x86_64 0:3.0.5-2.fc12   openaislib.x86_64 0:1.1.0-1.fc12   Complete! [root@pcmk-1 x86_64]#
Setup Pacemaker-GFS2 Integration 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. The second service is GFS2’s own control daemon which also integrates with Pacemaker to obtain node membership data.
Add the DLM service 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. [root@pcmk-1 ~]# crm crm(live)# cib new stack-glue INFO: stack-glue shadow CIB created crm(stack-glue)# configure primitive dlm ocf:pacemaker:controld op monitor interval=120s crm(stack-glue)# configure clone dlm-clone dlm meta interleave=true crm(stack-glue)# configure show xml crm(stack-glue)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4" primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \ op monitor interval="120s" ms WebDataClone WebData \         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone dlm-clone dlm \ meta interleave="true" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation WebSite-with-WebFS inf: WebSite WebFS colocation fs_on_drbd inf: WebFS WebDataClone:Master colocation website-with-ip inf: WebSite ClusterIP order WebFS-after-WebData inf: WebDataClone:promote WebFS:start order WebSite-after-WebFS inf: WebFS WebSite order apache-after-ip inf: ClusterIP WebSite property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” TODO: Explain the meaning of the interleave option Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response crm(stack-glue)# cib commit stack-glue INFO: commited 'stack-glue' shadow CIB to the cluster crm(stack-glue)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Sep  3 20:49:54 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 5 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] WebSite (ocf::heartbeat:apache):        Started pcmk-2 Master/Slave Set: WebDataClone         Masters: [ pcmk-1 ]         Slaves: [ pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 Clone Set: dlm-clone Started: [ pcmk-2 pcmk-1 ] WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2
Add the GFS2 service Once the DLM is active, we can add the GFS2 control daemon. Use the crm shell to create the gfs-control cluster resource: [root@pcmk-1 ~]# crm crm(live)# cib new gfs-glue --force INFO: gfs-glue shadow CIB created crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args="-g 0" op monitor interval=120s crm(gfs-glue)# configure clone gfs-clone gfs-control meta interleave=true Now ensure Pacemaker only starts the gfs-control service on nodes that also have a copy of the dlm service (created above) already running crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response crm(gfs-glue)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4" primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \ params daemon=”gfs_controld.pcmk” args=”-g 0” \ op monitor interval="120s" ms WebDataClone WebData \         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \ meta interleave="true" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation WebSite-with-WebFS inf: WebSite WebFS colocation fs_on_drbd inf: WebFS WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSite ClusterIP order WebFS-after-WebData inf: WebDataClone:promote WebFS:start order WebSite-after-WebFS inf: WebFS WebSite order apache-after-ip inf: ClusterIP WebSite order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” crm(gfs-glue)# cib commit gfs-glue INFO: commited 'gfs-glue' shadow CIB to the cluster crm(gfs-glue)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Sep  3 20:49:54 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 6 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] WebSite (ocf::heartbeat:apache):        Started pcmk-2 Master/Slave Set: WebDataClone         Masters: [ pcmk-1 ]         Slaves: [ pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 Clone Set: dlm-clone         Started: [ pcmk-2 pcmk-1 ] Clone Set: gfs-clone Started: [ pcmk-2 pcmk-1 ] WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-1
Create a GFS2 Filesystem
Preparation 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. [root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Sep  3 15:18:06 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 6 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] Master/Slave Set: WebDataClone         Masters: [ pcmk-1 ]         Slaves: [ pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 Clone Set: dlm-clone         Started: [ pcmk-2 pcmk-1 ] Clone Set: gfs-clone         Started: [ pcmk-2 pcmk-1 ] Note that both Apache and WebFS have been stopped.
Create and Populate an GFS2 Partition Now that the cluster stack and integration pieces are running smoothly, we can create an GFS2 partition. This will erase all previous content stored on the DRBD device. Ensure you have a copy of any important data. We need to specify a number of additional parameters when creating a GFS2 partition. 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). 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). 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: clustername: myname Do this on each node in the cluster and be sure to restart them before continuing. mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1 [root@pcmk-1 ~]# mkfs.gfs2 -t pcmk:web -p lock_dlm -j 2 /dev/vdb This will destroy any data on /dev/vdb. It appears to contain: data Are you sure you want to proceed? [y/n] y Device:                    /dev/vdb Blocksize:                 4096 Device Size                1.00 GB (131072 blocks) Filesystem Size:           1.00 GB (131070 blocks) Journals:                  2 Resource Groups:           2 Locking Protocol:          "lock_dlm" Lock Table:                "pcmk:web" UUID:                      6B776F46-177B-BAF8-2C2B-292C0E078613 [root@pcmk-1 ~]# Then (re)populate the new filesystem with data (web pages). For now we’ll create another variation on our home page. [root@pcmk-1 ~]# mount /dev/drbd1 /mnt/ [root@pcmk-1 ~]# cat <<-END >/mnt/index.html <html> <body>My Test Site - GFS2</body> </html> END [root@pcmk-1 ~]# umount /dev/drbd1 [root@pcmk-1 ~]# drbdadm verify wwwdata [root@pcmk-1 ~]#
Reconfigure the Cluster for GFS2 [root@pcmk-1 ~]# crm crm(live)# cib new GFS2 INFO: GFS2 shadow CIB created crm(GFS2)# configure delete WebFS crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” 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. crm(GFS2)# configure colocation WebSite-with-WebFS inf: WebSite WebFS crm(GFS2)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master crm(GFS2)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start crm(GFS2)# configure order WebSite-after-WebFS inf: WebFS WebSite crm(GFS2)# configure colocation WebFS-with-gfs-control INFINITY: WebFS gfs-clone crm(GFS2)# configure order start-WebFS-after-gfs-control mandatory: gfs-clone WebFS crm(GFS2)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \ params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" ms WebDataClone WebData \         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \         meta interleave="true" colocation WebFS-with-gfs-control inf: WebFS gfs-clone colocation WebSite-with-WebFS inf: WebSite WebFS colocation fs_on_drbd inf: WebFS WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSite ClusterIP order WebFS-after-WebData inf: WebDataClone:promote WebFS:start order WebSite-after-WebFS inf: WebFS WebSite order apache-after-ip inf: ClusterIP WebSite order start-WebFS-after-gfs-control inf: gfs-clone WebFS order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response crm(GFS2)# cib commit GFS2 INFO: commited 'GFS2' shadow CIB to the cluster crm(GFS2)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Sep  3 20:49:54 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 6 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] WebSite (ocf::heartbeat:apache):        Started pcmk-2 Master/Slave Set: WebDataClone         Masters: [ pcmk-1 ]         Slaves: [ pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 Clone Set: dlm-clone         Started: [ pcmk-2 pcmk-1 ] Clone Set: gfs-clone         Started: [ pcmk-2 pcmk-1 ] WebFS (ocf::heartbeat:Filesystem): Started pcmk-1
Reconfigure Pacemaker for Active/Active 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. This will involve a number of changes, so we’ll again use interactive mode. [root@pcmk-1 ~]# crm [root@pcmk-1 ~]# cib new active 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. [root@pcmk-1 ~]# configure clone WebIP ClusterIP  \         meta globally-unique=”true” clone-max=”2” clone-node-max=”2” 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. Open the ClusterIP resource [root@pcmk-1 ~]# configure edit  ClusterIP And add the following to the params line clusterip_hash="sourceip" So that the complete definition looks like: primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" clusterip_hash="sourceip" \         op monitor interval="30s" Here is the full transcript [root@pcmk-1 ~]# crm crm(live)# cib new active INFO: active shadow CIB created crm(active)# configure clone WebIP ClusterIP  \         meta globally-unique=”true” clone-max=”2” clone-node-max=”2” crm(active)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" ms WebDataClone WebData \         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone WebIP ClusterIP \ meta globally-unique=”true” clone-max=”2” clone-node-max=”2” clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \         meta interleave="true" colocation WebFS-with-gfs-control inf: WebFS gfs-clone colocation WebSite-with-WebFS inf: WebSite WebFS colocation fs_on_drbd inf: WebFS WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSite WebIP order WebFS-after-WebData inf: WebDataClone:promote WebFS:start order WebSite-after-WebFS inf: WebFS WebSite order apache-after-ip inf: WebIP WebSite order start-WebFS-after-gfs-control inf: gfs-clone WebFS order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” Notice how any constraints that referenced ClusterIP have been updated to use WebIP instead. This is an additional benefit of using the crm shell. Next we need to convert the filesystem and Apache resources into clones. Again, the shell will automatically update any relevant constraints. crm(active)# configure clone WebFSClone WebFS crm(active)# configure clone WebSiteClone WebSite The last step is to tell the cluster that it is now allowed to promote both instances to be Primary (aka. Master). crm(active)# configure edit WebDataClone Change master-max to 2 crm(active)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" ms WebDataClone WebData \         meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone WebFSClone WebFS clone WebIP ClusterIP  \         meta globally-unique=”true” clone-max=”2” clone-node-max=”2” clone WebSiteClone WebSite clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \         meta interleave="true" colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone colocation fs_on_drbd inf: WebFSClone WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSiteClone WebIP order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start order WebSite-after-WebFS inf: WebFSClone WebSiteClone order apache-after-ip inf: WebIP WebSiteClone order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response crm(active)# cib commit active INFO: commited 'active' shadow CIB to the cluster crm(active)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Sep  3 21:37:27 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 6 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] Master/Slave Set: WebDataClone         Masters: [ pcmk-1 pcmk-2 ] Clone Set: dlm-clone         Started: [ pcmk-2 pcmk-1 ] Clone Set: gfs-clone         Started: [ pcmk-2 pcmk-1 ] Clone Set: WebIP Started: [ pcmk-1 pcmk-2 ] Clone Set: WebFSClone Started: [ pcmk-1 pcmk-2 ] Clone Set: WebSiteClone Started: [ pcmk-1 pcmk-2 ]
Testing Recovery TODO: Put one node into standby to demonstrate failover
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Active-Passive.xml b/doc/Clusters_from_Scratch/en-US/Ch-Active-Passive.xml index bb9a07ef13..cc47786791 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Active-Passive.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Active-Passive.xml @@ -1,391 +1,391 @@ %BOOK_ENTITIES; ]> - + Creating an Active/Passive Cluster
Exploring the Existing Configuration 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. This is what the base configuration should look like. [root@pcmk-2 ~]# crm configure show node pcmk-1 node pcmk-2 property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" For those that are not of afraid of XML, you can see the raw configuration by appending “xml” to the previous command. [root@pcmk-2 ~]# crm configure show xml <?xml version="1.0" ?> <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">   <configuration>     <crm_config>       <cluster_property_set id="cib-bootstrap-options">         <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7"/>         <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>         <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/>       </cluster_property_set>     </crm_config>     <rsc_defaults/>     <op_defaults/>     <nodes>       <node id="pcmk-1" type="normal" uname="pcmk-1"/>       <node id="pcmk-2" type="normal" uname="pcmk-2"/>     </nodes>     <resources/>     <constraints/>   </configuration> </cib> The last XML you’ll see in this document Before we make any changes, its a good idea to check the validity of the configuration. [root@pcmk-1 ~]# crm_verify -L crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity Errors found during check: config not valid   -V may provide more details [root@pcmk-1 ~]# As you can see, the tool has found some errors. 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). 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. To disable STONITH, we set the stonith-enabled cluster option to false.
crm configure property stonith-enabled=false crm_verify -L
With the new cluster option set, the configuration is now valid.
Adding a Resource 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. The chosen address must not be one already associated with a physical node crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=192.168.122.101 cidr_netmask=32 \         op monitor interval=30s 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. To obtain a list of the available resource classes, run [root@pcmk-1 ~]# crm ra classes heartbeat lsb ocf / heartbeat pacemaker stonith To then find all the OCF resource agents provided by Pacemaker and Heartbeat, run [root@pcmk-1 ~]# crm ra list ocf pacemaker ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld ping           pingd           [root@pcmk-1 ~]# crm ra list ocf heartbeat AoEtarget              AudibleAlarm           ClusterMon             Delay Dummy                  EvmsSCC                Evmsd                  Filesystem ICP                    IPaddr                 IPaddr2                IPsrcaddr LVM                    LinuxSCSI              MailTo                 ManageRAID ManageVE               Pure-FTPd              Raid1                  Route SAPDatabase            SAPInstance            SendArp                ServeRAID SphinxSearchDaemon     Squid                  Stateful               SysInfo VIPArip                VirtualDomain          WAS                    WAS6 WinPopup               Xen                    Xinetd                 anything apache                 db2                    drbd                   eDir88 iSCSILogicalUnit       iSCSITarget            ids                    iscsi ldirectord             mysql                  mysql-proxy            nfsserver oracle                 oralsnr                pgsql                  pingd portblock              rsyncd                 scsi2reservation       sfex tomcat                 vmware                 [root@pcmk-1 ~]# Now verify that the IP resource has been added and display the cluster’s status to see that it is now active. [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive ClusterIP ocf:heartbeat:IPaddr2 \ params ip="192.168.122.101" cidr_netmask="32" \ op monitor interval="30s" property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \ [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 15:23:48 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1
Perform a Failover Being a high-availability cluster, we should test failover of our new resource before moving on. First, find the node on which the IP address is running. [root@pcmk-1 ~]# crm resource status ClusterIP resource ClusterIP is running on: pcmk-1 [root@pcmk-1 ~]# Shut down Corosync on that machine. [root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop Stopping Corosync Cluster Engine (corosync): [ OK ] Waiting for services to unload: [ OK ] [root@pcmk-1 ~]# Once Corosync is no longer running, go to the other node and check the cluster status with crm_mon. [root@pcmk-2 ~]# crm_mon ============ Last updated: Fri Aug 28 15:27:35 2009 Stack: openais Current DC: pcmk-2 - partition WITHOUT quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-2 ] OFFLINE: [ pcmk-1 ] 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!
Quorum and Two-Node Clusters 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. 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: total_nodes - 1 < 2 * active_nodes 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. [root@pcmk-1 ~]# crm configure property no-quorum-policy=ignore [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" After a few moments, the cluster will start the IP address on the remaining node. Note that the cluster still does not have quorum. [root@pcmk-2 ~]# crm_mon ============ Last updated: Fri Aug 28 15:30:18 2009 Stack: openais Current DC: pcmk-2 - partition WITHOUT quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-2 ] OFFLINE: [ pcmk-1 ] ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2 Now simulate node recovery by restarting the cluster stack on pcmk-1 and check the cluster’s status. [root@pcmk-1 ~]# /etc/init.d/corosync start Starting Corosync Cluster Engine (corosync): [ OK ] [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 15:32:13 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 Here we see something that some may consider surprising, the IP is back running at its original location!
Prevent Resources from Moving after Recovery 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. 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. crm configure rsc_defaults resource-stickiness=100 [root@pcmk-2 ~]# crm configure show node pcmk-1 node pcmk-2 primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \ resource-stickiness="100" If we now retry the failover test, we see that as expected ClusterIP still moves to pcmk-2 when pcmk-1 is taken offline. [root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop Stopping Corosync Cluster Engine (corosync):               [  OK  ] Waiting for services to unload:                            [  OK  ] [root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1 ============ Last updated: Fri Aug 28 15:39:38 2009 Stack: openais Current DC: pcmk-2 - partition WITHOUT quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-2 ] OFFLINE: [ pcmk-1 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 However when we bring pcmk-1 back online, ClusterIP now remains running on pcmk-2. [root@pcmk-1 ~]# /etc/init.d/corosync start Starting Corosync Cluster Engine (corosync): [ OK ] [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 15:41:23 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 1 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Apache.xml b/doc/Clusters_from_Scratch/en-US/Ch-Apache.xml index 7eef0e976a..567d5a83b0 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Apache.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Apache.xml @@ -1,472 +1,472 @@ %BOOK_ENTITIES; ]> - + Apache - Adding More Services 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.
Installation Before continuing, we need to make sure Apache is installed on both hosts. [root@ppcmk-1 ~]# yum install -y httpd Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated --> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated ---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated ---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated ---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated ---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated --> Finished Dependency Resolution Dependencies Resolved =======================================================================================  Package               Arch             Version                Repository         Size ======================================================================================= Installing:  httpd               x86_64           2.2.13-2.fc12            rawhide           735 k Installing for dependencies:  apr                 x86_64           1.3.9-2.fc12             rawhide           117 k  apr-util            x86_64           1.3.9-2.fc12             rawhide            84 k  apr-util-ldap       x86_64           1.3.9-2.fc12             rawhide            15 k  httpd-tools         x86_64           2.2.13-2.fc12            rawhide            63 k  mailcap             noarch           2.1.30-1.fc12            rawhide            25 k Transaction Summary ======================================================================================= Install       6 Package(s) Upgrade       0 Package(s) Total download size: 1.0 M Downloading Packages: (1/6): apr-1.3.9-2.fc12.x86_64.rpm                                   | 117 kB     00:00     (2/6): apr-util-1.3.9-2.fc12.x86_64.rpm                             |  84 kB     00:00     (3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm                         |  15 kB     00:00     (4/6): httpd-2.2.13-2.fc12.x86_64.rpm                               | 735 kB     00:00     (5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm                         |  63 kB     00:00     (6/6): mailcap-2.1.30-1.fc12.noarch.rpm                             |  25 kB     00:00     ---------------------------------------------------------------------------------------- Total                                                       875 kB/s | 1.0 MB     00:01     Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction   Installing     : apr-1.3.9-2.fc12.x86_64                                         1/6   Installing     : apr-util-1.3.9-2.fc12.x86_64                                     2/6   Installing     : apr-util-ldap-1.3.9-2.fc12.x86_64                               3/6   Installing     : httpd-tools-2.2.13-2.fc12.x86_64                                 4/6   Installing     : mailcap-2.1.30-1.fc12.noarch                                     5/6   Installing     : httpd-2.2.13-2.fc12.x86_64                                       6/6 Installed:   httpd.x86_64 0:2.2.13-2.fc12                                                         Dependency Installed:   apr.x86_64 0:1.3.9-2.fc12            apr-util.x86_64 0:1.3.9-2.fc12   apr-util-ldap.x86_64 0:1.3.9-2.fc12  httpd-tools.x86_64 0:2.2.13-2.fc12   mailcap.noarch 0:2.1.30-1.fc12   Complete! [root@pcmk-1 ~]# Also, we need the wget tool in order for the cluster to be able to check the status of the Apache server. [root@pcmk-1 ~]# yum install -y wget Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated --> Finished Dependency Resolution Dependencies Resolved ===========================================================================================  Package        Arch             Version                      Repository               Size =========================================================================================== Installing:  wget         x86_64          1.11.4-5.fc12                   rawhide                393 k Transaction Summary =========================================================================================== Install       1 Package(s) Upgrade       0 Package(s) Total download size: 393 k Downloading Packages: wget-1.11.4-5.fc12.x86_64.rpm                                            | 393 kB     00:00     Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction   Installing     : wget-1.11.4-5.fc12.x86_64                                            1/1 Installed:   wget.x86_64 0:1.11.4-5.fc12 Complete! [root@pcmk-1 ~]#
Preparation 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. [root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html <html> <body>My Test Site - pcmk-1</body> </html> END [root@pcmk-1 ~]# 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. [root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html <html> <body>My Test Site - pcmk-2</body> </html> END [root@pcmk-2 ~]#
Enable the Apache status URL 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: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location>
Update the Configuration 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. [root@pcmk-1 ~]# crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \ params configfile="/etc/httpd/conf/httpd.conf" \ op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100" After a short delay, we should see the cluster start apache [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 16:12:49 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 2 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 WebSite        (ocf::heartbeat:apache):        Started pcmk-1 Wait a moment, the WebSite resource isn’t running on the same host as our IP address!
Ensuring Resources Run on the Same Host 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. [root@pcmk-1 ~]# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" colocation website-with-ip inf: WebSite ClusterIP property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100" [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 16:14:34 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 2 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 WebSite        (ocf::heartbeat:apache):        Started pcmk-2
Controlling Resource Start/Stop Ordering 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. [root@pcmk-1 ~]# crm configure order apache-after-ip mandatory: ClusterIP WebSite [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" colocation website-with-ip inf: WebSite ClusterIP order apache-after-ip inf: ClusterIP WebSite property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100"
Specifying a Preferred Location 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. [root@pcmk-1 ~]# crm configure location prefer-pcmk-1 WebSite 50: pcmk-1 [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation website-with-ip inf: WebSite ClusterIP property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100" [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 16:17:35 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 2 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 WebSite        (ocf::heartbeat:apache):        Started pcmk-2 Wait a minute, the resources are still on pcmk-2! 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). To see the current placement scores, you can use a tool called ptest ptest -sL Include output There is a way to force them to move though...
Manually Moving Resources Around the Cluster 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. [root@pcmk-1 ~]# crm resource move WebSite pcmk-1 [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 16:19:24 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 2 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 WebSite        (ocf::heartbeat:apache):        Started pcmk-1 Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1. For the curious, we can see the effect of this command by examining the configuration crm configure show [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" location cli-prefer-WebSite WebSite \ rule $id="cli-prefer-rule-WebSite" inf: #uname eq pcmk-1 location prefer-pcmk-1 WebSite 50: pcmk-1 colocation website-with-ip inf: WebSite ClusterIP property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100" Highlighted is the automated constraint used to move the resources to pcmk-1
Giving Control Back to the Cluster 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. [root@pcmk-1 ~]# crm resource unmove WebSite [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation website-with-ip inf: WebSite ClusterIP property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes="2" \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness="100" 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. [root@pcmk-1 ~]# crm_mon ============ Last updated: Fri Aug 28 16:20:53 2009 Stack: openais Current DC: pcmk-2 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 2 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 WebSite        (ocf::heartbeat:apache):        Started pcmk-1
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Installation.xml b/doc/Clusters_from_Scratch/en-US/Ch-Installation.xml index f4c396cd73..196da75852 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Installation.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Installation.xml @@ -1,874 +1,874 @@ %BOOK_ENTITIES; ]> - + Installation
OS Installation 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... 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. 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
Fedora Installation - Welcome Fedora Installation: Good choice
Fedora Installation - Storage Devices Fedora Installation: Storage Devices
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.
Fedora Installation - Hostname Fedora Installation: Choose a hostname
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 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.
Fedora Installation - Installation Type Fedora Installation: Choose an installation type
By default, Fedora will give all the space to the / (aka. root) partition. Wel'll take some back so we can use DRBD.
Fedora Installation - Default Partitioning
The finalized partition layout should look something like the diagram below. 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.
Fedora Installation - Customize Partitioning Fedora Installation: Create a partition to use (later) for website data
Fedora Installation - Bootloader Fedora Installation: Unless you have a strong reason not to, accept the default bootloader location
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.
Fedora Installation - Software Fedora Installation: Software selection
Fedora Installation - Installing Fedora Installation: Go grab something to drink, this may take a while
Fedora Installation - Installation Complete Fedora Installation: Stage 1, completed
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.
Fedora Installation - First Boot
Fedora Installation - Create Non-privileged User Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon
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.
Fedora Installation - Date and Time Fedora Installation: Enable NTP to keep the times on all your nodes consistent
Click through the next screens until you reach the login window. Click on the user you created and supply the password you indicated earlier.
Fedora Installation - Customize Networking Fedora Installation: Click here to configure networking
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.
Fedora Installation - Specify Network Preferences Fedora Installation: Specify network settings for your machine, never choose DHCP
Fedora Installation - Activate Networking Fedora Installation: Click the big green button to activate your changes
Fedora Installation - Bring up the Terminal Fedora Installation: Down to business, fire up the command line
That was the last screenshot, from here on in we’re going to be working from the terminal.
Cluster Software Installation 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. [beekhof@pcmk-1 ~]$ su - Password: [root@pcmk-1 ~]# Note that the username (the text before the @ symbol) now indicates we’re running as the super user “root”. [root@pcmk-1 ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0c:29:6f:e1:58 brd ff:ff:ff:ff:ff:ff inet 192.168.9.41/24 brd 192.168.9.255 scope global eth0 inet6 ::20c:29ff:fe6f:e158/64 scope global dynamic valid_lft 2591667sec preferred_lft 604467sec inet6 2002:57ae:43fc:0:20c:29ff:fe6f:e158/64 scope global dynamic valid_lft 2591990sec preferred_lft 604790sec inet6 fe80::20c:29ff:fe6f:e158/64 scope link valid_lft forever preferred_lft forever [root@pcmk-1 ~]# ping -c 1 www.google.com PING www.l.google.com (74.125.39.99) 56(84) bytes of data. 64 bytes from fx-in-f99.1e100.net (74.125.39.99): icmp_seq=1 ttl=56 time=16.7 ms --- www.l.google.com ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 20ms rtt min/avg/max/mdev = 16.713/16.713/16.713/0.000 ms [root@pcmk-1 ~]# /sbin/chkconfig network on [root@pcmk-1 ~]#
Security Shortcuts 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. TODO: Create an Appendix that deals with (at least) re-enabling the firewall. [root@pcmk-1 ~]# sed -i.bak "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config [root@pcmk-1 ~]# /sbin/chkconfig --del iptables [root@pcmk-1 ~]# service iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] You will need to reboot for the SELinux changes to take effect. Otherwise you will see something like this when you start corosync: 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 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
Install the Cluster Software Since version 12, Fedora comes with recent versions of everything you need, so simply fire up the shell and run: [root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora.repo [root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora-updates.repo [root@pcmk-1 ~]# yum install -y pacemaker corosync Loaded plugins: presto, refresh-packagekit fedora/metalink | 22 kB 00:00 fedora-debuginfo/metalink | 16 kB 00:00 fedora-debuginfo | 3.2 kB 00:00 fedora-debuginfo/primary_db | 1.4 MB 00:04 fedora-source/metalink | 22 kB 00:00 fedora-source | 3.2 kB 00:00 fedora-source/primary_db | 3.0 MB 00:05 updates/metalink | 26 kB 00:00 updates | 2.6 kB 00:00 updates/primary_db | 1.1 kB 00:00 updates-debuginfo/metalink | 18 kB 00:00 updates-debuginfo | 2.6 kB 00:00 updates-debuginfo/primary_db | 1.1 kB 00:00 updates-source/metalink | 25 kB 00:00 updates-source | 2.6 kB 00:00 updates-source/primary_db | 1.1 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated --> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 --> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64 ---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated --> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64 --> Running transaction check ---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated --> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64 --> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64 --> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64 --> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64 --> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64 ---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated ---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated --> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64 --> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64 --> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64 --> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64 --> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64 ---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated --> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 ---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated ---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated ---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated --> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64 ---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated ---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated ---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated --> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64 --> Running transaction check ---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated ---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated ---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated --> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64 ---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated ---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated ---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated ---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated ---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated --> Running transaction check ---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================================== Package Arch Version Repository Size ========================================================================================== Installing: corosync x86_64 1.2.1-1.fc13 fedora 136 k pacemaker x86_64 1.1.1-1.fc13 fedora 543 k Installing for dependencies: OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k PyXML x86_64 0.8.4-17.fc13 fedora 906 k cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k corosynclib x86_64 1.2.1-1.fc13 fedora 145 k heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k libesmtp x86_64 1.0.4-12.fc12 fedora 54 k libibverbs x86_64 1.1.3-4.fc13 fedora 42 k libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k libnet x86_64 1.1.4-3.fc12 fedora 49 k librdmacm x86_64 1.0.10-2.fc13 fedora 22 k lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k net-snmp x86_64 1:5.5-12.fc13 fedora 295 k net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k resource-agents x86_64 3.0.10-1.fc13 fedora 357 k Transaction Summary ========================================================================================= Install 21 Package(s) Upgrade 0 Package(s) Total download size: 5.7 M Installed size: 20 M Downloading Packages: Setting up and reading Presto delta metadata updates-testing/prestodelta | 164 kB 00:00 fedora/prestodelta | 150 B 00:00 Processing delta metadata Package(s) data still to download: 5.7 M (1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 (2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 (3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 (4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 (5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 (6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 (7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 (8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 (9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 (10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 (11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 (12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 (13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 (14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 (15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 (16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 (17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 (18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 (19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 (20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 (21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 ---------------------------------------------------------------------------------------- Total 539 kB/s | 5.7 MB 00:10 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY fedora/gpgkey | 3.2 kB 00:00 ... Importing GPG key 0xE8E40FDE "Fedora (13) <fedora@fedoraproject.org%gt;" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 Installing : corosync-1.2.1-1.fc13.x86_64 8/21 Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 Installing : libnet-1.1.4-3.fc12.x86_64 13/21 Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 Installed: corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 Dependency Installed: OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 PyXML.x86_64 0:0.8.4-17.fc13 cluster-glue.x86_64 0:1.0.2-1.fc13 cluster-glue-libs.x86_64 0:1.0.2-1.fc13 corosynclib.x86_64 0:1.2.1-1.fc13 heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 libesmtp.x86_64 0:1.0.4-12.fc12 libibverbs.x86_64 0:1.1.3-4.fc13 libmlx4.x86_64 0:1.0.1-5.fc13 libnet.x86_64 0:1.1.4-3.fc12 librdmacm.x86_64 0:1.0.10-2.fc13 lm_sensors-libs.x86_64 0:3.1.2-2.fc13 net-snmp.x86_64 1:5.5-12.fc13 net-snmp-libs.x86_64 1:5.5-12.fc13 openhpi-libs.x86_64 0:2.14.1-3.fc13 pacemaker-libs.x86_64 0:1.1.1-1.fc13 perl-TimeDate.noarch 1:1.20-1.fc13 resource-agents.x86_64 0:3.0.10-1.fc13 Complete! [root@pcmk-1 ~]#
Before You Continue Repeat the Installation steps so that you have 2 Fedora nodes with the cluster software installed. For the purposes of this document, the additional node is called pcmk-2 with address 192.168.122.42.
Setup
Finalize Networking Confirm that you can communicate with the two new nodes:
Verify Connectivity by IP address ping -c 3 192.168.122.102 [root@pcmk-1 ~]# ping -c 3 192.168.122.102 PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data. 64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms 64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms 64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms --- 192.168.122.102 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms
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:
Set up /etc/hosts entries grep pcmk /etc/hosts [root@pcmk-1 ~]# grep pcmk /etc/hosts 192.168.122.101 pcmk-1.clusterlabs.org pcmk-1 192.168.122.102 pcmk-2.clusterlabs.org pcmk-2
We can now verify the setup by again using ping:
Verify Connectivity by Hostname ping -c 3 pcmk-2 [root@pcmk-1 ~]# ping -c 3 pcmk-2 PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data. 64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms 64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms 64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms --- pcmk-2.clusterlabs.org ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms
Configure SSH 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. Unprotected SSH keys, those without a password, are not recommended for servers exposed to the outside world. Create a new key and allow anyone with that key to log in:
Creating and Activating a new SSH Key [root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N "" Generating public/private dsa key pair. Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 91:09:5c:82:5a:6a:50:08:4e:b2:0c:62:de:cc:74:44 root@pcmk-1.clusterlabs.org The key's randomart image is: +--[ DSA 1024]----+ |==.ooEo.. | |X O + .o o | | * A + | | + . | | . S | | | | | | | | | +-----------------+ [root@pcmk-1 ~]# cp .ssh/id_dsa.pub .ssh/authorized_keys [root@pcmk-1 ~]#
Install the key on the other nodes and test that you can now run commands remotely, without being prompted
Installing the SSH Key on Another Host [root@pcmk-1 ~]# scp -r .ssh pcmk-2: The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established. RSA key fingerprint is b1:2b:55:93:f1:d9:52:2b:0f:f2:8a:4e:ae:c6:7c:9a. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'pcmk-2,192.168.122.102' (RSA) to the list of known hosts. root@pcmk-2's password: id_dsa.pub 100% 616 0.6KB/s 00:00 id_dsa 100% 672 0.7KB/s 00:00 known_hosts 100% 400 0.4KB/s 00:00 authorized_keys 100% 616 0.6KB/s 00:00 [root@pcmk-1 ~]# ssh pcmk-2 -- uname -n pcmk-2 [root@pcmk-1 ~]#
Short Node Names 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: [root@pcmk-1 ~]# uname -n pcmk-1.clusterlabs.org [root@pcmk-1 ~]# dnsdomainname clusterlabs.org 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. [root@pcmk-1 ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=pcmk-1.clusterlabs.org GATEWAY=192.168.122.1 All we need to do now is strip off the domain name portion, which is stored elsewhere anyway. [root@pcmk-1 ~]# sed -i.bak 's/\.[a-z].*//g' /etc/sysconfig/network Now confirm the change was successful. The revised file contents should look something like this. [root@pcmk-1 ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=pcmk-1 GATEWAY=192.168.122.1 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. [root@pcmk-1 ~]# source /etc/sysconfig/network [root@pcmk-1 ~]# hostname $HOSTNAME Now check the machine is using the correct names [root@pcmk-1 ~]# uname -n pcmk-1 [root@pcmk-1 ~]# dnsdomainname clusterlabs.org Now repeat on pcmk-2.
Configuring Corosync Choose a port number and multi-cast http://en.wikipedia.org/wiki/Multicast address. http://en.wikipedia.org/wiki/Multicast_address 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 For this document, I have chosen port 4000 and used 226.94.1.1 as the multi-cast address. [root@pcmk-1 ~]# export ais_port=4000 [root@pcmk-1 ~]# export ais_mcast=226.94.1.1 Next we automatically determine the hosts address. By not using the full address, we make the configuration suitable to be copied to other nodes. [root@pcmk-1 ~]# export ais_addr=`ip addr | grep "inet " | tail -n 1 | awk '{print $4}' | sed s/255/0/` Display and verify the configuration options [root@pcmk-1 ~]# env | grep ais_ ais_mcast=226.94.1.1 ais_port=4000 ais_addr=192.168.122.0 Once you’re happy with the chosen values, update the Corosync configuration [root@pcmk-1 ~]# cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf [root@pcmk-1 ~]# sed -i.bak "s/.*mcastaddr:.*/mcastaddr:\ $ais_mcast/g" /etc/corosync/corosync.conf [root@pcmk-1 ~]# sed -i.bak "s/.*mcastport:.*/mcastport:\ $ais_port/g" /etc/corosync/corosync.conf [root@pcmk-1 ~]# sed -i.bak "s/.*bindnetaddr:.*/bindnetaddr:\ $ais_addr/g" /etc/corosync/corosync.conf Finally, tell Corosync to start Pacemaker [root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk service { # Load the Pacemaker Cluster Resource Manager name: pacemaker ver: 0 } END The final configuration should look something like the sample in the appendix.
Propagate the Configuration Now we need to copy the changes so far to the other node: [root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done corosync.conf 100% 1528 1.5KB/s 00:00 hosts 100% 281 0.3KB/s 00:00 [root@pcmk-1 ~]#
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Shared-Storage.xml b/doc/Clusters_from_Scratch/en-US/Ch-Shared-Storage.xml index e91df2104d..770810e9fb 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Shared-Storage.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Shared-Storage.xml @@ -1,528 +1,528 @@ %BOOK_ENTITIES; ]> - + Replicated Storage with DRBD 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.
Install the DRBD Packages 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: [root@pcmk-1 ~]# yum install -y drbd-pacemaker Loaded plugins: presto, refresh-packagekit Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated --> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64 --> Running transaction check ---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================= Package Arch Version Repository Size ================================================================================= Installing: drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k Installing for dependencies: drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k Transaction Summary ================================================================================= Install 2 Package(s) Upgrade 0 Package(s) Total download size: 184 k Installed size: 427 k Downloading Packages: Setting up and reading Presto delta metadata fedora/prestodelta | 1.7 kB 00:00 Processing delta metadata Package(s) data still to download: 184 k (1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 (2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 --------------------------------------------------------------------------------- Total 45 kB/s | 184 kB 00:04 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 Installed: drbd-pacemaker.x86_64 0:8.3.7-2.fc13 Dependency Installed: drbd-utils.x86_64 0:8.3.7-2.fc13 Complete! [root@pcmk-1 ~]#
Configure DRBD Before we configure DRBD, we need to set aside some disk for it to use.
Create A Partition for DRBD 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. [root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup   Logical volume "drbd-demo" created [root@pcmk-1 ~]# lvs   LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert   drbd-demo VolGroup -wi-a- 1.00G                                         lv_root   VolGroup -wi-ao   7.30G                                         lv_swap   VolGroup -wi-ao 500.00M Repeat this on the second node, be sure to use the same size partition. [root@pcmk-2 ~]# lvs   LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert   lv_root VolGroup -wi-ao   7.30G                                         lv_swap VolGroup -wi-ao 500.00M                                       [root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup   Logical volume "drbd-demo" created [root@pcmk-2 ~]# lvs   LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert   drbd-demo VolGroup -wi-a- 1.00G                                         lv_root   VolGroup -wi-ao   7.30G                                         lv_swap   VolGroup -wi-ao 500.00M
Write the DRBD Config There is no series of commands for build a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf Detailed information on the directives used in this configuration (and other alternatives) is available from http://www.drbd.org/users-guide/ch-configure.html Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide. global {   usage-count yes; } common {   protocol C; } resource wwwdata {   meta-disk internal;   device    /dev/drbd1;   syncer {     verify-alg sha1;   }   net {     allow-two-primaries;   }   on pcmk-1 {     disk      /dev/mapper/VolGroup-drbd--demo;     address   192.168.122.101:7789;   }   on pcmk-2 {     disk      /dev/mapper/VolGroup-drbd--demo;     address   192.168.122.102:7789;   } } TODO: Explain the reason for the allow-two-primaries option
Initialize and Load DRBD With the configuration in place, we can now perform the DRBD initialization [root@pcmk-1 ~]# drbdadm create-md wwwdata md_offset 12578816 al_offset 12546048 bm_offset 12541952 Found some data  ==> This might destroy existing data! <== Do you want to proceed? [need to type 'yes' to confirm] yes Writing meta data... initializing activity log NOT initialized bitmap New drbd meta data block successfully created. success Now load the DRBD kernel module and confirm that everything is sane [root@pcmk-1 ~]# modprobe drbd [root@pcmk-1 ~]# drbdadm up wwwdata [root@pcmk-1 ~]# cat /proc/drbd version: 8.3.6 (api:88/proto:86-90) GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----     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 [root@pcmk-1 ~]# Repeat on the second node drbdadm --force create-md wwwdata modprobe drbd drbdadm up wwwdata cat /proc/drbd [root@pcmk-2 ~]# drbdadm --force create-md wwwdata Writing meta data... initializing activity log NOT initialized bitmap New drbd meta data block successfully created. success [root@pcmk-2 ~]# modprobe drbd WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. [root@pcmk-2 ~]# drbdadm up wwwdata [root@pcmk-2 ~]# cat /proc/drbd version: 8.3.6 (api:88/proto:86-90) GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----     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 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: [root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata [root@pcmk-1 ~]# cat /proc/drbd version: 8.3.6 (api:88/proto:86-90) GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57  1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----     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         [=====>..............] sync'ed: 33.4% (10064/12248)K         finish: 0:00:37 speed: 240 (240) K/sec [root@pcmk-1 ~]# cat /proc/drbd version: 8.3.6 (api:88/proto:86-90) GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57  1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----     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 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.
Populate DRBD with Data [root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1 mke2fs 1.41.4 (27-Jan-2009) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 3072 inodes, 12248 blocks 612 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=12582912 2 block groups 8192 blocks per group, 8192 fragments per group 1536 inodes per group Superblock backups stored on blocks:         8193 Writing inode tables: done                             Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first.  Use tune2fs -c or -i to override. Now mount the newly created filesystem so we can create our index file mount /dev/drbd1 /mnt/ cat <<-END >/mnt/index.html <html> <body>My Test Site - drbd</body> </html> END umount /dev/drbd1 [root@pcmk-1 ~]# mount /dev/drbd1 /mnt/ [root@pcmk-1 ~]# cat <<-END >/mnt/index.html > <html> > <body>My Test Site - drbd</body> > </html> > END [root@pcmk-1 ~]# umount /dev/drbd1
Configure the Cluster for DRBD One handy feature of the crm shell is that you can use it in interactive mode to make several changes atomically. First we launch the shell. The prompt will change to indicate you’re in interactive mode. [root@pcmk-1 ~]# crm cib crm(live)# 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. cib crm(live)# cib new drbd INFO: drbd shadow CIB created crm(drbd)# Now we can create our DRBD clone and display the revised configuration. crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \         op monitor interval=60s crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \         clone-max=2 clone-node-max=1 notify=true crm(drbd)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \ params drbd_resource="wwwdata" \ op monitor interval="60s" primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" ms WebDataClone WebData \ meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation website-with-ip inf: WebSite ClusterIP order apache-after-ip inf: ClusterIP WebSite property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” 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. crm(drbd)# cib commit drbd INFO: commited 'drbd' shadow CIB to the cluster crm(drbd)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Tue Sep  1 09:37:13 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 3 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 WebSite (ocf::heartbeat:apache):        Started pcmk-1 Master/Slave Set: WebDataClone Masters: [ pcmk-2 ] Slaves: [ pcmk-1 ] Include details on adding a second DRBD resource 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). Once again we’ll use the shell’s interactive mode [root@pcmk-1 ~]# crm crm(live)# cib new fs INFO: fs shadow CIB created crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/mapper/VolGroup-drbd--demo" directory="/var/www/html" fstype="ext4" crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start 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. crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite Time to review the updated configuration: [root@pcmk-1 ~]# crm configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype="ext4" primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip="192.168.122.101" cidr_netmask="32" \         op monitor interval="30s" ms WebDataClone WebData \         meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" location prefer-pcmk-1 WebSite 50: pcmk-1 colocation WebSite-with-WebFS inf: WebSite WebFS colocation fs_on_drbd inf: WebFS WebDataClone:Master colocation website-with-ip inf: WebSite ClusterIP order WebFS-after-WebData inf: WebDataClone:promote WebFS:start order WebSite-after-WebFS inf: WebFS WebSite order apache-after-ip inf: ClusterIP WebSite property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="false" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100” After reviewing the new configuration, we again upload it and watch the cluster put it into effect. crm(fs)# cib commit fs INFO: commited 'fs' shadow CIB to the cluster crm(fs)# quit bye [root@pcmk-1 ~]# crm_mon ============ Last updated: Tue Sep  1 10:08:44 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 4 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1 WebSite (ocf::heartbeat:apache): Started pcmk-1 Master/Slave Set: WebDataClone         Masters: [ pcmk-1 ]         Slaves: [ pcmk-2 ] WebFS (ocf::heartbeat:Filesystem): Started pcmk-1
Testing Migration 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. 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. [root@pcmk-1 ~]# crm node standby [root@pcmk-1 ~]# crm_mon ============ Last updated: Tue Sep  1 10:09:57 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 4 Resources configured. ============ Node pcmk-1: standby Online: [ pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 WebSite (ocf::heartbeat:apache):        Started pcmk-2 Master/Slave Set: WebDataClone         Masters: [ pcmk-2 ]         Stopped: [ WebData:1 ] WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2 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. [root@pcmk-1 ~]# crm node online [root@pcmk-1 ~]# crm_mon ============ Last updated: Tue Sep  1 10:13:25 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 4 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ] ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2 WebSite (ocf::heartbeat:apache):        Started pcmk-2 Master/Slave Set: WebDataClone         Masters: [ pcmk-2 ]         Slaves: [ pcmk-1 ] WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2 Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1.
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Stonith.xml b/doc/Clusters_from_Scratch/en-US/Ch-Stonith.xml index f0ed47e962..3aaf5cdbcd 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Stonith.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Stonith.xml @@ -1,161 +1,161 @@ %BOOK_ENTITIES; ]> - + Configure STONITH
Why You Need STONITH 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. 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. 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.
What STONITH Device Should You Use It is crucial that the STONITH device can allow the cluster to differentiate between a node failure and a network one. 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. Likewise, any device that relies on the machine being active (such as SSH-based “devices” used during testing) are inappropriate.
Configuring STONITH Find the correct driver: stonith -L 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 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: lrmadmin -M stonith {type} pacemaker The output should be XML formatted text containing additional parameter descriptions 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 Create a clone from the primitive resource if the device can shoot more than one node and supports multiple simultaneous connections. Upload it into the CIB using cibadmin: cibadmin -C -o resources --xml-file stonith.xml
Example 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 stonith -t external/ibmrsa -n [root@pcmk-1 ~]# stonith -t external/ibmrsa -n hostname  ipaddr  userid  passwd  type Assuming we know the username and password for the management interface, we would create a STONITH resource with the shell [root@pcmk-1 ~]# crm crm(live)# cib new stonith INFO: stonith shadow CIB created crm(stonith)# configure primitive rsa-fencing stonith::external/ibmrsa \         params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \         op monitor interval="60s" crm(stonith)# configure clone Fencing rsa-fencing And finally, since we disabled it earlier, we need to re-enable STONITH crm(stonith)# configure property stonith-enabled="true" crm(stonith)# configure show node pcmk-1 node pcmk-2 primitive WebData ocf:linbit:drbd \         params drbd_resource="wwwdata" \         op monitor interval="60s" primitive WebFS ocf:heartbeat:Filesystem \         params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2” primitive WebSite ocf:heartbeat:apache \         params configfile="/etc/httpd/conf/httpd.conf" \         op monitor interval="1min" primitive ClusterIP ocf:heartbeat:IPaddr2 \         params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \         op monitor interval="30s" primitive dlm ocf:pacemaker:controld \         op monitor interval="120s" primitive gfs-control ocf:pacemaker:controld \    params daemon=”gfs_controld.pcmk” args=”-g 0” \         op monitor interval="120s" primitive rsa-fencing stonith::external/ibmrsa \ params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \ op monitor interval="60s" ms WebDataClone WebData \         meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" clone Fencing rsa-fencing clone WebFSClone WebFS clone WebIP ClusterIP  \         meta globally-unique=”true” clone-max=”2” clone-node-max=”2” clone WebSiteClone WebSite clone dlm-clone dlm \         meta interleave="true" clone gfs-clone gfs-control \         meta interleave="true" colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone colocation fs_on_drbd inf: WebFSClone WebDataClone:Master colocation gfs-with-dlm inf: gfs-clone dlm-clone colocation website-with-ip inf: WebSiteClone WebIP order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start order WebSite-after-WebFS inf: WebFSClone WebSiteClone order apache-after-ip inf: WebIP WebSiteClone order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone order start-gfs-after-dlm inf: dlm-clone gfs-clone property $id="cib-bootstrap-options" \         dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \         cluster-infrastructure="openais" \         expected-quorum-votes=”2” \         stonith-enabled="true" \         no-quorum-policy="ignore" rsc_defaults $id="rsc-options" \         resource-stickiness=”100”
diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Tools.xml b/doc/Clusters_from_Scratch/en-US/Ch-Tools.xml index 3ceb283a5b..832819d423 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Tools.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Tools.xml @@ -1,122 +1,122 @@ %BOOK_ENTITIES; ]> - + Using Pacemaker Tools 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. 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. Take some time to familiarize yourself with what it can do. [root@pcmk-1 ~]# crm --help usage:     crm [-D display_type]     crm [-D display_type] args     crm [-D display_type] [-f file]     Use crm without arguments for an interactive session.     Supply one or more arguments for a "single-shot" use.     Specify with -f a file which contains a script. Use '-' for     standard input or use pipe/redirection.     crm displays cli format configurations using a color scheme     and/or in uppercase. Pick one of "color" or "uppercase", or     use "-D color,uppercase" if you want colorful uppercase.     Get plain output by "-D plain". The default may be set in     user preferences (options). Examples:     # crm -f stopapp2.cli     # crm < stopapp2.cli     # crm resource stop global_www     # crm status 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. Additionally, the Pacemaker version and supported cluster stack(s) is available via the --version option. [root@pcmk-1 ~]# crm_mon --version crm_mon 1.0.5 for OpenAIS and Heartbeat (Build: 462f1569a43740667daf7b0f6b521742e9eb8fa7) Written by Andrew Beekhof [root@pcmk-1 ~]# crm_mon --help crm_mon - Provides a summary of cluster's current state. Outputs varying levels of detail in a number of different formats. Usage: crm_mon mode [options] Options:  -?, --help                 This text  -$, --version             Version information  -V, --verbose             Increase debug output Modes:  -h, --as-html=value        Write cluster status to the named file  -w, --web-cgi             Web mode with output suitable for cgi  -s, --simple-status       Display the cluster status once as a simple one line output (suitable for nagios)  -S, --snmp-traps=value    Send SNMP traps to this station  -T, --mail-to=value        Send Mail alerts to this user.  See also --mail-from, --mail-host, --mail-prefix Display Options:  -n, --group-by-node       Group resources by node  -r, --inactive             Display inactive resources  -f, --failcounts           Display resource fail counts  -o, --operations           Display resource operation history  -t, --timing-details       Display resource operation history with timing details Additional Options:  -i, --interval=value           Update frequency in seconds  -1, --one-shot                 Display the cluster status once on the console and exit  -N, --disable-ncurses          Disable the use of ncurses  -d, --daemonize                Run in the background as a daemon  -p, --pid-file=value           (Advanced) Daemon pid file location  -F, --mail-from=value          Mail alerts should come from the named user  -H, --mail-host=value          Mail alerts should be sent via the named host  -P, --mail-prefix=value        Subjects for mail alerts should start with this string  -E, --external-agent=value     A program to run when resource operations take place.  -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone). Examples: Display the cluster´s status on the console with updates as they occur:         # crm_mon Display the cluster´s status on the console just once then exit:         # crm_mon Display your cluster´s status, group resources by node, and include inactive resources in the list:         # crm_mon --group-by-node --inactive Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:         # crm_mon --daemonize --as-html /path/to/docroot/filename.html Start crm_mon as a background daemon and have it send email alerts:         # crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com Start crm_mon as a background daemon and have it send SNMP alerts:         # crm_mon --daemonize --snmp-traps snmptrapd.example.com Report bugs to pacemaker@oss.clusterlabs.org 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. diff --git a/doc/Clusters_from_Scratch/en-US/Ch-Verification.xml b/doc/Clusters_from_Scratch/en-US/Ch-Verification.xml index 6ce337ef2b..3e2f5056f5 100644 --- a/doc/Clusters_from_Scratch/en-US/Ch-Verification.xml +++ b/doc/Clusters_from_Scratch/en-US/Ch-Verification.xml @@ -1,108 +1,108 @@ %BOOK_ENTITIES; ]> - + Verify Cluster Installation
Verify Corosync Installation Start Corosync on the first node [root@pcmk-1 ~]# /etc/init.d/corosync start Starting Corosync Cluster Engine (corosync): [ OK ] Check the cluster started correctly and that an initial membership was able to form [root@pcmk-1 ~]# grep -e "corosync.*network interface" -e "Corosync Cluster Engine" -e "Successfully read main configuration file" /var/log/messages Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service. Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'. [root@pcmk-1 ~]# grep TOTEM /var/log/messages Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP). Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0). Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up. Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed. With one node functional, its now safe to start Corosync on the second node as well. [root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start Starting Corosync Cluster Engine (corosync): [ OK ] [root@pcmk-1 ~]# Check the cluster formed correctly [root@pcmk-1 ~]# grep TOTEM /var/log/messages Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP). Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0). Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up. Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed. Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.
Verify Pacemaker Installation Now that we have confirmed that Corosync is functional we can check the rest of the stack. [root@pcmk-1 ~]# grep pcmk_startup /var/log/messages Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615 Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9 Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1 Now verify the Pacemaker processes have been started [root@pcmk-1 ~]# ps axf   PID TTY      STAT   TIME COMMAND     2 ?        S<     0:00 [kthreadd]     3 ?        S<     0:00  \_ [migration/0] ... lots of processes ...  2166 pts/0    SLl    0:01 /usr/sbin/corosync  2172 ?        SLs    0:00  \_ /usr/lib64/heartbeat/stonithd  2173 pts/0    S      0:00  \_ /usr/lib64/heartbeat/cib  2174 pts/0    S      0:00  \_ /usr/lib64/heartbeat/lrmd  2175 pts/0    S      0:00  \_ /usr/lib64/heartbeat/attrd  2176 pts/0    S      0:00  \_ /usr/lib64/heartbeat/pengine  2177 pts/0    S      0:00  \_ /usr/lib64/heartbeat/crmd And finally, check for any ERRORs during startup, there shouldn’t be any, and display the cluster’s status. [root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources [root@pcmk-1 ~]# crm_mon ============ Last updated: Thu Aug 27 16:54:55 2009 Stack: openais Current DC: pcmk-1 - partition with quorum Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7 2 Nodes configured, 2 expected votes 0 Resources configured. ============ Online: [ pcmk-1 pcmk-2 ]
diff --git a/doc/Clusters_from_Scratch/en-US/Clusters_from_Scratch.xml b/doc/Clusters_from_Scratch/en-US/Clusters_from_Scratch.xml index fee4c564d8..ac2767ab78 100644 --- a/doc/Clusters_from_Scratch/en-US/Clusters_from_Scratch.xml +++ b/doc/Clusters_from_Scratch/en-US/Clusters_from_Scratch.xml @@ -1,24 +1,24 @@ %BOOK_ENTITIES; ]> - + diff --git a/doc/Clusters_from_Scratch/en-US/Preface.xml b/doc/Clusters_from_Scratch/en-US/Preface.xml index 78f61530a5..edea6784e1 100644 --- a/doc/Clusters_from_Scratch/en-US/Preface.xml +++ b/doc/Clusters_from_Scratch/en-US/Preface.xml @@ -1,13 +1,13 @@ %BOOK_ENTITIES; ]> - + Preface diff --git a/doc/Clusters_from_Scratch/en-US/Revision_History.xml b/doc/Clusters_from_Scratch/en-US/Revision_History.xml index b36cde468b..0b546aff5c 100644 --- a/doc/Clusters_from_Scratch/en-US/Revision_History.xml +++ b/doc/Clusters_from_Scratch/en-US/Revision_History.xml @@ -1,19 +1,19 @@ %BOOK_ENTITIES; ]> - + Revision History 1 Mon May 17 2010 AndrewBeekhofandrew@beekhof.net Import from Pages.app diff --git a/doc/Clusters_from_Scratch/it-IT/Ap-Configuration.po b/doc/Clusters_from_Scratch/it-IT/Ap-Configuration.po new file mode 100644 index 0000000000..0e512bb0f0 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ap-Configuration.po @@ -0,0 +1,341 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-07-14 16:33+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Riepilogo delle configurazioni" + +#. Tag: title +#, no-c-format +msgid "Final Cluster Configuration" +msgstr "Configurazione finale del cluster" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Node List" +msgstr "Lista nodi" + +#. Tag: para +#, no-c-format +msgid "The list of cluster nodes is automatically populated by the cluster." +msgstr "La lista dei nodi è popolata automaticamente dal cluster." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"node pcmk-1\n" +"node pcmk-2\n" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Cluster Options" +msgstr "Opzioni del cluster" + +#. Tag: para +#, no-c-format +msgid "This is where the cluster automatically stores some information about the cluster" +msgstr "Qui è dove il cluster registra automaticamente alcune informazioni in merito al cluster" + +#. Tag: para +#, no-c-format +msgid "dc-version - the version (including upstream source-code hash) of Pacemaker used on the DC" +msgstr "dc-version - la versione (incluso l'hash del codice sorgente originale) di Pacemaker usata nel DC" + +#. Tag: para +#, no-c-format +msgid "cluster-infrastructure - the cluster infrastructure being used (heartbeat or openais)" +msgstr "cluster-infrastructure - l'infrastruttura cluster utilizzata (heartbeat or openais)" + +#. 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 - il numero massimo di nodi che ci si aspetta facciano parte del cluster" + +#. Tag: para +#, no-c-format +msgid "and where the admin can set options that control the way the cluster operates" +msgstr "e dove l'amministratore può assegnare valori alle opzioni che controllano il modo in cui il cluster opera" + +#. Tag: para +#, no-c-format +msgid "stonith-enabled=true - Make use of STONITH" +msgstr "stonith-enabled=true - Fai uso di 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 - Ignora la perdita di quorum e continua ad ospitare le risorse." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Resources" +msgstr "Risorse" + +#. Tag: title +#, no-c-format +msgid "Default Options" +msgstr "Opzioni di default" + +#. Tag: para +#, no-c-format +msgid "Here we configure cluster options that apply to every resource." +msgstr "Qui vengono configurate le opzioni del cluster che vanno applicati a tutte le risorse" + +#. Tag: para +#, no-c-format +msgid "resource-stickiness - Specify the aversion to moving resources to other machines" +msgstr "resource-stickiness - Specifica l'impossibilità o meno di muovere risorse ad altre macchine" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"rsc_defaults $id=\"rsc-options\" \\\n" +"        resource-stickiness=”100”\n" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fencing" +msgstr "Fencing" + +#. Tag: para +#, no-c-format +msgid "TODO: Add text here" +msgstr "TODO: Aggiungi il testo qui" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Service Address" +msgstr "Servizio Address" + +#. 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 "Gli utenti dei servizi forniti dal cluster richiedono un indirizzo invariato con cui accedervi. Inoltre, l'indirizzo viene clonato così da essere attivo su entrambi i nodi. Una regola iptables (creata come parte del resource agent) viene utilizzata per assicurarsi che ogni richiesta venga processata unicamente da una delle due istanze clone. Le opzioni meta aggiuntive indicano al cluste che si necessità di due istanze del clone (una \"request bucket\" per ogni nodo) e che se un nodo muote, allora il nodo rimanente deve erogarle entrambe." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "TODO: The RA should check for globally-unique=true when cloned" +msgstr "TODO: Il RA quando clonato dovrebbe controllare l'opzione globally-unique=true" + +#. Tag: title +#, no-c-format +msgid "Distributed lock manager" +msgstr "Distributed lock manager" + +#. 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 "I filesystem cluster come GFS2 richiedono un lock manager. Questo servizio avvia il demone che fornisce applicazioni user-spacc (come il demone GFS2) con accesso al lock manager interno al kernel. Dato che si necessita di averlo attivo su tutti nodi del cluste, questo viene clonato." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "TODO: Confirm interleave is no longer needed" +msgstr "TODO: La conferma del parametro interleave non è più necessaria" + +#. Tag: title +#, no-c-format +msgid "GFS control daemon" +msgstr "Demone di controllo di 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 inoltre necessita di un ponte user-space/kernel eseguito su ogni nodo. Così qui è presente un altro clone, sebbene questa volta va scpecificato che può girare su macchine che tanno eseguendo anche il DLM (colocation constraint) e che questo può solamente essere avviato dopo che il DLM viene a sua volta avviato (order constraint). Inoltre, il clone gfs-control deve preoccuparsi unicamente dell'istanza DLM a cui è associato, così non è necessario valorizzare l'opzione 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 "" + +#. Tag: title +#, no-c-format +msgid "DRBD - Shared Storage" +msgstr "DRBD - Storage condiviso" + +#. 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 "Qui viene definito il servizio DRBD e specificata quale risorsa DRBD (da drbd.conf) questi debba controllare. La risorsa viene definita come master/slave e, per rispettare il setup active/active, entrambe le istanze vengono abilitate ad essere promosse specificando master-max=2. Viene valorizzata inoltre l'opzione notify, così che il cluster comunicherà all'agent DRBD quando il suo nodo cambierà stato." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Cluster Filesystem" +msgstr "Cluster Filesystem" + +#. 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 "Il Cluster Filesystem si assicura che i file vengano letti e scritti nella maniera corretta. E' necessario specificare il block device (fornito da DRBD), dove si vuole effettuare l'operazione di mount e che viene utilizzato GFS2. Di nuovo questo è un clone, perché è inteso essere attivo su entrambi i nodi. La constraint aggiuntiva assicura che la risorsa possa essere avviata su nodi con gfs-control attivo e istanze 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 "" + +#. 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 "Infine viene definito il servizio Apache. E' necessario solamente specificare al cluster dove trovare il file di configurazione principale e costringere questo ad essere eseguito su nodi con il filesystem richiesto montato e l'indirizzo IP attivo." + +#. 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 "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ap-Corosync-Conf.po b/doc/Clusters_from_Scratch/it-IT/Ap-Corosync-Conf.po new file mode 100644 index 0000000000..31d67d0857 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ap-Corosync-Conf.po @@ -0,0 +1,101 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-07-14 15:18+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Listato di 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:      2500\n" +"\n" +"        # Turn off the virtual synchrony filter\n" +"        vsftype:        none\n" +"\n" +"        # Number of messages that may be sent by one processor on receipt of the token\n" +"        max_messages:   20\n" +"\n" +"        # Stagger sending the node join messages by 1..send_join ms\n" +"        send_join: 45\n" +"\n" +"        # Limit generated nodeids to 31-bits (positive signed integers)\n" +"        clear_node_high_bit: yes\n" +"\n" +"        # Disable encryption\n" +"        secauth:        off\n" +"\n" +"        # How many threads to use for encryption/decryption\n" +"        threads:           0\n" +"\n" +"        # Optionally assign a fixed node id (integer)\n" +"        # nodeid:         1234\n" +"\n" +"        interface {\n" +"                ringnumber: 0\n" +"\n" +"                # The following values need to be set based on your environment\n" +"                bindnetaddr: 192.168.122.0\n" +"                mcastaddr: 226.94.1.1\n" +"                mcastport: 4000\n" +"        }\n" +"}\n" +"\n" +"logging {\n" +"        debug: off\n" +"        fileline: off\n" +"        to_syslog: yes\n" +"        to_stderr: off\n" +"        syslog_facility: daemon\n" +"        timestamp: on\n" +"}\n" +"\n" +"amf {\n" +"        mode: disabled\n" +"}\n" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ap-Reading.po b/doc/Clusters_from_Scratch/it-IT/Ap-Reading.po new file mode 100644 index 0000000000..4b26ce3c0c --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ap-Reading.po @@ -0,0 +1,54 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-07-14 15:17+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Approfondimenti" + +#. Tag: para +#, no-c-format +msgid "Project Website" +msgstr "Sito del progetto" + +#. Tag: para +#, no-c-format +msgid "http://www.clusterlabs.org" +msgstr "http://www.clusterlabs.org" + +#. Tag: para +#, no-c-format +msgid "Cluster Commands" +msgstr "Comandi cluster" + +#. Tag: para +#, no-c-format +msgid "A comprehensive guide to cluster commands has been written by Novell and can be found at:" +msgstr "Una guida generale è stata redatta da Novell e si trova qui:" + +#. 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/it-IT/Author_Group.po b/doc/Clusters_from_Scratch/it-IT/Author_Group.po new file mode 100644 index 0000000000..573b389f87 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Author_Group.po @@ -0,0 +1,29 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-07-07T15:51:40\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: firstname +#, no-c-format +msgid "Andrew" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "" + +#. Tag: orgname +#, no-c-format +msgid "Red Hat" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Book_Info.po b/doc/Clusters_from_Scratch/it-IT/Book_Info.po new file mode 100644 index 0000000000..409e0f003e --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Book_Info.po @@ -0,0 +1,69 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-07-14 14:59+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Clusters from Scratch" + +#. Tag: subtitle +#, no-c-format +msgid "Creating Active/Passive and Active/Active Clusters on Fedora" +msgstr "Creare cluster Active/Passive e Active/Active su Fedora" + +#. 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 "Lo scopo di questo documento è di fornire una guida completa per costruire un cluster active/passive con Pacemaker e mostrare come può essere convertito in una configurazione active/active. " + +#. Tag: para +#, no-c-format +msgid "The example cluster will use:" +msgstr "Il cluster userà:" + +#. Tag: para +#, no-c-format +msgid "&DISTRO; &DISTRO_VERSION; as the host operating system" +msgstr "&DISTRO; &DISTRO_VERSION; come sistema operativo" + +#. Tag: para +#, no-c-format +msgid "Corosync to provide messaging and membership services," +msgstr "Corosync per fornire i servizi di messaging e membership," + +#. Tag: para +#, no-c-format +msgid "Pacemaker to perform resource management," +msgstr "Pacemaker per la gestione delle risorse" + +#. Tag: para +#, no-c-format +msgid "DRBD as a cost-effective alternative to shared storage," +msgstr "DRBD come alternativa prezzo/prestazioni allo storage condiviso," + +#. Tag: para +#, no-c-format +msgid "GFS2 as the cluster filesystem (in active/active mode)" +msgstr "GFS2 come cluster filesystem (nella modalità active/active)" + +#. Tag: para +#, no-c-format +msgid "The crm shell for displaying the configuration and making changes" +msgstr "La shell crm per la visualizzazione della configurazione e l'attuazione delle modifiche" + +#. 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 "Per via del processo grafico di installazione di Fedora, diversi screenshot sono inclusi. Ad ogni modo questa guida è composta primariamente dai comandi, dalle ragioni per cui questi vengono eseguiti e l'output da loro prodotto." + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Active-Active.po b/doc/Clusters_from_Scratch/it-IT/Ch-Active-Active.po new file mode 100644 index 0000000000..29779429af --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Active-Active.po @@ -0,0 +1,860 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-08-04 11:23+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Conversion to Active/Active" +msgstr "Conversione in Active/Active" + +#. Tag: title +#, no-c-format +msgid "Requirements" +msgstr "Requisiti" + +#. 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 "Il requisito primario di un cluster Active/Active è che i dati richiesti dai servizi siano disponibili, simultaneamente, su entrambe le macchine. Pacemaker non impone requisiti su come questa funzionalità venga gestita, è possibile utilizzare una SAN (Storage Area Network) se ne si possiede una, ad ogni modo è possibile utilizzare anche DRBD, visto che supporta configurazioni multi-Primary." + +#. 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 "L'unico inconveniente sta nel fatto di dover utilizzare un filesystem cluster-aware (e quello usato in precedenza, ext4, non è uno di questi). Sia OCFS2 che GFS2 sono supportati, la scelta cadrà su GFS2, disponibile con &DISTRO; &DISTRO_VERSION; ." + +#. Tag: title +#, no-c-format +msgid "Install a Cluster Filesystem - GFS2" +msgstr "Installare un cluster filesystem - GFS2" + +#. Tag: para +#, no-c-format +msgid "The first thing to do is install gfs2-utils on each machine." +msgstr "La prima cosa da fare è quella di installare il pacchetto gfs2-utils su ciascuna macchina." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Setup Pacemaker-GFS2 Integration" +msgstr "Configurare l'integrazione fra Pacemaker e 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 necessita di due servizi attivi, il primo è l'interfaccia user-space al distribuited lock manager (DLM) del kernel. DLM è utilizzato per regolare quale/i nodo/i possono accedere a determinati file (e quando) e si integra con Pacemaker per ottenere informazioni sulla membership del nodo L'elenco dei nodi che il cluster ritiene essere disponibili ed il supporto al fencing." + +#. 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 "Il secondo servizio è il demone di controllo di GFS2, che si integra a sua volta con Pacemaker per ottenere i dati di membership dei nodi." + +#. Tag: title +#, no-c-format +msgid "Add the DLM service" +msgstr "Aggiunta del servizio 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 "Il demone di controllo DLM deve funzionare su tutti i nodi attivi del cluster, quindi verrà utilizzata la modalità interattiva della shell per creare una risorsa clonata." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the meaning of the interleave option" +msgstr "TODO: Spiegare il significato dell'opzione interleave" + +#. 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 "Prima di caricare la configurazione nel cluster questa va revisionata, la shell andrà terminata e si dovrà osservare il responso del cluster" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Add the GFS2 service" +msgstr "Aggiunta del servizio GFS2" + +#. Tag: para +#, no-c-format +msgid "Once the DLM is active, we can add the GFS2 control daemon." +msgstr "Una volta che il DLM è attivo, è possibile aggiungere il demone di controllo GFS2." + +#. Tag: para +#, no-c-format +msgid "Use the crm shell to create the gfs-control cluster resource:" +msgstr "La risorsa gfs-control viene creata utilizzando la shell crm: " + +#. 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 "" + +#. 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 "A questo punto bisogna assicurarsi che Pacemaker avvii il servizio gfs-control sui nodi che erogano una copia del servizio dlm (creato in precedenza) funzionante." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone\n" +"crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone\n" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(gfs-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource=\"wwwdata\" \\\n" +"        op monitor interval=\"60s\"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Create a GFS2 Filesystem" +msgstr "Creazione un Filesystem GFS2" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "Preparazione" + +#. 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 "Prima di fare qualsiasi operazione sulla partizione esistente bisogna accertarsi che questa sia smontata. Ciò è possibile indicando al cluster di fermare la risorsa WebFS. Questo garantirà che altre risorse (nel nostro caso, Apache) che utilizzano WebFS non sono solamente fermate, ma sono state fermate nell'ordine corretto." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 15:18:06 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Note that both Apache and WebFS have been stopped." +msgstr "Notare come sia Apache che WebFS sono stati fermati." + +#. Tag: title +#, no-c-format +msgid "Create and Populate an GFS2 Partition" +msgstr "Creazione e popolamento della partizione 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 "Ora che il cluster e le sue parti stanno funzionando senza problemi, è possibile creare la partizione 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 "Questa operazione cancellerà qualsiasi contenuto sul device DRBD. Assicurarsi quindi di avere una copia di qualsiasi dato cruciale." + +#. Tag: para +#, no-c-format +msgid "We need to specify a number of additional parameters when creating a GFS2 partition." +msgstr "Nella creazione di una partizione GFS2 è necessario specificare diversi parametri aggiuntivi." + +#. 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 "Per cominciare, va utilizzata l'opzione -p per specificare la volontà di utilizzare il DLM del Kernel. Proseguendo, l'opzione -j indica che la risorsa dovrà riservare abbastanza spazio per due journal (uno per ogni nodo che accede al filesystem)." + +#. 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 "Infine verrà utilizzato -t per specificare il nome della lock table. Il formato di questo campo è clustername:fsname. Per fsname è sufficiente scegliere un nome unico e descrittivo e dato che non è stato specificato ancora clustername è possibile usare il default (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 "Per specificare un nome alternativo per il cluster è necessario localizzare la sezione del servizio che contiene \"name: pacemaker\" nel file corosync.conf, inserendo la seguente linea in qualsiasi posizione del blocco:" + +#. Tag: para +#, no-c-format +msgid "clustername: myname" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do this on each node in the cluster and be sure to restart them before continuing." +msgstr "Questa operazione andrà eseguita in ciascun nodo, accertandosi di effettuare un restart dello stesso prima di continuare." + +#. 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 "" + +#. 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 "A questo punto è possibile ripopolare il nuovo filesystem con i dati (le pagine web). Per ora verrà creata una versione alternativa dell'home page." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Reconfigure the Cluster for GFS2" +msgstr "Riconfigurare il cluster per 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 "" + +#. 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 "Ora che abbiamo creato nuovamente la risorsa è possibile ricreare tutte le constraint che questa utilizzava. Questo perché la shell rimuoverà automaticamente qualsiasi constraint che riferisca a 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 "" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Reconfigure Pacemaker for Active/Active" +msgstr "Riconfigurare Pacemaker per l'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 "Quasi tutto è a posto. Le versioni recenti di DRBD supportano l'operare in modalità Primary/Primary ed inoltre il filesystem utilizzato è cluster aware. Tutto ciò che rimane da fare è configurare nuovamente il cluster per sfruttare queste peculiarità." + +#. Tag: para +#, no-c-format +msgid "This will involve a number of changes, so we’ll again use interactive mode." +msgstr "Questo richiederà diversi cambiamenti, pertanto verrà utilizzata ancora una volta la modalità interattiva." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"[root@pcmk-1 ~]# cib new active\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There’s no point making the services active on both locations if we can’t reach them, so lets first clone the IP address. Cloned IPaddr2 resources use an iptables rule to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster how many instances of the clone we want (one “request bucket” for each node) and that if all other nodes fail, then the remaining node should hold all of them. Otherwise the requests would be simply discarded." +msgstr "Non ha senso rendere i servizi attivi in entrambi i posti se questi non possono essere utilizzati, quindi per prima cosa va clonato l'indirizzo IP. Le risorse IPaddr2 clonate utilizzano una regola iptables per assicurarsi che ogni richiesta venga processato da solamente una delle due istanze clonate. Le meta opzioni addizionali indicano al cluster quante istanze del clone sono necessarie (una \"request bucket\" per ciascun nodo) e come queste debbano essere gestite tutte dal nodo rimanente in caso di fallimento di tutti gli altri. In caso contrario le richieste verranno semplicemente scartate." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we must tell the ClusterIP how to decide which requests are processed by which hosts. To do this we must specify the clusterip_hash parameter." +msgstr "Ora bisogna indicare a ClusterIP come decidere quali richieste sono processate e da quali host. Per fare ciò è necessario definire il parametro clusterip_hash." + +#. Tag: para +#, no-c-format +msgid "Open the ClusterIP resource" +msgstr "Aprire la risorsa ClusterIP" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# configure edit  ClusterIP" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "And add the following to the params line" +msgstr "ed aggiungere il seguente testo alla linea dei parametri" + +#. Tag: screen +#, no-c-format +msgid "clusterip_hash=\"sourceip\"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "So that the complete definition looks like:" +msgstr "In modo che la definizione completa sia simile alla seguente:" + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Here is the full transcript" +msgstr "Questa è la trascrizione completa" + +#. 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 "" + +#. 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 "Notare come qualsiasi constraint riferita a ClusterIP sia stata aggiornata per utilizzare invece WebIP. Questo è un vantaggio aggiuntivo nell'utilizzo della shell crm." + +#. 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 "A questo punto è necessario convertire le risorse filesystem ed Apache in cloni. Di nuovo, la shell aggiornerà automaticamente ogni constraint interessata." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# configure clone WebFSClone WebFS\n" +"crm(active)# configure clone WebSiteClone WebSite\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The last step is to tell the cluster that it is now allowed to promote both instances to be Primary (aka. Master)." +msgstr "L'ultimo passo è quello di comunicare al cluster che ora è consentito promuovere entrambe le istanze a PRimary (o Master)." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(active)# configure edit WebDataClone\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Change master-max to 2" +msgstr "Cambiare master-max a 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 "" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Testing Recovery" +msgstr "Testare il recovery" + +#. Tag: para +#, no-c-format +msgid "TODO: Put one node into standby to demonstrate failover" +msgstr "TODO: mettere un nodo in standby per dimostrare il failover" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Active-Passive.po b/doc/Clusters_from_Scratch/it-IT/Ch-Active-Passive.po new file mode 100644 index 0000000000..9b71eb7efd --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Active-Passive.po @@ -0,0 +1,502 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-08-02 17:19+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Creare un cluster Active/Passive" + +#. Tag: title +#, no-c-format +msgid "Exploring the Existing Configuration" +msgstr "Esplorare la configurazione esistente" + +#. 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 "Quando Pacemaker viene avviato automatica registra il numero ed i dettagli dei nodi nel cluster, così come lo stack è utilizzato e la versione di Pacemaker utilizzata." + +#. Tag: para +#, no-c-format +msgid "This is what the base configuration should look like." +msgstr "Ecco come dovrebbe apparire la configurazione base." + +#. 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 "" + +#. 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 "Per quanti non sono spaventati da XML è possibile visualizzare la configurazione raw aggiungenfo \"xml\" al comando precedente." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "The last XML you’ll see in this document" +msgstr "Questo è l'ultimo XML ad essere utilizzato nel documento." + +#. Tag: para +#, no-c-format +msgid "Before we make any changes, its a good idea to check the validity of the configuration." +msgstr "Prima di effettuare qualsiasi cambiamento è buona norma controllare la validità della configurazione." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm_verify -L\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" +"Errors found during check: config not valid\n" +"  -V may provide more details\n" +"[root@pcmk-1 ~]#\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As you can see, the tool has found some errors." +msgstr "Come si può notare il tool ha trovato qualche errore." + +#. 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 "Al fine di garantire la sicurezza dei propri dati Se il dato è corrotto, ha poco senso renderlo ancora disponibile Pacemaker supporta STONITH un meccanismo comune di fencing del nodo utilizzato per assicurare l'integrità dei dati attraverso lo spegnimento dei nodi \"cattivi\". . In ogni caso Pacemaker è conscio quando nessuna configurazione STONITH è stata implementata e riporta questo come un problema (questo perché il cluster non sarà in grado di fare progressi in situazioni in cui vi è necessità di fencing di nodi)." + +#. 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 "Per adesso la funzionalità verrà disabilitata e configurata in seguito nella sezione Configurare STONITH. E' importante notare che l'uso di STONITH è altamente consigliato, disabilitarlo indica al cluster di dare per scontato che i nodi falliti vengano spenti. Alcuni rivenditori potrebbero rifiutarsi di supportare cluster che hanno STONITH disabilitato." + +#. Tag: para +#, no-c-format +msgid "To disable STONITH, we set the stonith-enabled cluster option to false." +msgstr "Per disabilitare STONITH è necessario impostare l'opzione stonith-enabled a false." + +#. Tag: para +#, no-c-format +msgid "crm configure property stonith-enabled=false" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "crm_verify -L" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "With the new cluster option set, the configuration is now valid." +msgstr "Con la nuova opzione impostata la configurazione del cluster è ora valida." + +#. Tag: title +#, no-c-format +msgid "Adding a Resource" +msgstr "Aggiungere una risorsa" + +#. 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 "La prima cosa da fare è configurare un indirizzo IP. Indipendentemente da dove i servizi cluster stanno funzionando è necessario un indirizzo per raggiungerli. Verrà scelto ed aggiunto 192.168.122.101 come indirizzo virtuale, con il nome di ClusterIP e verrà indicato al cluster di controllarlo ogni 30 secondi." + +#. Tag: para +#, no-c-format +msgid "The chosen address must not be one already associated with a physical node" +msgstr "L'indirizzo scelto non dovrà essere già associato ad un nodo fisico" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=192.168.122.101 cidr_netmask=32 \\ \n" +"        op monitor interval=30s\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The other important piece of information here is ocf:heartbeat:IPaddr2. This tells Pacemaker three things about the resource you want to add. The first field, ocf, is the standard to which the resource script conforms to and where to find it. The second field is specific to OCF resources and tells the cluster which namespace to find the resource script in, in this case heartbeat. The last field indicates the name of the resource script." +msgstr "L'altra informazione presentata qui è ocf:heartbeat:IPaddr2. Esso comunica a Pacemaker tre informazioni in merito alla risorsa che viene aggiunta. Il primo campo, ocf, indica lo standard a cui lo script della risorsa si conforma e dove trovarlo. Il secondo campo è specifico delle risorse OCF e indica al cluster in quale namespace trovare lo script, in questo caso heartbeat. L'ultimo campo indica il nome dello script della risorsa." + +#. Tag: para +#, no-c-format +msgid "To obtain a list of the available resource classes, run" +msgstr "Per ottenere una lista delle classi di risorse disponibili, lanciare" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm ra classes\n" +"heartbeat\n" +"lsb\n" +"ocf / heartbeat pacemaker\n" +"stonith\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To then find all the OCF resource agents provided by Pacemaker and Heartbeat, run" +msgstr "Per poi trovare tutte i resource agent OCF disponibili con Pacemaker ed Heartbeat, lanciare" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm ra list ocf pacemaker\n" +"ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld\n" +"ping           pingd          \n" +"[root@pcmk-1 ~]# crm ra list ocf heartbeat\n" +"AoEtarget              AudibleAlarm           ClusterMon             Delay\n" +"Dummy                  EvmsSCC                Evmsd                  Filesystem\n" +"ICP                    IPaddr                 IPaddr2                IPsrcaddr\n" +"LVM                    LinuxSCSI              MailTo                 ManageRAID\n" +"ManageVE               Pure-FTPd              Raid1                  Route\n" +"SAPDatabase            SAPInstance            SendArp                ServeRAID\n" +"SphinxSearchDaemon     Squid                  Stateful               SysInfo\n" +"VIPArip                VirtualDomain          WAS                    WAS6\n" +"WinPopup               Xen                    Xinetd                 anything\n" +"apache                 db2                    drbd                   eDir88\n" +"iSCSILogicalUnit       iSCSITarget            ids                    iscsi\n" +"ldirectord             mysql                  mysql-proxy            nfsserver\n" +"oracle                 oralsnr                pgsql                  pingd\n" +"portblock              rsyncd                 scsi2reservation       sfex\n" +"tomcat                 vmware                 \n" +"[root@pcmk-1 ~]#\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now verify that the IP resource has been added and display the cluster’s status to see that it is now active." +msgstr "A questo punto va verificato come la risorsa IP sia stata aggiunta e visualizzato lo stato del cluster per vedere che ora è attiva." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Perform a Failover" +msgstr "Effettuare un Failover" + +#. Tag: para +#, no-c-format +msgid "Being a high-availability cluster, we should test failover of our new resource before moving on." +msgstr "Trattandosi di un cluster ad alta-affidabilità, è necessario testare il failover della nostra nuova risorsa prima di proseguire." + +#. Tag: para +#, no-c-format +msgid "First, find the node on which the IP address is running." +msgstr "Per prima cosa va identificato da quale nodo l'indirizzo IP è erogato" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm resource status ClusterIP\n" +"resource ClusterIP is running on: pcmk-1\n" +"[root@pcmk-1 ~]#\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Shut down Corosync on that machine." +msgstr "Spegnere Corosync su questa macchina" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync): [ OK ]\n" +"Waiting for services to unload: [ OK ]\n" +"[root@pcmk-1 ~]#\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once Corosync is no longer running, go to the other node and check the cluster status with crm_mon." +msgstr "Una volta che Corosync non sta più funzionando, è possibile verificare sull'altro nodo lo stato del cluster attraverso 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 "" + +#. 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 "Ci sono tre cose da evidenziare in merito all'attuale stato del cluster. La prima è che, come aspettato, pcmk-1 è ora offline. Ad ogni modo è possibile anche notare come ClusterIP non sta funzionando da nessuna parte!" + +#. Tag: title +#, no-c-format +msgid "Quorum and Two-Node Clusters" +msgstr "Quorum e Cluster a due nodi" + +#. 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 "Questo accade perché il cluster non ha più un quorum, come si può notare dalla scritta \"partition WITHOUT quorum\" (evidenziato in verde) nell'output mostrato. Il comportamento di default di Pacemaker nel caso in cui il cluster non abbia un quorum, al fine di ridurre la possibilità di corruzione di dati, prevede lo stop di tutte le risorse." + +#. 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 "Un cluster viene definito con quorum quando più della metà dei nodi conosciuti o aspettati sono online o, attraverso la matematica, quando la seguente equazione è vera:" + +#. Tag: para +#, no-c-format +msgid "total_nodes - 1 < 2 * active_nodes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Therefore a two-node cluster only has quorum when both nodes are running, which is no longer the case for our cluster. This would normally make the creation of a two-node cluster pointless Actually some would argue that two-node clusters are always pointless, but that is an argument for another time. , however it is possible to control how Pacemaker behaves when quorum is lost. In particular, we can tell the cluster to simply ignore quorum altogether." +msgstr "Pertanto, un cluster a due nodi ha quorum solo quando entrambi i nodi sono in esecuzione, e questo non è più il caso del cluster d'esempio. Questo normalmente renderebbe la creazione di cluster a due nodi inutile Attualmente molti potrebbero puntualizzare che i cluster a due nodi sono sempre inutili, ma questo è argomento di future discussioni. , ad ogni modo è possibile controllare come Pacemaker gestisce la perdita di quorum. In particolare è possibile indicare al cluster di ignorare semplicemente l'assenza di quorum. " + +#. 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 "" + +#. 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 "Dopo alcuni istanti il cluster avvierà l'indirizzo IP sui nodi rimanenti. E' da notare che il cluster non ha comunque il quorum." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:30:18 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now simulate node recovery by restarting the cluster stack on pcmk-1 and check the cluster’s status." +msgstr "Viene quindi simulato il recovery del nodo attraverso il riavvio dello stack cluster su pcmk-1 ed il controllo dello stato del cluster." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ] \n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:32:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Here we see something that some may consider surprising, the IP is back running at its original location!" +msgstr "Qui appare qualcosa che potrebbe sembrare sorprendente: l'IP è tornato attivo sul nodo originale!" + +#. Tag: title +#, no-c-format +msgid "Prevent Resources from Moving after Recovery" +msgstr "Evitare che le risorse si muovano dopo il recovery" + +#. 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 "In alcune circostanze è altamente desiderabile prevenire che risorse sane vengano mosse nel cluster. Lo spostamento delle risorse richiede in genere un periodo di downtime e per servizi complessi, come i database Oracle, tale periodo può essere piuttosto lungo." + +#. 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 "Per ovviare a questo Pacemaker possiede il concetto di resource stickiness, che controlla quanto un servizio preferisca rimanere dov'è. E' possibile associare il concetto al \"costo\" di ogni downtime. Pacemaker assume di default che non ci sia costo associato allo spostamento di una risorsa, questo per garantire un piazzamento delle risorse \"ottimale Va sottolineato che la definizione \"ottimale\" di Pacemaker potrebbe non sempre concordare con quella umana. L'ordine con cui Pacemaker processa la lista delle risorse e dei nodi crea preferenze implicite (richieste per creare soluzioni stabili) in situazioni dove l'amministratore non ha esplicitamente specificato qualcosa. ”. E' possibile specificare stickiness differenti per ogni risorsa, ma generalmente è sufficiente modificare il valore di default." + +#. 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 "" + +#. 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 "Se ora si effettua nuovamente il test di failover si osserverà che come da pronostico ClusterIP verrà spostata su pcmk-2 quando pcmk-1 viene messo offline." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync):               [  OK  ]\n" +"Waiting for services to unload:                            [  OK  ]\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1\n" +"============\n" +"Last updated: Fri Aug 28 15:39:38 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "However when we bring pcmk-1 back online, ClusterIP now remains running on pcmk-2." +msgstr "Quando però pcmk-1 torna online ClusterIP rimane su 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 "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Apache.po b/doc/Clusters_from_Scratch/it-IT/Ch-Apache.po new file mode 100644 index 0000000000..b7d5af1797 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Apache.po @@ -0,0 +1,544 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:40\n" +"PO-Revision-Date: 2010-08-03 12:16+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 - Aggiungere ulteriori servizi" + +#. 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 "Ora che è stato realizzato un semplice, ma funzionale cluster a due nodi active/passive, è tempo di aggiungere servizi reali. Si partirà con Apache poiché molti cluster lo includono ed è relativamente semplice da configurare. " + +#. Tag: title +#, no-c-format +msgid "Installation" +msgstr "Installazione" + +#. Tag: para +#, no-c-format +msgid "Before continuing, we need to make sure Apache is installed on both hosts." +msgstr "Prima di cominciare è necessario assicurarsi che Apache sia installato su entrambi gli host." + +#. 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 "" + +#. 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 "Inoltre il cluster necessita del tool wget per assicurarsi la capacità di controllare lo stato del server Apache." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "Preparazione" + +#. 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 "Prima di tutto è necessario creare la pagina che Apache servirà. Su Fedora la docroot di default di Apache è /var/www/html, qui verrà creato il file index." + +#. 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 "" + +#. 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 "Per il momento l'architettura verrà semplificata in modo da servire unicamente un sito statico e sincronizzare manualmente i dati tra i due nodi. Quindi lo stesso comando andrà lanciato su 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 "" + +#. Tag: title +#, no-c-format +msgid "Update the Configuration" +msgstr "Aggiornare la configurazione" + +#. 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 "A questo punto Apache è pronto a funzionare, non rimane che aggiungere il servizio al cluster. La risorsa sarà nominata WebSite. Verrà utilizzato uno script OCF chiamato apache all'interno del namespace heartbeat Confrontare la chiave usata qui ocf:heartbeat:apache con quella usata in precedenza per l'indirizzo IP: ocf:heartbeat:IPaddr2 , l'unico altro parametro richiesto è il path al file di configurazione principale di Apache, inoltre verrà indicato al cluster di controllare una volta al minuto che il servizio apache sia in esecuzione." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "After a short delay, we should see the cluster start apache" +msgstr "Dopo una breve attesa il cluster dovrbbe avviare 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 "" + +#. Tag: para +#, no-c-format +msgid "Wait a moment, the WebSite resource isn’t running on the same host as our IP address!" +msgstr "Attenzione però, la risorsa WebSite non sta girando sullo stesso host dell'indirizzo IP!" + +#. Tag: title +#, no-c-format +msgid "Ensuring Resources Run on the Same Host" +msgstr "Assicurarsi che le risorse funzionino sullo stesso host" + +#. 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 "Per ridurre il carico su ogni macchina, Pacemaker generalmente tende a distribuire le risorse configurate sui nodi. E' possibile comunicare al cluster che due risorse sono relazionate e necessitano di funzionare sullo stesso host (oppure no). A questo punto il cluster verrà istruito in merito al fatto che WebSite può solamente funzionare sull'host che eroga ClusterIP. Se ClusterIP non è attiva in nessun nodo, a WebSite non verrà permesso di funzionare ovunque." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Controlling Resource Start/Stop Ordering" +msgstr "Controllare l'ordinamento di start e stop di una risorsa" + +#. 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 "Quando Apache si avvia, effettua l'associazione con gli indirizzi IP disponibili. Questo implica che non sarà a conoscenza di indirizzi aggiunti successivamente, quindi è necessario assicurarsi che ClusterIP sia attiva prima di avviare WebSite. Questo è possibile attraverso una ordering constraint. A questa verrà assegnato un nome (scelto in maniera descrittiva, come apache-after-ip), indicato che è obbligatoria (in modo che qualsiasi recovery per ClusterIP implicherà il recovery di WebSite) ed al suo interno verrà definito che l'ordine per l'avvio dei servizi è quello indicato." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Specifying a Preferred Location" +msgstr "Specificare una Location preferita" + +#. 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 non si basa su una sorta di simmetria tra i nodi hardware, quindi si potrebbe prevedere di avere anche una macchina più potente di un'altra. In questi casi ha senso erogare le risorse su questa macchina, se è disponibile. Per fare ciò viene creata una location constraint. Anche in questo caso viene assegnato un nome descrittivo (prefer-pcmk-1), specificata la risorsa che girerà qui (WebSite), quanto peso avrà per girare qui (verrà utilizzato 50, ma in una situazione a due nodi ogni valore superiore allo 0 andrà bene) ed il nome dell'host." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Wait a minute, the resources are still on pcmk-2!" +msgstr "Attenzione però, le risorse sono comunque su 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 "Anche se al momento viene preferito pcmk-1 a pcmk-2, questa preferenza è (intenzionalmente) minore dello stickiness della risorsa (quanto è stato preferito non avere un downtime superfluo)." + +#. Tag: para +#, no-c-format +msgid "To see the current placement scores, you can use a tool called ptest" +msgstr "Per osservare gli attuali punteggi di piazzamento è possibile usare un tool denominato ptest" + +#. Tag: para +#, no-c-format +msgid "ptest -sL" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Include output" +msgstr "Output incluso" + +#. Tag: para +#, no-c-format +msgid "There is a way to force them to move though..." +msgstr "Esiste un modo per spostare forzatamente le risorse..." + +#. Tag: title +#, no-c-format +msgid "Manually Moving Resources Around the Cluster" +msgstr "Spostamento manuale delle risorse all'interno del cluster" + +#. 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 "C'è sempre la necessità da parte di un amministratore di soprassedere il cluster e forzare le risorse a spostarsi in una posizione specifica. E' possibile ignorare felicemente le location constraint create sopra, fornendo il nome della risorsa che si vuole spostare e la destinazione della stessa, il comando farà il resto." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Highlighted is the automated constraint used to move the resources to pcmk-1" +msgstr "Viene evidenziata la constraint automatizzata utilizzata per spostare la risorsa in pcmk-1" + +#. Tag: title +#, no-c-format +msgid "Giving Control Back to the Cluster" +msgstr "Restituire il controllo nuovamente al cluster" + +#. 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 "Una volta terminata una qualsiasi attività che richiede lo spostamento della risorsa in pcmk-1, in questo caso nessuna, è possibile consentire al cluster di riprendere le normali operazioni con il comando unmove. Dal momento che in precedenza è stata configurata una default stickiness, la risorsa rimarra in 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 "" + +#. 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 "E' da notare come la constraint automatizzata non esiste più. Se viene controllato lo stato del cluster è possibile osservare che, così come aspettato, le risorse sono ancora attiva su 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 "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Installation.po b/doc/Clusters_from_Scratch/it-IT/Ch-Installation.po new file mode 100644 index 0000000000..ec16b7300a --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Installation.po @@ -0,0 +1,1008 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-07-16 17:16+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Installazione" + +#. Tag: title +#, no-c-format +msgid "OS Installation" +msgstr "Installazione del sistema operativo" + +#. 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 "Informazioni dettagliate su come installare Fedora sono disponibili presso http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/ in numerose lingue. La versione abbreviata è la seguente..." + +#. 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 "Puntando il browser al link http://fedoraproject.org/en/get-fedora-all, individuare la sezione Install Media e scaricare il DVD di installazione adatto al proprio hardware." + +#. 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 "Masterizzare l'immagine in un DVD http://docs.fedoraproject.org/readme-burning-isos/en-US.html ed avviare da questo media. Oppure utilizzare l'immagine per avviare una virtual machine come illustrato qui. Dopo aver cliccato sulla schermata di benvenuto, selezionare la propria lingua ed il layout della tastiera 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 "Installazione di Fedora - Benvenuto" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Good choice" +msgstr "Installazione di Fedora: Buona scelta" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Storage Devices" +msgstr "Installazione di Fedora - Storage Devices" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Storage Devices" +msgstr "Installazione di Fedora: Storage Devices" + +#. 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 "Assegnare un nome alla macchina. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-networkconfig-fedora.html Il dominio utilizzato in questo progetto sarà clusterlabs.org." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Hostname" +msgstr "Installazione di Fedora - Hostname" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose a hostname" +msgstr "Installazione di Fedora: Selezionare un hostname" + +#. 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 "Verrà poi richiesto di indicare la locazione fisica della macchina ed una password di 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 "Selezionare dove Fedora verrà installata. http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html Non viene prestato nessun controllo sui dati esistenti, accettando le ozioni di default che prevedono Fedora utilizzi l'intero disco. Ad ogni modo verrà riservato dello spazio per DRBD, verrà quindi selezionata la casella Review and modify partitioning layout." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Type" +msgstr "Installazione di Fedora - Tipo di installazione" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose an installation type" +msgstr "Installazione di Fedora: Selezionare un tipo di installazione" + +#. 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 "Di default, Fedora dedicherà tutto lo spazio alla partizione di root /.Questa verrà ridotta al fine di poter usare DRBD." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Default Partitioning" +msgstr "Installazione di Fedora - Partizionamento di default" + +#. Tag: para +#, no-c-format +msgid "The finalized partition layout should look something like the diagram below." +msgstr "Lo schema di partizionamento finale dovrà somigliare a quanto illustrato nel diagramma sotto." + +#. 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 "Se è nelle intenzioni di chi legge segure le parti di questa guida che trattano DRBD o GFS2 andrà riservato almeno 1Gb di spazio in ciascuna macchina da cui verrà tratto il volume condiviso." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Partitioning" +msgstr "Installazione di Fedora - Personalizzazione delle partizioni" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Create a partition to use (later) for website data" +msgstr "Installazione di Fedora: Creare una partizione da usare (dopo) per i dati del sito web" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bootloader" +msgstr "Installazione di Fedora - Bootloader" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Unless you have a strong reason not to, accept the default bootloader location" +msgstr "Installazione di Fedora: A meno che non si abbiano sensate ragioni per non farlo è bene accettare le impostazioni di default del 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 "Scegliere quindi quale software si vorrà installare. Cambiare la selezione a Web Server dal momento che si ha in programma di usare Apache. Non abilitare gli aggiornamenti, questo verrà fatto (insieme all'installazione di ulteriore software extra necessario) dopo. Dopo aver cliccato next, Fedora si installerà." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Software" +msgstr "Installazione di Fedora - Software" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Software selection" +msgstr "Installazione di Fedora: Selezione del software" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installing" +msgstr "Installazione di Fedora - Installazione" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Go grab something to drink, this may take a while" +msgstr "Installazione di Fedora: Prendere qualcosa da bere, questa parte dura abbastanza" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Complete" +msgstr "Installazione di Fedora - Installazione completata" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Stage 1, completed" +msgstr "Installazione di Fedora: Stage 1, completato" + +#. 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 "Quano il nodo si riavvia seguire le istruzioni sullo schermo http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/ch-firstboot.html per creare un utenza di sistema e sistemare l`ora." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - First Boot" +msgstr "Installazione di Fedora - Primo avvio" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Create Non-privileged User" +msgstr "Installazione di Fedora - Creazione utente non privilegiato" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon" +msgstr "Installazione di Fedora: Nella creazione di un utente non privilegiato si prenda nota della password, presto servirà" + +#. 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 "E' caldamente consigliato di abilitare NTP sui nodi del cluster, ci si assicurerà così che tutti i nodi siano settati sull'ora attuale e la lettura dei log sarà molto più semplice." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Date and Time" +msgstr "Installazione di Fedora - Data ed ora" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Enable NTP to keep the times on all your nodes consistent" +msgstr "Installazione di Fedora: Abilitare NTP per mantenere consistente l'ora su tutti i nodi" + +#. 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 "Cliccare su next fino alla comparsa della schermata di login. Cliccare sull'utente creato e fornire la password stabilita." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Networking" +msgstr "Installazione di Fedora - Personalizzare la rete" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click here to configure networking" +msgstr "Installazione di Fedora: Cliccare qui per configurare la rete" + +#. 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 "Non accettare i settaggi di default della rete. Le macchine cluster non devono MAI ottenere un indirizzo IP via DHCP. In questo caso verrà utilizzato gli indirizzi internal della rete clusterlab.org." + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Specify Network Preferences" +msgstr "Installazione di Fedora - Specificare le preferenze di rete" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Specify network settings for your machine, never choose DHCP" +msgstr "Installazione di Fedora: Specificare le preferenze di rete per la propria macchina, non selezionare mai DHCP" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Activate Networking" +msgstr "Installazione di Fedora - Attivare la rete" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click the big green button to activate your changes" +msgstr "Installazione di Fedora: cliccare il grosso bottone verde per attivare le modifiche" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bring up the Terminal" +msgstr "Installazione di Fedora - Aprire il terminale" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Down to business, fire up the command line" +msgstr "Installazione di Fedora: al lavoro, avviando la linea di comando" + +#. 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 "Questa era l'ultima schermata, da qui in poi il lavoro verrà effettuato da terminale." + +#. Tag: title +#, no-c-format +msgid "Cluster Software Installation" +msgstr "Installazione del software cluster" + +#. 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 "Attraverso la finestra terminale appena aperta diventare super utente (\"root\") attraverso il comando su. Verrà richiesta la password richiesta in fase di installazione." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[beekhof@pcmk-1 ~]$ su -\n" +"Password:\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Note that the username (the text before the @ symbol) now indicates we’re running as the super user “root”." +msgstr "Notare che lo username (il testo che precede il simbolo @) ora indica che l'utente utilizzato è \"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 "" + +#. Tag: title +#, no-c-format +msgid "Security Shortcuts" +msgstr "Considerazioni sulla sicurezza" + +#. 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 "Per semplificare questa guida e focalizzare gli aspetti direttamente correlati al custering sarà necessario disabilitare il firewall della macchina e l'installazione di SELinux. Entrambe queste azioni creano limiti nella sicurezza e non dovrebbero essere applicate a macchine esposte al mondo." + +#. Tag: para +#, no-c-format +msgid "TODO: Create an Appendix that deals with (at least) re-enabling the firewall." +msgstr "TODO: Creare un Appendice che valuti (almeno) la riabilitazione del 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 "" + +#. 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 "Sarà necessario riavviare per rendere effettive le modifiche a SELinux. In alterniva qualcosa di simile a questo apparirà all'avvio di 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" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Install the Cluster Software" +msgstr "Installazione del software cluster" + +#. 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 "Dalla versione 12, Fedora fornisce versioni recenti di tutto quanto si necessita, quindi avviando la shell lanciare:" + +#. 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 | 22 kB 00:00 \n" +"fedora-debuginfo/metalink | 16 kB 00:00 \n" +"fedora-debuginfo | 3.2 kB 00:00 \n" +"fedora-debuginfo/primary_db | 1.4 MB 00:04 \n" +"fedora-source/metalink | 22 kB 00:00 \n" +"fedora-source | 3.2 kB 00:00 \n" +"fedora-source/primary_db | 3.0 MB 00:05 \n" +"updates/metalink | 26 kB 00:00 \n" +"updates | 2.6 kB 00:00 \n" +"updates/primary_db | 1.1 kB 00:00 \n" +"updates-debuginfo/metalink | 18 kB 00:00 \n" +"updates-debuginfo | 2.6 kB 00:00 \n" +"updates-debuginfo/primary_db | 1.1 kB 00:00 \n" +"updates-source/metalink | 25 kB 00:00 \n" +"updates-source | 2.6 kB 00:00 \n" +"updates-source/primary_db | 1.1 kB 00:00 \n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" +"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" +"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" +"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" +"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" +"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" +"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" +"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" +"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" +"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" +"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" +"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" +"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" +"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" +"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" +"--> Running transaction check\n" +"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +" " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"==========================================================================================\n" +" Package Arch Version Repository Size\n" +"==========================================================================================\n" +"Installing:\n" +" corosync x86_64 1.2.1-1.fc13 fedora 136 k\n" +" pacemaker x86_64 1.1.1-1.fc13 fedora 543 k\n" +"Installing for dependencies:\n" +" OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k\n" +" PyXML x86_64 0.8.4-17.fc13 fedora 906 k\n" +" cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k\n" +" cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k\n" +" corosynclib x86_64 1.2.1-1.fc13 fedora 145 k\n" +" heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k\n" +" heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k\n" +" libesmtp x86_64 1.0.4-12.fc12 fedora 54 k\n" +" libibverbs x86_64 1.1.3-4.fc13 fedora 42 k\n" +" libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k\n" +" libnet x86_64 1.1.4-3.fc12 fedora 49 k\n" +" librdmacm x86_64 1.0.10-2.fc13 fedora 22 k\n" +" lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k\n" +" net-snmp x86_64 1:5.5-12.fc13 fedora 295 k\n" +" net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M\n" +" openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k\n" +" pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k\n" +" perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k\n" +" resource-agents x86_64 3.0.10-1.fc13 fedora 357 k\n" +"\n" +"Transaction Summary\n" +"=========================================================================================\n" +"Install 21 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 5.7 M\n" +"Installed size: 20 M\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"updates-testing/prestodelta | 164 kB 00:00 \n" +"fedora/prestodelta | 150 B 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 5.7 M\n" +"(1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 \n" +"(2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 \n" +"(3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 \n" +"(4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 \n" +"(5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 \n" +"(6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 \n" +"(7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 \n" +"(8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 \n" +"(9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 \n" +"(10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 \n" +"(11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 \n" +"(12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 \n" +"(13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 \n" +"(14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 \n" +"(15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 \n" +"(16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 \n" +"(17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 \n" +"(18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 \n" +"(19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 \n" +"(20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 \n" +"(21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 \n" +"----------------------------------------------------------------------------------------\n" +"Total 539 kB/s | 5.7 MB 00:10 \n" +"warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY\n" +"fedora/gpgkey | 3.2 kB 00:00 ... \n" +"Importing GPG key 0xE8E40FDE \"Fedora (13) <fedora@fedoraproject.org%gt;\" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" +" " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 \n" +" Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 \n" +" Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 \n" +" Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 \n" +" Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 \n" +" Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 \n" +" Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 \n" +" Installing : corosync-1.2.1-1.fc13.x86_64 8/21 \n" +" Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 \n" +" Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 \n" +" Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 \n" +" Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 \n" +" Installing : libnet-1.1.4-3.fc12.x86_64 13/21 \n" +" Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 \n" +" Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 \n" +" Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 \n" +" Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 \n" +" Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 \n" +" Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 \n" +" Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 \n" +" Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 \n" +"\n" +"Installed:\n" +" corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 \n" +"\n" +"Dependency Installed:\n" +" OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 \n" +" PyXML.x86_64 0:0.8.4-17.fc13 \n" +" cluster-glue.x86_64 0:1.0.2-1.fc13 \n" +" cluster-glue-libs.x86_64 0:1.0.2-1.fc13 \n" +" corosynclib.x86_64 0:1.2.1-1.fc13 \n" +" heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" libesmtp.x86_64 0:1.0.4-12.fc12 \n" +" libibverbs.x86_64 0:1.1.3-4.fc13 \n" +" libmlx4.x86_64 0:1.0.1-5.fc13 \n" +" libnet.x86_64 0:1.1.4-3.fc12 \n" +" librdmacm.x86_64 0:1.0.10-2.fc13 \n" +" lm_sensors-libs.x86_64 0:3.1.2-2.fc13 \n" +" net-snmp.x86_64 1:5.5-12.fc13 \n" +" net-snmp-libs.x86_64 1:5.5-12.fc13 \n" +" openhpi-libs.x86_64 0:2.14.1-3.fc13 \n" +" pacemaker-libs.x86_64 0:1.1.1-1.fc13 \n" +" perl-TimeDate.noarch 1:1.20-1.fc13 \n" +" resource-agents.x86_64 0:3.0.10-1.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]# \n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Before You Continue" +msgstr "Prima di continuare" + +#. Tag: para +#, no-c-format +msgid "Repeat the Installation steps so that you have 2 Fedora nodes with the cluster software installed." +msgstr "Ripetere i passi dell'installazione così da avere due nodi Fedora con il software cluster installato." + +#. 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 "Per rispettae gli obiettivi di questa documentazione il nodo aggiuntivo verrà chiamato pcmk-2 con indirizzo 192.168.122.42." + +#. Tag: title +#, no-c-format +msgid "Setup" +msgstr "Setup" + +#. Tag: title +#, no-c-format +msgid "Finalize Networking" +msgstr "Definire la rete" + +#. Tag: para +#, no-c-format +msgid "Confirm that you can communicate with the two new nodes:" +msgstr "Verificare la reciproca comunicazione dei due nodi:" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by IP address" +msgstr "Verifica della connettività dall'indirizzo IP" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +" ping -c 3 192.168.122.102\n" +"[root@pcmk-1 ~]# ping -c 3 192.168.122.102\n" +"PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data.\n" +"64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms\n" +"\n" +"--- 192.168.122.102 ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2000ms\n" +"rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we need to make sure we can communicate with the machines by their name. If you have a DNS server, add additional entries for the three machines. Otherwise, you’ll need to add the machines to /etc/hosts . Below are the entries for my cluster nodes:" +msgstr "Ora è necessario avere la certezza che i nodi possano comunicare fra loro attraverso il nome. Se si possiede un server DNS andranno aggiunti i nomi delle tre macchine. In alternativa i nomi andranno aggiunti in /etc/hosts. Ecco riportate le impostazioni sui nodi cluster del progetto:" + +#. Tag: title +#, no-c-format +msgid "Set up /etc/hosts entries" +msgstr "Settaggio /etc/hosts" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +" grep pcmk /etc/hosts\n" +"[root@pcmk-1 ~]# grep pcmk /etc/hosts\n" +"192.168.122.101 pcmk-1.clusterlabs.org pcmk-1\n" +"192.168.122.102 pcmk-2.clusterlabs.org pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We can now verify the setup by again using ping:" +msgstr "Ora è possibile verificare il setup usando nuovamente ping:" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by Hostname" +msgstr "Verifica della connettività attraverso l'hostname" + +#. Tag: programlisting +#, no-c-format +msgid "" +"\n" +" ping -c 3 pcmk-2\n" +"[root@pcmk-1 ~]# ping -c 3 pcmk-2\n" +"PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data.\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms\n" +"\n" +"--- pcmk-2.clusterlabs.org ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2001ms\n" +"rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Configure SSH" +msgstr "Configuarazione di 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 rappresenta una via conveniente e sicura per copiare file e lanciare comandi remotamente. Per raggiungere l'obiettivo di questa guida, verrà creata una chiave senza password (utilizzando l'opzione -N) in modo da poter eseguire comandi remoti senza che venga mostrato il prompt." + +#. Tag: para +#, no-c-format +msgid "Unprotected SSH keys, those without a password, are not recommended for servers exposed to the outside world." +msgstr "Chiavi SSH non protette, senza una password, non sono raccomandate per server esposti al mondo." + +#. Tag: para +#, no-c-format +msgid "Create a new key and allow anyone with that key to log in:" +msgstr "Creazione di una nuova chiave ed abilitazione al proprietario della chiave di effettuare login:" + +#. Tag: title +#, no-c-format +msgid "Creating and Activating a new SSH Key" +msgstr "Creazione ed attivazione di una nuova chiave 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" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Install the key on the other nodes and test that you can now run commands remotely, without being prompted" +msgstr "Installare la chiave sull'altro nodo e verificare come sia possibile lanciare comandi remotamente, senza ricevere prompt" + +#. Tag: title +#, no-c-format +msgid "Installing the SSH Key on Another Host" +msgstr "Installare la chiave SSH su un altro host" + +#. 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" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Short Node Names" +msgstr "Nomi di nodi abbreviati" + +#. 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 "Durante l'installazione è stato inserito il fully qualifier domain name (FQDN) della macchina che può essere particolarmente lungo all'interno dei log del cluster e nella visualizzazione del suo stato. Verificare come la macchina si identifica:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1.clusterlabs.org\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The output from the second command is fine, but we really don’t need the domain name included in the basic host details. To address this, we need to update /etc/sysconfig/network. This is what it should look like before we start." +msgstr "L'output del secondo comando è corretto, ma non è necessario il nome del dominio incluso nei dettagli essenziali dell'host. Per risolvere la situazione è necessario modificare il file /etc/sysconfig/netwirk. Ecco come dovrà apparire." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1.clusterlabs.org\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All we need to do now is strip off the domain name portion, which is stored elsewhere anyway." +msgstr "L'unica cosa da fare sarà di rimuovere la parte relativa al nome del dominio, che rimarrà comunque registrata altrove." + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now confirm the change was successful. The revised file contents should look something like this." +msgstr "Per verificare l'efficacia dei cambiamenti apportati il contenuto del file dovrà essere simile a quanto riportato." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "However we’re not finished. The machine wont normally see the shortened host name until about it reboots, but we can force it to update." +msgstr "Ma non è ancora finita. La macchina non sarà allineata con i nomi abbreviati finché non verrà riavviata, ma è possibile forzare l'aggiornamento." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# source /etc/sysconfig/network\n" +"[root@pcmk-1 ~]# hostname $HOSTNAME\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now check the machine is using the correct names" +msgstr "E' possibile quindi verificare che la macchina utilizzi il nome corretto" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now repeat on pcmk-2." +msgstr "Le stesse operazioni andranno ripetute su pcmk-2" + +#. Tag: title +#, no-c-format +msgid "Configuring Corosync" +msgstr "Configurare 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 "Scegliere un numero di porta ed un indirizzo http://en.wikipedia.org/wiki/Multicast multi-cast. 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 "Assicurarsi che i valori scelti non vadano in conflitto con qualsiasi altra configurazione cluster presente nella rete. Per consigli sulla scelta dell'indirizzo vedere 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 "Per questo progetto è stata scelta la porta 4000 e l'indirizzo multi-cast 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 "" + +#. 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 "A questo punto è possibile determinare automaticamente l'indirizzo degli host. Non utilizzando l'indirizzo completo la configurazione è copiabile sugli altri nodi." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Display and verify the configuration options" +msgstr "Visualizzazione e verifica delle opzioni di configurazione" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# env | grep ais_\n" +"ais_mcast=226.94.1.1\n" +"ais_port=4000\n" +"ais_addr=192.168.122.0\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once you’re happy with the chosen values, update the Corosync configuration" +msgstr "Una volta soddisfatti dei valori scelti si potrà aggiornare la configurazione di 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 "" + +#. Tag: para +#, no-c-format +msgid "Finally, tell Corosync to start Pacemaker" +msgstr "Infine comunicare a Corosync di avviare 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 "" + +#. Tag: para +#, no-c-format +msgid "The final configuration should look something like the sample in the appendix." +msgstr "La configurazione finale dovrà assomigliare a quanto illustrato negli appendici." + +#. Tag: title +#, no-c-format +msgid "Propagate the Configuration" +msgstr "Distribuire la configurazione" + +#. Tag: para +#, no-c-format +msgid "Now we need to copy the changes so far to the other node:" +msgstr "Ora è necessario copiare le modifiche effettuate sinora all'altro nodo:" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done\n" +"corosync.conf 100% 1528 1.5KB/s 00:00\n" +"hosts 100% 281 0.3KB/s 00:00\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Intro.po b/doc/Clusters_from_Scratch/it-IT/Ch-Intro.po new file mode 100644 index 0000000000..317a1da64c --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Intro.po @@ -0,0 +1,269 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-07-14 14:42+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Leggimi-Prima" + +#. Tag: title +#, no-c-format +msgid "The Scope of this Document" +msgstr "Scopo di questo documento" + +#. 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 "Lo scopo di questo documento è quello di spiegare in maniera definitiva i concetti utilizzati per configurare Pacemaker. Per ottenere il meglio, si focalizzera' esclusivamente sulla sintassi XML per configurare il CIB." + +#. 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 "Per gli allergici ad XML, Pacemaker ha una cluster shell ed una GUI Python, ma questi tools non sono trattati nel presente documento Si spera comunque che una volta compresi i concetti qui esposti sarà più semplice comprendere anche questi tools. , proprio perché questi nascondono l'XML." + +#. 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 "Inoltre, questo documento NON E' un how-to passo-passo per configurare uno specifico scenario cluster. Sebbene questo tipo di guide esista, lo scopo di questo documento è quello di fornire la comprensione delle componenti che possono essere utilizzate per costruire qualsiasi cluster Pacemaker." + +#. Tag: title +#, no-c-format +msgid "What Is Pacemaker?" +msgstr "Cos'è 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 è un cluster resource manager. Ottiene la massima affidabilità per i servizi cluster (conosciuti come risorse) rilevando e ripristinando malfunziomenti di nodi e di risorse facendo uso delle capacità di messaging e membership fornite dalla tua infrastruttura cluster preferita (sia questa Corosync o Heartbeat)." + +#. Tag: para +#, no-c-format +msgid "Pacemaker's key features include:" +msgstr "Le caratteristiche di Pacemaker includono:" + +#. Tag: para +#, no-c-format +msgid "Detection and recovery of node and service-level failures" +msgstr "Rilevazione e ripristino di malfunzionamenti di nodi e servizi" + +#. Tag: para +#, no-c-format +msgid "Storage agnostic, no requirement for shared storage" +msgstr "Storage agnostic, non richiede uno storage condiviso" + +#. Tag: para +#, no-c-format +msgid "Resource agnostic, anything that can be scripted can be clustered" +msgstr "Resource agnostic, tutto quello che può essere scriptato può essere clusterizzato" + +#. Tag: para +#, no-c-format +msgid "Supports STONITH for ensuring data integrity" +msgstr "Supporto STONITH per garantire l'integrità dei dati" + +#. Tag: para +#, no-c-format +msgid "Supports large and small clusters" +msgstr "Supporto a cluster grandi e piccoli" + +#. Tag: para +#, no-c-format +msgid "Supports both quorate and resource driven clusters" +msgstr "Supporto a cluster quorati e resource driven" + +#. Tag: para +#, no-c-format +msgid "Supports practically any redundancy configuration" +msgstr "Supporto a praticamente qualsiasi configurazione ridondata" + +#. Tag: para +#, no-c-format +msgid "Automatically replicated configuration that can be updated from any node" +msgstr "Configurazione replicata automaticamente che può essere aggiornata da qualsiasi nodo" + +#. Tag: para +#, no-c-format +msgid "Ability to specify cluster-wide service ordering, colocation and anti-colocation" +msgstr "Capacità di specificare ordine, collocazione e anti-collocazione per i servizi lato cluster" + +#. Tag: para +#, no-c-format +msgid "Support for advanced services type" +msgstr "Supporto per servizi di tipo avanzato" + +#. Tag: para +#, no-c-format +msgid "Clones: for services which need to be active on multiple nodes" +msgstr "Cloni: per servizi che necessitano di essere attivi su nodi multipli" + +#. Tag: para +#, no-c-format +msgid "Multi-state: for services with multiple modes (eg. master/slave, primary/secondary)" +msgstr "Muliti-state: per servizi con modi multipli (ad esempio master/slave, primary/secondary/" + +#. Tag: para +#, no-c-format +msgid "Unified, scriptable, cluster shell" +msgstr "cluster shell unificata e scriptabile" + +#. Tag: title +#, no-c-format +msgid "Types of Pacemaker Clusters" +msgstr "Tipologia dei cluster 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 non fa alcuna ipotesi in merito all'ambiente operativo, questo consente di supportare praticamente qualsiasi configurazione ridondata come Active/Active, Active/Passive, N+1, N+M, N-to-1 e N-to-N." + +#. Tag: title +#, no-c-format +msgid "Active/Passive Redundancy" +msgstr "Ridondanza 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 "I cluster a due nodi Active/Passive che utilizzano Pacemaker e DRBD sono soluzioni con rapporto qualità-prezzo ottimale in molti ambiti di alta affidabilità." + +#. Tag: title +#, no-c-format +msgid "Shared Failover" +msgstr "Failover condiviso" + +#. 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 "Supportando più nodi, Pacemaker può ridurre drammaticamente i costi hardware consentendo a diversi cluster active/passive di combinare e condividere nodi di backup comuni" + +#. Tag: title +#, no-c-format +msgid "N to N Redundancy" +msgstr "Ridondanza N a 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 "Quando è disponibile uno storage condiviso ogni nodo può essere utilizzato per il failover. Pacemaker può anche eseguire copie multiple dei servizi per distribuire il carico di lavoro." + +#. Tag: title +#, no-c-format +msgid "Pacemaker Architecture" +msgstr "Architettura di Pacemaker" + +#. Tag: para +#, no-c-format +msgid "At the highest level, the cluster is made up of three pieces:" +msgstr "Al livello più elevato il cluster è composto da tre componenti:" + +#. Tag: para +#, no-c-format +msgid "Core cluster infrastructure providing messaging and membership functionality (illustrated in red)" +msgstr "Infrastruttura core del cluster che rende disponibili le funzionalità di messaging e membership (illustrate in rosso)" + +#. 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 "Componenti non inerenti al cluster (illustrate in blu). In un cluster Pacemaker queste componenti includono non solo gli script che sanno come avviare, stoppare e monitorare le risorse, ma anche " + +#. 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 "Un cervello (illustrato in verde) che reagisce e processa gli eventi del cluster (nodi scomparsi o apparsi) e delle risorse (ad esempio il controllo delle anomalie) così come le modifiche effettuate dall'amministratore. In risposta a tutti questi eventi, Pacemaker elaborerà l'ideale stato del cluster ed il piano per renderlo effettivo. Questo potrebbe includere lo spostamento delle risorse, lo stop di nodi fino alla forzatura offline di questi attraverso la rimozione dell'alimentazione remota." + +#. Tag: title +#, no-c-format +msgid "Conceptual Stack Overview" +msgstr "Panoramica concettuale dello Stack" + +#. Tag: caption +#, no-c-format +msgid "Conceptual overview of the cluster stack" +msgstr "Panoramica concettuale dello stack del cluster" + +#. 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 "Quando viene combianato con Corosync, Pacemaker supporta anche i popolari cluster filesystem opensource Sebbene Pacemaker supporti anche Heartbeat, i filesystem necessitano di usare uno stack di messaging e membership e Corosync sembra essere quello su cui questi si stanno standardizzando. Tecnicamente potrebbe essere possibile per questi supportare anche Heartbeat, ma sembra esserci poco interesse in merito alla questione. . Le recenti standardizzazioni all'interno della comunità del cluster filesystem hanno portato all'uso di un lock manager distribuito che utilizza Corsync per il supporto al messaging e Pacemaker per il membership (quali nodi sono vivi o morti) ed il fencing dei servizi." + +#. Tag: title +#, no-c-format +msgid "The Pacemaker Stack" +msgstr "Lo stack Pacemaker" + +#. Tag: caption +#, no-c-format +msgid "The Pacemaker stack when running on Corosync" +msgstr "Lo stack Pacemaker nell'esecuzione su Corosync" + +#. Tag: title +#, no-c-format +msgid "Internal Components" +msgstr "Componenti interni" + +#. 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 stesso è composto da quatto componenti chiave (illustrati sotto nello stesso schema di colori del diagramma precedente):" + +#. Tag: para +#, no-c-format +msgid "CIB (aka. Cluster Information Base)" +msgstr "CIB (acronimo di come Cluster Information Base)" + +#. Tag: para +#, no-c-format +msgid "CRMd (aka. Cluster Resource Management daemon)" +msgstr "CRMd (acronimo di Cluster Resource Management daemon)" + +#. Tag: para +#, no-c-format +msgid "PEngine (aka. PE or Policy Engine)" +msgstr "PEngine (acronimo di Policy Engine)" + +#. Tag: para +#, no-c-format +msgid "STONITHd" +msgstr "STONITHd" + +#. Tag: caption +#, no-c-format +msgid "Subsystems of a Pacemaker cluster running on Corosync" +msgstr "Sottosistemi di un cluster Pacemaker in esecuzione su Corosync" + +#. 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 "Il CIB utilizza XML per rappresentare sia l'attuale configurazione del cluster sia lo stato di tutte le risorse all'interno dello stesso. I contenuti del CIB sono automaticamente tenuti in sincronia in tutto il cluster e vengono utilizzati dal PEngine per elaborare lo stato ideale del cluster e come questo debba essere raggiunto." + +#. 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 "Questa lista di istruzioni viene inviata al DC (Designated Co-ordinator). Pacemaker centralizza tutte le decisioni in merito al cluster eleggendo una delle istanze di CRMd ad agire come master. Qualora il processo eletto CRMd o il nodo su cui questo è in esecuzione dovessero fallire, un nuovo DC viene rapidamente stabilito." + +#. 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 "Il DC esegue le istruzioni inviategli dal PEngine nell'ordine richiesto passandole o al LRMd (Local Resource Management daemon) o ai CRMd in ascolto sugli altri nodi attraverso l'infrastruttura di messaging del cluster (che a loro volta passeranno le istruzioni ai proprio 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 "Gli altri nodi riferiscono i risultati delle loro operazioni al DC. Attraverso l'analisi dei risultati aspettati e di quelli attuali, i nodi eseguiranno qualsiasi azione necessaria per attendere il completamento della precedente oppure interromperanno il processo, richiedendo al PEngine di calcolare nuovamente lo stato ideale del cluster basandosi sui risulati inaspettati." + +#. 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 "In alcuni casi, potrebbe essere necessario spegnere i nodi per preservare dati condifivi o completare il ripristino di una risorsa. Per questo in Pacemaker esiste STONITHd. STONITH è un acronimo per Shoot-The-Other-Node-In-The-Head e viene implementato tipicamente con un switch di potenza remoto. In Pacemaker i dispositivi STONITH sono modellati come risorse (e configurati all'interno del CIB) per facilitare il monitoraggio delle anomalie. STONITHd si prende cura di capire la topologia STONITH così che i suoi client debbano unicamente richiedere unicamente la morte di un nodo ed esso si preoccupi del resto." + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Shared-Storage.po b/doc/Clusters_from_Scratch/it-IT/Ch-Shared-Storage.po new file mode 100644 index 0000000000..f25669e064 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Shared-Storage.po @@ -0,0 +1,673 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-08-03 16:41+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Storage replicato con 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 "Anche se si sta servendo un sito con pagine statiche, dover sincronizzare manualmente i contenuti del sito su tutte le macchine nel cluster non è conveniente. Per i siti dinamici, come ad esempio un wiki, non è neanche possibile. Pur non disponendo di un NAS (Network Attached Storage) potrebbe essere necessario che in qualche modo i dati siano mantenuti in sincronia. E' qui che entra in gioco DRBD che può essere descritto come un Network RAID-1. Per ulteriori dettagli vedere http://www.drbd.org." + +#. Tag: title +#, no-c-format +msgid "Install the DRBD Packages" +msgstr "Installare i pacchetti 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 "Dalla sua inclusione dalla versione 2.6.33 del kernel, quanto necessario per utilizzare DRBD è fornito da &DISTRO; &DISTRO_VERSION;. Tutto ciò che va fatto è installare i pacchetti:" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Configure DRBD" +msgstr "Configurare DRBD" + +#. Tag: para +#, no-c-format +msgid "Before we configure DRBD, we need to set aside some disk for it to use." +msgstr "Prima di configurare DRBD è necessario definire a parte lo spazio che questo dovrà utilizzare." + +#. Tag: title +#, no-c-format +msgid "Create A Partition for DRBD" +msgstr "Creare una partizione per 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 "Se si dispone di più di 1Gb liberi è bene servirsene. Negli scopi di questa guida 1Gb è fin troppo spazio per un file html e sufficiente per ospitare più avanti i metadata di GFS2." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Repeat this on the second node, be sure to use the same size partition." +msgstr "La medesima operazione va ripetuta sul secondo nodo, avendo cura di utilizzare la stessa grandezza per la partizione." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Write the DRBD Config" +msgstr "Scrivere la configurazione 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 "Non esiste una serie di comandi per costruire una configurazione per DRBD, quindi è sufficiente la configurazione sottostante in /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 "Informazioni dettagliate sulle direttive utilizzate in questa configurazione (e le alternative disponibili) è disponibile presso 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 "Accertarsi di usare i nomi e gli indirizzi dei propri nodi se questi differiscono da quelli utilizzati in questa guida." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"global { \n" +"  usage-count yes; \n" +"}\n" +"common {\n" +"  protocol C;\n" +"}\n" +"resource wwwdata {\n" +"  meta-disk internal;\n" +"  device    /dev/drbd1;\n" +"  syncer {\n" +"    verify-alg sha1;\n" +"  }\n" +"  net { \n" +"    allow-two-primaries; \n" +"  }\n" +"  on pcmk-1 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.101:7789; \n" +"  }\n" +"  on \n" +"pcmk-2 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.102:7789; \n" +"  }\n" +"}\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the reason for the allow-two-primaries option" +msgstr "TODO: Spiegare la ragione dell'opzione allow-two-primaries" + +#. Tag: title +#, no-c-format +msgid "Initialize and Load DRBD" +msgstr "Inizializzare e caricare DRBD" + +#. Tag: para +#, no-c-format +msgid "With the configuration in place, we can now perform the DRBD initialization" +msgstr "Sistemata la configurazione, è possibile inizializzare DRBD" + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Now load the DRBD kernel module and confirm that everything is sane" +msgstr "Caricando il modulo DRBD del kernel e verificando che tutto sia a posto" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# modprobe drbd\n" +"[root@pcmk-1 ~]# drbdadm up wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +"[root@pcmk-1 ~]# \n" +"\n" +"Repeat on the second node\n" +"drbdadm --force create-md wwwdata \n" +"modprobe drbd\n" +"drbdadm up wwwdata\n" +"cat /proc/drbd\n" +"[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +"[root@pcmk-2 ~]# modprobe drbd\n" +"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" +"[root@pcmk-2 ~]# drbdadm up wwwdata\n" +"[root@pcmk-2 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we need to tell DRBD which set of data to use. Since both sides contain garbage, we can run the following on pcmk-1:" +msgstr "Ora va indicato a DRBD quale set di dati utilizzare. Dal momento che entrambe le parti contengono dati non necessari è possibile lanciare il seguente comando su 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 "" + +#. 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 è quindi in stato Primary, cioè scrivibile. Questo significa che è possibile crearvi un filesystem e popolarlo con dati da servire via la risorsa WebSite." + +#. Tag: title +#, no-c-format +msgid "Populate DRBD with Data" +msgstr "Popolare DRBD con i dati" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Configure the Cluster for DRBD" +msgstr "Configurare il cluster per 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 "Un comoda funzione della shell crm è quella di rendere interattivi comandi per effettuare diversi cambiamenti automatici." + +#. Tag: para +#, no-c-format +msgid "First we launch the shell. The prompt will change to indicate you’re in interactive mode." +msgstr "Inizialmente va lanciata la shell. Il prompt cambierà, indicando l'accesso alla modalità interattiva." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"cib crm(live)#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Next we must create a working copy or the current configuration. This is where all our changes will go. The cluster will not see any of them until we say its ok. Notice again how the prompt changes, this time to indicate that we’re no longer looking at the live cluster." +msgstr "Successivamente è necessario creare una copia funzionante della configurazione attuale. Sarà qui che i cambiamenti verranno effettuati. Il cluster non vedrà nessun cambiamento finché non verrà data conferma da parte dell'utente. Da notare ancora una volta come il prompt cambia, in questo caso indicando che non si sta più osservando il cluster attivo." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"cib crm(live)# cib new drbd\n" +"INFO: drbd shadow CIB created\n" +"crm(drbd)#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we can create our DRBD clone and display the revised configuration." +msgstr "Ora è possibile creare il clone DRBD e visualizzare la configurazione revisionata." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(drbd)# configure primitive ocf:linbit:drbd WebData 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 "" + +#. 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 "Quando i cambiamenti saranno giudicati sufficienti sarà possibile indicare al cluster di iniziare ad usarli, ed utilizzare crm_mon per verificare che tutto stia funzionando." + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "Include details on adding a second DRBD resource" +msgstr "Dettagli su come aggiungere una seconda risorsa DRBD" + +#. 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 "Ora che DRBD sta funzionando è possibile configurare una risorsa filesystem per utilizzarlo. In aggiunta alla definizione del filesystem si necessita inoltre di indicare al cluster dove questa sia localizzata (cioè solo sul nodo Primary di DRBD) e quando ad essa è consentito avviarsi (solo dopo che il nodo Primary è stato attivato)." + +#. Tag: para +#, no-c-format +msgid "Once again we’ll use the shell’s interactive mode" +msgstr "Ancora una volta verrà utilizzata la shell in modalità interattiva" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new fs\n" +"INFO: fs shadow CIB created\n" +"crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device=\"/dev/mapper/VolGroup-drbd--demo\" directory=\"/var/www/html\" fstype=\"ext4\"\n" +"crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We also need to tell the cluster that Apache needs to run on the same machine as the filesystem and that it must be active before Apache can start." +msgstr "Vi è inoltre la necessità di indicare al cluster che Apache necessità di funzionare sullo stessa macchina del filesystem e che questo debba essere attivato prima che Apache venga avviato." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Time to review the updated configuration:" +msgstr "E' tempo di revisionare la configurazione aggiornata:" + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "After reviewing the new configuration, we again upload it and watch the cluster put it into effect." +msgstr "Dopo la revisione della nuova configurazione questa va caricata e si potrà osservarla in azione all'interno del cluster." + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Testing Migration" +msgstr "Testare la migrazione" + +#. 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 "E' possibile spegnere ancora il nodo attivo, ma un altro metodo per smulare il recovery in maniera salutare è quello di porre il nodo nel così detto \"standby mode\". I nodi in questo stato indicano al cluster che non sono in grado di ospitare risorse. Qualsiasi risorsa attiva verrà spostata altrove. Questa funzionalità può essere particolarmente utile durante gli aggiornamenti dei pacchetti delle risorse." + +#. 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 "Mettendo il nodo locale in standby consentirà di osservare il cluster spostare tutte le risorse sull'altro nodo. Da notare inoltre come lo stato del nodo cambierà, indicando che non può più ospitare risorse." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm node standby\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:09:57 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Node pcmk-1: standby\n" +"Online: [ pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Stopped: [ WebData:1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once we’ve done everything we needed to on pcmk-1 (in this case nothing, we just wanted to see the resources move), we can allow the node to be a full cluster member again." +msgstr "Fatto quanto necessario su pcmk-1 (in questo caso nulla, si è solo osservato le risorse spostarsi), è possibile consentire il nodo ad essere nuovamente parte integrante del cluster." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# crm node online\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:13:25 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Slaves: [ pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1." +msgstr "Notare come ora l'impostazione di stickiness delle risorse prevenga la migrazione dei servizi nuovamente verso pcmk-1." + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Stonith.po b/doc/Clusters_from_Scratch/it-IT/Ch-Stonith.po new file mode 100644 index 0000000000..a4bcc19f90 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Stonith.po @@ -0,0 +1,204 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-08-04 11:42+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Configurare STONITH" + +#. Tag: title +#, no-c-format +msgid "Why You Need STONITH" +msgstr "Perché STONITH è necessario" + +#. 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 è l'acronimo di Shoot-The-Other-Node-In-The-Head e protegge i dati dalla corruzione derivante da accessi concorrenti incontrollati." + +#. 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 "Solo perché un nodo non è responsivo non significa che non stia accedendo ai dati. L'unica via per essere sicuri al 100% che i dati sono al sicuro è quella di utilizzare STONITH in modo da essere certi che il nodo sia effettivamente offline, prima di consentire ad altri nodi di accedere ai dati." + +#. 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 gioca un ruolo importante anche nel caso in cui un servizio clusterizzato non può essere stoppato. In questo caso il cluster utilizza STONITH per forzare l'intero nodo offline, rendendo di fatto sicuro l'avvio del servizio altrove." + +#. Tag: title +#, no-c-format +msgid "What STONITH Device Should You Use" +msgstr "Quale device STONITH andrebbe utilizzato" + +#. 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 "E' cruciale che il device STONITH sia in grado di differenziare un guasto del nodo da un guasto di rete." + +#. 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 "L'errore più grande commesso nello scegliere un device STONITH è di utilizzare un \"remote power switch\" (come molti IMPI onboard controller) che condivide l'alimentazione con il nodo che controlla. In questi casi, il cluster non può essere sicuro che il nodo sia realmente offline o attivo ma staccato dalla rete." + +#. 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 "Allo stesso modo, ogni device che risiede su una macchina attiva (come il device basato su SSH utilizzato durante i test) risulta inappropriato." + +#. Tag: title +#, no-c-format +msgid "Configuring STONITH" +msgstr "Configurare STONITH" + +#. Tag: para +#, no-c-format +msgid "Find the correct driver: stonith -L" +msgstr "Individuare il driver corretto: 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 "Dal momento che ogni device è diverso dagli altri, i parametri necessari a configurarlo saranno vari. Per individuare i parametri richiesti dal device: 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 "Fortunatamente gli sviluppatori hanno scelto nomi che hanno senso, altrimenti è possibile ricavare informazioni aggiuntive recandosi su un nodo attivo del cluster e lanciando:" + +#. Tag: screen +#, no-c-format +msgid "lrmadmin -M stonith {type} pacemaker\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The output should be XML formatted text containing additional parameter descriptions" +msgstr "L'output dovrebbe essere testo formattato in XML contenente parametri descrittori aggiuntivi" + +#. 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 "Creare un file chiamato stonith.xml contenente una risorsa primitiva di classe stonith, un tipo {type} ed un parametro per ciascuno dei valori ricavati nello step 2" + +#. 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 "Creare un clone dalla risorsa primitiva se il device può sparare a più di un singolo nodo e supporta connessioni simultanee multiple." + +#. Tag: para +#, no-c-format +msgid "Upload it into the CIB using cibadmin: cibadmin -C -o resources --xml-file stonith.xml" +msgstr "Caricare il file nel CIB utilizzando cibadmin: cibadmin -C -o resources --xml-file stonith.xml" + +#. Tag: title +#, no-c-format +msgid "Example" +msgstr "Esempio" + +#. 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 "Assumendo di possedere un IBM BladeCenter contenente i due nodi e che l'interfaccia di gestione sia attiva su 192.168.122.31, verrà quindi scelto il driver external/ibmrsa, ottenendo la seguente lista di parametri" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"stonith -t external/ibmrsa -n\n" +"[root@pcmk-1 ~]# stonith -t external/ibmrsa -n\n" +"hostname  ipaddr  userid  passwd  type\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assuming we know the username and password for the management interface, we would create a STONITH resource with the shell" +msgstr "Assumendo di conoscere lo username e la password per l'interfaccia di gestione, verrà creata una risorsa STONITH con la shell" + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "And finally, since we disabled it earlier, we need to re-enable STONITH" +msgstr "Ed infine, visto che era stato disabilitato in precedenza, è necessario riabilitare 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 "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Tools.po b/doc/Clusters_from_Scratch/it-IT/Ch-Tools.po new file mode 100644 index 0000000000..5c023ffe8a --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Tools.po @@ -0,0 +1,148 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-08-02 16:21+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Utilizzare i tool di 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 "Nell'oscuro passato configurare Pacemaer richiedeva all'amministratore di leggere e scrivere XML. In vero stile UNIX c'erano inoltre parecchi comandi differendi, specializzati in aspetti differenti di interrogazione ed aggiornamento del cluster." + +#. 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 "Con Pacemaker 1.0 tutto questo è cambiato ed ora esiste una cluster shell integrata e scriptabile che nasconde tutta la confusionaria impalcatura XML. Essa permette di accodare i diversi cambiamente in una sola volta ed applicarli automaticamente." + +#. Tag: para +#, no-c-format +msgid "Take some time to familiarize yourself with what it can do." +msgstr "Va dedicato del tempo a familiarizzare con le peculiarità della shell." + +#. 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 "" + +#. 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 "Il principale tool per il monitoraggio dello stato è crm_mon (disponibile anche come crm status). Può essere lanciato in diverse modalità e con svariate tipologie di output. Per scoprire le funzionalità dei tool disponibili con Pacemaker è sufficiente invocarli con l'opzione --help oppure consultare le man page incluse. Entrambe i tipi di output sono creati dal tool e quindi saranno sempre sincronizzate l'una con l'altra, oltre che con il tool stesso." + +#. Tag: para +#, no-c-format +msgid "Additionally, the Pacemaker version and supported cluster stack(s) is available via the --version option." +msgstr "La versione ed il cluster stack supportati di Pacemaker sono inoltre disponibili attraverso l'opzione --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 "" + +#. 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 "Se SNMP e/o le opzioni mail non sono listate allora Pacemaker non è stato compilato per supportare queste funzionalità. Potrebbe essere dovuto ad una scelta della distribuzione che si sta utilizzando oppure al fatto che le librerie necessarie non sono disponibili. In questo caso è bene contattare il fornitore dei pacchetti per avere maggiori dettagli." + diff --git a/doc/Clusters_from_Scratch/it-IT/Ch-Verification.po b/doc/Clusters_from_Scratch/it-IT/Ch-Verification.po new file mode 100644 index 0000000000..20f7865dbc --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Ch-Verification.po @@ -0,0 +1,155 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-08-02 16:00+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Verifica dell'installazione del cluster" + +#. Tag: title +#, no-c-format +msgid "Verify Corosync Installation" +msgstr "Verifica dell'installazione di Corosync" + +#. Tag: para +#, no-c-format +msgid "Start Corosync on the first node" +msgstr "Avvio di Corosync sul primo nodo" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the cluster started correctly and that an initial membership was able to form" +msgstr "Controllo del corretto avvio del cluster e che è stata formata la membership iniziale" + +#. 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 "" + +#. Tag: para +#, no-c-format +msgid "With one node functional, its now safe to start Corosync on the second node as well." +msgstr "Con un nodo funzionante è ora sicuro avviare Corosync anche sul secondo nodo." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]#\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the cluster formed correctly" +msgstr "Controllo della corretta formazione del cluster" + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Verify Pacemaker Installation" +msgstr "Verifica dell'installazione di 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 "Ora che è stato verificato come Corosync sia funzionante è quindi possibile controllare il resto dello stack." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep pcmk_startup /var/log/messages\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1\n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now verify the Pacemaker processes have been started" +msgstr "Verifica che i processi Pacemaker sono stati avviati" + +#. 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 "" + +#. 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 "Ed infine controllo di errori di qualsiasi tipo durante l'avvio (non se ne dovrebbero rilevare) e visualizzare lo stato del cluster." + +#. Tag: screen +#, no-c-format +msgid "" +"\n" +"[root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Aug 27 16:54:55 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"0 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/it-IT/Clusters_from_Scratch.po b/doc/Clusters_from_Scratch/it-IT/Clusters_from_Scratch.po new file mode 100644 index 0000000000..9734e36bff --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Clusters_from_Scratch.po @@ -0,0 +1,14 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-07-07T15:51:41\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + diff --git a/doc/Clusters_from_Scratch/it-IT/Preface.po b/doc/Clusters_from_Scratch/it-IT/Preface.po new file mode 100644 index 0000000000..20b20cc7b0 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Preface.po @@ -0,0 +1,19 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-07-14 14:49+0100\n" +"Last-Translator: RaSca \n" +"Language-Team: None\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 "Prefazione" + diff --git a/doc/Clusters_from_Scratch/it-IT/Revision_History.po b/doc/Clusters_from_Scratch/it-IT/Revision_History.po new file mode 100644 index 0000000000..d467f62205 --- /dev/null +++ b/doc/Clusters_from_Scratch/it-IT/Revision_History.po @@ -0,0 +1,34 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-07-07T15:51:41\n" +"PO-Revision-Date: 2010-07-07T15:51:41\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Revision History" +msgstr "" + +#. Tag: firstname +#, no-c-format +msgid "Andrew" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "" + +#. Tag: member +#, no-c-format +msgid "Import from Pages.app" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot new file mode 100644 index 0000000000..c8dc2aeef3 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ap-Configuration.pot @@ -0,0 +1,341 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Configuration Recap" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Final Cluster Configuration" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Node List" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The list of cluster nodes is automatically populated by the cluster." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"node pcmk-1\n" +"node pcmk-2\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Cluster Options" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This is where the cluster automatically stores some information about the cluster" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "dc-version - the version (including upstream source-code hash) of Pacemaker used on the DC" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "cluster-infrastructure - the cluster infrastructure being used (heartbeat or openais)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "expected-quorum-votes - the maximum number of nodes expected to be part of the cluster" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "and where the admin can set options that control the way the cluster operates" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "stonith-enabled=true - Make use of STONITH" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "no-quorum-policy=ignore - Ignore loss of quorum and continue to host resources." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"property $id="cib-bootstrap-options" \\\n" +"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" +"        cluster-infrastructure="openais" \\\n" +"        expected-quorum-votes=”2” \\\n" +"        stonith-enabled=”true” \\\n" +"        no-quorum-policy="ignore"\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Resources" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Default Options" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Here we configure cluster options that apply to every resource." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "resource-stickiness - Specify the aversion to moving resources to other machines" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"rsc_defaults $id="rsc-options" \\\n" +"        resource-stickiness=”100”\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fencing" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Add text here" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval="60s"\n" +"clone Fencing rsa-fencing\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Service Address" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Users of the services provided by the cluster require an unchanging address with which to access it. Additionally, we cloned the address so it will be active on both nodes. An iptables rule (created as part of the resource agent) is used to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster that we want two instances of the clone (one “request bucket” for each node) and that if one node fails, then the remaining node should hold both." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip=”192.168.122.101” cidr_netmask=”32” clusterip_hash=”sourceip” \\\n" +"        op monitor interval="30s"\n" +"clone WebIP ClusterIP  \n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: The RA should check for globally-unique=true when cloned" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Distributed lock manager" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Cluster filesystems like GFS2 require a lock manager. This service starts the daemon that provides user-space applications (such as the GFS2 daemon) with access to the in-kernel lock manager. Since we need it to be available on all nodes in the cluster, we have it cloned." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive dlm ocf:pacemaker:controld \\\n" +"        op monitor interval="120s"\n" +"clone dlm-clone dlm \\\n" +"        meta interleave="true\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Confirm interleave is no longer needed" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "GFS control daemon" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "GFS2 also needs a user-space/kernel bridge that runs on every node. So here we have another clone, however this time we must also specify that it can only run on machines that are also running the DLM (colocation constraint) and that it can only be started after the DLM is running (order constraint). Additionally, the gfs-control clone should only care about the DLM instances it is paired with, so we need to set the interleave option." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive gfs-control ocf:pacemaker:controld \\\n" +"   params daemon=”gfs_controld.pcmk” args=”-g 0” \\\n" +"        op monitor interval="120s"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "DRBD - Shared Storage" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Here we define the DRBD service and specify which DRBD resource (from drbd.conf) it should manage. We make it a master/slave resource and, in order to have an active/active setup, allow both instances to be promoted by specifying master-max=2. We also set the notify option so that the cluster will tell DRBD agent when it’s peer changes state." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"ms WebDataClone WebData \\\n" +"        meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Cluster Filesystem" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The cluster filesystem ensures that files are read and written correctly. We need to specify the block device (provided by DRBD), where we want it mounted and that we are using GFS2. Again it is a clone because it is intended to be active on both nodes. The additional constraints ensure that it can only be started on nodes with active gfs-control and drbd instances." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"clone WebFSClone WebFS\n" +"colocation WebFS-with-gfs-control inf: WebFSClone gfs-clone\n" +"colocation fs_on_drbd inf: WebFSClone WebDataClone:Master\n" +"order WebFS-after-WebData inf: WebDataClone:promote WebFSClone:start\n" +"order start-WebFS-after-gfs-control inf: gfs-clone WebFSClone\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Apache" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Lastly we have the actual service, Apache. We need only tell the cluster where to find it’s main configuration file and restrict it to running on nodes that have the required filesystem mounted and the IP address active." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"clone WebSiteClone WebSite\n" +"colocation WebSite-with-WebFS inf: WebSiteClone WebFSClone\n" +"colocation website-with-ip inf: WebSiteClone WebIP\n" +"order apache-after-ip inf: WebIP WebSiteClone\n" +"order WebSite-after-WebFS inf: WebFSClone WebSiteClone\n" +"" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot new file mode 100644 index 0000000000..40d33efa9c --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ap-Corosync-Conf.pot @@ -0,0 +1,101 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Sample Corosync.conf" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"# Please read the Corosync.conf.5 manual page\n" +"compatibility: whitetank\n" +"\n" +"aisexec {\n" +"        # Run as root - this is necessary to be able to manage resources with Pacemaker\n" +"        user:        root\n" +"        group:        root\n" +"}\n" +"\n" +"service {\n" +"        # Load the Pacemaker Cluster Resource Manager\n" +"        ver:       0\n" +"        name:      pacemaker\n" +"        use_mgmtd: no\n" +"        use_logd:  no\n" +"}\n" +"\n" +"totem {\n" +"        version: 2\n" +"\n" +"        # How long before declaring a token lost (ms)\n" +"        token:          5000\n" +"\n" +"        # How many token retransmits before forming a new configuration\n" +"        token_retransmits_before_loss_const: 10\n" +"\n" +"        # How long to wait for join messages in the membership protocol (ms)\n" +"        join:           1000\n" +"\n" +"        # How long to wait for consensus to be achieved before starting a new\n" +"        # round of membership configuration (ms)\n" +"        consensus:      2500\n" +"\n" +"        # Turn off the virtual synchrony filter\n" +"        vsftype:        none\n" +"\n" +"        # Number of messages that may be sent by one processor on receipt of the token\n" +"        max_messages:   20\n" +"\n" +"        # Stagger sending the node join messages by 1..send_join ms\n" +"        send_join: 45\n" +"\n" +"        # Limit generated nodeids to 31-bits (positive signed integers)\n" +"        clear_node_high_bit: yes\n" +"\n" +"        # Disable encryption\n" +"        secauth:        off\n" +"\n" +"        # How many threads to use for encryption/decryption\n" +"        threads:           0\n" +"\n" +"        # Optionally assign a fixed node id (integer)\n" +"        # nodeid:         1234\n" +"\n" +"        interface {\n" +"                ringnumber: 0\n" +"\n" +"                # The following values need to be set based on your environment\n" +"                bindnetaddr: 192.168.122.0\n" +"                mcastaddr: 226.94.1.1\n" +"                mcastport: 4000\n" +"        }\n" +"}\n" +"\n" +"logging {\n" +"        debug: off\n" +"        fileline: off\n" +"        to_syslog: yes\n" +"        to_stderr: off\n" +"        syslog_facility: daemon\n" +"        timestamp: on\n" +"}\n" +"\n" +"amf {\n" +"        mode: disabled\n" +"}\n" +"" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ap-Reading.pot b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot new file mode 100644 index 0000000000..5bd05f0b58 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ap-Reading.pot @@ -0,0 +1,54 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Further Reading" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Project Website" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "http://www.clusterlabs.org" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Cluster Commands" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A comprehensive guide to cluster commands has been written by Novell and can be found at:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "http://www.novell.com/documentation/sles11/book_sleha/index.html?page=/documentation/sles11/book_sleha/data/book_sleha.html" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Corosync" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "http://www.corosync.org" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Author_Group.pot b/doc/Clusters_from_Scratch/pot/Author_Group.pot new file mode 100644 index 0000000000..d88c25fa0c --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Author_Group.pot @@ -0,0 +1,29 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: firstname +#, no-c-format +msgid "Andrew" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "" + +#. Tag: orgname +#, no-c-format +msgid "Red Hat" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Book_Info.pot b/doc/Clusters_from_Scratch/pot/Book_Info.pot new file mode 100644 index 0000000000..3be1253028 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Book_Info.pot @@ -0,0 +1,74 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Clusters from Scratch" +msgstr "" + +#. Tag: subtitle +#, no-c-format +msgid "Creating Active/Passive and Active/Active Clusters on Fedora" +msgstr "" + +#. Tag: productname +#, no-c-format +msgid "Pacemaker" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The purpose of this document is to provide a start-to-finish guide to building an example active/passive cluster with Pacemaker and show how it can be converted to an active/active one." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The example cluster will use:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "&DISTRO; &DISTRO_VERSION; as the host operating system" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Corosync to provide messaging and membership services," +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker to perform resource management," +msgstr "" + +#. Tag: para +#, no-c-format +msgid "DRBD as a cost-effective alternative to shared storage," +msgstr "" + +#. Tag: para +#, no-c-format +msgid "GFS2 as the cluster filesystem (in active/active mode)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The crm shell for displaying the configuration and making changes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Given the graphical nature of the Fedora install process, a number of screenshots are included. However the guide is primarily composed of commands, the reasons for executing them and their expected outputs." +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot b/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot new file mode 100644 index 0000000000..e3b20a59af --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Active.pot @@ -0,0 +1,852 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Conversion to Active/Active" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Requirements" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The primary requirement for an Active/Active cluster is that the data required for your services are available, simultaneously, on both machines. Pacemaker makes no requirement on how this is achieved, you could use a SAN if you had one available, however since DRBD supports multiple Primaries, we can also use that." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The only hitch is that we need to use a cluster-aware filesystem (and the one we used earlier with DRBD, ext4, is not one of those). Both OCFS2 and GFS2 are supported, however here we will use GFS2 which comes with &DISTRO; &DISTRO_VERSION; ." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Install a Cluster Filesystem - GFS2" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The first thing to do is install gfs2-utils on each machine." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# yum install -y gfs2-utils gfs-pcmk\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package gfs-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Processing Dependency: libSaCkpt.so.3(OPENAIS_CKPT_B.01.01)(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: dlm-pcmk for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libccs.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libdlmcontrol.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: liblogthread.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"--> Processing Dependency: libSaCkpt.so.3()(64bit) for package: gfs-pcmk-3.0.5-2.fc12.x86_64\n" +"---> Package gfs2-utils.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"--> Running transaction check\n" +"---> Package clusterlib.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package dlm-pcmk.x86_64 0:3.0.5-2.fc12 set to be updated\n" +"---> Package openaislib.x86_64 0:1.1.0-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package                Arch               Version                   Repository        Size\n" +"===========================================================================================\n" +"Installing:\n" +" gfs-pcmk               x86_64             3.0.5-2.fc12              custom           101 k\n" +" gfs2-utils             x86_64             3.0.5-2.fc12              custom           208 k\n" +"Installing for dependencies:\n" +" clusterlib             x86_64             3.0.5-2.fc12              custom            65 k\n" +" dlm-pcmk               x86_64             3.0.5-2.fc12              custom            93 k\n" +" openaislib             x86_64             1.1.0-1.fc12              fedora            76 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       5 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 541 k\n" +"Downloading Packages:\n" +"(1/5): clusterlib-3.0.5-2.fc12.x86_64.rpm                                |  65 kB     00:00\n" +"(2/5): dlm-pcmk-3.0.5-2.fc12.x86_64.rpm                                  |  93 kB     00:00\n" +"(3/5): gfs-pcmk-3.0.5-2.fc12.x86_64.rpm                                  | 101 kB     00:00\n" +"(4/5): gfs2-utils-3.0.5-2.fc12.x86_64.rpm                                | 208 kB     00:00\n" +"(5/5): openaislib-1.1.0-1.fc12.x86_64.rpm                                |  76 kB     00:00\n" +"-------------------------------------------------------------------------------------------\n" +"Total                                                           992 kB/s | 541 kB     00:00\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : clusterlib-3.0.5-2.fc12.x86_64                                       1/5 \n" +"  Installing     : openaislib-1.1.0-1.fc12.x86_64                                       2/5 \n" +"  Installing     : dlm-pcmk-3.0.5-2.fc12.x86_64                                         3/5 \n" +"  Installing     : gfs-pcmk-3.0.5-2.fc12.x86_64                                         4/5 \n" +"  Installing     : gfs2-utils-3.0.5-2.fc12.x86_64                                       5/5 \n" +"\n" +"Installed:\n" +"  gfs-pcmk.x86_64 0:3.0.5-2.fc12                    gfs2-utils.x86_64 0:3.0.5-2.fc12\n" +"\n" +"Dependency Installed:\n" +"  clusterlib.x86_64 0:3.0.5-2.fc12   dlm-pcmk.x86_64 0:3.0.5-2.fc12 \n" +"  openaislib.x86_64 0:1.1.0-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 x86_64]#\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Setup Pacemaker-GFS2 Integration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "GFS2 needs two services to be running, the first is the user-space interface to the kernel’s distributed lock manager (DLM). The DLM is used to co-ordinate which node(s) can access a given file (and when) and integrates with Pacemaker to obtain node membership The list of nodes the cluster considers to be available information and fencing capabilities." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The second service is GFS2’s own control daemon which also integrates with Pacemaker to obtain node membership data." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Add the DLM service" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The DLM control daemon needs to run on all active cluster nodes, so we will use the shells interactive mode to create a cloned resource." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new stack-glue\n" +"INFO: stack-glue shadow CIB created\n" +"crm(stack-glue)# configure primitive dlm ocf:pacemaker:controld op monitor interval=120s\n" +"crm(stack-glue)# configure clone dlm-clone dlm meta interleave=true\n" +"crm(stack-glue)# configure show xml\n" +"crm(stack-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the meaning of the interleave option" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Review the configuration before uploading it to the cluster, quitting the shell and watching the cluster’s response" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(stack-glue)# cib commit stack-glue\n" +"INFO: commited 'stack-glue' shadow CIB to the cluster\n" +"crm(stack-glue)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 20:49:54 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"5 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"Clone Set: dlm-clone\n" +" Started: [ pcmk-2 pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Add the GFS2 service" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once the DLM is active, we can add the GFS2 control daemon." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Use the crm shell to create the gfs-control cluster resource:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new gfs-glue --force\n" +"INFO: gfs-glue shadow CIB created\n" +"crm(gfs-glue)# configure primitive gfs-control ocf:pacemaker:controld params daemon=gfs_controld.pcmk args="-g 0" op monitor interval=120s\n" +"crm(gfs-glue)# configure clone gfs-clone gfs-control meta interleave=true\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now ensure Pacemaker only starts the gfs-control service on nodes that also have a copy of the dlm service (created above) already running" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(gfs-glue)# configure colocation gfs-with-dlm INFINITY: gfs-clone dlm-clone\n" +"crm(gfs-glue)# configure order start-gfs-after-dlm mandatory: dlm-clone gfs-clone\n" +"" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(gfs-glue)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Create a GFS2 Filesystem" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Before we do anything to the existing partition, we need to make sure it is unmounted. We do this by tell the cluster to stop the WebFS resource. This will ensure that other resources (in our case, Apache) using WebFS are not only stopped, but stopped in the correct order." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm_resource --resource WebFS --set-parameter target-role --meta --parameter-value Stopped\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Sep  3 15:18:06 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"6 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-1 ]\n" +"        Slaves: [ pcmk-2 ]\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"Clone Set: dlm-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"Clone Set: gfs-clone\n" +"        Started: [ pcmk-2 pcmk-1 ]\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Note that both Apache and WebFS have been stopped." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Create and Populate an GFS2 Partition" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now that the cluster stack and integration pieces are running smoothly, we can create an GFS2 partition." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This will erase all previous content stored on the DRBD device. Ensure you have a copy of any important data." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We need to specify a number of additional parameters when creating a GFS2 partition." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "First we must use the -p option to specify that we want to use the the Kernel’s DLM. Next we use -j to indicate that it should reserve enough space for two journals (one per node accessing the filesystem)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Lastly, we use -t to specify the lock table name. The format for this field is clustername:fsname. For the fsname, we just need to pick something unique and descriptive and since we haven’t specified a clustername yet, we will use the default (pcmk)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To specify an alternate name for the cluster, locate the service section containing “name: pacemaker” in corosync.conf and insert the following line anywhere inside the block:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "clustername: myname" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do this on each node in the cluster and be sure to restart them before continuing." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1\n" +"[root@pcmk-1 ~]# mkfs.gfs2 -t pcmk:web -p lock_dlm -j 2 /dev/vdb \n" +"This will destroy any data on /dev/vdb.\n" +"It appears to contain: data\n" +"\n" +"Are you sure you want to proceed? [y/n] y\n" +"\n" +"Device:                    /dev/vdb\n" +"Blocksize:                 4096\n" +"Device Size                1.00 GB (131072 blocks)\n" +"Filesystem Size:           1.00 GB (131070 blocks)\n" +"Journals:                  2\n" +"Resource Groups:           2\n" +"Locking Protocol:          "lock_dlm"\n" +"Lock Table:                "pcmk:web"\n" +"UUID:                      6B776F46-177B-BAF8-2C2B-292C0E078613\n" +"\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Then (re)populate the new filesystem with data (web pages). For now we’ll create another variation on our home page." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# mount /dev/drbd1 /mnt/\n" +"[root@pcmk-1 ~]# cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - GFS2</body>\n" +"</html>\n" +"END\n" +"[root@pcmk-1 ~]# umount /dev/drbd1\n" +"[root@pcmk-1 ~]# drbdadm verify wwwdata\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Reconfigure the Cluster for GFS2" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new GFS2\n" +"INFO: GFS2 shadow CIB created\n" +"crm(GFS2)# configure delete WebFS\n" +"crm(GFS2)# configure primitive WebFS ocf:heartbeat:Filesystem params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html" fstype=”gfs2”\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now that we’ve recreated the resource, we also need to recreate all the constraints that used it. This is because the shell will automatically remove any constraints that referenced WebFS." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(GFS2)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(GFS2)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(GFS2)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +"crm(GFS2)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +"crm(GFS2)# configure colocation WebFS-with-gfs-control INFINITY: WebFS gfs-clone\n" +"crm(GFS2)# configure order start-WebFS-after-gfs-control mandatory: gfs-clone WebFS\n" +"crm(GFS2)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Reconfigure Pacemaker for Active/Active" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Almost everything is in place. Recent versions of DRBD are capable of operating in Primary/Primary mode and the filesystem we’re using is cluster aware. All we need to do now is reconfigure the cluster to take advantage of this." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This will involve a number of changes, so we’ll again use interactive mode." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"[root@pcmk-1 ~]# cib new active\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There’s no point making the services active on both locations if we can’t reach them, so lets first clone the IP address. Cloned IPaddr2 resources use an iptables rule to ensure that each request only processed by one of the two clone instances. The additional meta options tell the cluster how many instances of the clone we want (one “request bucket” for each node) and that if all other nodes fail, then the remaining node should hold all of them. Otherwise the requests would be simply discarded." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we must tell the ClusterIP how to decide which requests are processed by which hosts. To do this we must specify the clusterip_hash parameter." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Open the ClusterIP resource" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# configure edit  ClusterIP" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "And add the following to the params line" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "clusterip_hash="sourceip"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "So that the complete definition looks like:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip="192.168.122.101" cidr_netmask="32" clusterip_hash="sourceip" \\\n" +"        op monitor interval="30s"\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Here is the full transcript" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new active\n" +"INFO: active shadow CIB created\n" +"crm(active)# configure clone WebIP ClusterIP  \\\n" +"        meta globally-unique=”true” clone-max=”2” clone-node-max=”2”\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "Notice how any constraints that referenced ClusterIP have been updated to use WebIP instead. This is an additional benefit of using the crm shell." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Next we need to convert the filesystem and Apache resources into clones. Again, the shell will automatically update any relevant constraints." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(active)# configure clone WebFSClone WebFS\n" +"crm(active)# configure clone WebSiteClone WebSite\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The last step is to tell the cluster that it is now allowed to promote both instances to be Primary (aka. Master)." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(active)# configure edit WebDataClone\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Change master-max to 2" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(active)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Testing Recovery" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Put one node into standby to demonstrate failover" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot new file mode 100644 index 0000000000..b64e1278a3 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Active-Passive.pot @@ -0,0 +1,502 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Creating an Active/Passive Cluster" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Exploring the Existing Configuration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When Pacemaker starts up, it automatically records the number and details of the nodes in the cluster as well as which stack is being used and the version of Pacemaker being used." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This is what the base configuration should look like." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"property $id="cib-bootstrap-options" \\\n" +"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" +"        cluster-infrastructure="openais" \\\n" +"        expected-quorum-votes="2"\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For those that are not of afraid of XML, you can see the raw configuration by appending “xml” to the previous command." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# crm configure show xml\n" +"<?xml version="1.0" ?>\n" +"<cib admin_epoch="0" crm_feature_set="3.0.1" dc-uuid="pcmk-1" epoch="13" have-quorum="1" num_updates="7" validate-with="pacemaker-1.0">\n" +"  <configuration>\n" +"    <crm_config>\n" +"      <cluster_property_set id="cib-bootstrap-options">\n" +"        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7"/>\n" +"        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>\n" +"        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/>\n" +"      </cluster_property_set>\n" +"    </crm_config>\n" +"    <rsc_defaults/>\n" +"    <op_defaults/>\n" +"    <nodes>\n" +"      <node id="pcmk-1" type="normal" uname="pcmk-1"/>\n" +"      <node id="pcmk-2" type="normal" uname="pcmk-2"/>\n" +"    </nodes>\n" +"    <resources/>\n" +"    <constraints/>\n" +"  </configuration>\n" +"</cib>\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The last XML you’ll see in this document" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Before we make any changes, its a good idea to check the validity of the configuration." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm_verify -L\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option\n" +"crm_verify[2195]: 2009/08/27_16:57:12 ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity\n" +"Errors found during check: config not valid\n" +"  -V may provide more details\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "As you can see, the tool has found some errors." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In order to guarantee the safety of your data If the data is corrupt, there is little point in continuing to make it available , Pacemaker ships with STONITH A common node fencing mechanism. Used to ensure data integrity by powering off “bad” nodes. enabled. However it also knows when no STONITH configuration has been supplied and reports this as a problem (since the cluster would not be able to make progress if a situation requiring node fencing arose)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For now, we will disable this feature and configure it later in the Configuring STONITH section. It is important to note that the use of STONITH is highly encouraged, turning it off tells the cluster to simply pretend that failed nodes are safely powered off. Some vendors will even refuse to support clusters that have it disabled." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To disable STONITH, we set the stonith-enabled cluster option to false." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "crm configure property stonith-enabled=false" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "crm_verify -L" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "With the new cluster option set, the configuration is now valid." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Adding a Resource" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The first thing we should do is configure an IP address. Regardless of where the cluster service(s) are running, we need a consistent address to contact them on. Here I will choose and add 192.168.122.101 as the floating address, give it the imaginative name ClusterIP and tell the cluster to check that its running every 30 seconds." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The chosen address must not be one already associated with a physical node" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm configure primitive ClusterIP ocf:heartbeat:IPaddr2 \\ \n" +"        params ip=192.168.122.101 cidr_netmask=32 \\ \n" +"        op monitor interval=30s\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The other important piece of information here is ocf:heartbeat:IPaddr2. This tells Pacemaker three things about the resource you want to add. The first field, ocf, is the standard to which the resource script conforms to and where to find it. The second field is specific to OCF resources and tells the cluster which namespace to find the resource script in, in this case heartbeat. The last field indicates the name of the resource script." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To obtain a list of the available resource classes, run" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm ra classes\n" +"heartbeat\n" +"lsb\n" +"ocf / heartbeat pacemaker\n" +"stonith\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To then find all the OCF resource agents provided by Pacemaker and Heartbeat, run" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm ra list ocf pacemaker\n" +"ClusterMon     Dummy          Stateful       SysInfo        SystemHealth   controld\n" +"ping           pingd          \n" +"[root@pcmk-1 ~]# crm ra list ocf heartbeat\n" +"AoEtarget              AudibleAlarm           ClusterMon             Delay\n" +"Dummy                  EvmsSCC                Evmsd                  Filesystem\n" +"ICP                    IPaddr                 IPaddr2                IPsrcaddr\n" +"LVM                    LinuxSCSI              MailTo                 ManageRAID\n" +"ManageVE               Pure-FTPd              Raid1                  Route\n" +"SAPDatabase            SAPInstance            SendArp                ServeRAID\n" +"SphinxSearchDaemon     Squid                  Stateful               SysInfo\n" +"VIPArip                VirtualDomain          WAS                    WAS6\n" +"WinPopup               Xen                    Xinetd                 anything\n" +"apache                 db2                    drbd                   eDir88\n" +"iSCSILogicalUnit       iSCSITarget            ids                    iscsi\n" +"ldirectord             mysql                  mysql-proxy            nfsserver\n" +"oracle                 oralsnr                pgsql                  pingd\n" +"portblock              rsyncd                 scsi2reservation       sfex\n" +"tomcat                 vmware                 \n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now verify that the IP resource has been added and display the cluster’s status to see that it is now active." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +" params ip="192.168.122.101" cidr_netmask="32" \\\n" +" op monitor interval="30s"\n" +"property $id="cib-bootstrap-options" \\\n" +"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" +"        cluster-infrastructure="openais" \\\n" +"        expected-quorum-votes="2" \\\n" +"        stonith-enabled="false" \\\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:23:48 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Perform a Failover" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Being a high-availability cluster, we should test failover of our new resource before moving on." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "First, find the node on which the IP address is running." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm resource status ClusterIP\n" +"resource ClusterIP is running on: pcmk-1\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Shut down Corosync on that machine." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync): [ OK ]\n" +"Waiting for services to unload: [ OK ]\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once Corosync is no longer running, go to the other node and check the cluster status with crm_mon." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:27:35 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There are three things to notice about the cluster’s current state. The first is that, as expected, pcmk-1 is now offline. However we can also see that ClusterIP isn’t running anywhere!" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Quorum and Two-Node Clusters" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This is because the cluster no longer has quorum, as can be seen by the text “partition WITHOUT quorum” (emphasised green) in the output above. In order to reduce the possibility of data corruption, Pacemaker’s default behavior is to stop all resources if the cluster does not have quorum." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A cluster is said to have quorum when more than half the known or expected nodes are online, or for the mathematically inclined, whenever the following equation is true:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "total_nodes - 1 < 2 * active_nodes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Therefore a two-node cluster only has quorum when both nodes are running, which is no longer the case for our cluster. This would normally make the creation of a two-node cluster pointless Actually some would argue that two-node clusters are always pointless, but that is an argument for another time. , however it is possible to control how Pacemaker behaves when quorum is lost. In particular, we can tell the cluster to simply ignore quorum altogether." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure property no-quorum-policy=ignore\n" +"[root@pcmk-1 ~]# crm configure show \n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip="192.168.122.101" cidr_netmask="32" \\\n" +"        op monitor interval="30s"\n" +"property $id="cib-bootstrap-options" \\\n" +"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" +"        cluster-infrastructure="openais" \\\n" +"        expected-quorum-votes="2" \\\n" +"        stonith-enabled="false" \\\n" +"        no-quorum-policy="ignore"\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "After a few moments, the cluster will start the IP address on the remaining node. Note that the cluster still does not have quorum." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:30:18 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now simulate node recovery by restarting the cluster stack on pcmk-1 and check the cluster’s status." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ] \n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:32:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Here we see something that some may consider surprising, the IP is back running at its original location!" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Prevent Resources from Moving after Recovery" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In some circumstances it is highly desirable to prevent healthy resources from being moved around the cluster. Move resources almost always requires a period of downtime and for complex services like Oracle databases, this period can be quite long." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To address this, Pacemaker has the concept of resource stickiness which controls how much a service prefers to stay running where it is. You may like to think of it as the “cost” of any downtime. By default, Pacemaker assumes there is zero cost associated with moving resources and will do so to achieve “optimal It should be noted that Pacemaker’s definition of optimal may not always agree with that of a human’s. The order in which Pacemaker processes lists of resources and nodes create implicit preferences (required in order to create a stabile solution) in situations where the administrator had not explicitly specified some. ” resource placement. We can specify a different stickiness for every resource, but it is often sufficient to change the default." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm configure rsc_defaults resource-stickiness=100\n" +"[root@pcmk-2 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n" +"        params ip="192.168.122.101" cidr_netmask="32" \\\n" +"        op monitor interval="30s"\n" +"property $id="cib-bootstrap-options" \\\n" +"        dc-version="1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7" \\\n" +"        cluster-infrastructure="openais" \\\n" +"        expected-quorum-votes="2" \\\n" +"        stonith-enabled="false" \\\n" +"        no-quorum-policy="ignore"\n" +"rsc_defaults $id="rsc-options" \\\n" +" resource-stickiness="100"\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If we now retry the failover test, we see that as expected ClusterIP still moves to pcmk-2 when pcmk-1 is taken offline." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ssh pcmk-1 -- /etc/init.d/corosync stop\n" +"Stopping Corosync Cluster Engine (corosync):               [  OK  ]\n" +"Waiting for services to unload:                            [  OK  ]\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- crm_mon -1\n" +"============\n" +"Last updated: Fri Aug 28 15:39:38 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition WITHOUT quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-2 ]\n" +"OFFLINE: [ pcmk-1 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "However when we bring pcmk-1 back online, ClusterIP now remains running on pcmk-2." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 15:41:23 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"1 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Apache.pot b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot new file mode 100644 index 0000000000..6efcc489d9 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Apache.pot @@ -0,0 +1,566 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Apache - Adding More Services" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now that we have a basic but functional active/passive two-node cluster, we’re ready to add some real services. We’re going to start with Apache because its a feature of many clusters and relatively simple to configure." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Installation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Before continuing, we need to make sure Apache is installed on both hosts." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@ppcmk-1 ~]# yum install -y httpd\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n" +"--> Running transaction check\n" +"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n" +"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n" +"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=======================================================================================\n" +" Package               Arch             Version                Repository         Size\n" +"=======================================================================================\n" +"Installing:\n" +" httpd               x86_64           2.2.13-2.fc12            rawhide           735 k\n" +"Installing for dependencies:\n" +" apr                 x86_64           1.3.9-2.fc12             rawhide           117 k\n" +" apr-util            x86_64           1.3.9-2.fc12             rawhide            84 k\n" +" apr-util-ldap       x86_64           1.3.9-2.fc12             rawhide            15 k\n" +" httpd-tools         x86_64           2.2.13-2.fc12            rawhide            63 k\n" +" mailcap             noarch           2.1.30-1.fc12            rawhide            25 k\n" +"\n" +"Transaction Summary\n" +"=======================================================================================\n" +"Install       6 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 1.0 M\n" +"Downloading Packages:\n" +"(1/6): apr-1.3.9-2.fc12.x86_64.rpm                                   | 117 kB     00:00     \n" +"(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm                             |  84 kB     00:00     \n" +"(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm                         |  15 kB     00:00     \n" +"(4/6): httpd-2.2.13-2.fc12.x86_64.rpm                               | 735 kB     00:00     \n" +"(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm                         |  63 kB     00:00     \n" +"(6/6): mailcap-2.1.30-1.fc12.noarch.rpm                             |  25 kB     00:00     \n" +"----------------------------------------------------------------------------------------\n" +"Total                                                       875 kB/s | 1.0 MB     00:01     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : apr-1.3.9-2.fc12.x86_64                                         1/6 \n" +"  Installing     : apr-util-1.3.9-2.fc12.x86_64                                     2/6 \n" +"  Installing     : apr-util-ldap-1.3.9-2.fc12.x86_64                               3/6 \n" +"  Installing     : httpd-tools-2.2.13-2.fc12.x86_64                                 4/6 \n" +"  Installing     : mailcap-2.1.30-1.fc12.noarch                                     5/6 \n" +"  Installing     : httpd-2.2.13-2.fc12.x86_64                                       6/6 \n" +"\n" +"Installed:\n" +"  httpd.x86_64 0:2.2.13-2.fc12                                                         \n" +"\n" +"Dependency Installed:\n" +"  apr.x86_64 0:1.3.9-2.fc12            apr-util.x86_64 0:1.3.9-2.fc12\n" +"  apr-util-ldap.x86_64 0:1.3.9-2.fc12  httpd-tools.x86_64 0:2.2.13-2.fc12\n" +"  mailcap.noarch 0:2.1.30-1.fc12  \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Also, we need the wget tool in order for the cluster to be able to check the status of the Apache server." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# yum install -y wget\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"===========================================================================================\n" +" Package        Arch             Version                      Repository               Size\n" +"===========================================================================================\n" +"Installing:\n" +" wget         x86_64          1.11.4-5.fc12                   rawhide                393 k\n" +"\n" +"Transaction Summary\n" +"===========================================================================================\n" +"Install       1 Package(s)\n" +"Upgrade       0 Package(s)\n" +"\n" +"Total download size: 393 k\n" +"Downloading Packages:\n" +"wget-1.11.4-5.fc12.x86_64.rpm                                            | 393 kB     00:00     \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Finished Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +"  Installing     : wget-1.11.4-5.fc12.x86_64                                            1/1 \n" +"\n" +"Installed:\n" +"  wget.x86_64 0:1.11.4-5.fc12\n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Preparation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "First we need to create a page for Apache to serve up. On Fedora the default Apache docroot is /var/www/html, so we’ll create an index file there." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-1</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For the moment, we will simplify things by serving up only a static site and manually sync the data between the two nodes. So run the command again on pcmk-2." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# cat <<-END >/var/www/html/index.html\n" +" <html>\n" +" <body>My Test Site - pcmk-2</body>\n" +" </html>\n" +" END\n" +"[root@pcmk-2 ~]#\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Enable the Apache status URL" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In order to monitor the health of your Apache instance, and recover it if it fails, the resource agent used by Pacemaker assumes the server-status URL is available. Look for the following in /etc/httpd/conf/httpd.conf and make sure it is not disabled or commented out:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"<Location /server-status>\n" +" SetHandler server-status\n" +" Order deny,allow\n" +" Deny from all\n" +" Allow from 127.0.0.1\n" +"</Location>\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Update the Configuration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "At this point, Apache is ready to go, all that needs to be done is to add it to the cluster. Lets call the resource WebSite. We need to use an OCF script called apache in the heartbeat namespace Compare the key used here ocf:heartbeat:apache with the one we used earlier for the IP address: ocf:heartbeat:IPaddr2 , the only required parameter is the path to the main Apache configuration file and we’ll tell the cluster to check once a minute that apache is still running." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +" params configfile="/etc/httpd/conf/httpd.conf" \\\n" +" op monitor interval="1min"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "After a short delay, we should see the cluster start apache" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:12:49 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Wait a moment, the WebSite resource isn’t running on the same host as our IP address!" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Ensuring Resources Run on the Same Host" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To reduce the load on any one machine, Pacemaker will generally try to spread the configured resources across the cluster nodes. However we can tell the cluster that two resources are related and need to run on the same host (or not at all). Here we instruct the cluster that WebSite can only run on the host that ClusterIP is active on. If ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Controlling Resource Start/Stop Ordering" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When Apache starts, it binds to the available IP addresses. It doesn’t know about any addresses we add afterwards, so not only do they need to run on the same node, but we need to make sure ClusterIP is already active before we start WebSite. We do this by adding an ordering constraint. We need to give it a name (chose something descriptive like apache-after-ip), indicate that its mandatory (so that any recovery for ClusterIP will also trigger recovery of WebSite) and list the two resources in the order we need them to start." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure order apache-after-ip mandatory: ClusterIP WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Specifying a Preferred Location" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker does not rely on any sort of hardware symmetry between nodes, so it may well be that one machine is more powerful than the other. In such cases it makes sense to host the resources there if it is available. To do this we create a location constraint. Again we give it a descriptive name (prefer-pcmk-1), specify the resource we want to run there (WebSite), how badly we’d like it to run there (we’ll use 50 for now, but in a two-node situation almost any value above 0 will do) and the host’s name." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure location prefer-pcmk-1 WebSite 50: pcmk-1\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "Wait a minute, the resources are still on pcmk-2!" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Even though we now prefer pcmk-1 over pcmk-2, that preference is (intentionally) less than the resource stickiness (how much we preferred not to have unnecessary downtime)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To see the current placement scores, you can use a tool called ptest" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "ptest -sL" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Include output" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There is a way to force them to move though..." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Manually Moving Resources Around the Cluster" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There are always times when an administrator needs to override the cluster and force resources to move to a specific location. Underneath we use location constraints like the one we created above, happily you don’t need to care. Just provide the name of the resource and the intended location, we’ll do the rest." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm resource move WebSite pcmk-1\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:19:24 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +"Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n" +"For the curious, we can see the effect of this command by examining the configuration\n" +"crm configure show\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "Highlighted is the automated constraint used to move the resources to pcmk-1" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Giving Control Back to the Cluster" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once we’ve finished whatever activity that required us to move the resources to pcmk-1, in our case nothing, we can then allow the cluster to resume normal operation with the unmove command. Since we previously configured a default stickiness, the resources will remain on pcmk-1." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm resource unmove WebSite\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebSite ocf:heartbeat:apache \\\n" +"        params configfile="/etc/httpd/conf/httpd.conf" \\\n" +"        op monitor interval="1min"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "Note that the automated constraint is now gone. If we check the cluster status, we can also see that as expected the resources are still active on pcmk-1." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Fri Aug 28 16:20:53 2009\n" +"Stack: openais\n" +"Current DC: pcmk-2 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"2 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +" ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +" WebSite        (ocf::heartbeat:apache):        Started pcmk-1\n" +"" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Installation.pot b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot new file mode 100644 index 0000000000..b78c0f3db0 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Installation.pot @@ -0,0 +1,986 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Installation" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "OS Installation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Detailed instructions for installing Fedora are available at http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/ in a number of languages. The abbreviated version is as follows..." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Point your browser to http://fedoraproject.org/en/get-fedora-all, locate the Install Media section and download the install DVD that matches your hardware." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Burn the disk image to a DVD http://docs.fedoraproject.org/readme-burning-isos/en-US.html and boot from it. Or use the image to boot a virtual machine as I have done here. After clicking through the welcome screen, select your language and keyboard layout http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/s1-langselection-x86.html " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Welcome" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Good choice" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Storage Devices" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Storage Devices" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assign your machine a host name. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-networkconfig-fedora.html I happen to control the clusterlabs.org domain name, so I will use that here." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Hostname" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose a hostname" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "You will then be prompted to indicate the machine’s physical location and to supply a root password. http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/sn-account_configuration.html " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now select where you want Fedora installed. http://docs.fedoraproject.org/install-guide/f13/en-US/html/s1-diskpartsetup-x86.html As I don’t care about any existing data, I will accept the default and allow Fedora to use the complete drive. However I want to reserve some space for DRBD, so I'll check the Review and modify partitioning layout box." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Type" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Choose an installation type" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "By default, Fedora will give all the space to the / (aka. root) partition. Wel'll take some back so we can use DRBD." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Default Partitioning" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The finalized partition layout should look something like the diagram below." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If you plan on following the DRBD or GFS2 portions of this guide, you should reserve at least 1Gb of space on each machine from which to create a shared volume." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Partitioning" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Create a partition to use (later) for website data" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bootloader" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Unless you have a strong reason not to, accept the default bootloader location" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Next choose which software should be installed. Change the selection to Web Server since we plan on using Apache. Don't enable updates yet, we'll do that (and install any extra software we need) later. After you click next, Fedora will begin installing." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Software" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Software selection" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installing" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Go grab something to drink, this may take a while" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Installation Complete" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Stage 1, completed" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once the node reboots, follow the on screen instructions http://docs.fedoraproject.org/install-guide/f&DISTRO_VERSION;/en-US/html/ch-firstboot.html to create a system user and configure the time." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - First Boot" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Create Non-privileged User" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Creating a non-privileged user, take note of the password, you'll need it soon" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "It is highly recommended to enable NTP on your cluster nodes. Doing so ensures all nodes agree on the current time and makes reading log files significantly easier." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Date and Time" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Enable NTP to keep the times on all your nodes consistent" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Click through the next screens until you reach the login window. Click on the user you created and supply the password you indicated earlier." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Customize Networking" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click here to configure networking" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Do not accept the default network settings. Cluster machines should never obtain an ip address via DHCP. Here I will use the internal addresses for the clusterlab.org network." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Specify Network Preferences" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Specify network settings for your machine, never choose DHCP" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Activate Networking" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Click the big green button to activate your changes" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Fedora Installation - Bring up the Terminal" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Fedora Installation: Down to business, fire up the command line" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "That was the last screenshot, from here on in we’re going to be working from the terminal." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Cluster Software Installation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Go to the terminal window you just opened and switch to the super user (aka. "root") account with the su command. You will need to supply the password you entered earlier during the installation process." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[beekhof@pcmk-1 ~]$ su -\n" +"Password:\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Note that the username (the text before the @ symbol) now indicates we’re running as the super user “root”." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ip addr\n" +"1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN \n" +" 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 "" + +#. Tag: title +#, no-c-format +msgid "Security Shortcuts" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "To simplify this guide and focus on the aspects directly connected to clustering, we will now disable the machine’s firewall and SELinux installation. Both of these actions create significant security issues and should not be performed on machines that will be exposed to the outside world." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Create an Appendix that deals with (at least) re-enabling the firewall." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# sed -i.bak "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config\n" +"[root@pcmk-1 ~]# /sbin/chkconfig --del iptables\n" +"[root@pcmk-1 ~]# service iptables stop\n" +"iptables: Flushing firewall rules: [ OK ]\n" +"iptables: Setting chains to policy ACCEPT: filter [ OK ]\n" +"iptables: Unloading modules: [ OK ]\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "You will need to reboot for the SELinux changes to take effect. Otherwise you will see something like this when you start corosync:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync "getattr" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +"May 4 19:30:54 pcmk-1 setroubleshoot: SELinux is preventing /usr/sbin/corosync "getattr" access on /. For complete SELinux messages. run sealert -l 6e0d4384-638e-4d55-9aaf-7dac011f29c1\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Install the Cluster Software" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Since version 12, Fedora comes with recent versions of everything you need, so simply fire up the shell and run:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora.repo\n" +"[root@pcmk-1 ~]# sed -i.bak "s/enabled=0/enabled=1/g" /etc/yum.repos.d/fedora-updates.repo\n" +"[root@pcmk-1 ~]# yum install -y pacemaker corosync\n" +"Loaded plugins: presto, refresh-packagekit\n" +"fedora/metalink | 22 kB 00:00 \n" +"fedora-debuginfo/metalink | 16 kB 00:00 \n" +"fedora-debuginfo | 3.2 kB 00:00 \n" +"fedora-debuginfo/primary_db | 1.4 MB 00:04 \n" +"fedora-source/metalink | 22 kB 00:00 \n" +"fedora-source | 3.2 kB 00:00 \n" +"fedora-source/primary_db | 3.0 MB 00:05 \n" +"updates/metalink | 26 kB 00:00 \n" +"updates | 2.6 kB 00:00 \n" +"updates/primary_db | 1.1 kB 00:00 \n" +"updates-debuginfo/metalink | 18 kB 00:00 \n" +"updates-debuginfo | 2.6 kB 00:00 \n" +"updates-debuginfo/primary_db | 1.1 kB 00:00 \n" +"updates-source/metalink | 25 kB 00:00 \n" +"updates-source | 2.6 kB 00:00 \n" +"updates-source/primary_db | 1.1 kB 00:00 \n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package corosync.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: corosynclib = 1.2.1-1.fc13 for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4(COROSYNC_QUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4(COROSYNC_VOTEQUORUM_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4(COROSYNC_CPG_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4(COROSYNC_CONFDB_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4(COROSYNC_CFG_0.82)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4(COROSYNC_PLOAD_1.0)(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblogsys.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libconfdb.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcc.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcpg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libquorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcoroipcs.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libvotequorum.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcfg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtotem_pg.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpload.so.4()(64bit) for package: corosync-1.2.1-1.fc13.x86_64\n" +"---> Package pacemaker.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"--> Processing Dependency: heartbeat >= 3.0.0 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: net-snmp >= 5.4 for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: resource-agents for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: cluster-glue for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmp.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcluster.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpengine.so.3()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpagent.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libesmtp.so.5()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonithd.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libhbclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpils.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_status.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmpmibs.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libnetsnmphelpers.so.20()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcib.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libccmclient.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libstonith.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: liblrm.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libtransitioner.so.1()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libpe_rules.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libcrmcommon.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Processing Dependency: libplumb.so.2()(64bit) for package: pacemaker-1.1.1-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package cluster-glue.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"--> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libopenhpi.so.2()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: cluster-glue-1.0.2-1.fc13.x86_64\n" +"---> Package cluster-glue-libs.x86_64 0:1.0.2-1.fc13 set to be updated\n" +"---> Package corosynclib.x86_64 0:1.2.1-1.fc13 set to be updated\n" +"--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: libibverbs.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"--> Processing Dependency: librdmacm.so.1()(64bit) for package: corosynclib-1.2.1-1.fc13.x86_64\n" +"---> Package heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"--> Processing Dependency: PyXML for package: heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64\n" +"---> Package heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 set to be updated\n" +"---> Package libesmtp.x86_64 0:1.0.4-12.fc12 set to be updated\n" +"---> Package net-snmp.x86_64 1:5.5-12.fc13 set to be updated\n" +"--> Processing Dependency: libsensors.so.4()(64bit) for package: 1:net-snmp-5.5-12.fc13.x86_64\n" +"---> Package net-snmp-libs.x86_64 1:5.5-12.fc13 set to be updated\n" +"---> Package pacemaker-libs.x86_64 0:1.1.1-1.fc13 set to be updated\n" +"---> Package resource-agents.x86_64 0:3.0.10-1.fc13 set to be updated\n" +"--> Processing Dependency: libnet.so.1()(64bit) for package: resource-agents-3.0.10-1.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 set to be updated\n" +"---> Package PyXML.x86_64 0:0.8.4-17.fc13 set to be updated\n" +"---> Package libibverbs.x86_64 0:1.1.3-4.fc13 set to be updated\n" +"--> Processing Dependency: libibverbs-driver for package: libibverbs-1.1.3-4.fc13.x86_64\n" +"---> Package libnet.x86_64 0:1.1.4-3.fc12 set to be updated\n" +"---> Package librdmacm.x86_64 0:1.0.10-2.fc13 set to be updated\n" +"---> Package lm_sensors-libs.x86_64 0:3.1.2-2.fc13 set to be updated\n" +"---> Package openhpi-libs.x86_64 0:2.14.1-3.fc13 set to be updated\n" +"---> Package perl-TimeDate.noarch 1:1.20-1.fc13 set to be updated\n" +"--> Running transaction check\n" +"---> Package libmlx4.x86_64 0:1.0.1-5.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +" " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"==========================================================================================\n" +" Package Arch Version Repository Size\n" +"==========================================================================================\n" +"Installing:\n" +" corosync x86_64 1.2.1-1.fc13 fedora 136 k\n" +" pacemaker x86_64 1.1.1-1.fc13 fedora 543 k\n" +"Installing for dependencies:\n" +" OpenIPMI-libs x86_64 2.0.16-8.fc13 fedora 474 k\n" +" PyXML x86_64 0.8.4-17.fc13 fedora 906 k\n" +" cluster-glue x86_64 1.0.2-1.fc13 fedora 230 k\n" +" cluster-glue-libs x86_64 1.0.2-1.fc13 fedora 116 k\n" +" corosynclib x86_64 1.2.1-1.fc13 fedora 145 k\n" +" heartbeat x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 172 k\n" +" heartbeat-libs x86_64 3.0.0-0.7.0daab7da36a8.hg.fc13 updates 265 k\n" +" libesmtp x86_64 1.0.4-12.fc12 fedora 54 k\n" +" libibverbs x86_64 1.1.3-4.fc13 fedora 42 k\n" +" libmlx4 x86_64 1.0.1-5.fc13 fedora 27 k\n" +" libnet x86_64 1.1.4-3.fc12 fedora 49 k\n" +" librdmacm x86_64 1.0.10-2.fc13 fedora 22 k\n" +" lm_sensors-libs x86_64 3.1.2-2.fc13 fedora 37 k\n" +" net-snmp x86_64 1:5.5-12.fc13 fedora 295 k\n" +" net-snmp-libs x86_64 1:5.5-12.fc13 fedora 1.5 M\n" +" openhpi-libs x86_64 2.14.1-3.fc13 fedora 135 k\n" +" pacemaker-libs x86_64 1.1.1-1.fc13 fedora 264 k\n" +" perl-TimeDate noarch 1:1.20-1.fc13 fedora 42 k\n" +" resource-agents x86_64 3.0.10-1.fc13 fedora 357 k\n" +"\n" +"Transaction Summary\n" +"=========================================================================================\n" +"Install 21 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 5.7 M\n" +"Installed size: 20 M\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"updates-testing/prestodelta | 164 kB 00:00 \n" +"fedora/prestodelta | 150 B 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 5.7 M\n" +"(1/21): OpenIPMI-libs-2.0.16-8.fc13.x86_64.rpm | 474 kB 00:00 \n" +"(2/21): PyXML-0.8.4-17.fc13.x86_64.rpm | 906 kB 00:01 \n" +"(3/21): cluster-glue-1.0.2-1.fc13.x86_64.rpm | 230 kB 00:00 \n" +"(4/21): cluster-glue-libs-1.0.2-1.fc13.x86_64.rpm | 116 kB 00:00 \n" +"(5/21): corosync-1.2.1-1.fc13.x86_64.rpm | 136 kB 00:00 \n" +"(6/21): corosynclib-1.2.1-1.fc13.x86_64.rpm | 145 kB 00:00 \n" +"(7/21): heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 172 kB 00:00 \n" +"(8/21): heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64.rpm | 265 kB 00:00 \n" +"(9/21): libesmtp-1.0.4-12.fc12.x86_64.rpm | 54 kB 00:00 \n" +"(10/21): libibverbs-1.1.3-4.fc13.x86_64.rpm | 42 kB 00:00 \n" +"(11/21): libmlx4-1.0.1-5.fc13.x86_64.rpm | 27 kB 00:00 \n" +"(12/21): libnet-1.1.4-3.fc12.x86_64.rpm | 49 kB 00:00 \n" +"(13/21): librdmacm-1.0.10-2.fc13.x86_64.rpm | 22 kB 00:00 \n" +"(14/21): lm_sensors-libs-3.1.2-2.fc13.x86_64.rpm | 37 kB 00:00 \n" +"(15/21): net-snmp-5.5-12.fc13.x86_64.rpm | 295 kB 00:00 \n" +"(16/21): net-snmp-libs-5.5-12.fc13.x86_64.rpm | 1.5 MB 00:01 \n" +"(17/21): openhpi-libs-2.14.1-3.fc13.x86_64.rpm | 135 kB 00:00 \n" +"(18/21): pacemaker-1.1.1-1.fc13.x86_64.rpm | 543 kB 00:00 \n" +"(19/21): pacemaker-libs-1.1.1-1.fc13.x86_64.rpm | 264 kB 00:00 \n" +"(20/21): perl-TimeDate-1.20-1.fc13.noarch.rpm | 42 kB 00:00 \n" +"(21/21): resource-agents-3.0.10-1.fc13.x86_64.rpm | 357 kB 00:00 \n" +"----------------------------------------------------------------------------------------\n" +"Total 539 kB/s | 5.7 MB 00:10 \n" +"warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY\n" +"fedora/gpgkey | 3.2 kB 00:00 ... \n" +"Importing GPG key 0xE8E40FDE "Fedora (13) <fedora@fedoraproject.org%gt;" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-x86_64\n" +" " +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : lm_sensors-libs-3.1.2-2.fc13.x86_64 1/21 \n" +" Installing : 1:net-snmp-libs-5.5-12.fc13.x86_64 2/21 \n" +" Installing : 1:net-snmp-5.5-12.fc13.x86_64 3/21 \n" +" Installing : openhpi-libs-2.14.1-3.fc13.x86_64 4/21 \n" +" Installing : libibverbs-1.1.3-4.fc13.x86_64 5/21 \n" +" Installing : libmlx4-1.0.1-5.fc13.x86_64 6/21 \n" +" Installing : librdmacm-1.0.10-2.fc13.x86_64 7/21 \n" +" Installing : corosync-1.2.1-1.fc13.x86_64 8/21 \n" +" Installing : corosynclib-1.2.1-1.fc13.x86_64 9/21 \n" +" Installing : libesmtp-1.0.4-12.fc12.x86_64 10/21 \n" +" Installing : OpenIPMI-libs-2.0.16-8.fc13.x86_64 11/21 \n" +" Installing : PyXML-0.8.4-17.fc13.x86_64 12/21 \n" +" Installing : libnet-1.1.4-3.fc12.x86_64 13/21 \n" +" Installing : 1:perl-TimeDate-1.20-1.fc13.noarch 14/21 \n" +" Installing : cluster-glue-1.0.2-1.fc13.x86_64 15/21 \n" +" Installing : cluster-glue-libs-1.0.2-1.fc13.x86_64 16/21 \n" +" Installing : resource-agents-3.0.10-1.fc13.x86_64 17/21 \n" +" Installing : heartbeat-libs-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 18/21 \n" +" Installing : heartbeat-3.0.0-0.7.0daab7da36a8.hg.fc13.x86_64 19/21 \n" +" Installing : pacemaker-1.1.1-1.fc13.x86_64 20/21 \n" +" Installing : pacemaker-libs-1.1.1-1.fc13.x86_64 21/21 \n" +"\n" +"Installed:\n" +" corosync.x86_64 0:1.2.1-1.fc13 pacemaker.x86_64 0:1.1.1-1.fc13 \n" +"\n" +"Dependency Installed:\n" +" OpenIPMI-libs.x86_64 0:2.0.16-8.fc13 \n" +" PyXML.x86_64 0:0.8.4-17.fc13 \n" +" cluster-glue.x86_64 0:1.0.2-1.fc13 \n" +" cluster-glue-libs.x86_64 0:1.0.2-1.fc13 \n" +" corosynclib.x86_64 0:1.2.1-1.fc13 \n" +" heartbeat.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" heartbeat-libs.x86_64 0:3.0.0-0.7.0daab7da36a8.hg.fc13 \n" +" libesmtp.x86_64 0:1.0.4-12.fc12 \n" +" libibverbs.x86_64 0:1.1.3-4.fc13 \n" +" libmlx4.x86_64 0:1.0.1-5.fc13 \n" +" libnet.x86_64 0:1.1.4-3.fc12 \n" +" librdmacm.x86_64 0:1.0.10-2.fc13 \n" +" lm_sensors-libs.x86_64 0:3.1.2-2.fc13 \n" +" net-snmp.x86_64 1:5.5-12.fc13 \n" +" net-snmp-libs.x86_64 1:5.5-12.fc13 \n" +" openhpi-libs.x86_64 0:2.14.1-3.fc13 \n" +" pacemaker-libs.x86_64 0:1.1.1-1.fc13 \n" +" perl-TimeDate.noarch 1:1.20-1.fc13 \n" +" resource-agents.x86_64 0:3.0.10-1.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]# \n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Before You Continue" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Repeat the Installation steps so that you have 2 Fedora nodes with the cluster software installed." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For the purposes of this document, the additional node is called pcmk-2 with address 192.168.122.42." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Setup" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Finalize Networking" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Confirm that you can communicate with the two new nodes:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by IP address" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "\n" +" ping -c 3 192.168.122.102\n" +"[root@pcmk-1 ~]# ping -c 3 192.168.122.102\n" +"PING 192.168.122.102 (192.168.122.102) 56(84) bytes of data.\n" +"64 bytes from 192.168.122.102: icmp_seq=1 ttl=64 time=0.343 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=2 ttl=64 time=0.402 ms\n" +"64 bytes from 192.168.122.102: icmp_seq=3 ttl=64 time=0.558 ms\n" +"\n" +"--- 192.168.122.102 ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2000ms\n" +"rtt min/avg/max/mdev = 0.343/0.434/0.558/0.092 ms\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we need to make sure we can communicate with the machines by their name. If you have a DNS server, add additional entries for the three machines. Otherwise, you’ll need to add the machines to /etc/hosts . Below are the entries for my cluster nodes:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Set up /etc/hosts entries" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "\n" +" grep pcmk /etc/hosts\n" +"[root@pcmk-1 ~]# grep pcmk /etc/hosts\n" +"192.168.122.101 pcmk-1.clusterlabs.org pcmk-1\n" +"192.168.122.102 pcmk-2.clusterlabs.org pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We can now verify the setup by again using ping:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Verify Connectivity by Hostname" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "\n" +" ping -c 3 pcmk-2\n" +"[root@pcmk-1 ~]# ping -c 3 pcmk-2\n" +"PING pcmk-2.clusterlabs.org (192.168.122.101) 56(84) bytes of data.\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=1 ttl=64 time=0.164 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=2 ttl=64 time=0.475 ms\n" +"64 bytes from pcmk-1.clusterlabs.org (192.168.122.101): icmp_seq=3 ttl=64 time=0.186 ms\n" +"\n" +"--- pcmk-2.clusterlabs.org ping statistics ---\n" +"3 packets transmitted, 3 received, 0% packet loss, time 2001ms\n" +"rtt min/avg/max/mdev = 0.164/0.275/0.475/0.141 ms\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Configure SSH" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "SSH is a convenient and secure way to copy files and perform commands remotely. For the purposes of this guide, we will create a key without a password (using the -N “” option) so that we can perform remote actions without being prompted." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Unprotected SSH keys, those without a password, are not recommended for servers exposed to the outside world." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Create a new key and allow anyone with that key to log in:" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Creating and Activating a new SSH Key" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ""\n" +"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" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Install the key on the other nodes and test that you can now run commands remotely, without being prompted" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Installing the SSH Key on Another Host" +msgstr "" + +#. Tag: programlisting +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# scp -r .ssh pcmk-2:\n" +"The authenticity of host 'pcmk-2 (192.168.122.102)' can't be established.\n" +"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" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Short Node Names" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "During installation, we filled in the machine’s fully qualifier domain name (FQDN) which can be rather long when it appears in cluster logs and status output. See for yourself how the machine identifies itself:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1.clusterlabs.org\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The output from the second command is fine, but we really don’t need the domain name included in the basic host details. To address this, we need to update /etc/sysconfig/network. This is what it should look like before we start." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1.clusterlabs.org\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "All we need to do now is strip off the domain name portion, which is stored elsewhere anyway." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# sed -i.bak 's/\\.[a-z].*//g' /etc/sysconfig/network" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now confirm the change was successful. The revised file contents should look something like this." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# cat /etc/sysconfig/network\n" +"NETWORKING=yes\n" +"HOSTNAME=pcmk-1\n" +"GATEWAY=192.168.122.1\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "However we’re not finished. The machine wont normally see the shortened host name until about it reboots, but we can force it to update." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# source /etc/sysconfig/network\n" +"[root@pcmk-1 ~]# hostname $HOSTNAME\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now check the machine is using the correct names" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# uname -n\n" +"pcmk-1\n" +"[root@pcmk-1 ~]# dnsdomainname \n" +"clusterlabs.org\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now repeat on pcmk-2." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Configuring Corosync" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Choose a port number and multi-cast http://en.wikipedia.org/wiki/Multicast address. http://en.wikipedia.org/wiki/Multicast_address " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Be sure that the values you chose do not conflict with any existing clusters you might have. For advice on choosing a multi-cast address, see http://www.29west.com/docs/THPM/multicast-address-assignment.html " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For this document, I have chosen port 4000 and used 226.94.1.1 as the multi-cast address." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# export ais_port=4000\n" +"[root@pcmk-1 ~]# export ais_mcast=226.94.1.1\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Next we automatically determine the hosts address. By not using the full address, we make the configuration suitable to be copied to other nodes." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "[root@pcmk-1 ~]# export ais_addr=`ip addr | grep "inet " | tail -n 1 | awk '{print $4}' | sed s/255/0/`" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Display and verify the configuration options" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# env | grep ais_\n" +"ais_mcast=226.94.1.1\n" +"ais_port=4000\n" +"ais_addr=192.168.122.0\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once you’re happy with the chosen values, update the Corosync configuration" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# cp /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak "s/.*mcastaddr:.*/mcastaddr:\\ $ais_mcast/g" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak "s/.*mcastport:.*/mcastport:\\ $ais_port/g" /etc/corosync/corosync.conf\n" +"[root@pcmk-1 ~]# sed -i.bak "s/.*bindnetaddr:.*/bindnetaddr:\\ $ais_addr/g" /etc/corosync/corosync.conf\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Finally, tell Corosync to start Pacemaker" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# cat <<-END >>/etc/corosync/service.d/pcmk\n" +"service {\n" +" # Load the Pacemaker Cluster Resource Manager\n" +" name: pacemaker\n" +" ver: 0\n" +"}\n" +"END\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The final configuration should look something like the sample in the appendix." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Propagate the Configuration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we need to copy the changes so far to the other node:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# for f in /etc/corosync/corosync.conf /etc/corosync/service.d/pcmk /etc/hosts; do scp $f pcmk-2:$f ; done\n" +"corosync.conf 100% 1528 1.5KB/s 00:00\n" +"hosts 100% 281 0.3KB/s 00:00\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Intro.pot b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot new file mode 100644 index 0000000000..14fa8a7afa --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Intro.pot @@ -0,0 +1,269 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Read-Me-First" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "The Scope of this Document" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The purpose of this document is to definitively explain the concepts used to configure Pacemaker. To achieve this best, it will focus exclusively on the XML syntax used to configure the CIB." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "For those that are allergic to XML, Pacemaker comes with a cluster shell and a Python based GUI exists, however these tools will not be covered at all in this document It is hoped however, that having understood the concepts explained here, that the functionality of these tools will also be more readily understood. , precisely because they hide the XML." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Additionally, this document is NOT a step-by-step how-to guide for configuring a specific clustering scenario. Although such guides exist, the purpose of this document is to provide an understanding of the building blocks that can be used to construct any type of Pacemaker cluster." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "What Is Pacemaker?" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker is a cluster resource manager. It achieves maximum availability for your cluster services (aka. resources) by detecting and recovering from node and resource-level failures by making use of the messaging and membership capabilities provided by your preferred cluster infrastructure (either Corosync or Heartbeat)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker's key features include:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Detection and recovery of node and service-level failures" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Storage agnostic, no requirement for shared storage" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Resource agnostic, anything that can be scripted can be clustered" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Supports STONITH for ensuring data integrity" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Supports large and small clusters" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Supports both quorate and resource driven clusters" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Supports practically any redundancy configuration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Automatically replicated configuration that can be updated from any node" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Ability to specify cluster-wide service ordering, colocation and anti-colocation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Support for advanced services type" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Clones: for services which need to be active on multiple nodes" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Multi-state: for services with multiple modes (eg. master/slave, primary/secondary)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Unified, scriptable, cluster shell" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Types of Pacemaker Clusters" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker makes no assumptions about your environment, this allows it to support practically any redundancy configuration including Active/Active, Active/Passive, N+1, N+M, N-to-1 and N-to-N." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Active/Passive Redundancy" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Two-node Active/Passive clusters using Pacemaker and DRBD are a cost-effective solution for many High Availability situations." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Shared Failover" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "By supporting many nodes, Pacemaker can dramatically reduce hardware costs by allowing several active/passive clusters to be combined and share a common backup node" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "N to N Redundancy" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "When shared storage is available, every node can potentially be used for failover. Pacemaker can even run multiple copies of services to spread out the workload." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Pacemaker Architecture" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "At the highest level, the cluster is made up of three pieces:" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Core cluster infrastructure providing messaging and membership functionality (illustrated in red)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Non-cluster aware components (illustrated in blue). In a Pacemaker cluster, these pieces include not only the scripts that knows how to start, stop and monitor resources, but also a local daemon that masks the differences between the different standards these scripts implement." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "A brain (illustrated in green) that processes and reacts to events from the cluster (nodes leaving or joining) and resources (eg. monitor failures) as well as configuration changes from the administrator. In response to all of these events, Pacemaker will compute the ideal state of the cluster and plot a path to achieve it. This may include moving resources, stopping nodes and even forcing them offline with remote power switches." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Conceptual Stack Overview" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Conceptual overview of the cluster stack" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "When combined with Corosync, Pacemaker also supports popular open source cluster filesystems Even though Pacemaker also supports Heartbeat, the filesystems need to use the stack for messaging and membership and Corosync seems to be what they're standardizing on. Technically it would be possible for them to support Heartbeat as well, however there seems little interest in this. Due to recent standardization within the cluster filesystem community, they make use of a common distributed lock manager which makes use of Corosync for its messaging capabilities and Pacemaker for its membership (which nodes are up/down) and fencing services." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "The Pacemaker Stack" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "The Pacemaker stack when running on Corosync" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Internal Components" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Pacemaker itself is composed of four key components (illustrated below in the same color scheme as the previous diagram):" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CIB (aka. Cluster Information Base)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "CRMd (aka. Cluster Resource Management daemon)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "PEngine (aka. PE or Policy Engine)" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "STONITHd" +msgstr "" + +#. Tag: caption +#, no-c-format +msgid "Subsystems of a Pacemaker cluster running on Corosync" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The CIB uses XML to represent both the cluster's configuration and current state of all resources in the cluster. The contents of the CIB are automatically kept in sync across the entire cluster and are used by the PEngine to compute the ideal state of the cluster and how it should be achieved." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "This list of instructions is then fed to the DC (Designated Co-ordinator). Pacemaker centralizes all cluster decision making by electing one of the CRMd instances to act as a master. Should the elected CRMd process, or the node it is on, fail... a new one is quickly established." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The DC carries out the PEngine's instructions in the required order by passing them to either the LRMd (Local Resource Management daemon) or CRMd peers on other nodes via the cluster messaging infrastructure (which in turn passes them on to their LRMd process)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The peer nodes all report the results of their operations back to the DC and based on the expected and actual results, will either execute any actions that needed to wait for the previous one to complete, or abort processing and ask the PEngine to recalculate the ideal cluster state based on the unexpected results." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In some cases, it may be necessary to power off nodes in order to protect shared data or complete resource recovery. For this Pacemaker comes with STONITHd. STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and is usually implemented with a remote power switch. In Pacemaker, STONITH devices are modeled as resources (and configured in the CIB) to enable them to be easily monitored for failure, however STONITHd takes care of understanding the STONITH topology such that its clients simply request a node be fenced and it does the rest." +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot new file mode 100644 index 0000000000..5ca07253fe --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Shared-Storage.pot @@ -0,0 +1,655 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Replicated Storage with DRBD" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Even if you’re serving up static websites, having to manually synchronize the contents of that website to all the machines in the cluster is not ideal. For dynamic websites, such as a wiki, its not even an option. Not everyone care afford network-attached storage but somehow the data needs to be kept in sync. Enter DRBD which can be thought of as network based RAID-1. See http://www.drbd.org/ for more details." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Install the DRBD Packages" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Since its inclusion in the upstream 2.6.33 kernel, everything needed to use DRBD ships with &DISTRO; &DISTRO_VERSION;. All you need to do is install it:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# yum install -y drbd-pacemaker\n" +"Loaded plugins: presto, refresh-packagekit\n" +"Setting up Install Process\n" +"Resolving Dependencies\n" +"--> Running transaction check\n" +"---> Package drbd-pacemaker.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Processing Dependency: drbd-utils = 8.3.7-2.fc13 for package: drbd-pacemaker-8.3.7-2.fc13.x86_64\n" +"--> Running transaction check\n" +"---> Package drbd-utils.x86_64 0:8.3.7-2.fc13 set to be updated\n" +"--> Finished Dependency Resolution\n" +"\n" +"Dependencies Resolved\n" +"\n" +"=================================================================================\n" +" Package Arch Version Repository Size\n" +"=================================================================================\n" +"Installing:\n" +" drbd-pacemaker x86_64 8.3.7-2.fc13 fedora 19 k\n" +"Installing for dependencies:\n" +" drbd-utils x86_64 8.3.7-2.fc13 fedora 165 k\n" +"\n" +"Transaction Summary\n" +"=================================================================================\n" +"Install 2 Package(s)\n" +"Upgrade 0 Package(s)\n" +"\n" +"Total download size: 184 k\n" +"Installed size: 427 k\n" +"Downloading Packages:\n" +"Setting up and reading Presto delta metadata\n" +"fedora/prestodelta | 1.7 kB 00:00 \n" +"Processing delta metadata\n" +"Package(s) data still to download: 184 k\n" +"(1/2): drbd-pacemaker-8.3.7-2.fc13.x86_64.rpm | 19 kB 00:01 \n" +"(2/2): drbd-utils-8.3.7-2.fc13.x86_64.rpm | 165 kB 00:02 \n" +"---------------------------------------------------------------------------------\n" +"Total 45 kB/s | 184 kB 00:04 \n" +"Running rpm_check_debug\n" +"Running Transaction Test\n" +"Transaction Test Succeeded\n" +"Running Transaction\n" +" Installing : drbd-utils-8.3.7-2.fc13.x86_64 1/2 \n" +" Installing : drbd-pacemaker-8.3.7-2.fc13.x86_64 2/2 \n" +"\n" +"Installed:\n" +" drbd-pacemaker.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Dependency Installed:\n" +" drbd-utils.x86_64 0:8.3.7-2.fc13 \n" +"\n" +"Complete!\n" +"[root@pcmk-1 ~]#\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Configure DRBD" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Before we configure DRBD, we need to set aside some disk for it to use." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Create A Partition for DRBD" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If you have more than 1Gb free, feel free to use it. For this guide however, 1Gb is plenty of space for a single html file and sufficient for later holding the GFS2 metadata." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume "drbd-demo" created\n" +"[root@pcmk-1 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Repeat this on the second node, be sure to use the same size partition." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV      VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  lv_root VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap VolGroup -wi-ao 500.00M                                      \n" +"[root@pcmk-2 ~]# lvcreate -n drbd-demo -L 1G VolGroup\n" +"  Logical volume "drbd-demo" created\n" +"[root@pcmk-2 ~]# lvs\n" +"  LV        VG       Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n" +"  drbd-demo VolGroup -wi-a- 1.00G                                      \n" +"  lv_root   VolGroup -wi-ao   7.30G                                      \n" +"  lv_swap   VolGroup -wi-ao 500.00M\n" +" " +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Write the DRBD Config" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "There is no series of commands for build a DRBD configuration, so simply copy the configuration below to /etc/drbd.conf" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Detailed information on the directives used in this configuration (and other alternatives) is available from http://www.drbd.org/users-guide/ch-configure.html" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Be sure to use the names and addresses of your nodes if they differ from the ones used in this guide." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"global { \n" +"  usage-count yes; \n" +"}\n" +"common {\n" +"  protocol C;\n" +"}\n" +"resource wwwdata {\n" +"  meta-disk internal;\n" +"  device    /dev/drbd1;\n" +"  syncer {\n" +"    verify-alg sha1;\n" +"  }\n" +"  net { \n" +"    allow-two-primaries; \n" +"  }\n" +"  on pcmk-1 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.101:7789; \n" +"  }\n" +"  on \n" +"pcmk-2 {\n" +"    disk      /dev/mapper/VolGroup-drbd--demo;\n" +"    address   192.168.122.102:7789; \n" +"  }\n" +"}\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "TODO: Explain the reason for the allow-two-primaries option" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Initialize and Load DRBD" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "With the configuration in place, we can now perform the DRBD initialization" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# drbdadm create-md wwwdata\n" +"md_offset 12578816\n" +"al_offset 12546048\n" +"bm_offset 12541952\n" +"\n" +"Found some data \n" +" ==> This might destroy existing data! <==\n" +"\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 "" + +#. Tag: para +#, no-c-format +msgid "Now load the DRBD kernel module and confirm that everything is sane" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# modprobe drbd\n" +"[root@pcmk-1 ~]# drbdadm up wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +"[root@pcmk-1 ~]# \n" +"\n" +"Repeat on the second node\n" +"drbdadm --force create-md wwwdata \n" +"modprobe drbd\n" +"drbdadm up wwwdata\n" +"cat /proc/drbd\n" +"[root@pcmk-2 ~]# drbdadm --force create-md wwwdata\n" +"Writing meta data...\n" +"initializing activity log\n" +"NOT initialized bitmap\n" +"New drbd meta data block successfully created.\n" +"success\n" +"[root@pcmk-2 ~]# modprobe drbd\n" +"WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.\n" +"[root@pcmk-2 ~]# drbdadm up wwwdata\n" +"[root@pcmk-2 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +"\n" +" 1: cs:Connected ro:Secondary/Secondary ds:Inconsistent/Inconsistent C r----\n" +"    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:12248\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we need to tell DRBD which set of data to use. Since both sides contain garbage, we can run the following on pcmk-1:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# drbdadm -- --overwrite-data-of-peer primary wwwdata\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r----\n" +"    ns:2184 nr:0 dw:0 dr:2472 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:10064\n" +"        [=====>..............] sync'ed: 33.4% (10064/12248)K\n" +"        finish: 0:00:37 speed: 240 (240) K/sec\n" +"[root@pcmk-1 ~]# cat /proc/drbd\n" +"version: 8.3.6 (api:88/proto:86-90)\n" +"GIT-hash: f3606c47cc6fcf6b3f086e425cb34af8b7a81bbf build by root@pcmk-1, 2009-12-08 11:22:57\n" +" 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r----\n" +"    ns:12248 nr:0 dw:0 dr:12536 al:0 bm:1 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "pcmk-1 is now in the Primary state which allows it to be written to. Which means its a good point at which to create a filesystem and populate it with some data to serve up via our WebSite resource." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Populate DRBD with Data" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# mkfs.ext4 /dev/drbd1\n" +"mke2fs 1.41.4 (27-Jan-2009)\n" +"Filesystem label=\n" +"OS type: Linux\n" +"Block size=1024 (log=0)\n" +"Fragment size=1024 (log=0)\n" +"3072 inodes, 12248 blocks\n" +"612 blocks (5.00%) reserved for the super user\n" +"First data block=1\n" +"Maximum filesystem blocks=12582912\n" +"2 block groups\n" +"8192 blocks per group, 8192 fragments per group\n" +"1536 inodes per group\n" +"Superblock backups stored on blocks: \n" +"        8193\n" +"\n" +"Writing inode tables: done                            \n" +"Creating journal (1024 blocks): done\n" +"Writing superblocks and filesystem accounting information: done\n" +"\n" +"This filesystem will be automatically checked every 26 mounts or\n" +"180 days, whichever comes first.  Use tune2fs -c or -i to override.\n" +"\n" +"Now mount the newly created filesystem so we can create our index file\n" +"mount /dev/drbd1 /mnt/\n" +"cat <<-END >/mnt/index.html\n" +"<html>\n" +"<body>My Test Site - drbd</body>\n" +"</html>\n" +"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 "" + +#. Tag: title +#, no-c-format +msgid "Configure the Cluster for DRBD" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "One handy feature of the crm shell is that you can use it in interactive mode to make several changes atomically." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "First we launch the shell. The prompt will change to indicate you’re in interactive mode." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"cib crm(live)#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Next we must create a working copy or the current configuration. This is where all our changes will go. The cluster will not see any of them until we say its ok. Notice again how the prompt changes, this time to indicate that we’re no longer looking at the live cluster." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"cib crm(live)# cib new drbd\n" +"INFO: drbd shadow CIB created\n" +"crm(drbd)#\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now we can create our DRBD clone and display the revised configuration." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(drbd)# configure primitive WebData ocf:linbit:drbd params drbd_resource=wwwdata \\\n" +"        op monitor interval=60s\n" +"crm(drbd)# configure ms WebDataClone WebData meta master-max=1 master-node-max=1 \\\n" +"        clone-max=2 clone-node-max=1 notify=true\n" +"crm(drbd)# configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +" params drbd_resource="wwwdata" \\\n" +" op monitor interval="60s"\n" +"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 "" + +#. Tag: para +#, no-c-format +msgid "Once we’re happy with the changes, we can tell the cluster to start using them and use crm_mon to check everything is functioning." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(drbd)# cib commit drbd\n" +"INFO: commited 'drbd' shadow CIB to the cluster\n" +"crm(drbd)# quit\n" +"bye\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 09:37:13 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"3 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-1\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-1\n" +"Master/Slave Set: WebDataClone\n" +" Masters: [ pcmk-2 ]\n" +" Slaves: [ pcmk-1 ]\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Include details on adding a second DRBD resource" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now that DRBD is functioning we can configure a Filesystem resource to use it. In addition to the filesystem’s definition, we also need to tell the cluster where it can be located (only on the DRBD Primary) and when it is allowed to start (after the Primary was promoted)." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once again we’ll use the shell’s interactive mode" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm\n" +"crm(live)# cib new fs\n" +"INFO: fs shadow CIB created\n" +"crm(fs)# configure primitive WebFS ocf:heartbeat:Filesystem \\\n" +"        params device="/dev/mapper/VolGroup-drbd--demo" directory="/var/www/html" fstype="ext4"\n" +"crm(fs)# configure colocation fs_on_drbd inf: WebFS WebDataClone:Master\n" +"crm(fs)# configure order WebFS-after-WebData inf: WebDataClone:promote WebFS:start\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We also need to tell the cluster that Apache needs to run on the same machine as the filesystem and that it must be active before Apache can start." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(fs)# configure colocation WebSite-with-WebFS inf: WebSite WebFS\n" +"crm(fs)# configure order WebSite-after-WebFS inf: WebFS WebSite\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Time to review the updated configuration:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm configure show\n" +"node pcmk-1\n" +"node pcmk-2\n" +"primitive WebData ocf:linbit:drbd \\\n" +"        params drbd_resource="wwwdata" \\\n" +"        op monitor interval="60s"\n" +"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 "" + +#. 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 "" + +#. Tag: title +#, no-c-format +msgid "Testing Migration" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "We could shut down the active node again, but another way to safely simulate recovery is to put the node into what is called “standby mode”. Nodes in this state tell the cluster that they are not allowed to run resources. Any resources found active there will be moved elsewhere. This feature can be particularly useful when updating the resources’ packages." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Put the local node into standby mode and observe the cluster move all the resources to the other node. Note also that the node’s status will change to indicate that it can no longer host resources." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm node standby\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:09:57 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Node pcmk-1: standby\n" +"Online: [ pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Stopped: [ WebData:1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Once we’ve done everything we needed to on pcmk-1 (in this case nothing, we just wanted to see the resources move), we can allow the node to be a full cluster member again." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm node online\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Tue Sep  1 10:13:25 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"4 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"\n" +"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n" +"WebSite (ocf::heartbeat:apache):        Started pcmk-2\n" +"Master/Slave Set: WebDataClone\n" +"        Masters: [ pcmk-2 ]\n" +"        Slaves: [ pcmk-1 ]\n" +"WebFS   (ocf::heartbeat:Filesystem):    Started pcmk-2\n" +" " +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Notice that our resource stickiness settings prevent the services from migrating back to pcmk-1." +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot new file mode 100644 index 0000000000..79931f4306 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Stonith.pot @@ -0,0 +1,205 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Configure STONITH" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Why You Need STONITH" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "STONITH is an acronym for Shoot-The-Other-Node-In-The-Head and it protects your data from being corrupted by rouge nodes or concurrent access." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Just because a node is unresponsive, this doesn’t mean it isn’t accessing your data. The only way to be 100% sure that your data is safe, is to use STONITH so we can be certain that the node is truly offline, before allowing the data to be accessed from another node." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "STONITH also has a role to play in the event that a clustered service cannot be stopped. In this case, the cluster uses STONITH to force the whole node offline, thereby making it safe to start the service elsewhere." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "What STONITH Device Should You Use" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "It is crucial that the STONITH device can allow the cluster to differentiate between a node failure and a network one." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The biggest mistake people make in choosing a STONITH device is to use remote power switch (such as many onboard IMPI controllers) that shares power with the node it controls. In such cases, the cluster cannot be sure if the node is really offline, or active and suffering from a network fault." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Likewise, any device that relies on the machine being active (such as SSH-based “devices” used during testing) are inappropriate." +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Configuring STONITH" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Find the correct driver: stonith -L" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Since every device is different, the parameters needed to configure it will vary. To find out the parameters required by the device: stonith -t {type} -n" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Hopefully the developers chose names that make sense, if not you can query for some additional information by finding an active cluster node and running:" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "lrmadmin -M stonith {type} pacemaker\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "The output should be XML formatted text containing additional parameter descriptions" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Create a file called stonith.xml containing a primitive resource with a class of stonith, a type of {type} and a parameter for each of the values returned in step 2" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Create a clone from the primitive resource if the device can shoot more than one node and supports multiple simultaneous connections." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Upload it into the CIB using cibadmin: cibadmin -C -o resources --xml-file stonith.xml" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Example" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assuming we have an IBM BladeCenter containing our two nodes and the management interface is active on 192.168.122.31, then we would chose the external/ibmrsa driver in step 2 and obtain the following list of parameters" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"stonith -t external/ibmrsa -n\n" +"[root@pcmk-1 ~]# stonith -t external/ibmrsa -n\n" +"hostname  ipaddr  userid  passwd  type\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Assuming we know the username and password for the management interface, we would create a STONITH resource with the shell" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm \n" +"crm(live)# cib new stonith\n" +"INFO: stonith shadow CIB created\n" +"crm(stonith)# configure primitive rsa-fencing stonith::external/ibmrsa \\\n" +"        params hostname=”pcmk-1 pcmk-2" ipaddr=192.168.122.31 userid=mgmt passwd=abc123 type=ibm \\\n" +"        op monitor interval="60s"\n" +"crm(stonith)# configure clone Fencing rsa-fencing\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "And finally, since we disabled it earlier, we need to re-enable STONITH" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"crm(stonith)# configure property stonith-enabled="true"\n" +"crm(stonith)# configure 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 "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Tools.pot b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot new file mode 100644 index 0000000000..7e06feab7b --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Tools.pot @@ -0,0 +1,148 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Using Pacemaker Tools" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "In the dark past, configuring Pacemaker required the administrator to read and write XML. In true UNIX style, there were also a number of different commands that specialized in different aspects of querying and updating the cluster." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Since Pacemaker 1.0, this has all changed and we have an integrated, scriptable, cluster shell that hides all the messy XML scaffolding. It even allows you to queue up several changes at once and commit them atomically." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Take some time to familiarize yourself with what it can do." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm --help\n" +"\n" +"usage:\n" +"    crm [-D display_type]\n" +"    crm [-D display_type] args\n" +"    crm [-D display_type] [-f file]\n" +"\n" +"    Use crm without arguments for an interactive session.\n" +"    Supply one or more arguments for a "single-shot" use.\n" +"    Specify with -f a file which contains a script. Use '-' for\n" +"    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 "" + +#. Tag: para +#, no-c-format +msgid "The primary tool for monitoring the status of the cluster is crm_mon (also available as crm status). It can be run in a variety of modes and has a number of output options. To find out about any of the tools that come with Pacemaker, simply invoke them with the --help option or consult the included man pages. Both sets of output are created from the tool, and so will always be in sync with each other and the tool itself." +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Additionally, the Pacemaker version and supported cluster stack(s) is available via the --version option." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# crm_mon --version\n" +"crm_mon 1.0.5 for OpenAIS and Heartbeat (Build: 462f1569a43740667daf7b0f6b521742e9eb8fa7)\n" +"\n" +"Written by Andrew Beekhof\n" +"[root@pcmk-1 ~]# crm_mon --help\n" +"crm_mon - Provides a summary of cluster's current state.\n" +"\n" +"Outputs varying levels of detail in a number of different formats.\n" +"\n" +"Usage: crm_mon mode [options]\n" +"Options:\n" +" -?, --help                 This text\n" +" -$, --version             Version information\n" +" -V, --verbose             Increase debug output\n" +"\n" +"Modes:\n" +" -h, --as-html=value        Write cluster status to the named file\n" +" -w, --web-cgi             Web mode with output suitable for cgi\n" +" -s, --simple-status       Display the cluster status once as a simple one line output (suitable for nagios)\n" +" -S, --snmp-traps=value    Send SNMP traps to this station\n" +" -T, --mail-to=value        Send Mail alerts to this user.  See also --mail-from, --mail-host, --mail-prefix\n" +"\n" +"Display Options:\n" +" -n, --group-by-node       Group resources by node\n" +" -r, --inactive             Display inactive resources\n" +" -f, --failcounts           Display resource fail counts\n" +" -o, --operations           Display resource operation history\n" +" -t, --timing-details       Display resource operation history with timing details\n" +"\n" +"\n" +"Additional Options:\n" +" -i, --interval=value           Update frequency in seconds\n" +" -1, --one-shot                 Display the cluster status once on the console and exit\n" +" -N, --disable-ncurses          Disable the use of ncurses\n" +" -d, --daemonize                Run in the background as a daemon\n" +" -p, --pid-file=value           (Advanced) Daemon pid file location\n" +" -F, --mail-from=value          Mail alerts should come from the named user\n" +" -H, --mail-host=value          Mail alerts should be sent via the named host\n" +" -P, --mail-prefix=value        Subjects for mail alerts should start with this string\n" +" -E, --external-agent=value     A program to run when resource operations take place.\n" +" -e, --external-recipient=value A recipient for your program (assuming you want the program to send something to someone).\n" +"\n" +"Examples:\n" +"\n" +"Display the cluster´s status on the console with updates as they occur:\n" +"        # crm_mon\n" +"\n" +"Display the cluster´s status on the console just once then exit:\n" +"        # crm_mon\n" +"\n" +"Display your cluster´s status, group resources by node, and include inactive resources in the list:\n" +"        # crm_mon --group-by-node --inactive\n" +"\n" +"Start crm_mon as a background daemon and have it write the cluster´s status to an HTML file:\n" +"        # crm_mon --daemonize --as-html /path/to/docroot/filename.html\n" +"\n" +"Start crm_mon as a background daemon and have it send email alerts:\n" +"        # crm_mon --daemonize --mail-to user@example.com --mail-host mail.example.com\n" +"\n" +"Start crm_mon as a background daemon and have it send SNMP alerts:\n" +"        # crm_mon --daemonize --snmp-traps snmptrapd.example.com\n" +"\n" +"Report bugs to pacemaker@oss.clusterlabs.org\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "If the SNMP and/or email options are not listed, then Pacemaker was not built to support them. This may be by the choice of your distribution or the required libraries may not have been available. Please contact whoever supplied you with the packages for more details." +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Ch-Verification.pot b/doc/Clusters_from_Scratch/pot/Ch-Verification.pot new file mode 100644 index 0000000000..afd76fb0af --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Ch-Verification.pot @@ -0,0 +1,155 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Verify Cluster Installation" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Verify Corosync Installation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Start Corosync on the first node" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the cluster started correctly and that an initial membership was able to form" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# grep -e "corosync.*network interface" -e "Corosync Cluster Engine" -e "Successfully read main configuration file" /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Corosync Cluster Engine ('1.1.0'): started and ready to provide service.\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'.\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "With one node functional, its now safe to start Corosync on the second node as well." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ssh pcmk-2 -- /etc/init.d/corosync start\n" +"Starting Corosync Cluster Engine (corosync): [ OK ]\n" +"[root@pcmk-1 ~]#\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Check the cluster formed correctly" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# grep TOTEM /var/log/messages\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transport (UDP/IP).\n" +"Aug 27 09:05:34 pcmk-1 corosync[1540]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] The network interface [192.168.122.101] is now up.\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"Aug 27 09:12:11 pcmk-1 corosync[1540]: [TOTEM ] A processor joined or left the membership and a new membership was formed.\n" +"" +msgstr "" + +#. Tag: title +#, no-c-format +msgid "Verify Pacemaker Installation" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now that we have confirmed that Corosync is functional we can check the rest of the stack." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# grep pcmk_startup /var/log/messages\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: CRM: Initialized\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] Logging: Initialized pcmk_startup\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Service: 9\n" +"Aug 27 09:05:35 pcmk-1 corosync[1540]:   [pcmk  ] info: pcmk_startup: Local hostname: pcmk-1\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "Now verify the Pacemaker processes have been started" +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# ps axf\n" +"  PID TTY      STAT   TIME COMMAND\n" +"    2 ?        S<     0:00 [kthreadd]\n" +"    3 ?        S<     0:00  \\_ [migration/0]\n" +"... lots of processes ...\n" +" 2166 pts/0    SLl    0:01 /usr/sbin/corosync\n" +" 2172 ?        SLs    0:00  \\_ /usr/lib64/heartbeat/stonithd\n" +" 2173 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/cib\n" +" 2174 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/lrmd\n" +" 2175 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/attrd\n" +" 2176 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/pengine\n" +" 2177 pts/0    S      0:00  \\_ /usr/lib64/heartbeat/crmd\n" +"" +msgstr "" + +#. Tag: para +#, no-c-format +msgid "And finally, check for any ERRORs during startup, there shouldn’t be any, and display the cluster’s status." +msgstr "" + +#. Tag: screen +#, no-c-format +msgid "\n" +"[root@pcmk-1 ~]# grep ERROR: /var/log/messages | grep -v unpack_resources\n" +"[root@pcmk-1 ~]# crm_mon\n" +"============\n" +"Last updated: Thu Aug 27 16:54:55 2009\n" +"Stack: openais\n" +"Current DC: pcmk-1 - partition with quorum\n" +"Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7\n" +"2 Nodes configured, 2 expected votes\n" +"0 Resources configured.\n" +"============\n" +"\n" +"Online: [ pcmk-1 pcmk-2 ]\n" +"" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot b/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot new file mode 100644 index 0000000000..f227297e4a --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Clusters_from_Scratch.pot @@ -0,0 +1,14 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + diff --git a/doc/Clusters_from_Scratch/pot/Preface.pot b/doc/Clusters_from_Scratch/pot/Preface.pot new file mode 100644 index 0000000000..9b559a2132 --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Preface.pot @@ -0,0 +1,19 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Preface" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/pot/Revision_History.pot b/doc/Clusters_from_Scratch/pot/Revision_History.pot new file mode 100644 index 0000000000..960b6bab0f --- /dev/null +++ b/doc/Clusters_from_Scratch/pot/Revision_History.pot @@ -0,0 +1,34 @@ +# +# AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: 0\n" +"POT-Creation-Date: 2010-09-22T10:48:14\n" +"PO-Revision-Date: 2010-09-22T10:48:14\n" +"Last-Translator: Automatically generated\n" +"Language-Team: None\n" +"MIME-Version: 1.0\n" +"Content-Type: application/x-publican; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Tag: title +#, no-c-format +msgid "Revision History" +msgstr "" + +#. Tag: firstname +#, no-c-format +msgid "Andrew" +msgstr "" + +#. Tag: surname +#, no-c-format +msgid "Beekhof" +msgstr "" + +#. Tag: member +#, no-c-format +msgid "Import from Pages.app" +msgstr "" + diff --git a/doc/Clusters_from_Scratch/publican.cfg.in b/doc/Clusters_from_Scratch/publican.cfg.in index 816267d7e0..84f5594ecb 100644 --- a/doc/Clusters_from_Scratch/publican.cfg.in +++ b/doc/Clusters_from_Scratch/publican.cfg.in @@ -1,14 +1,14 @@ # Config::Simple 4.59 # Fri Apr 23 15:33:52 2010 docname: Clusters_from_Scratch -xml_lang: en-US +xml_lang: en-US,it-IT #edition: 1 type: Book version: @PACKAGE_SERIES@ brand: @PUBLICAN_BRAND@ product: Pacemaker chunk_first: 0 chunk_section_depth: 3 generate_section_toc_level: 4