Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
10c2ba7d
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
10c2ba7d
编写于
11月 18, 2017
作者:
G
Gabriel Mazetto
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changelog and Documentation for storage migration of project attachments
上级
65bd6868
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
89 addition
and
13 deletion
+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
未找到文件。
changelogs/unreleased/hashed-storage-attachments-migration-path.yml
0 → 100644
浏览文件 @
10c2ba7d
---
title
:
Hashed Storage migration script now supports migrating project attachments
merge_request
:
15352
author
:
type
:
added
doc/administration/raketasks/storage.md
浏览文件 @
10c2ba7d
# Repository Storage Rake Tasks
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
]
.
## 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
To have a simple summary of projects using
**Legacy**
storage:
...
...
@@ -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
[
enable hashed storage
][
storage-migration
]
for the new projects as well.
To have a simple summary of project attachments using
**Legacy**
storage:
This task will schedule all your existing projects to be migrated to the
**Hashed**
storage type:
**Omnibus Installation**
```
bash
gitlab-rake gitlab:storage:legacy_attachments
```
**Source Installation**
```
bash
rake gitlab:storage:legacy_attachments
```
------
To list project attachments using
**Legacy**
storage:
**Omnibus Installation**
```
bash
gitlab-rake gitlab:storage:
migrate_to_hashed
gitlab-rake gitlab:storage:
list_legacy_attachments
```
**Source Installation**
```
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.
There is a specific Queue you can watch to see how long it will take to finish:
**project_migrate_hashed_storage**
## List attachments on Hashed storage
After it reaches zero, you can confirm every project has been migrated by running the commands above.
If you find it necessary, you can run this migration script again to schedule missing projects.
To have a simple summary of project attachments using
**Hashed**
storage:
**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-migration
]:
../repository_storage_types.md#how-to-migrate-to-hashed-storage
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录