~ubuntu-server-dev/ubuntu/vivid/pacemaker/1.1.12

« back to all changes in this revision

Viewing changes to doc/Clusters_from_Scratch/ro-RO/Ch-Apache.po

  • Committer: Package Import Robot
  • Author(s): Martin Loschwitz
  • Date: 2012-04-17 11:46:52 UTC
  • mto: (1.3.3) (2.1.20 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20120417114652-b7s0mviz2uo636wa
Import upstream version 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# AUTHOR <EMAIL@ADDRESS>, YEAR.
 
3
#
 
4
msgid ""
 
5
msgstr ""
 
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"
 
11
"MIME-Version: 1.0\n"
 
12
"Content-Type: application/x-publican; charset=UTF-8\n"
 
13
"Content-Transfer-Encoding: 8bit\n"
 
14
 
 
15
#. Tag: title
 
16
#, no-c-format
 
17
msgid "Apache - Adding More Services"
 
18
msgstr "Apache - Adăugarea mai Multor Servicii"
 
19
 
 
20
#. Tag: para
 
21
#, no-c-format
 
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."
 
24
 
 
25
#. Tag: title
 
26
#, no-c-format
 
27
msgid "Installation"
 
28
msgstr "Instalare"
 
29
 
 
30
#. Tag: para
 
31
#, no-c-format
 
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."
 
34
 
 
35
#. Tag: screen
 
36
#, no-c-format
 
37
msgid "\n"
 
38
"[root@ppcmk-1 ~]# <userinput>yum install -y httpd</userinput>\n"
 
39
"Setting up Install Process\n"
 
40
"Resolving Dependencies\n"
 
41
"--&gt; Running transaction check\n"
 
42
"---&gt; Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n"
 
43
"--&gt; Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n"
 
44
"--&gt; Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n"
 
45
"--&gt; Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n"
 
46
"--&gt; Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
 
47
"--&gt; Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
 
48
"--&gt; Running transaction check\n"
 
49
"---&gt; Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
50
"---&gt; Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
51
"---&gt; Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
52
"---&gt; Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n"
 
53
"---&gt; Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n"
 
54
"--&gt; Finished Dependency Resolution\n"
 
55
"\n"
 
56
"Dependencies Resolved\n"
 
57
"\n"
 
58
"=======================================================================================\n"
 
59
" Package               Arch             Version                Repository         Size\n"
 
60
"=======================================================================================\n"
 
61
"Installing:\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"
 
69
"\n"
 
70
"Transaction Summary\n"
 
71
"=======================================================================================\n"
 
72
"Install       6 Package(s)\n"
 
73
"Upgrade       0 Package(s)\n"
 
74
"\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"
 
96
"\n"
 
97
"Installed:\n"
 
98
"  httpd.x86_64 0:2.2.13-2.fc12                                                          \n"
 
99
"\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"
 
104
"\n"
 
105
"Complete!\n"
 
106
"[root@pcmk-1 ~]#\n"
 
107
""
 
108
msgstr "\n"
 
109
"[root@ppcmk-1 ~]# <userinput>yum install -y httpd</userinput>\n"
 
110
"Setting up Install Process\n"
 
111
"Resolving Dependencies\n"
 
112
"--&gt; Running transaction check\n"
 
113
"---&gt; Package httpd.x86_64 0:2.2.13-2.fc12 set to be updated\n"
 
114
"--&gt; Processing Dependency: httpd-tools = 2.2.13-2.fc12 for package: httpd-2.2.13-2.fc12.x86_64\n"
 
115
"--&gt; Processing Dependency: apr-util-ldap for package: httpd-2.2.13-2.fc12.x86_64\n"
 
116
"--&gt; Processing Dependency: /etc/mime.types for package: httpd-2.2.13-2.fc12.x86_64\n"
 
117
"--&gt; Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
 
118
"--&gt; Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.13-2.fc12.x86_64\n"
 
119
"--&gt; Running transaction check\n"
 
120
"---&gt; Package apr.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
121
"---&gt; Package apr-util.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
122
"---&gt; Package apr-util-ldap.x86_64 0:1.3.9-2.fc12 set to be updated\n"
 
123
"---&gt; Package httpd-tools.x86_64 0:2.2.13-2.fc12 set to be updated\n"
 
124
"---&gt; Package mailcap.noarch 0:2.1.30-1.fc12 set to be updated\n"
 
125
"--&gt; Finished Dependency Resolution\n"
 
126
"\n"
 
127
"Dependencies Resolved\n"
 
128
"\n"
 
129
"=======================================================================================\n"
 
130
" Package               Arch             Version                Repository         Size\n"
 
131
"=======================================================================================\n"
 
132
"Installing:\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"
 
140
"\n"
 
141
"Transaction Summary\n"
 
142
"=======================================================================================\n"
 
143
"Install       6 Package(s)\n"
 
144
"Upgrade       0 Package(s)\n"
 
145
"\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"
 
167
"\n"
 
168
"Installed:\n"
 
169
"  httpd.x86_64 0:2.2.13-2.fc12                                                          \n"
 
170
"\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"
 
175
"\n"
 
176
"Complete!\n"
 
177
"[root@pcmk-1 ~]#\n"
 
178
""
 
179
 
 
180
#. Tag: para
 
181
#, no-c-format
 
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."
 
184
 
 
185
#. Tag: screen
 
186
#, no-c-format
 
187
msgid "\n"
 
188
"[root@pcmk-1 ~]# <userinput>yum install -y wget</userinput>\n"
 
189
"Setting up Install Process\n"
 
190
"Resolving Dependencies\n"
 
191
"--&gt; Running transaction check\n"
 
192
"---&gt; Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n"
 
193
"--&gt; Finished Dependency Resolution\n"
 
194
"\n"
 
195
"Dependencies Resolved\n"
 
196
"\n"
 
197
"===========================================================================================\n"
 
198
" Package        Arch             Version                      Repository               Size\n"
 
199
"===========================================================================================\n"
 
200
"Installing:\n"
 
201
" wget          x86_64          1.11.4-5.fc12                   rawhide                393 k\n"
 
202
"\n"
 
203
"Transaction Summary\n"
 
204
"===========================================================================================\n"
 
205
"Install       1 Package(s)\n"
 
206
"Upgrade       0 Package(s)\n"
 
207
"\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"
 
217
"\n"
 
218
"Installed:\n"
 
219
"  wget.x86_64 0:1.11.4-5.fc12\n"
 
220
"\n"
 
221
"Complete!\n"
 
222
"[root@pcmk-1 ~]#\n"
 
223
""
 
224
msgstr "\n"
 
225
"[root@pcmk-1 ~]# <userinput>yum install -y wget</userinput>\n"
 
226
"Setting up Install Process\n"
 
227
"Resolving Dependencies\n"
 
228
"--&gt; Running transaction check\n"
 
229
"---&gt; Package wget.x86_64 0:1.11.4-5.fc12 set to be updated\n"
 
230
"--&gt; Finished Dependency Resolution\n"
 
231
"\n"
 
232
"Dependencies Resolved\n"
 
233
"\n"
 
234
"===========================================================================================\n"
 
235
" Package        Arch             Version                      Repository               Size\n"
 
236
"===========================================================================================\n"
 
237
"Installing:\n"
 
238
" wget          x86_64          1.11.4-5.fc12                   rawhide                393 k\n"
 
239
"\n"
 
240
"Transaction Summary\n"
 
241
"===========================================================================================\n"
 
242
"Install       1 Package(s)\n"
 
243
"Upgrade       0 Package(s)\n"
 
244
"\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"
 
254
"\n"
 
255
"Installed:\n"
 
256
"  wget.x86_64 0:1.11.4-5.fc12\n"
 
257
"\n"
 
258
"Complete!\n"
 
259
"[root@pcmk-1 ~]#\n"
 
260
""
 
261
 
 
262
#. Tag: title
 
263
#, no-c-format
 
264
msgid "Preparation"
 
265
msgstr "Pregătire"
 
266
 
 
267
#. Tag: para
 
268
#, no-c-format
 
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."
 
271
 
 
272
#. Tag: screen
 
273
#, no-c-format
 
274
msgid "\n"
 
275
"[root@pcmk-1 ~]# <userinput>cat &lt;&lt;-END &gt;/var/www/html/index.html</userinput>\n"
 
276
" &lt;html&gt;\n"
 
277
" &lt;body&gt;My Test Site - pcmk-1&lt;/body&gt;\n"
 
278
" &lt;/html&gt;\n"
 
279
" END\n"
 
280
"[root@pcmk-1 ~]#\n"
 
281
""
 
282
msgstr "\n"
 
283
"[root@pcmk-1 ~]# <userinput>cat &lt;&lt;-END &gt;/var/www/html/index.html</userinput>\n"
 
284
" &lt;html&gt;\n"
 
285
" &lt;body&gt;My Test Site - pcmk-1&lt;/body&gt;\n"
 
286
" &lt;/html&gt;\n"
 
287
" END\n"
 
288
"[root@pcmk-1 ~]#\n"
 
289
""
 
290
 
 
291
#. Tag: para
 
292
#, no-c-format
 
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."
 
295
 
 
296
#. Tag: screen
 
297
#, no-c-format
 
298
msgid "\n"
 
299
"[root@pcmk-2 ~]# <userinput>cat &lt;&lt;-END &gt;/var/www/html/index.html</userinput>\n"
 
300
" &lt;html&gt;\n"
 
301
" &lt;body&gt;My Test Site - pcmk-2&lt;/body&gt;\n"
 
302
" &lt;/html&gt;\n"
 
303
" END\n"
 
304
"[root@pcmk-2 ~]#\n"
 
305
""
 
306
msgstr "\n"
 
307
"[root@pcmk-2 ~]# <userinput>cat &lt;&lt;-END &gt;/var/www/html/index.html</userinput>\n"
 
308
" &lt;html&gt;\n"
 
309
" &lt;body&gt;My Test Site - pcmk-2&lt;/body&gt;\n"
 
310
" &lt;/html&gt;\n"
 
311
" END\n"
 
312
"[root@pcmk-2 ~]#\n"
 
313
""
 
314
 
 
315
#. Tag: title
 
316
#, no-c-format
 
317
msgid "Enable the Apache status URL"
 
318
msgstr "Activați status URL-ul Apache-ului"
 
319
 
 
320
#. Tag: para
 
321
#, no-c-format
 
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."
 
324
 
 
325
#. Tag: screen
 
326
#, no-c-format
 
327
msgid "\n"
 
328
"&lt;Location /server-status&gt;\n"
 
329
"   SetHandler server-status\n"
 
330
"   Order deny,allow\n"
 
331
"   Deny from all\n"
 
332
"   Allow from 127.0.0.1\n"
 
333
"&lt;/Location&gt;\n"
 
334
"         "
 
335
msgstr "\n"
 
336
"&lt;Location /server-status&gt;\n"
 
337
"   SetHandler server-status\n"
 
338
"   Order deny,allow\n"
 
339
"   Deny from all\n"
 
340
"   Allow from 127.0.0.1\n"
 
341
"&lt;/Location&gt;\n"
 
342
"         "
 
343
 
 
344
#. Tag: title
 
345
#, no-c-format
 
346
msgid "Update the Configuration"
 
347
msgstr "Actualizarea Configurației"
 
348
 
 
349
#. Tag: para
 
350
#, no-c-format
 
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ă."
 
353
 
 
354
#. Tag: screen
 
355
#, no-c-format
 
356
msgid "\n"
 
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"
 
359
"node pcmk-1\n"
 
360
"node pcmk-2\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"
 
375
""
 
376
msgstr "\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"
 
379
"node pcmk-1\n"
 
380
"node pcmk-2\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"
 
395
""
 
396
 
 
397
#. Tag: para
 
398
#, no-c-format
 
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"
 
401
 
 
402
#. Tag: screen
 
403
#, no-c-format
 
404
msgid "\n"
 
405
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
406
"============\n"
 
407
"Last updated: Fri Aug 28 16:12:49 2009\n"
 
408
"Stack: openais\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"
 
413
"============\n"
 
414
"\n"
 
415
"Online: [ pcmk-1 pcmk-2 ]\n"
 
416
"\n"
 
417
"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n"
 
418
"WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-1</emphasis>\n"
 
419
""
 
420
msgstr "\n"
 
421
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
422
"============\n"
 
423
"Last updated: Fri Aug 28 16:12:49 2009\n"
 
424
"Stack: openais\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"
 
429
"============\n"
 
430
"\n"
 
431
"Online: [ pcmk-1 pcmk-2 ]\n"
 
432
"\n"
 
433
"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n"
 
434
"WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-1</emphasis>\n"
 
435
""
 
436
 
 
437
#. Tag: para
 
438
#, no-c-format
 
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!"
 
441
 
 
442
#. Tag: title
 
443
#, no-c-format
 
444
msgid "Ensuring Resources Run on the Same Host"
 
445
msgstr "Asigurarea că Resursele Rulează pe Aceeași Gazdă"
 
446
 
 
447
#. Tag: para
 
448
#, no-c-format
 
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."
 
451
 
 
452
#. Tag: para
 
453
#, no-c-format
 
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."
 
456
 
 
457
#. Tag: para
 
458
#, no-c-format
 
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."
 
461
 
 
462
#. Tag: para
 
463
#, no-c-format
 
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>."
 
466
 
 
467
#. Tag: screen
 
468
#, no-c-format
 
469
msgid "\n"
 
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"
 
472
"node pcmk-1\n"
 
473
"node pcmk-2\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"
 
490
"============\n"
 
491
"Last updated: Fri Aug 28 16:14:34 2009\n"
 
492
"Stack: openais\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"
 
497
"============\n"
 
498
"\n"
 
499
"Online: [ pcmk-1 pcmk-2 ]\n"
 
500
"\n"
 
501
"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n"
 
502
"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n"
 
503
""
 
504
msgstr "\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"
 
507
"node pcmk-1\n"
 
508
"node pcmk-2\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"
 
525
"============\n"
 
526
"Last updated: Fri Aug 28 16:14:34 2009\n"
 
527
"Stack: openais\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"
 
532
"============\n"
 
533
"\n"
 
534
"Online: [ pcmk-1 pcmk-2 ]\n"
 
535
"\n"
 
536
"ClusterIP        (ocf::heartbeat:IPaddr):        Started pcmk-2\n"
 
537
"WebSite        (ocf::heartbeat:apache):        Started pcmk-2\n"
 
538
""
 
539
 
 
540
#. Tag: title
 
541
#, no-c-format
 
542
msgid "Controlling Resource Start/Stop Ordering"
 
543
msgstr "Controlarea Ordinii de Pornire/Oprire a Resursei"
 
544
 
 
545
#. Tag: para
 
546
#, no-c-format
 
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."
 
549
 
 
550
#. Tag: screen
 
551
#, no-c-format
 
552
msgid "\n"
 
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"
 
555
"node pcmk-1\n"
 
556
"node pcmk-2\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"
 
573
""
 
574
msgstr "\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"
 
577
"node pcmk-1\n"
 
578
"node pcmk-2\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"
 
595
""
 
596
 
 
597
#. Tag: title
 
598
#, no-c-format
 
599
msgid "Specifying a Preferred Location"
 
600
msgstr "Specificarea unei Locații Preferate"
 
601
 
 
602
#. Tag: para
 
603
#, no-c-format
 
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."
 
606
 
 
607
#. Tag: screen
 
608
#, no-c-format
 
609
msgid "\n"
 
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"
 
612
"node pcmk-1\n"
 
613
"node pcmk-2\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"
 
631
"============\n"
 
632
"Last updated: Fri Aug 28 16:17:35 2009\n"
 
633
"Stack: openais\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"
 
638
"============\n"
 
639
"\n"
 
640
"Online: [ pcmk-1 pcmk-2 ]\n"
 
641
"\n"
 
642
"ClusterIP        (ocf::heartbeat:IPaddr):        <emphasis>Started pcmk-2</emphasis>\n"
 
643
"WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-2</emphasis>\n"
 
644
""
 
645
msgstr "\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"
 
648
"node pcmk-1\n"
 
649
"node pcmk-2\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"
 
667
"============\n"
 
668
"Last updated: Fri Aug 28 16:17:35 2009\n"
 
669
"Stack: openais\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"
 
674
"============\n"
 
675
"\n"
 
676
"Online: [ pcmk-1 pcmk-2 ]\n"
 
677
"\n"
 
678
"ClusterIP        (ocf::heartbeat:IPaddr):        <emphasis>Started pcmk-2</emphasis>\n"
 
679
"WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-2</emphasis>\n"
 
680
""
 
681
 
 
682
#. Tag: para
 
683
#, no-c-format
 
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!"
 
686
 
 
687
#. Tag: para
 
688
#, no-c-format
 
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ă)."
 
