Deleting a storage lifecycle policy

To delete a storage lifecycle policy, use the following procedure:

To delete a storage lifecycle policy

  1. This step prevents new backup jobs from writing to the storage lifecycle policy.

    Remove the storage lifecycle policy from all backup policies.

  2. 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.

  3. 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.

  4. 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.

  5. 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:

      • Expand Storage > Storage Lifecycle Policies.

      • Select the storage lifecycle policy name.

      • Select Edit > Delete.

      • 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

      Exit error: images are in process

      EXIT status = 1519