本地卷
./stor lun rm { -n | --name } LUN_NAME [ -f | --force ]
上云卷
./stor lun rm { -n | --name } LUN_NAME [ { -c | --del-cloud } ] [ -f | --force ]
此命令用来删除指定的卷。
说明
卷禁用后,才能被删除。对于上云卷,如果删除卷的时候未删除云上数据,后期可以使用卷还原功能进行卷数据还原。
注意
对于上云卷,选择强制删除卷,且同时删除云上数据,可能会有云上数据残留,需要对云上数据进行手动删除。
参数
参数 | 描述 |
---|---|
-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.