2
# AUTHOR <EMAIL@ADDRESS>, YEAR.
6
"Project-Id-Version: Clusters from Scratch 1.1\n"
7
"POT-Creation-Date: 2011-12-31T15:15:50\n"
8
"PO-Revision-Date: 2011-11-24 00:51+0200\n"
9
"Last-Translator: Dan Frîncu <df.cluster@gmail.com>\n"
10
"Language-Team: None\n"
12
"Content-Type: application/x-publican; charset=UTF-8\n"
13
"Content-Transfer-Encoding: 8bit\n"
17
msgid "Apache - Adding More Services"
18
msgstr "Apache - Adăugarea mai Multor Servicii"
22
msgid "Now that we have a basic but functional active/passive two-node cluster, we’re ready to add some real services. We’re going to start with Apache because it's a feature of many clusters and relatively simple to configure."
23
msgstr "Acum că avem un cluster de bază, funcțional, activ/pasiv format din două noduri, suntem pregătiți să adăugăm câteva servicii reale. O să începem cu Apache deoarece este o caracteristică a multor clustere și este relativ simplu de configurat."
32
msgid "Before continuing, we need to make sure Apache is installed on <emphasis>both</emphasis> hosts."
33
msgstr "Înainte de a continua, trebuie să ne asigurăm că Apache este înstalat pe <emphasis>ambele</emphasis> gazde."
38
"[root@ppcmk-1 ~]# <userinput>yum install -y httpd</userinput>\n"
39
"Setting up Install Process\n"
40
"Resolving Dependencies\n"
41
"--> Running transaction check\n"
42
"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n"
43
"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n"
44
"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n"
45
"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n"
46
"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
47
"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
48
"--> Running transaction check\n"
49
"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n"
50
"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n"
51
"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n"
52
"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n"
53
"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n"
54
"--> Finished Dependency Resolution\n"
56
"Dependencies Resolved\n"
58
"=======================================================================================\n"
59
" Package Arch Version Repository Size\n"
60
"=======================================================================================\n"
62
" httpd x86_64 2.2.13-2.fc12 rawhide 735 k\n"
63
"Installing for dependencies:\n"
64
" apr x86_64 1.3.9-2.fc12 rawhide 117 k\n"
65
" apr-util x86_64 1.3.9-2.fc12 rawhide 84 k\n"
66
" apr-util-ldap x86_64 1.3.9-2.fc12 rawhide 15 k\n"
67
" httpd-tools x86_64 2.2.13-2.fc12 rawhide 63 k\n"
68
" mailcap noarch 2.1.30-1.fc12 rawhide 25 k\n"
70
"Transaction Summary\n"
71
"=======================================================================================\n"
72
"Install 6 Package(s)\n"
73
"Upgrade 0 Package(s)\n"
75
"Total download size: 1.0 M\n"
76
"Downloading Packages:\n"
77
"(1/6): apr-1.3.9-2.fc12.x86_64.rpm | 117 kB 00:00 \n"
78
"(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm | 84 kB 00:00 \n"
79
"(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm | 15 kB 00:00 \n"
80
"(4/6): httpd-2.2.13-2.fc12.x86_64.rpm | 735 kB 00:00 \n"
81
"(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm | 63 kB 00:00 \n"
82
"(6/6): mailcap-2.1.30-1.fc12.noarch.rpm | 25 kB 00:00 \n"
83
"----------------------------------------------------------------------------------------\n"
84
"Total 875 kB/s | 1.0 MB 00:01 \n"
85
"Running rpm_check_debug\n"
86
"Running Transaction Test\n"
87
"Finished Transaction Test\n"
88
"Transaction Test Succeeded\n"
89
"Running Transaction\n"
90
" Installing : apr-1.3.9-2.fc12.x86_64 1/6 \n"
91
" Installing : apr-util-1.3.9-2.fc12.x86_64 2/6 \n"
92
" Installing : apr-util-ldap-1.3.9-2.fc12.x86_64 3/6 \n"
93
" Installing : httpd-tools-2.2.13-2.fc12.x86_64 4/6 \n"
94
" Installing : mailcap-2.1.30-1.fc12.noarch 5/6 \n"
95
" Installing : httpd-2.2.13-2.fc12.x86_64 6/6 \n"
98
" httpd.x86_64 0:2.2.13-2.fc12 \n"
100
"Dependency Installed:\n"
101
" apr.x86_64 0:1.3.9-2.fc12 apr-util.x86_64 0:1.3.9-2.fc12\n"
102
" apr-util-ldap.x86_64 0:1.3.9-2.fc12 httpd-tools.x86_64 0:2.2.13-2.fc12\n"
103
" mailcap.noarch 0:2.1.30-1.fc12 \n"
109
"[root@ppcmk-1 ~]# <userinput>yum install -y httpd</userinput>\n"
110
"Setting up Install Process\n"
111
"Resolving Dependencies\n"
112
"--> Running transaction check\n"
113
"---> Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n"
114
"--> Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n"
115
"--> Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n"
116
"--> Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n"
117
"--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
118
"--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
119
"--> Running transaction check\n"
120
"---> Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n"
121
"---> Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n"
122
"---> Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n"
123
"---> Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n"
124
"---> Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n"
125
"--> Finished Dependency Resolution\n"
127
"Dependencies Resolved\n"
129
"=======================================================================================\n"
130
" Package Arch Version Repository Size\n"
131
"=======================================================================================\n"
133
" httpd x86_64 2.2.13-2.fc12 rawhide 735 k\n"
134
"Installing for dependencies:\n"
135
" apr x86_64 1.3.9-2.fc12 rawhide 117 k\n"
136
" apr-util x86_64 1.3.9-2.fc12 rawhide 84 k\n"
137
" apr-util-ldap x86_64 1.3.9-2.fc12 rawhide 15 k\n"
138
" httpd-tools x86_64 2.2.13-2.fc12 rawhide 63 k\n"
139
" mailcap noarch 2.1.30-1.fc12 rawhide 25 k\n"
141
"Transaction Summary\n"
142
"=======================================================================================\n"
143
"Install 6 Package(s)\n"
144
"Upgrade 0 Package(s)\n"
146
"Total download size: 1.0 M\n"
147
"Downloading Packages:\n"
148
"(1/6): apr-1.3.9-2.fc12.x86_64.rpm | 117 kB 00:00 \n"
149
"(2/6): apr-util-1.3.9-2.fc12.x86_64.rpm | 84 kB 00:00 \n"
150
"(3/6): apr-util-ldap-1.3.9-2.fc12.x86_64.rpm | 15 kB 00:00 \n"
151
"(4/6): httpd-2.2.13-2.fc12.x86_64.rpm | 735 kB 00:00 \n"
152
"(5/6): httpd-tools-2.2.13-2.fc12.x86_64.rpm | 63 kB 00:00 \n"
153
"(6/6): mailcap-2.1.30-1.fc12.noarch.rpm | 25 kB 00:00 \n"
154
"----------------------------------------------------------------------------------------\n"
155
"Total 875 kB/s | 1.0 MB 00:01 \n"
156
"Running rpm_check_debug\n"
157
"Running Transaction Test\n"
158
"Finished Transaction Test\n"
159
"Transaction Test Succeeded\n"
160
"Running Transaction\n"
161
" Installing : apr-1.3.9-2.fc12.x86_64 1/6 \n"
162
" Installing : apr-util-1.3.9-2.fc12.x86_64 2/6 \n"
163
" Installing : apr-util-ldap-1.3.9-2.fc12.x86_64 3/6 \n"
164
" Installing : httpd-tools-2.2.13-2.fc12.x86_64 4/6 \n"
165
" Installing : mailcap-2.1.30-1.fc12.noarch 5/6 \n"
166
" Installing : httpd-2.2.13-2.fc12.x86_64 6/6 \n"
169
" httpd.x86_64 0:2.2.13-2.fc12 \n"
171
"Dependency Installed:\n"
172
" apr.x86_64 0:1.3.9-2.fc12 apr-util.x86_64 0:1.3.9-2.fc12\n"
173
" apr-util-ldap.x86_64 0:1.3.9-2.fc12 httpd-tools.x86_64 0:2.2.13-2.fc12\n"
174
" mailcap.noarch 0:2.1.30-1.fc12 \n"
182
msgid "Also, we need the wget tool in order for the cluster to be able to check the status of the Apache server."
183
msgstr "De asemenea, avem nevoie de utilitarul wget pentru ca și clusterul să fie capabil să verifice status-ul serverului Apache."
188
"[root@pcmk-1 ~]# <userinput>yum install -y wget</userinput>\n"
189
"Setting up Install Process\n"
190
"Resolving Dependencies\n"
191
"--> Running transaction check\n"
192
"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n"
193
"--> Finished Dependency Resolution\n"
195
"Dependencies Resolved\n"
197
"===========================================================================================\n"
198
" Package Arch Version Repository Size\n"
199
"===========================================================================================\n"
201
" wget x86_64 1.11.4-5.fc12 rawhide 393 k\n"
203
"Transaction Summary\n"
204
"===========================================================================================\n"
205
"Install 1 Package(s)\n"
206
"Upgrade 0 Package(s)\n"
208
"Total download size: 393 k\n"
209
"Downloading Packages:\n"
210
"wget-1.11.4-5.fc12.x86_64.rpm | 393 kB 00:00 \n"
211
"Running rpm_check_debug\n"
212
"Running Transaction Test\n"
213
"Finished Transaction Test\n"
214
"Transaction Test Succeeded\n"
215
"Running Transaction\n"
216
" Installing : wget-1.11.4-5.fc12.x86_64 1/1 \n"
219
" wget.x86_64 0:1.11.4-5.fc12\n"
225
"[root@pcmk-1 ~]# <userinput>yum install -y wget</userinput>\n"
226
"Setting up Install Process\n"
227
"Resolving Dependencies\n"
228
"--> Running transaction check\n"
229
"---> Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n"
230
"--> Finished Dependency Resolution\n"
232
"Dependencies Resolved\n"
234
"===========================================================================================\n"
235
" Package Arch Version Repository Size\n"
236
"===========================================================================================\n"
238
" wget x86_64 1.11.4-5.fc12 rawhide 393 k\n"
240
"Transaction Summary\n"
241
"===========================================================================================\n"
242
"Install 1 Package(s)\n"
243
"Upgrade 0 Package(s)\n"
245
"Total download size: 393 k\n"
246
"Downloading Packages:\n"
247
"wget-1.11.4-5.fc12.x86_64.rpm | 393 kB 00:00 \n"
248
"Running rpm_check_debug\n"
249
"Running Transaction Test\n"
250
"Finished Transaction Test\n"
251
"Transaction Test Succeeded\n"
252
"Running Transaction\n"
253
" Installing : wget-1.11.4-5.fc12.x86_64 1/1 \n"
256
" wget.x86_64 0:1.11.4-5.fc12\n"
269
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."
270
msgstr "Mai întâi trebuie să creem o pagină pe care Apache să o servească. Pe Fedora docroot-ul implicit al Apache-ului este în /var/www/html, așa că vom crea un fișier index acolo."
275
"[root@pcmk-1 ~]# <userinput>cat <<-END >/var/www/html/index.html</userinput>\n"
277
" <body>My Test Site - pcmk-1</body>\n"
283
"[root@pcmk-1 ~]# <userinput>cat <<-END >/var/www/html/index.html</userinput>\n"
285
" <body>My Test Site - pcmk-1</body>\n"
293
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."
294
msgstr "Pentru moment, vom simplifica lucrurile servind doar un site static și vom sincroniza manual datele între cele două noduri. Așa că rulați comanda din nou pe pcmk-2."
299
"[root@pcmk-2 ~]# <userinput>cat <<-END >/var/www/html/index.html</userinput>\n"
301
" <body>My Test Site - pcmk-2</body>\n"
307
"[root@pcmk-2 ~]# <userinput>cat <<-END >/var/www/html/index.html</userinput>\n"
309
" <body>My Test Site - pcmk-2</body>\n"
317
msgid "Enable the Apache status URL"
318
msgstr "Activați status URL-ul Apache-ului"
322
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:"
323
msgstr "Pentru a monitoriza sănătatea instanței voastre de Apache și pentru a o recupera dacă eșuează, agentul de resursă folosit de Pacemaker presupune că URL-ul server-status este disponibil. Uitați-vă după următoarele în /etc/httpd/conf/httpd.conf și asigurați-vă că nu este dezactivat sau comentat."
328
"<Location /server-status>\n"
329
" SetHandler server-status\n"
330
" Order deny,allow\n"
332
" Allow from 127.0.0.1\n"
333
"</Location>\n"
336
"<Location /server-status>\n"
337
" SetHandler server-status\n"
338
" Order deny,allow\n"
340
" Allow from 127.0.0.1\n"
341
"</Location>\n"
346
msgid "Update the Configuration"
347
msgstr "Actualizarea Configurației"
351
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 <footnote> <para> Compare the key used here ocf:heartbeat:apache with the one we used earlier for the IP address: ocf:heartbeat:IPaddr2 </para> </footnote> , 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."
352
msgstr "La acest punct, Apache este gata de pornire, tot ce trebuie făcut este să îl adăugăm la cluster. Să denumim resursa WebSite. Avem nevoie să folosim un script OCF numit apache din namespace-ul <footnote> <para> Comparați cheia folosită aici, ocf:heartbeart:apache, cu cea folosită anterior pentru adresa IP: ocf:heartbeat:IPaddr2 </para> </footnote> heartbeat, singurul parametru necesar este calea către fișierul principal de configurare al Apache și vom spune clusterului să verifice o dată pe minut că apache încă funcționează."
357
"[root@pcmk-1 ~]# <userinput>crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min</userinput>\n"
358
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
361
"<emphasis>primitive WebSite ocf:heartbeat:apache \\</emphasis>\n"
362
"<emphasis> params configfile=\"/etc/httpd/conf/httpd.conf\" \\</emphasis>\n"
363
"<emphasis> op monitor interval=\"1min\"</emphasis>\n"
364
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
365
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
366
" op monitor interval=\"30s\"\n"
367
"property $id=\"cib-bootstrap-options\" \\\n"
368
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
369
" cluster-infrastructure=\"openais\" \\\n"
370
" expected-quorum-votes=\"2\" \\\n"
371
" stonith-enabled=\"false\" \\\n"
372
" no-quorum-policy=\"ignore\"\n"
373
"rsc_defaults $id=\"rsc-options\" \\\n"
374
" resource-stickiness=\"100\"\n"
377
"[root@pcmk-1 ~]# <userinput>crm configure primitive WebSite ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min</userinput>\n"
378
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
381
"<emphasis>primitive WebSite ocf:heartbeat:apache \\</emphasis>\n"
382
"<emphasis> params configfile=\"/etc/httpd/conf/httpd.conf\" \\</emphasis>\n"
383
"<emphasis> op monitor interval=\"1min\"</emphasis>\n"
384
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
385
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
386
" op monitor interval=\"30s\"\n"
387
"property $id=\"cib-bootstrap-options\" \\\n"
388
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
389
" cluster-infrastructure=\"openais\" \\\n"
390
" expected-quorum-votes=\"2\" \\\n"
391
" stonith-enabled=\"false\" \\\n"
392
" no-quorum-policy=\"ignore\"\n"
393
"rsc_defaults $id=\"rsc-options\" \\\n"
394
" resource-stickiness=\"100\"\n"
399
msgid "After a short delay, we should see the cluster start apache"
400
msgstr "După o scurtă întârziere, ar trebui să vedem clusterul pornind apache-ul"
405
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
407
"Last updated: Fri Aug 28 16:12:49 2009\n"
409
"Current DC: pcmk-2 - partition with quorum\n"
410
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
411
"2 Nodes configured, 2 expected votes\n"
412
"2 Resources configured.\n"
415
"Online: [ pcmk-1 pcmk-2 ]\n"
417
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n"
418
"WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-1</emphasis>\n"
421
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
423
"Last updated: Fri Aug 28 16:12:49 2009\n"
425
"Current DC: pcmk-2 - partition with quorum\n"
426
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
427
"2 Nodes configured, 2 expected votes\n"
428
"2 Resources configured.\n"
431
"Online: [ pcmk-1 pcmk-2 ]\n"
433
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n"
434
"WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-1</emphasis>\n"
439
msgid "Wait a moment, the WebSite resource isn’t running on the same host as our IP address!"
440
msgstr "Așteptați un moment, resursa WebSite nu rulează pe aceeași gazdă ca și adresa noastră IP!"
444
msgid "Ensuring Resources Run on the Same Host"
445
msgstr "Asigurarea că Resursele Rulează pe Aceeași Gazdă"
449
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."
450
msgstr "Pentru a reduce nivelul de încărcare pe oricare din mașini, Pacemaker va încerca în mod general să împrăștie resursele configurate de-a lungul nodurilor din cluster. Totuși putem spune clusterului că două resurse au legătura una cu cealaltă și trebuie să ruleze pe aceeași gazdă (sau să nu ruleze deloc). Aici instruim clusterul că WebSite poate rula numar pe o gazdă pe care este activ ClusterIP."
454
msgid "For the constraint, we need a name (choose something descriptive like website-with-ip), indicate that it's mandatory (so that if ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere either) by specifying a score of INFINITY and finally list the two resources."
455
msgstr "Pentru restricție, ne trebuie un nume (alegeți ceva descriptiv precum website-with-ip), să indicăm că este obligatorie (astfel încât dacă ClusterIP nu este activ nicăieri, nici lui WebSite nu i se va permite să ruleze nicăieri) specificând un scor cu valoarea INFINITY și la sfârșit vom lista cele două resurse."
459
msgid "If ClusterIP is not active anywhere, WebSite will not be permitted to run anywhere."
460
msgstr "Dacă ClusterIP nu este activ nicăieri, lui WebSite nu i se va permite să ruleze nicăieri."
464
msgid "Colocation constraints are \"directional\", in that they imply certain things about the order in which the two resources will have a location chosen. In this case we're saying <literal>WebSite</literal> needs to be placed on the same machine as <literal>ClusterIP</literal>, this implies that we must know the location of <literal>ClusterIP</literal> before choosing a location for <literal>WebSite</literal>."
465
msgstr "Restricțiile de colocare sunt \"direcționale\", în sensul că implică anumite lucruri despre ordinea în care celor două resurse li se va alege o locație. În acest caz spunem că <literal>WebSite</literal> are nevoie să fie plasat pe aceeași mașină ca și <literal>ClusterIP</literal>, acest lucru implică faptul că noi trebuie să știm locația lui <literal>ClusterIP</literal> înainte de a alege o locație pentru <literal>WebSite</literal>."
470
"[root@pcmk-1 ~]# <userinput>crm configure colocation website-with-ip INFINITY: WebSite ClusterIP</userinput>\n"
471
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
474
"primitive WebSite ocf:heartbeat:apache \\\n"
475
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
476
" op monitor interval=\"1min\"\n"
477
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
478
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
479
" op monitor interval=\"30s\"\n"
480
"<emphasis>colocation website-with-ip inf: WebSite ClusterIP</emphasis>\n"
481
"property $id=\"cib-bootstrap-options\" \\\n"
482
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
483
" cluster-infrastructure=\"openais\" \\\n"
484
" expected-quorum-votes=\"2\" \\\n"
485
" stonith-enabled=\"false\" \\\n"
486
" no-quorum-policy=\"ignore\"\n"
487
"rsc_defaults $id=\"rsc-options\" \\\n"
488
" resource-stickiness=\"100\"\n"
489
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
491
"Last updated: Fri Aug 28 16:14:34 2009\n"
493
"Current DC: pcmk-2 - partition with quorum\n"
494
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
495
"2 Nodes configured, 2 expected votes\n"
496
"2 Resources configured.\n"
499
"Online: [ pcmk-1 pcmk-2 ]\n"
501
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n"
502
"WebSite (ocf::heartbeat:apache): Started pcmk-2\n"
505
"[root@pcmk-1 ~]# <userinput>crm configure colocation website-with-ip INFINITY: WebSite ClusterIP</userinput>\n"
506
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
509
"primitive WebSite ocf:heartbeat:apache \\\n"
510
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
511
" op monitor interval=\"1min\"\n"
512
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
513
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
514
" op monitor interval=\"30s\"\n"
515
"<emphasis>colocation website-with-ip inf: WebSite ClusterIP</emphasis>\n"
516
"property $id=\"cib-bootstrap-options\" \\\n"
517
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
518
" cluster-infrastructure=\"openais\" \\\n"
519
" expected-quorum-votes=\"2\" \\\n"
520
" stonith-enabled=\"false\" \\\n"
521
" no-quorum-policy=\"ignore\"\n"
522
"rsc_defaults $id=\"rsc-options\" \\\n"
523
" resource-stickiness=\"100\"\n"
524
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
526
"Last updated: Fri Aug 28 16:14:34 2009\n"
528
"Current DC: pcmk-2 - partition with quorum\n"
529
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
530
"2 Nodes configured, 2 expected votes\n"
531
"2 Resources configured.\n"
534
"Online: [ pcmk-1 pcmk-2 ]\n"
536
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-2\n"
537
"WebSite (ocf::heartbeat:apache): Started pcmk-2\n"
542
msgid "Controlling Resource Start/Stop Ordering"
543
msgstr "Controlarea Ordinii de Pornire/Oprire a Resursei"
547
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 (choose something descriptive like apache-after-ip), indicate that it's 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."
548
msgstr "Când pornește Apache, se atașează de adresa IP disponibilă. Nu știe de alte adrese pe care le adăugăm ulterior, așa nu trebuie doar să ruleze pe același nod, dar trebuie să ne asigurăm că ClusterIP este activ deja înainte să pornim WebSite. Realizăm acest lucru prin adăugarea unei restricții de ordonare. Trebuie să îi dăm un nume (alegeți ceva descriptiv precum apache-after-ip), să indicăm faptul că este obligatorie (astfel încât orice recuperare a ClusterIP va declanșa recuperarea WebSite-ului) și să listăm cele două resurse în ordinea în care avem nevoie să le pornim."
553
"[root@pcmk-1 ~]# <userinput>crm configure order apache-after-ip mandatory: ClusterIP WebSite</userinput>\n"
554
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
557
"primitive WebSite ocf:heartbeat:apache \\\n"
558
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
559
" op monitor interval=\"1min\"\n"
560
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
561
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
562
" op monitor interval=\"30s\"\n"
563
"colocation website-with-ip inf: WebSite ClusterIP\n"
564
"<emphasis>order apache-after-ip inf: ClusterIP WebSite</emphasis>\n"
565
"property $id=\"cib-bootstrap-options\" \\\n"
566
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
567
" cluster-infrastructure=\"openais\" \\\n"
568
" expected-quorum-votes=\"2\" \\\n"
569
" stonith-enabled=\"false\" \\\n"
570
" no-quorum-policy=\"ignore\"\n"
571
"rsc_defaults $id=\"rsc-options\" \\\n"
572
" resource-stickiness=\"100\"\n"
575
"[root@pcmk-1 ~]# <userinput>crm configure order apache-after-ip mandatory: ClusterIP WebSite</userinput>\n"
576
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
579
"primitive WebSite ocf:heartbeat:apache \\\n"
580
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
581
" op monitor interval=\"1min\"\n"
582
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
583
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
584
" op monitor interval=\"30s\"\n"
585
"colocation website-with-ip inf: WebSite ClusterIP\n"
586
"<emphasis>order apache-after-ip inf: ClusterIP WebSite</emphasis>\n"
587
"property $id=\"cib-bootstrap-options\" \\\n"
588
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
589
" cluster-infrastructure=\"openais\" \\\n"
590
" expected-quorum-votes=\"2\" \\\n"
591
" stonith-enabled=\"false\" \\\n"
592
" no-quorum-policy=\"ignore\"\n"
593
"rsc_defaults $id=\"rsc-options\" \\\n"
594
" resource-stickiness=\"100\"\n"
599
msgid "Specifying a Preferred Location"
600
msgstr "Specificarea unei Locații Preferate"
604
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."
605
msgstr "Pacemaker nu se bazează pe nici un fel de simetrie hardware între noduri, așa că ar putea foarte bine ca o mașină să fie mai puternică decât cealaltă. În astfel de cazuri are logică să găzduim resursele acolo dacă este disponibilă. Pentru a face acest lucru creăm o restricție de locație. Din nou îi dăm un nume descriptiv (prefer-pcmk-1), specificăm resursa pe care vrem să o rulăm acolo (WebSite), cât de mult am dori ca aceasta să ruleze acolo (vom folosi 50 momentan, dar într-o situație cu două noduri aproape orice valoare mai mare ca 0 este suficientă) și numele gazdei."
610
"[root@pcmk-1 ~]# <userinput>crm configure location prefer-pcmk-1 WebSite 50: pcmk-1</userinput>\n"
611
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
614
"primitive WebSite ocf:heartbeat:apache \\\n"
615
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
616
" op monitor interval=\"1min\"\n"
617
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
618
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
619
" op monitor interval=\"30s\"\n"
620
"<emphasis>location prefer-pcmk-1 WebSite 50: pcmk-1</emphasis>\n"
621
"colocation website-with-ip inf: WebSite ClusterIP\n"
622
"property $id=\"cib-bootstrap-options\" \\\n"
623
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
624
" cluster-infrastructure=\"openais\" \\\n"
625
" expected-quorum-votes=\"2\" \\\n"
626
" stonith-enabled=\"false\" \\\n"
627
" no-quorum-policy=\"ignore\"\n"
628
"rsc_defaults $id=\"rsc-options\" \\\n"
629
" resource-stickiness=\"100\"\n"
630
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
632
"Last updated: Fri Aug 28 16:17:35 2009\n"
634
"Current DC: pcmk-2 - partition with quorum\n"
635
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
636
"2 Nodes configured, 2 expected votes\n"
637
"2 Resources configured.\n"
640
"Online: [ pcmk-1 pcmk-2 ]\n"
642
"ClusterIP (ocf::heartbeat:IPaddr): <emphasis>Started pcmk-2</emphasis>\n"
643
"WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-2</emphasis>\n"
646
"[root@pcmk-1 ~]# <userinput>crm configure location prefer-pcmk-1 WebSite 50: pcmk-1</userinput>\n"
647
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
650
"primitive WebSite ocf:heartbeat:apache \\\n"
651
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
652
" op monitor interval=\"1min\"\n"
653
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
654
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
655
" op monitor interval=\"30s\"\n"
656
"<emphasis>location prefer-pcmk-1 WebSite 50: pcmk-1</emphasis>\n"
657
"colocation website-with-ip inf: WebSite ClusterIP\n"
658
"property $id=\"cib-bootstrap-options\" \\\n"
659
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
660
" cluster-infrastructure=\"openais\" \\\n"
661
" expected-quorum-votes=\"2\" \\\n"
662
" stonith-enabled=\"false\" \\\n"
663
" no-quorum-policy=\"ignore\"\n"
664
"rsc_defaults $id=\"rsc-options\" \\\n"
665
" resource-stickiness=\"100\"\n"
666
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
668
"Last updated: Fri Aug 28 16:17:35 2009\n"
670
"Current DC: pcmk-2 - partition with quorum\n"
671
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
672
"2 Nodes configured, 2 expected votes\n"
673
"2 Resources configured.\n"
676
"Online: [ pcmk-1 pcmk-2 ]\n"
678
"ClusterIP (ocf::heartbeat:IPaddr): <emphasis>Started pcmk-2</emphasis>\n"
679
"WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-2</emphasis>\n"
684
msgid "Wait a minute, the resources are still on pcmk-2!"
685
msgstr "Așteptați o clipă, resursele sunt încă pe pcmk-2!"
689
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)."
690
msgstr "Chiar dacă acum preferăm pcmk-1 în favoarea pcmk-2, această preferință este (în mod intenționat) mai mică decât adezivitatea resursei (cât de mult am preferat să nu avem nefuncționare inutilă)."
694
msgid "To see the current placement scores, you can use a tool called ptest"
695
msgstr "Pentru a vedea scorurile curente de plasament, puteți folosi un utilitar numit ptest"
704
msgid "Include output"
705
msgstr "Include rezultatul de ieșire"
709
msgid "There is a way to force them to move though..."
710
msgstr "Există o cale să le forțăm să se mute totuși ..."
714
msgid "Manually Moving Resources Around the Cluster"
715
msgstr "Mutarea Manuală a Resurselor Prin Jurul Clusterului"
719
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."
720
msgstr "Sunt întotdeauna momente când un administrator are nevoie să preia controlul clusterului și să forțeze resursele să se mute într-o locație specifică. Dedesupt folosim restricții de locație precum cea pe care am creat-o mai sus, dar în mod fericit nu trebuie să vă pese. Doar furnizați numele resursei și locația dorită, iar noi vom face restul."
725
"[root@pcmk-1 ~]# <userinput>crm resource move WebSite pcmk-1</userinput>\n"
726
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
728
"Last updated: Fri Aug 28 16:19:24 2009\n"
730
"Current DC: pcmk-2 - partition with quorum\n"
731
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
732
"2 Nodes configured, 2 expected votes\n"
733
"2 Resources configured.\n"
736
"Online: [ pcmk-1 pcmk-2 ]\n"
738
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n"
739
"WebSite (ocf::heartbeat:apache): Started pcmk-1\n"
740
"Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n"
741
"For the curious, we can see the effect of this command by examining the configuration\n"
742
"crm configure show\n"
743
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
746
"primitive WebSite ocf:heartbeat:apache \\\n"
747
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
748
" op monitor interval=\"1min\"\n"
749
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
750
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
751
" op monitor interval=\"30s\"\n"
752
"<emphasis>location cli-prefer-WebSite WebSite \\</emphasis>\n"
753
"<emphasis> rule $id=\"cli-prefer-rule-WebSite\" inf: #uname eq pcmk-1</emphasis>\n"
754
"location prefer-pcmk-1 WebSite 50: pcmk-1\n"
755
"colocation website-with-ip inf: WebSite ClusterIP\n"
756
"property $id=\"cib-bootstrap-options\" \\\n"
757
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
758
" cluster-infrastructure=\"openais\" \\\n"
759
" expected-quorum-votes=\"2\" \\\n"
760
" stonith-enabled=\"false\" \\\n"
761
" no-quorum-policy=\"ignore\"\n"
762
"rsc_defaults $id=\"rsc-options\" \\\n"
763
" resource-stickiness=\"100\"\n"
766
"[root@pcmk-1 ~]# <userinput>crm resource move WebSite pcmk-1</userinput>\n"
767
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
769
"Last updated: Fri Aug 28 16:19:24 2009\n"
771
"Current DC: pcmk-2 - partition with quorum\n"
772
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
773
"2 Nodes configured, 2 expected votes\n"
774
"2 Resources configured.\n"
777
"Online: [ pcmk-1 pcmk-2 ]\n"
779
"ClusterIP (ocf::heartbeat:IPaddr): Started pcmk-1\n"
780
"WebSite (ocf::heartbeat:apache): Started pcmk-1\n"
781
"Notice how the colocation rule we created has ensured that ClusterIP was also moved to pcmk-1.\n"
782
"For the curious, we can see the effect of this command by examining the configuration\n"
783
"crm configure show\n"
784
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
787
"primitive WebSite ocf:heartbeat:apache \\\n"
788
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
789
" op monitor interval=\"1min\"\n"
790
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
791
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
792
" op monitor interval=\"30s\"\n"
793
"<emphasis>location cli-prefer-WebSite WebSite \\</emphasis>\n"
794
"<emphasis> rule $id=\"cli-prefer-rule-WebSite\" inf: #uname eq pcmk-1</emphasis>\n"
795
"location prefer-pcmk-1 WebSite 50: pcmk-1\n"
796
"colocation website-with-ip inf: WebSite ClusterIP\n"
797
"property $id=\"cib-bootstrap-options\" \\\n"
798
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
799
" cluster-infrastructure=\"openais\" \\\n"
800
" expected-quorum-votes=\"2\" \\\n"
801
" stonith-enabled=\"false\" \\\n"
802
" no-quorum-policy=\"ignore\"\n"
803
"rsc_defaults $id=\"rsc-options\" \\\n"
804
" resource-stickiness=\"100\"\n"
809
msgid "Highlighted is the automated constraint used to move the resources to pcmk-1"
810
msgstr "Subliniată este restricția automată folosită pentru a muta resursele pe pcmk-1"
814
msgid "Giving Control Back to the Cluster"
815
msgstr "Returnarea Controlului Înapoi Clusterului"
819
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."
820
msgstr "Odată ce am terminat oricare activitate ce ne-a cerut să mutăm resursele pe pcmk-1, în cazul nostru nimic, putem mai apoi să permitem clusterului să reia operațiunile normale prin comanda unmove. Din moment ce am configurat anterior o adezivitate implicită, resursele vor rămâne pe pcmk-1."
825
"[root@pcmk-1 ~]# <userinput>crm resource unmove WebSite</userinput>\n"
826
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
829
"primitive WebSite ocf:heartbeat:apache \\\n"
830
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
831
" op monitor interval=\"1min\"\n"
832
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
833
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
834
" op monitor interval=\"30s\"\n"
835
"location prefer-pcmk-1 WebSite 50: pcmk-1\n"
836
"colocation website-with-ip inf: WebSite ClusterIP\n"
837
"property $id=\"cib-bootstrap-options\" \\\n"
838
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
839
" cluster-infrastructure=\"openais\" \\\n"
840
" expected-quorum-votes=\"2\" \\\n"
841
" stonith-enabled=\"false\" \\\n"
842
" no-quorum-policy=\"ignore\"\n"
843
"rsc_defaults $id=\"rsc-options\" \\\n"
844
" resource-stickiness=\"100\"\n"
847
"[root@pcmk-1 ~]# <userinput>crm resource unmove WebSite</userinput>\n"
848
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
851
"primitive WebSite ocf:heartbeat:apache \\\n"
852
" params configfile=\"/etc/httpd/conf/httpd.conf\" \\\n"
853
" op monitor interval=\"1min\"\n"
854
"primitive ClusterIP ocf:heartbeat:IPaddr2 \\\n"
855
" params ip=\"192.168.122.101\" cidr_netmask=\"32\" \\\n"
856
" op monitor interval=\"30s\"\n"
857
"location prefer-pcmk-1 WebSite 50: pcmk-1\n"
858
"colocation website-with-ip inf: WebSite ClusterIP\n"
859
"property $id=\"cib-bootstrap-options\" \\\n"
860
" dc-version=\"1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\" \\\n"
861
" cluster-infrastructure=\"openais\" \\\n"
862
" expected-quorum-votes=\"2\" \\\n"
863
" stonith-enabled=\"false\" \\\n"
864
" no-quorum-policy=\"ignore\"\n"
865
"rsc_defaults $id=\"rsc-options\" \\\n"
866
" resource-stickiness=\"100\"\n"
871
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."
872
msgstr "Observați că restricția automată acum nu mai există. Dacă verificăm status-ul clusterului, putem vedea că așa cum ne așteptam resursele sunt în continuare active pe pcmk-1."
877
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
879
"Last updated: Fri Aug 28 16:20:53 2009\n"
881
"Current DC: pcmk-2 - partition with quorum\n"
882
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
883
"2 Nodes configured, 2 expected votes\n"
884
"2 Resources configured.\n"
887
"Online: [ pcmk-1 pcmk-2 ]\n"
889
" ClusterIP (ocf::heartbeat:IPaddr): <emphasis>Started pcmk-1</emphasis>\n"
890
" WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-1</emphasis>\n"
893
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
895
"Last updated: Fri Aug 28 16:20:53 2009\n"
897
"Current DC: pcmk-2 - partition with quorum\n"
898
"Version: 1.1.5-bdd89e69ba545404d02445be1f3d72e6a203ba2f\n"
899
"2 Nodes configured, 2 expected votes\n"
900
"2 Resources configured.\n"
903
"Online: [ pcmk-1 pcmk-2 ]\n"
905
" ClusterIP (ocf::heartbeat:IPaddr): <emphasis>Started pcmk-1</emphasis>\n"
906
" WebSite (ocf::heartbeat:apache): <emphasis>Started pcmk-1</emphasis>\n"