# # 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 ""