From 7e7fa5ab0d6ffbed9527df550538ba5f90864b19 Mon Sep 17 00:00:00 2001 From: liyun95 Date: Wed, 13 Nov 2024 15:33:18 +0800 Subject: [PATCH 1/2] fix script error in migrating data Signed-off-by: liyun95 --- .../adminGuide/upgrade_milvus_cluster-helm.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/site/en/adminGuide/upgrade_milvus_cluster-helm.md b/site/en/adminGuide/upgrade_milvus_cluster-helm.md index c3ea644cc..2949f13ee 100644 --- a/site/en/adminGuide/upgrade_milvus_cluster-helm.md +++ b/site/en/adminGuide/upgrade_milvus_cluster-helm.md @@ -214,43 +214,43 @@ The following table lists the operations you can do for meta migration. 4. Migrate the Milvus metadata. 5. Start Milvus components with a new image. -#### 2. Upgrade Milvus from v2.1.x to {{var.milvus_release_version}} +#### 2. Upgrade Milvus from v2.1.x to 2.2.0 -The following commands assume that you upgrade Milvus from v2.1.4 to {{var.milvus_release_version}}. Change them to the versions that fit your needs. +The following commands assume that you upgrade Milvus from v2.1.4 to 2.2.0. Change them to the versions that fit your needs. 1. Specify Milvus instance name, source Milvus version, and target Milvus version. ``` - ./migrate.sh -i my-release -s 2.1.4 -t {{var.milvus_release_version}} + ./migrate.sh -i my-release -s 2.1.4 -t 2.2.0 ``` 2. Specify the namespace with `-n` if your Milvus is not installed in the default K8s namespace. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 ``` 3. Specify the root path with `-r` if your Milvus is installed with the custom `rootpath`. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} -r by-dev + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev ``` 4. Specify the image tag with `-w` if your Milvus is installed with a custom `image`. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} -r by-dev -w milvusdb/milvus:v{{var.milvus_release_tag}} + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -w milvusdb/milvus:v2.2.0 ``` 5. Set `-d true` if you want to automatically remove the migration pod after the migration is completed. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} -w milvusdb/milvus:v{{var.milvus_release_tag}} -d true + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -w milvusdb/milvus:v2.2.0 -d true ``` 6. Rollback and migrate again if the migration fails. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} -r by-dev -o rollback -w milvusdb/milvus:v2.1.1 - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t {{var.milvus_release_version}} -r by-dev -o migrate -w milvusdb/milvus:v{{var.milvus_release_tag}} + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -o rollback -w milvusdb/milvus:v2.1.1 + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -o migrate -w milvusdb/milvus:v2.2.0 ``` From f64687112414c020219957f5980c80ede6209b9d Mon Sep 17 00:00:00 2001 From: liyun95 <105278390+liyun95@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:43:29 +0800 Subject: [PATCH 2/2] Update upgrade_milvus_cluster-helm.md --- site/en/adminGuide/upgrade_milvus_cluster-helm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/en/adminGuide/upgrade_milvus_cluster-helm.md b/site/en/adminGuide/upgrade_milvus_cluster-helm.md index 2949f13ee..766b23875 100644 --- a/site/en/adminGuide/upgrade_milvus_cluster-helm.md +++ b/site/en/adminGuide/upgrade_milvus_cluster-helm.md @@ -251,6 +251,6 @@ The following commands assume that you upgrade Milvus from v2.1.4 to 2.2.0. Chan 6. Rollback and migrate again if the migration fails. ``` - ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -o rollback -w milvusdb/milvus:v2.1.1 + ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -o rollback -w milvusdb/milvus:v2.1.4 ./migrate.sh -i my-release -n milvus -s 2.1.4 -t 2.2.0 -r by-dev -o migrate -w milvusdb/milvus:v2.2.0 ```