-
Notifications
You must be signed in to change notification settings - Fork 1.2k
tiup: add offline update tiup #3540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f516083
add offline update tiup
lichunzhu 4bf2537
address comments
lichunzhu 049a7a2
Merge branch 'master' into addTiUPOfflineUpdate
lichunzhu bd9400c
Merge branch 'master' into addTiUPOfflineUpdate
lichunzhu 506b4c7
split content to a new file
lichunzhu 759cdea
Merge branch 'master' into addTiUPOfflineUpdate
lichunzhu 35567bf
Merge branch 'master' of https://github.com/pingcap/docs-cn into addT…
lichunzhu c935c5a
Update upgrade-tidb-using-tiup-offline.md
yikeke facd50c
Merge branch 'master' into addTiUPOfflineUpdate
lichunzhu e8d942d
Merge branch 'addTiUPOfflineUpdate' of https://github.com/lichunzhu/d…
lichunzhu e7263af
address comments
lichunzhu 6b50ef1
address comments
lichunzhu 537db93
Update TOC.md
yikeke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| title: 使用 TiUP 离线镜像升级 TiDB | ||
| category: how-to | ||
| --- | ||
|
|
||
| # 使用 TiUP 离线镜像升级 TiDB | ||
|
|
||
| 本文档适用于通过升级 TiUP 离线镜像升级 TiDB 集群,升级步骤如下。 | ||
|
|
||
| ## 1. 更新 TiUP 离线镜像 | ||
|
|
||
| 如果用户希望升级更新本地的 TiUP 离线镜像,可以参考[使用 TiUP 离线部署 TiDB 集群](/production-offline-deployment-using-tiup.md)的步骤 1 与步骤 2 下载部署新版本的 TiUP 离线镜像。在执行 `local_install.sh` 后,TiUP 会完成覆盖升级。 | ||
|
|
||
| 随后,需要按照 `local_install.sh` 执行的结果,重新声明全局环境变量,并将 TIUP_MIRRORS 指向执行 `local_install.sh` 命令时输出的离线镜像包的位置 `/path/to/mirror`。 | ||
|
|
||
| {{< copyable "shell-regular" >}} | ||
|
|
||
| ```bash | ||
| source .bash_profile | ||
| export TIUP_MIRRORS=/path/to/mirror | ||
| ``` | ||
|
|
||
| 此时离线镜像已经更新成功。如果覆盖后发现 TiUP 运行报错,可能是 manifest 未更新导致,可尝试 `rm -rf ~/.tiup/manifests` 后再使用 TiUP。 | ||
|
|
||
| ## 2. 升级 TiDB 集群 | ||
|
|
||
| 在更新本地镜像后,可参考[使用 TiUP 升级 TiDB](/upgrade-tidb-using-tiup.md#使用-tiup-升级-tidb)升级 TiDB 集群。 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.