命令:delete all-snapshots
说明:删除与指定卷关联的所有快照。与快照相关的所有数据都已删除,其在快照池中的空间已释放供使用。指定的卷可以是主卷或快照池。同时会删除此快照的所有计划。
语法:delete all-snapshots volume volume [delete-type all-standard-snapshots|all-replication-snapshots |all-snapshot-types]
参数:volume volume主卷或快照池的名称或序列号。
delete-type all-standard-snapshots|all-replication-snapshots|all-snapshot-types可选;仅用于启用了远程复制的系统。可删除的快照类型。如果省略词参数,默认值将为all-standard-snapshots。这表示命令将仅尝试删除标准快照,如果存在复制快照,命令将不会成功。
示例:
删除与主卷 MV1 关联的所有快照:
# delete all-snapshots volume MV1
Info: This may take a few minutes if the system is under heavy load...
Success: Command completed successfully. (MV1) - All snapshots were deleted.
删除与主卷 MV2 关联的所有复制快照:
# delete all-snapshots volume MV2 delete-type all-replication-snapshots
Info: This may take a few minutes if the system is under heavy load...
Success: Command completed successfully. (MV2) - All snapshots were deleted.