691
 
 
692
#. Tag: para
 
693
#, no-c-format
 
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"
 
696
 
 
697
#. Tag: para
 
698
#, no-c-format
 
699
msgid "ptest -sL"
 
700
msgstr "ptest -sL"
 
701
 
 
702
#. Tag: para
 
703
#, no-c-format
 
704
msgid "Include output"
 
705
msgstr "Include rezultatul de ieșire"
 
706
 
 
707
#. Tag: para
 
708
#, no-c-format
 
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 ..."
 
711
 
 
712
#. Tag: title
 
713
#, no-c-format
 
714
msgid "Manually Moving Resources Around the Cluster"
 
715
msgstr "Mutarea Manuală a Resurselor Prin Jurul Clusterului"
 
716
 
 
717
#. Tag: para
 
718
#, no-c-format
 
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."
 
721
 
 
722
#. Tag: screen
 
723
#, no-c-format
 
724
msgid "\n"
 
725
"[root@pcmk-1 ~]# <userinput>crm resource move WebSite pcmk-1</userinput>\n"
 
726
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
727
"============\n"
 
728
"Last updated: Fri Aug 28 16:19:24 2009\n"
 
729
"Stack: openais\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"
 
734
"============\n"
 
735
"\n"
 
736
"Online: [ pcmk-1 pcmk-2 ]\n"
 
