diff options
Diffstat (limited to 'doc/administration/geo/disaster_recovery/index.md')
-rw-r--r-- | doc/administration/geo/disaster_recovery/index.md | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/doc/administration/geo/disaster_recovery/index.md b/doc/administration/geo/disaster_recovery/index.md index bf28eb76ffd..f7367ef863b 100644 --- a/doc/administration/geo/disaster_recovery/index.md +++ b/doc/administration/geo/disaster_recovery/index.md @@ -2,7 +2,6 @@ stage: Enablement group: Geo info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments -type: howto --- # Disaster Recovery (Geo) **(PREMIUM SELF)** @@ -503,7 +502,7 @@ secondary domain, like changing Git remotes and API URLs. This command uses the changed `external_url` configuration defined in `/etc/gitlab/gitlab.rb`. -1. For GitLab 11.11 through 12.7 only, you may need to update the **primary** +1. For GitLab 12.0 through 12.7, you may need to update the **primary** node's name in the database. This bug has been fixed in GitLab 12.8. To determine if you need to do this, search for the @@ -672,7 +671,7 @@ Data that was created on the primary while the secondary was paused is lost. If you are running GitLab 14.5 and later: -1. SSH to every Sidekiq, PostgresSQL, and Gitaly node in the **secondary** site and run one of the following commands: +1. For each node outside of the **secondary** Kubernetes cluster using Omnibus such as PostgreSQL or Gitaly, SSH into the node and run one of the following commands: - To promote the secondary node to primary: @@ -686,19 +685,17 @@ If you are running GitLab 14.5 and later: sudo gitlab-ctl geo promote --force ``` -1. SSH into each Rails node on your **secondary** site and run one of the following commands: +1. Find the `toolbox` pod: - - To promote the secondary node to primary: - - ```shell - sudo gitlab-ctl geo promote - ``` + ```shell + kubectl --namespace gitlab get pods -lapp=toolbox + ``` - - To promote the secondary node to primary **without any further confirmation**: +1. Promote the secondary: - ```shell - sudo gitlab-ctl geo promote --force - ``` + ```shell + kubectl --namespace gitlab exec -ti gitlab-geo-toolbox-XXX -- gitlab-rake geo:set_secondary_as_primary + ``` If you are running GitLab 14.4 and earlier: @@ -709,8 +706,6 @@ If you are running GitLab 14.4 and earlier: sudo gitlab-ctl promote-db ``` - In GitLab 12.8 and earlier, see [Message: `sudo: gitlab-pg-ctl: command not found`](../replication/troubleshooting.md#message-sudo-gitlab-pg-ctl-command-not-found). - 1. Edit `/etc/gitlab/gitlab.rb` on the database node in the **secondary** site to reflect its new status as **primary** by removing any lines that enabled the `geo_secondary_role`: |