Skip to content

Commit 046504f

Browse files
committed
Doc: Clusters from Scratch: Update Active/Passive chapter.
Ref T910
1 parent 5181e38 commit 046504f

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

doc/sphinx/Clusters_from_Scratch/active-passive.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Our first resource will be a floating IP address that the cluster can bring up
1111
on either node. Regardless of where any cluster service(s) are running, end
1212
users need to be able to communicate with them at a consistent address. Here,
1313
we will use ``192.168.122.120`` as the floating IP address, give it the
14-
imaginative name ``ClusterIP``, and tell the cluster to check whether it is
15-
still running every 30 seconds.
14+
imaginative name ``ClusterIP``, assign the IP address to the physical device
15+
``enp1s0``, and tell the cluster to check whether it is still running every 30
16+
seconds.
1617

1718
.. WARNING::
1819

@@ -22,8 +23,8 @@ still running every 30 seconds.
2223

2324
.. code-block:: console
2425
25-
[root@pcmk-1 ~]# pcs resource create ClusterIP ocf:heartbeat:IPaddr2 \
26-
ip=192.168.122.120 cidr_netmask=24 op monitor interval=30s
26+
[root@pcmk-1 ~]# pcs resource create ClusterIP ocf:heartbeat:IPaddr2 \
27+
ip=192.168.122.120 cidr_netmask=24 nic=enp1s0 op monitor interval=30s
2728
2829
Another important piece of information here is ``ocf:heartbeat:IPaddr2``.
2930
This tells Pacemaker three things about the resource you want to add:
@@ -87,10 +88,10 @@ now, but it's okay if it doesn't look like the one below.
8788
[root@pcmk-1 ~]# pcs status
8889
Cluster name: mycluster
8990
Cluster Summary:
90-
* Stack: corosync
91-
* Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum
92-
* Last updated: Wed Jul 27 00:37:28 2022
93-
* Last change: Wed Jul 27 00:37:14 2022 by root via cibadmin on pcmk-1
91+
* Stack: corosync (Pacemaker is running)
92+
* Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427) - partition with quorum
93+
* Last updated: Tue Feb 24 15:19:53 2026 on pcmk-1
94+
* Last change: Tue Feb 24 15:19:16 2026 by root via root on pcmk-1
9495
* 2 nodes configured
9596
* 2 resource instances configured
9697
@@ -115,7 +116,7 @@ address has been added.
115116
1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever
116117
1: lo inet6 ::1/128 scope host \ valid_lft forever preferred_lft forever
117118
2: enp1s0 inet 192.168.122.102/24 brd 192.168.122.255 scope global noprefixroute enp1s0\ valid_lft forever preferred_lft forever
118-
2: enp1s0 inet 192.168.122.120/24 brd 192.168.122.255 scope global secondary enp1s0\ valid_lft forever preferred_lft forever
119+
2: enp1s0 inet 192.168.122.120/24 scope global enp1s0\ valid_lft forever preferred_lft forever
119120
2: enp1s0 inet6 fe80::5054:ff:fe95:209/64 scope link noprefixroute \ valid_lft forever preferred_lft forever
120121
121122
Perform a Failover
@@ -150,7 +151,6 @@ Verify that ``pacemaker`` and ``corosync`` are no longer running:
150151
151152
[root@pcmk-2 ~]# pcs status
152153
Error: error running crm_mon, is pacemaker running?
153-
Could not connect to pacemakerd: Connection refused
154154
crm_mon: Connection to cluster failed: Connection refused
155155
156156
Go to the other node, and check the cluster status.
@@ -160,10 +160,10 @@ Go to the other node, and check the cluster status.
160160
[root@pcmk-1 ~]# pcs status
161161
Cluster name: mycluster
162162
Cluster Summary:
163-
* Stack: corosync
164-
* Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum
165-
* Last updated: Wed Jul 27 00:43:51 2022
166-
* Last change: Wed Jul 27 00:43:14 2022 by root via cibadmin on pcmk-1
163+
* Stack: corosync (Pacemaker is running)
164+
* Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427) - partition with quorum
165+
* Last updated: Tue Feb 24 15:23:32 2026 on pcmk-2
166+
* Last change: Tue Feb 24 15:19:16 2026 by root via root on pcmk-1
167167
* 2 nodes configured
168168
* 2 resource instances configured
169169
@@ -251,10 +251,10 @@ gets going on the node, but it eventually will look like the below.)
251251
[root@pcmk-1 ~]# pcs status
252252
Cluster name: mycluster
253253
Cluster Summary:
254-
* Stack: corosync
255-
* Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum
256-
* Last updated: Wed Jul 27 00:45:17 2022
257-
* Last change: Wed Jul 27 00:45:01 2022 by root via cibadmin on pcmk-1
254+
* Stack: corosync (Pacemaker is running)
255+
* Current DC: pcmk-1 (version 3.0.1-3.el10-6a90427) - partition with quorum
256+
* Last updated: Tue Feb 24 15:27:35 2026 on pcmk-2
257+
* Last change: Tue Feb 24 15:19:16 2026 by root via root on pcmk-1
258258
* 2 nodes configured
259259
* 2 resource instances configured
260260

0 commit comments

Comments
 (0)