Commit 73d0cd60 authored by Marin Jankovski's avatar Marin Jankovski

Merge branch 'docs/build-46-unregister-node' into 'master'

Add example of finding the repmgr node id

Closes gitlab-org/build/team-tasks#46

See merge request gitlab-org/gitlab-ee!3491
parents 1c402319 b243ef02
......@@ -554,7 +554,25 @@ after it has been restored to service.
gitlab-ctl repmgr standby unregister --node=X
```
where X is be the value of node in `repmgr.conf` on the old server.
where X is the value of node in `repmgr.conf` on the old server.
To find this, you can use:
```sh
awk -F = '$1 == "node" { print $2 }' /var/opt/gitlab/postgresql/repmgr.conf
```
It will output something like:
```
959789412
```
Then you will use this id to unregister the node:
```sh
gitlab-ctl repmgr standby unregister --node=959789412
```
- To add the node as a standby server:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment