刪除卷
更新時間 2025-04-23 15:02:40
最近更新時間: 2025-04-23 15:02:40
分享文章
本節主要介紹刪除卷命令。
本地卷
./stor lun rm { -n | --name } LUN_NAME [ -f | --force ]
上云卷
./stor lun rm { -n | --name } LUN_NAME [ { -c | --del-cloud } ] [ -f | --force ]
此命令用來刪除指定的卷。
說明
卷禁用后,才能被刪除(3.9之前版本)。對于上云卷,如果刪除卷的時候未刪除云上數據,后期可以使用卷還原功能進行卷數據還原。刪除卷時,應確保卷不包含快照、一致性快照。
注意
對于上云卷,選擇強制刪除卷,且同時刪除云上數據,可能會有云上數據殘留,需要對云上數據進行手動刪除。
如果卷存在關聯克隆卷,且克隆卷未處于“Deleting”或“Flattening”狀態,則禁止刪除源卷。
如果卷有關聯的快照或一致性快照,只能強制刪除卷。強制刪除卷時,將同時刪除此卷的快照和一致性快照中的卷快照。同時也會產生數據殘留風險,請謹慎操作。
參數
| 參數 | 描述 |
|---|---|
| -n LUN_NAME 或 --name LUN_NAME | 指定刪除的卷名稱。 |
| -c 或 --del-cloud | 刪除卷時,刪除云上數據。 |
| -f或--force | 強制刪除卷。 注意 強制刪除卷,會產生數據殘留風險,請謹慎操作。 |
示例
刪除卷lun1。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun rm -n lun1
Start deleting LUN lun1. You can list LUNs to check whether the deletion is completed.