清空卷(本地卷适用)
更新时间 2026-03-24 17:15:58
最近更新时间: 2026-03-24 17:15:58
本节主要介绍清空卷命令。
./stor lun { W | wipe}{ -n | --name } LUN_NAME [ --scope SCOPE ]
此命令用来清空卷。
注意
如果克隆卷执行清空所有卷数据及卷对应的快照,会变成独立卷。
卷处于Wiping、WipeFailed状态时,不支持读写。
清空卷前须先logout断开客户端连接,否则在卷状态恢复Normal前将无法断开客户端连接。
参数
| 参数 | 描述 |
|---|---|
| -n LUN_NAME 或 --name LUN_NAME | 指定需要清空的卷的名称。 |
| --scope SCOPE | 指定清空卷的数据范围。 取值:
默认值为All。 |
示例
示例1
清空卷lun04a,包括卷数据及对应的快照。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor lun W -n lun04a
Start wiping LUN lun04a.
You can list lun to check whether the wipe operation is completed.示例2
清空卷lun04b,清空卷数据,保留卷对应的快照。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor lun W -n lun04b --scope NoSnapshot
Start wiping LUN lun04b. Please note that all existing snapshots will be preserved.
You can list lun to check whether the wipe operation is completed.