@@ -65,7 +65,7 @@ it fails. On both nodes, configure this URL as follows:
6565 # cat <<-END >/etc/httpd/conf.d/status.conf
6666 <Location /server-status>
6767 SetHandler server-status
68- Require local
68+ Require all granted
6969 </Location>
7070 END
7171
@@ -105,7 +105,6 @@ tutorial, we will adjust the global operation timeout default to 240 seconds.
105105.. code-block :: console
106106
107107 [root@pcmk-1 ~]# pcs resource op defaults
108- No defaults set
109108 [root@pcmk-1 ~]# pcs resource op defaults update timeout=240s
110109 Warning: Defaults do not apply to resources which override them with their own defined values
111110 [root@pcmk-1 ~]# pcs resource op defaults
@@ -135,10 +134,10 @@ After a short delay, we should see the cluster start Apache.
135134 [root@pcmk-1 ~]# pcs status
136135 Cluster name: mycluster
137136 Cluster Summary:
138- * Stack: corosync
139- * Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2 ) - partition with quorum
140- * Last updated: Wed Jul 27 00:47:44 2022
141- * Last change: Wed Jul 27 00:47:23 2022 by root via cibadmin on pcmk-1
137+ * Stack: corosync (Pacemaker is running)
138+ * Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427 ) - partition with quorum
139+ * Last updated: Tue Feb 24 16:34:07 2026 on pcmk-1
140+ * Last change: Tue Feb 24 16:33:50 2026 by root via root on pcmk-1
142141 * 2 nodes configured
143142 * 3 resource instances configured
144143
@@ -148,7 +147,7 @@ After a short delay, we should see the cluster start Apache.
148147 Full List of Resources:
149148 * fence_dev (stonith:some_fence_agent): Started pcmk-1
150149 * ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-1
151- * WebSite (ocf:heartbeat:apache): Started pcmk-2
150+ * WebSite (ocf:heartbeat:apache): Started pcmk-2
152151
153152 Daemon Status:
154153 corosync: active/disabled
@@ -211,20 +210,18 @@ is not active anywhere, ``WebSite`` will not be permitted to run.
211210
212211.. code-block :: console
213212
214- [root@pcmk-1 ~]# pcs constraint colocation add WebSite with ClusterIP INFINITY
213+ [root@pcmk-1 ~]# pcs constraint colocation add WebSite with ClusterIP score= INFINITY
215214 [root@pcmk-1 ~]# pcs constraint
216- Location Constraints:
217- Ordering Constraints:
218215 Colocation Constraints:
219- WebSite with ClusterIP (score:INFINITY)
220- Ticket Constraints:
216+ resource ' WebSite' with resource 'ClusterIP'
217+ score=INFINITY
221218 [root@pcmk-1 ~]# pcs status
222219 Cluster name: mycluster
223220 Cluster Summary:
224- * Stack: corosync
225- * Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2 ) - partition with quorum
226- * Last updated: Wed Jul 27 00:49:33 2022
227- * Last change: Wed Jul 27 00:49:16 2022 by root via cibadmin on pcmk-1
221+ * Stack: corosync (Pacemaker is running)
222+ * Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427 ) - partition with quorum
223+ * Last updated: Tue Feb 24 16:37:25 2026 on pcmk-1
224+ * Last change: Tue Feb 24 16:36:36 2026 by root via root on pcmk-1
228225 * 2 nodes configured
229226 * 3 resource instances configured
230227
@@ -234,7 +231,7 @@ is not active anywhere, ``WebSite`` will not be permitted to run.
234231 Full List of Resources:
235232 * fence_dev (stonith:some_fence_agent): Started pcmk-1
236233 * ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-1
237- * WebSite (ocf:heartbeat:apache): Started pcmk-1
234+ * WebSite (ocf:heartbeat:apache): Started pcmk-1
238235
239236 Daemon Status:
240237 corosync: active/disabled
@@ -275,12 +272,11 @@ also implies that the recovery of ``ClusterIP`` will trigger the recovery of
275272 [root@pcmk-1 ~]# pcs constraint order ClusterIP then WebSite
276273 Adding ClusterIP WebSite (kind: Mandatory) (Options: first-action=start then-action=start)
277274 [root@pcmk-1 ~]# pcs constraint
278- Location Constraints:
279- Ordering Constraints:
280- start ClusterIP then start WebSite (kind:Mandatory)
281275 Colocation Constraints:
282- WebSite with ClusterIP (score:INFINITY)
283- Ticket Constraints:
276+ resource 'WebSite' with resource 'ClusterIP'
277+ score=INFINITY
278+ Order Constraints:
279+ start resource 'ClusterIP' then start 'WebSite'
284280
285281 .. NOTE ::
286282
@@ -324,21 +320,19 @@ how strongly we'd like the resource to run at this location.
324320 [root@pcmk-1 ~]# pcs constraint location WebSite prefers pcmk-2=50
325321 [root@pcmk-1 ~]# pcs constraint
326322 Location Constraints:
327- Resource: WebSite
328- Enabled on:
329- Node: pcmk-2 (score:50)
330- Ordering Constraints:
331- start ClusterIP then start WebSite (kind:Mandatory)
323+ resource 'WebSite' prefers node 'pcmk-2' with score 50
332324 Colocation Constraints:
333- WebSite with ClusterIP (score:INFINITY)
334- Ticket Constraints:
325+ resource 'WebSite' with resource 'ClusterIP'
326+ score=INFINITY
327+ Order Constraints:
328+ start resource 'ClusterIP' then start 'WebSite'
335329 [root@pcmk-1 ~]# pcs status
336330 Cluster name: mycluster
337331 Cluster Summary:
338- * Stack: corosync
339- * Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2 ) - partition with quorum
340- * Last updated: Wed Jul 27 00:51:13 2022
341- * Last change: Wed Jul 27 00:51:07 2022 by root via cibadmin on pcmk-1
332+ * Stack: corosync (Pacemaker is running)
333+ * Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427 ) - partition with quorum
334+ * Last updated: Tue Feb 24 16:44:43 2026 on pcmk-1
335+ * Last change: Tue Feb 24 16:43:35 2026 by root via root on pcmk-1
342336 * 2 nodes configured
343337 * 3 resource instances configured
344338
@@ -348,7 +342,7 @@ how strongly we'd like the resource to run at this location.
348342 Full List of Resources:
349343 * fence_dev (stonith:some_fence_agent): Started pcmk-1
350344 * ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-1
351- * WebSite (ocf:heartbeat:apache): Started pcmk-1
345+ * WebSite (ocf:heartbeat:apache): Started pcmk-1
352346
353347 Daemon Status:
354348 corosync: active/disabled
@@ -367,18 +361,22 @@ To see the current placement scores, you can use a tool called
367361.. code-block :: console
368362
369363 [root@pcmk-1 ~]# crm_simulate -sL
370- [ pcmk-1 pcmk-2 ]
371-
372- fence_dev (stonith:some_fence_agent): Started pcmk-1
373- ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-1
374- WebSite (ocf:heartbeat:apache): Started pcmk-1
375-
376- pcmk__native_allocate: fence_dev allocation score on pcmk-1: 100
377- pcmk__native_allocate: fence_dev allocation score on pcmk-2: 0
378- pcmk__native_allocate: ClusterIP allocation score on pcmk-1: 200
379- pcmk__native_allocate: ClusterIP allocation score on pcmk-2: 50
380- pcmk__native_allocate: WebSite allocation score on pcmk-1: 100
381- pcmk__native_allocate: WebSite allocation score on pcmk-2: -INFINITY
364+ Current cluster status:
365+ * Node List:
366+ * Online: [ pcmk-1 pcmk-2 ]
367+
368+ * Full List of Resources:
369+ * ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-1
370+ * fence_dev (stonith:some_fence_agent): Started pcmk-1
371+ * WebSite (ocf:heartbeat:apache): Started pcmk-1
372+
373+ Assignment Scores:
374+ * pcmk__native_allocate: ClusterIP allocation score on pcmk-1: 200
375+ * pcmk__native_allocate: ClusterIP allocation score on pcmk-2: 50
376+ * pcmk__native_allocate: fence_dev allocation score on pcmk-1: 100
377+ * pcmk__native_allocate: fence_dev allocation score on pcmk-2: -INFINITY
378+ * pcmk__native_allocate: WebSite allocation score on pcmk-1: 100
379+ * pcmk__native_allocate: WebSite allocation score on pcmk-2: -INFINITY
382380
383381 .. index ::
384382 single: resource; moving manually
@@ -407,21 +405,19 @@ as before.
407405 resource 'WebSite' is running on node 'pcmk-2'
408406 [root@pcmk-1 ~]# pcs constraint
409407 Location Constraints:
410- Resource: WebSite
411- Enabled on:
412- Node: pcmk-2 (score:50)
413- Ordering Constraints:
414- start ClusterIP then start WebSite (kind:Mandatory)
408+ resource 'WebSite' prefers node 'pcmk-2' with score 50
415409 Colocation Constraints:
416- WebSite with ClusterIP (score:INFINITY)
417- Ticket Constraints:
410+ resource 'WebSite' with resource 'ClusterIP'
411+ score=INFINITY
412+ Order Constraints:
413+ start resource 'ClusterIP' then start 'WebSite'
418414 [root@pcmk-1 ~]# pcs status
419415 Cluster name: mycluster
420416 Cluster Summary:
421- * Stack: corosync
422- * Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2 ) - partition with quorum
423- * Last updated: Wed Jul 27 00:54:23 2022
424- * Last change: Wed Jul 27 00:53:48 2022 by root via cibadmin on pcmk-1
417+ * Stack: corosync (Pacemaker is running)
418+ * Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427 ) - partition with quorum
419+ * Last updated: Tue Feb 24 16:56:37 2026 on pcmk-1
420+ * Last change: Tue Feb 24 16:54:28 2026 by root via root on pcmk-1
425421 * 2 nodes configured
426422 * 3 resource instances configured
427423
@@ -431,7 +427,7 @@ as before.
431427 Full List of Resources:
432428 * fence_dev (stonith:some_fence_agent): Started pcmk-1
433429 * ClusterIP (ocf:heartbeat:IPaddr2): Started pcmk-2
434- * WebSite (ocf:heartbeat:apache): Started pcmk-2
430+ * WebSite (ocf:heartbeat:apache): Started pcmk-2
435431
436432 Daemon Status:
437433 corosync: active/disabled
0 commit comments