Skip to content

Commit 7b34fee

Browse files
authored
Merge pull request #47308 from lahinson/OSDOCS-3779-unhealthy-etcd
OSDOCS-3779 adding instructions to remove unhealthy etcd member
2 parents f71c2e8 + f8bb1fa commit 7b34fee

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

modules/restore-replace-stopped-etcd-member.adoc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,43 @@ sh-4.2# etcdctl member list -w table
7171
+
7272
Take note of the ID and the name of the unhealthy etcd member, because these values are needed later in the procedure. The `$ etcdctl endpoint health` command will list the removed member until the procedure of replacement is finished and a new member is added.
7373

74+
.. Remove the unhealthy etcd member by providing the ID to the `etcdctl member remove` command:
75+
+
76+
[source,terminal]
77+
----
78+
sh-4.2# etcdctl member remove 6fc1e7c9db35841d
79+
----
80+
+
81+
.Example output
82+
[source,terminal]
83+
----
84+
Member 6fc1e7c9db35841d removed from cluster ead669ce1fbfb346
85+
----
7486

87+
.. View the member list again and verify that the member was removed:
88+
+
89+
[source,terminal]
90+
----
91+
sh-4.2# etcdctl member list -w table
92+
----
93+
+
94+
.Example output
95+
[source,terminal]
96+
----
97+
+------------------+---------+------------------------------+---------------------------+---------------------------+
98+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
99+
+------------------+---------+------------------------------+---------------------------+---------------------------+
100+
| 757b6793e2408b6c | started | ip-10-0-164-97.ec2.internal | https://10.0.164.97:2380 | https://10.0.164.97:2379 |
101+
| ca8c2990a0aa29d1 | started | ip-10-0-154-204.ec2.internal | https://10.0.154.204:2380 | https://10.0.154.204:2379 |
102+
+------------------+---------+------------------------------+---------------------------+---------------------------+
103+
----
75104
+
76105
You can now exit the node shell.
106+
+
107+
[IMPORTANT]
108+
====
109+
After you remove the member, the cluster might be unreachable for a short time while the remaining etcd instances reboot.
110+
====
77111

78112
. Remove the old secrets for the unhealthy etcd member that was removed.
79113

0 commit comments

Comments
 (0)