Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a5070839
Commit
a5070839
authored
Oct 23, 2019
by
Will Chandler
Committed by
Achilleas Pipinellis
Oct 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Update Gitaly Server docs to use `git_data_dirs`
parent
02ae642a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+16
-20
No files found.
doc/administration/gitaly/index.md
View file @
a5070839
...
...
@@ -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,
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**
1.
Edit
`/etc/gitlab/gitlab.rb`
:
...
...
@@ -193,24 +188,26 @@ Check the directory layout on your Gitaly server to be sure.
On
`gitaly1.internal`
:
```
gitaly['storage'] = [
{ 'name' => 'default' },
{ 'name' => 'storage1' },
]
git_data_dirs({
'default' => {
'path' => '/var/opt/gitlab/git-data'
},
'storage1' => {
'path' => '/mnt/gitlab/git-data'
},
})
```
On
`gitaly2.internal`
:
```
gitaly['storage'] = [
{ 'name' => 'storage2' },
]
git_data_dirs({
'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
)
.
**For installations from source**
...
...
@@ -236,9 +233,11 @@ Check the directory layout on your Gitaly server to be sure.
```
toml
[[storage]]
name
=
'default'
path
=
'/var/opt/gitlab/git-data/repositories'
[[storage]]
name
=
'storage1'
path
=
'/mnt/gitlab/git-data/repositories'
```
On
`gitaly2.internal`
:
...
...
@@ -246,12 +245,9 @@ Check the directory layout on your Gitaly server to be sure.
```
toml
[[storage]]
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
)
.
### 4. Converting clients to use the Gitaly server
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment