Commit e84dcf92 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'wc-use-git_data_dirs' into 'master'

Docs: Update Gitaly Server docs to use `git_data_dirs`

See merge request gitlab-org/gitlab!18640
parents 02ae642a a5070839
...@@ -142,11 +142,6 @@ the Gitaly server. The easiest way to accomplish this is to copy `/etc/gitlab/gi ...@@ -142,11 +142,6 @@ the Gitaly server. The easiest way to accomplish this is to copy `/etc/gitlab/gi
from an existing GitLab server to the Gitaly server. Without this shared secret, from an existing GitLab server to the Gitaly server. Without this shared secret,
Git operations in GitLab will result in an API error. Git operations in GitLab will result in an API error.
NOTE: **Note:**
In most or all cases, the storage paths below end in `/repositories` which is
not the case with `path` in `git_data_dirs` of Omnibus GitLab installations.
Check the directory layout on your Gitaly server to be sure.
**For Omnibus GitLab** **For Omnibus GitLab**
1. Edit `/etc/gitlab/gitlab.rb`: 1. Edit `/etc/gitlab/gitlab.rb`:
...@@ -193,24 +188,26 @@ Check the directory layout on your Gitaly server to be sure. ...@@ -193,24 +188,26 @@ Check the directory layout on your Gitaly server to be sure.
On `gitaly1.internal`: On `gitaly1.internal`:
``` ```
gitaly['storage'] = [ git_data_dirs({
{ 'name' => 'default' }, 'default' => {
{ 'name' => 'storage1' }, 'path' => '/var/opt/gitlab/git-data'
] },
'storage1' => {
'path' => '/mnt/gitlab/git-data'
},
})
``` ```
On `gitaly2.internal`: On `gitaly2.internal`:
``` ```
gitaly['storage'] = [ git_data_dirs({
{ 'name' => 'storage2' }, 'storage2' => {
] 'path' => '/srv/gitlab/git-data'
},
})
``` ```
NOTE: **Note:**
In some cases, you'll have to set `path` for `gitaly['storage']` in the
format `'path' => '/mnt/gitlab/<storage name>/repositories'`.
1. Save the file and [reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure). 1. Save the file and [reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure).
**For installations from source** **For installations from source**
...@@ -236,9 +233,11 @@ Check the directory layout on your Gitaly server to be sure. ...@@ -236,9 +233,11 @@ Check the directory layout on your Gitaly server to be sure.
```toml ```toml
[[storage]] [[storage]]
name = 'default' name = 'default'
path = '/var/opt/gitlab/git-data/repositories'
[[storage]] [[storage]]
name = 'storage1' name = 'storage1'
path = '/mnt/gitlab/git-data/repositories'
``` ```
On `gitaly2.internal`: On `gitaly2.internal`:
...@@ -246,12 +245,9 @@ Check the directory layout on your Gitaly server to be sure. ...@@ -246,12 +245,9 @@ Check the directory layout on your Gitaly server to be sure.
```toml ```toml
[[storage]] [[storage]]
name = 'storage2' name = 'storage2'
path = '/srv/gitlab/git-data/repositories'
``` ```
NOTE: **Note:**
In some cases, you'll have to set `path` for each `[[storage]]` in the
format `path = '/mnt/gitlab/<storage name>/repositories'`.
1. Save the file and [restart GitLab](../restart_gitlab.md#installations-from-source). 1. Save the file and [restart GitLab](../restart_gitlab.md#installations-from-source).
### 4. Converting clients to use the Gitaly server ### 4. Converting clients to use the Gitaly 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