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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
10c2ba7d
Commit
10c2ba7d
authored
Nov 18, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changelog and Documentation for storage migration of project attachments
parent
65bd6868
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
13 deletions
+89
-13
changelogs/unreleased/hashed-storage-attachments-migration-path.yml
.../unreleased/hashed-storage-attachments-migration-path.yml
+5
-0
doc/administration/raketasks/storage.md
doc/administration/raketasks/storage.md
+84
-13
No files found.
changelogs/unreleased/hashed-storage-attachments-migration-path.yml
0 → 100644
View file @
10c2ba7d
---
title
:
Hashed Storage migration script now supports migrating project attachments
merge_request
:
15352
author
:
type
:
added
doc/administration/raketasks/storage.md
View file @
10c2ba7d
# Repository Storage Rake Tasks
# Repository Storage Rake Tasks
This is a collection of rake tasks you can use to help you list and migrate
This is a collection of rake tasks you can use to help you list and migrate
existing projects from Legacy storage to the new Hashed storage type.
existing projects and attachments associated with it from Legacy storage to
the new Hashed storage type.
You can read more about the storage types
[
here
][
storage-types
]
.
You can read more about the storage types
[
here
][
storage-types
]
.
## Migrate existing projects to Hashed storage
Before migrating your existing projects, you should
[
enable hashed storage
][
storage-migration
]
for the new projects as well.
This task will schedule all your existing projects and attachments associated with it to be migrated to the
**Hashed**
storage type:
**Omnibus Installation**
```
bash
gitlab-rake gitlab:storage:migrate_to_hashed
```
**Source Installation**
```
bash
rake gitlab:storage:migrate_to_hashed
```
You can monitor the progress in the _Admin > Monitoring > Background jobs_ screen.
There is a specific Queue you can watch to see how long it will take to finish:
**project_migrate_hashed_storage**
After it reaches zero, you can confirm every project has been migrated by running the commands bellow.
If you find it necessary, you can run this migration script again to schedule missing projects.
Any error or warning will be logged in the sidekiq's log file.
You only need the
`gitlab:storage:migrate_to_hashed`
rake task to migrate your repositories, but we have additional
commands below that helps you inspect projects and attachments in both legacy and hashed storage.
## List projects on Legacy storage
## List projects on Legacy storage
To have a simple summary of projects using
**Legacy**
storage:
To have a simple summary of projects using
**Legacy**
storage:
...
@@ -73,35 +106,73 @@ rake gitlab:storage:list_hashed_projects
...
@@ -73,35 +106,73 @@ rake gitlab:storage:list_hashed_projects
```
```
##
Migrate existing projects to Hashed
storage
##
List attachments on Legacy
storage
Before migrating your existing projects, you should
To have a simple summary of project attachments using
**Legacy**
storage:
[
enable hashed storage
][
storage-migration
]
for the new projects as well.
This task will schedule all your existing projects to be migrated to the
**Omnibus Installation**
**Hashed**
storage type:
```
bash
gitlab-rake gitlab:storage:legacy_attachments
```
**Source Installation**
```
bash
rake gitlab:storage:legacy_attachments
```
------
To list project attachments using
**Legacy**
storage:
**Omnibus Installation**
**Omnibus Installation**
```
bash
```
bash
gitlab-rake gitlab:storage:
migrate_to_hashed
gitlab-rake gitlab:storage:
list_legacy_attachments
```
```
**Source Installation**
**Source Installation**
```
bash
```
bash
rake gitlab:storage:
migrate_to_hashed
rake gitlab:storage:
list_legacy_attachments
```
```
You can monitor the progress in the _Admin > Monitoring > Background jobs_ screen.
## List attachments on Hashed storage
There is a specific Queue you can watch to see how long it will take to finish:
**project_migrate_hashed_storage**
After it reaches zero, you can confirm every project has been migrated by running the commands above.
To have a simple summary of project attachments using
**Hashed**
storage:
If you find it necessary, you can run this migration script again to schedule missing projects.
**Omnibus Installation**
```
bash
gitlab-rake gitlab:storage:hashed_attachments
```
Any error or warning will be logged in the sidekiq log file.
**Source Installation**
```
bash
rake gitlab:storage:hashed_attachments
```
------
To list project attachments using
**Hashed**
storage:
**Omnibus Installation**
```
bash
gitlab-rake gitlab:storage:list_hashed_attachments
```
**Source Installation**
```
bash
rake gitlab:storage:list_hashed_attachments
```
[
storage-types
]:
../repository_storage_types.md
[
storage-types
]:
../repository_storage_types.md
[
storage-migration
]:
../repository_storage_types.md#how-to-migrate-to-hashed-storage
[
storage-migration
]:
../repository_storage_types.md#how-to-migrate-to-hashed-storage
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