Deleting a storage lifecycle policy
To delete a storage lifecycle policy, use the following procedure. Note that to delete an SLP deletes all versions of the SLP.
Note:
It is not recommended that users modify or delete automanaged storage lifecycle policies. If a user begins to modify or delete an automanaged SLP, a dialog appears that warns users about the possible consequences.
See About automanaged policies or storage lifecycle policies.
To delete a storage lifecycle policy
- Remove the SLP from all backup policies to prevent new backup jobs from writing to the SLP.
- Wait for all in-process backup jobs to the SLP to complete, or cancel the jobs using the Activity monitor or the command line.
- To prevent new jobs or cancel any existing duplication jobs from writing to the SLP, run the following command:
nbstlutil cancel -lifecycle name
- Use the Activity Monitor to cancel in-process jobs that use the SLP.
- Once all of the operations are complete, delete the SLP using one of the following methods:
The NetBackup Administration Console
Expand Storage > Storage Lifecycle Policies.
Select the SLP name.
Select Edit > Delete.
In the Delete Storage Lifecycle Policies dialog box, select the SLP name and click OK.
The nbstl command
nbstl storage_lifecycle_name -delete
If the administrator tries to delete an SLP with active images, status code 1519 appears (Images are in process). Wait several minutes and try to delete the SLP again until the error no longer appears.
Note:
If orphaned images are detected due to a system error, NetBackup logs the fact that the images exist and alerts the administrator to address the situation.