Skip to content

Commit 1bbf666

Browse files
committed
OCPBUGS-33115: Update backup/restore, disaster recovery for HCP
1 parent ff0e7c3 commit 1bbf666

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

modules/hcp-recover-failing-etcd-pods.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Each etcd pod of a 3-node cluster has its own persistent volume claim (PVC) to s
1414
+
1515
[source,terminal]
1616
----
17-
$ oc get pods -l app=etcd -n <hosted_control_plane_namespace>
17+
$ oc get pods -l app=etcd -n openshift-etcd
1818
----
1919
+
2020
.Example output
@@ -32,7 +32,7 @@ The failing etcd pod might have the `CrashLoopBackOff` or `Error` status.
3232
+
3333
[source,terminal]
3434
----
35-
$ oc delete pvc/<etcd_pvc_name> pod/<etcd_pod_name> --wait=false
35+
$ oc delete pods etcd-2 -n openshift-etcd
3636
----
3737

3838
.Verification
@@ -41,7 +41,7 @@ $ oc delete pvc/<etcd_pvc_name> pod/<etcd_pod_name> --wait=false
4141
+
4242
[source,terminal]
4343
----
44-
$ oc get pods -l app=etcd -n <hosted_control_plane_namespace>
44+
$ oc get pods -l app=etcd -n openshift-etcd
4545
----
4646
+
4747
.Example output

modules/hosted-cluster-etcd-status.adoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,24 @@ You can check the status of the etcd cluster health by logging into any etcd pod
1414
+
1515
[source,terminal]
1616
----
17-
$ oc rsh -n <hosted_control_plane_namespace> -c etcd <etcd_pod_name>
17+
$ oc rsh -n openshift-etcd -c etcd <etcd_pod_name>
1818
----
1919

2020
. Print the health status of an etcd cluster by entering the following command:
2121
+
2222
[source,terminal]
2323
----
24-
sh-4.4$ etcdctl endpoint health --cluster -w table
24+
sh-4.4# etcdctl endpoint status -w table
2525
----
2626
+
2727
.Example output
2828
[source,terminal]
2929
----
30-
ENDPOINT HEALTH TOOK ERROR
31-
https://etcd-0.etcd-discovery.clusters-hosted.svc:2379 true 9.117698ms
30+
+------------------------------+-----------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
31+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
32+
+------------------------------+-----------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
33+
| https://192.168.1xxx.20:2379 | 8fxxxxxxxxxx | 3.5.12 | 123 MB | false | false | 10 | 180156 | 180156 | |
34+
| https://192.168.1xxx.21:2379 | a5xxxxxxxxxx | 3.5.12 | 122 MB | false | false | 10 | 180156 | 180156 | |
35+
| https://192.168.1xxx.22:2379 | 7cxxxxxxxxxx | 3.5.12 | 124 MB | true | false | 10 | 180156 | 180156 | |
36+
+-----------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
3237
----

0 commit comments

Comments
 (0)