737
"\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"
 
744
"node pcmk-1\n"
 
745
"node pcmk-2\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"
 
764
""
 
765
msgstr "\n"
 
766
"[root@pcmk-1 ~]# <userinput>crm resource move WebSite pcmk-1</userinput>\n"
 
767
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
768
"============\n"
 
769
"Last updated: Fri Aug 28 16:19:24 2009\n"
 
770
"Stack: openais\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"
 
775
"============\n"
 
776
"\n"
 
777
"Online: [ pcmk-1 pcmk-2 ]\n"
 
778
"\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"
 
785
"node pcmk-1\n"
 
786
"node pcmk-2\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"
 
805
""
 
806
 
 
807
#. Tag: para
 
808
#, no-c-format
 
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"
 
811
 
 
812
#. Tag: title
 
813
#, no-c-format
 
814
msgid "Giving Control Back to the Cluster"
 
815
msgstr "Returnarea Controlului Înapoi Clusterului"
 
816
 
 
817
#. Tag: para
 
818
#, no-c-format
 
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."
 
821
 
 
822
#. Tag: screen
 
823
#, no-c-format
 
824
msgid "\n"
 
825
"[root@pcmk-1 ~]# <userinput>crm resource unmove WebSite</userinput>\n"
 
826
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
 
827
"node pcmk-1\n"
 
