To delete a storage lifecycle policy, use the following procedure:
To delete a storage lifecycle policy
This step prevents new backup jobs from writing to the storage lifecycle policy.
Remove the storage lifecycle policy from all backup policies.
This step addresses in-process backup jobs writing to the storage lifecycle policy.
Wait for all in-process backup jobs to the storage lifecycle policy to complete or cancel the jobs using the Activity Monitor or command line.
This step prevents new duplication jobs from writing to the storage lifecycle policy.
To prevent any duplication jobs from writing to the storage lifecycle policy, use the following command:
nbstlutil cancel -lifecycle name
This command prevents the jobs by canceling any duplication jobs that were submitted to the storage lifecycle policy.
This step addresses in-process duplication jobs writing to the storage lifecycle policy.
Use the Activity Monitor to cancel in-process duplication jobs. Since one duplication job can contain images from multiple storage lifecycle policies, it can be difficult to determine which duplication job is associated with which storage lifecycle policy.
Once all of the operations are complete, delete the storage lifecycle policy. To delete a storage lifecycle policy deletes all versions of the definition.
Note: |
If orphaned images are detected due to a system error, NetBackuplogs the fact that the images exist and alerts the administrator to address the situation. |
If the administrator tries to delete a storage lifecycle policy with active images, a 1519 error appears. Wait several minutes and try to delete the storage lifecycle policy definition again until the error no longer appears.
To use the Administration Console to delete a storage lifecycle policy:
In the Delete Storage Lifecycle Policies dialog box, select the storage lifecycle policy name and click OK.
If images are still active for the storage lifecycle policy, a dialog box displays the following message:
The storage lifecycle policy, storage_lifecycle_name, could not be deleted. Status 1519.
To use the nbstl command to delete a storage lifecycle policy, enter the following:
nbstl storage_lifecycle_name -delete
If images are still active, the following error appears:
C:\>nbstl storage_lifecycle_name -delete