volume snapshot remove
Removes one or more snapshots.
- License required: Enterprise Edition
- Permissions required:
fc
orm
on the volume
Syntax
- CLI
-
maprcli volume snapshot remove [ -cluster <cluster> ] ( -snapshotname <snapshot name> ] [ -snapshots <snapshots> ] [ -volume <volume name> ]
- REST
-
http[s]://<host>:<port>/rest/volume/snapshot/remove?<parameters>
Parameters
Specify both snapshot name and volume, or just snapshot ID.
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. |
snapshotname |
The name of the snapshot to remove. |
snapshots |
A comma-separated list of IDs of snapshots to remove. |
volume |
The name of the volume from which to remove the snapshot. |
Examples
Remove the snapshot "test-snapshot":
- CLI
-
maprcli volume snapshot remove -snapshotname test-snapshot
- REST
-
https://10.250.1.79:8443/api/volume/snapshot/remove?snapshotname=test-snapshot
Remove two snapshots by ID:
First, use volume snapshot list
to
get the IDs of the snapshots you wish to remove. Example:
# maprcli volume snapshot list
creationtime ownername snapshotid snapshotname expirytime diskspaceused volumeid volumename ownertype volumepath
1296788400768 dummy 363 ATS-Run-2011-01-31-160018.2011-02-03.19-00-00 1296792000001 1063191 362 ATS-Run-2011-01-31-160018 1 /dummy
1296789308786 dummy 364 ATS-Run-2011-01-31-160018.2011-02-03.19-15-02 1296792902057 753010 362 ATS-Run-2011-01-31-160018 1 /dummy
1296790200677 dummy 365 ATS-Run-2011-01-31-160018.2011-02-03.19-30-00 1296793800001 0 362 ATS-Run-2011-01-31-160018 1 /dummy
Use the IDs in the volume snapshot remove
command. For example, to
remove the first two snapshots in the above list, run the commands as follows:
- CLI
-
maprcli volume snapshot remove -snapshots 363,364
- REST
-
https://r1n1.sj.us:8443/rest/volume/snapshot/remove?snapshots=363,364