828
"node pcmk-2\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"
 
845
""
 
846
msgstr "\n"
 
847
"[root@pcmk-1 ~]# <userinput>crm resource unmove WebSite</userinput>\n"
 
848
"[root@pcmk-1 ~]# <userinput>crm configure show</userinput>\n"
 
849
"node pcmk-1\n"
 
850
"node pcmk-2\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"
 
867
""
 
868
 
 
869
#. Tag: para
 
870
#, no-c-format
 
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."
 
873
 
 
874
#. Tag: screen
 
875
#, no-c-format
 
876
msgid "\n"
 
877
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
878
"============\n"
 
879
"Last updated: Fri Aug 28 16:20:53 2009\n"
 
880
"Stack: openais\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"
 
885
"============\n"
 
886
"\n"
 
887
"Online: [ pcmk-1 pcmk-2 ]\n"
 
888
"\n"
 
889
" ClusterIP        (ocf::heartbeat:IPaddr):        <emphasis>Started pcmk-1</emphasis>\n"
 
890
" WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-1</emphasis>\n"
 
891
""
 
892
msgstr "\n"
 
893
"[root@pcmk-1 ~]# <userinput>crm_mon</userinput>\n"
 
894
"============\n"
 
895
"Last updated: Fri Aug 28 16:20:53 2009\n"
 
896
"Stack: openais\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"
 
901
"============\n"
 
902
"\n"
 
903
"Online: [ pcmk-1 pcmk-2 ]\n"
 
904
"\n"
 
905
" ClusterIP        (ocf::heartbeat:IPaddr):        <emphasis>Started pcmk-1</emphasis>\n"
 
906
" WebSite        (ocf::heartbeat:apache):        <emphasis>Started pcmk-1</emphasis>\n"
 
907
""
 
908