You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/dr-restoring-cluster-state.adoc
+186Lines changed: 186 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,6 +232,192 @@ If the status is `Pending`, or the output lists more than one running etcd pod,
232
232
233
233
.. Repeat this step for each lost control plane host that is not the recovery host.
234
234
235
+
. Delete and recreate other non-recovery, control plane machines, one by one. After these machines are recreated, a new revision is forced and etcd scales up automatically.
236
+
+
237
+
If you are running installer-provisioned infrastructure, or you used the Machine API to create your machines, follow these steps. Otherwise, you must create the new master node using the same method that was used to originally create it.
238
+
+
239
+
[WARNING]
240
+
====
241
+
Do not delete and recreate the machine for the recovery host.
242
+
====
243
+
.. Obtain the machine for one of the lost control plane hosts.
244
+
+
245
+
In a terminal that has access to the cluster as a cluster-admin user, run the following command:
246
+
+
247
+
[source,terminal]
248
+
----
249
+
$ oc get machines -n openshift-machine-api -o wide
250
+
----
251
+
+
252
+
Example output:
253
+
+
254
+
[source,terminal]
255
+
----
256
+
NAME PHASE TYPE REGION ZONE AGE NODE PROVIDERID STATE
... Change the `metadata.name` field to a new name.
312
+
+
313
+
It is recommended to keep the same base name as the old machine and change the ending number to the next available number. In this example, `clustername-8qw5l-master-0` is changed to `clustername-8qw5l-master-3`:
314
+
+
315
+
[source,terminal]
316
+
----
317
+
apiVersion: machine.openshift.io/v1beta1
318
+
kind: Machine
319
+
metadata:
320
+
...
321
+
name: clustername-8qw5l-master-3
322
+
...
323
+
----
324
+
325
+
... Update the `metadata.selfLink` field to use the new machine name from the previous step:
<1> The new machine, `clustername-8qw5l-master-3` is being created and is ready after the phase changes from `Provisioning` to `Running`.
416
+
+
417
+
It might take a few minutes for the new machine to be created. The etcd cluster Operator will automatically sync when the machine or node returns to a healthy state.
418
+
419
+
.. Repeat these steps for each lost control plane host that is not the recovery host.
420
+
235
421
. In a separate terminal window, log in to the cluster as a user with the `cluster-admin` role by using the following command:
0 commit comments