Skip to content

Commit 9bd048e

Browse files
tyliecCopilotfelicitymaySiaraMist
authored
docs: ghe-repl-decommission (#57034)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Felicity Chapman <[email protected]> Co-authored-by: Siara <[email protected]>
1 parent 491ac85 commit 9bd048e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

content/admin/administering-your-instance/administering-your-instance-from-the-command-line/command-line-utilities.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,18 @@ All Storage tests passed
10051005
10061006
## High availability
10071007
1008+
{% ifversion ghes > 3.17 %}
1009+
1010+
### ghe-repl-decommission
1011+
1012+
This command decommissions the database entries for the node with the specified UUID. You run this command on the new primary after performing a failover to a replica node, to remove the decommissioned node's database entries. For more information, see [AUTOTITLE](/admin/enterprise-management/configuring-high-availability/initiating-a-failover-to-your-replica-appliance).
1013+
1014+
```shell
1015+
ghe-repl-decommission <UUID>
1016+
```
1017+
1018+
{% endif %}
1019+
10081020
### ghe-repl-promote
10091021
10101022
This command disables replication on an existing replica node and converts the replica node to a primary node using the same settings as the original primary node. All replication services are enabled. For more information, see [AUTOTITLE](/admin/enterprise-management/configuring-high-availability/initiating-a-failover-to-your-replica-appliance).

content/admin/monitoring-and-managing-your-instance/configuring-high-availability/initiating-a-failover-to-your-replica-appliance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ The time required to failover depends on how long it takes to manually promote t
6464
cat /data/user/common/uuid
6565
```
6666
67-
* On the new primary, remove the UUIDs using `ghe-repl-teardown`. Please replace `UUID` with a UUID you retrieved in the previous step.
67+
* On the new primary, remove the UUIDs using {% ifversion ghes > 3.17 %}`ghe-repl-decommission`{% else %}`ghe-repl-teardown`{% endif %}. Please replace `UUID` with the UUID you retrieved in the previous step.
6868
6969
```shell
70-
ghe-repl-teardown -u UUID
70+
{% ifversion ghes > 3.17 %}ghe-repl-decommission UUID{% else %}ghe-repl-teardown -u UUID{% endif %}
7171
```
7272
7373
## Further reading

0 commit comments

Comments
 (0)