How does SAS112 CLI delete a specific snapshot?

Source: Internet
Author: User

Cause analysis:
This method is available when Web management cannot delete a specific snapshot.
Solution:
Command: delete snapshot


Deletes a specified snapshot. After deleting all the data associated with the snapshot, the space in the snapshot pool can be used. It will also delete this fast


According to all the plans.


Syntax: delete snapshot [cleanup] [delete-priority standard-snapshot | volume-copy-snapshot | replication-snapshot | replicating-snapshot | common-sync-point-snapshot | only-sync-point -snapshot | queued-snapshot] [force] snapshots


Parameters:


Cleanup is optional. When you delete the last snapshot of the primary volume, the primary volume is automatically converted to a standard volume and the snapshot pool is deleted.


Delete-priority standard-snapshot | volume-copy-snapshot | replication-snapshot | replicating-snapshot | common-sync-point-snapshot | only-sync-point-snapshot | queued-snapshot optional. Priority of the deleted snapshot. If the specified priority is lower than the snapshot priority, the delete operation will be blocked. The goal is to prevent accidental deletion of high-priority snapshots. Either this parameter or force parameter must be specified, but cannot be specified at the same time.


Force is optional. Overwrite the priority protection and forcibly delete the specified snapshot. Either this parameter or the delete-priority parameter must be specified, but cannot be specified at the same time.


The name or serial number of the snapshot to be deleted.


Example:


Delete the snapshot SS1 being used by the copy operation:


# Delete snapshot delete-priority replicating-snapshot SS1


Info: Snapshot SS1 was deleted. (SS1)


Try to delete the common-sync-point snapshot SS2 by specifying a lower priority:


# Delete snapshot delete-priority standard-snapshot SS2


Error: Snapshot priority has not been met.


Force delete snapshot SS2:


# Delete snapshot force SS2


Info: Snapshot SS2 was deleted. (SS2)


Delete three standard snapshots:


# Delete snapshot s1, s2, s3


Info: Snapshot s1 was deleted. (s1)


Info: Snapshot s2 was deleted. (s2)


Info: Snapshot s3 was deleted. (s3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.