Managing disk space used by snapshots
To manage the disk space used by snapshots, you can set a snapshot quota or capacity limit for the file system. When all of the snapshots for the file system exceed the capacity limit, snapshot creation is disabled for the file system.
You can also remove unnecessary snapshots to conserve disk space.
To enable snapshot quotas
- To display snapshot quotas, enter the following:
Storage> snapshot quota list FS Quota Capacity Limit == ===== ============== fs1 on 1G fs2 off 0 fs3 off 0
- To enable a snapshot quota, enter the following:
Storage> snapshot quota on fs_name [capacity_limit]
fs_name
Specifies the name of the file system.
capacity_limit
Specifies the number of blocks used by all the snapshots for the file system. Enter a number followed by K, M, G, or T (for kilo, mega, giga, or terabyte). The default value is 0.
- If necessary, you can disable snapshot quotas. You can retain the value of the capacity limit. To disable a snapshot quota, enter the following:
Storage> snapshot quota off [fs_name] [remove_limit]
fs_name
Specifies the name of the file system.
remove_limit
Specifies whether to remove the capacity limit when you disable the quota. The default value is true, which means that the quota capacity limit is removed. The value of false indicates that the quota is disabled but the value of the capacity limit remains unchanged for the file system.
To destroy a snapshot
- To destroy a snapshot, enter the following:
Storage> snapshot destroy snapshot_name fs_name
snapshot_name
Specifies the name of the snapshot to be destroyed.
fs_name
Specifies the name of the file system from which the snapshot was taken. Snapshots with the same name could exist for more than one file system. In this case, you must specify the file system name.