From 0260952f583b5083e7bbd04eb35ed94ac6cc0d9a Mon Sep 17 00:00:00 2001 From: Sherlock113 Date: Mon, 1 Mar 2021 18:20:56 +0800 Subject: [PATCH] Add a volume deletion node Signed-off-by: Sherlock113 --- content/en/docs/project-user-guide/storage/volumes.md | 6 ++++++ content/zh/docs/project-user-guide/storage/volumes.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/content/en/docs/project-user-guide/storage/volumes.md b/content/en/docs/project-user-guide/storage/volumes.md index 7f1e09ef7..5c5d46b9b 100644 --- a/content/en/docs/project-user-guide/storage/volumes.md +++ b/content/en/docs/project-user-guide/storage/volumes.md @@ -144,6 +144,12 @@ To delete a volume, make sure the volume is not mounted to any workload. To unmo ![delete-volume](/images/docs/project-user-guide/volume-management/volumes/delete-volume.jpg) +If the status of a volume remains **Terminating** for a long time after you clicked **Delete**, manually delete it by using the following command: + +```bash +kubectl patch pvc -p '{"metadata":{"finalizers":null}}' +``` + ### Volume features From the **More** drop-down menu, there are three additional options provided by KubeSphere based on the underlying storage plugin, also known as `Storage Capability`. Volume features include: diff --git a/content/zh/docs/project-user-guide/storage/volumes.md b/content/zh/docs/project-user-guide/storage/volumes.md index 0aa4bfb53..43a914d31 100644 --- a/content/zh/docs/project-user-guide/storage/volumes.md +++ b/content/zh/docs/project-user-guide/storage/volumes.md @@ -143,6 +143,12 @@ weight: 10310 ![delete-volume](/images/docs/zh-cn/project-user-guide/volume-management/volumes/delete-volume.jpg) +在您点击**删除**后,如果存储卷的状态长时间保持为**删除中**,请使用以下命令手动删除: + +```bash +kubectl patch pvc -p '{"metadata":{"finalizers":null}}' +``` + ### 使用存储卷功能 **更多操作**下拉菜单提供了三个额外功能,这些功能基于 KubeSphere 的底层存储插件 `Storage Capability`。具体如下: