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
e33e86a3
Commit
e33e86a3
authored
Mar 15, 2021
by
Ben Prescott @bprescott_↙ ☺
Committed by
Evan Read
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: run manual git fsck
parent
0c4ed5e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
doc/administration/repository_checks.md
doc/administration/repository_checks.md
+21
-1
No files found.
doc/administration/repository_checks.md
View file @
e33e86a3
---
stage
:
Create
group
:
Editor
group
:
Gitaly
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
:
reference
---
...
...
@@ -44,3 +44,23 @@ in the [`repocheck.log` file](logs.md#repochecklog) on disk:
If the periodic repository check causes false alarms, you can clear all repository check states by
going to
**Admin Area > Settings > Repository**
(
`/admin/application_settings/repository`
) and clicking
**Clear all repository checks**
.
## Run a check manually
[
`git fsck`
](
https://git-scm.com/docs/git-fsck
)
is a read-only check that you can run
manually against the repository on the
[
Gitaly server
](
gitaly/index.md
)
.
-
For Omnibus GitLab installations, repositories are stored by default in
`/var/opt/gitlab/git-data/repositories`
.
-
[
Identify the subdirectory that contains the repository
](
repository_storage_types.md#from-project-name-to-hashed-path
)
that you need to check.
To run a check (for example):
```
shell
sudo
/opt/gitlab/embedded/bin/git
-C
/var/opt/gitlab/git-data/repositories/@hashed/0b/91/0b91...f9.git fsck
```
You can also run
[
Rake tasks
](
raketasks/check.md#repository-integrity
)
for checking Git
repositories, which can be used to run
`git fsck`
against all repositories and generate
repository checksums, as a way to compare repositories on different servers.
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