Delete backup image from Catalog
Good evening everyone and congratulations on the forum.
I am writing to ask you for support regarding the deletion of backup images.
I have deleted some backup images at the request of a client of mine. I did this, using the console and the Catalog. I searched for the images to be deleted, using the filters. I selected the images to delete, right-clicked and selected Expire (delete).
Now, if I run the command:
bpimagelist -idonly -d 01/01/19 00:00:00 -e 12/31/2019 23:59:59 -policy <policy_name> -U
I still see all the backup images.
I noticed that while deleting the images from the catalog, the log file wrote:
logparams: -Bidfile D: \ Program Files \ Veritas \ NetBackup \ Logs \ user_ops \ XXXXX \ XXXXX \ logs \ jbpF9A5.tmp -force -d 0 -M XXXXXXXXX -notimmediate
Is this why images are not deleted immediately? Due to the -notimmediate option?
It is the case to perform:
nbdelete -allvolumes -force
Or is nbdelete scheduled to run automatically together with bpimage -cleanup -allclients?
Thanks for your answers, but I didn't find anything about it in the forum.
Oracle backups have dependencies between the images, so if one image doesn't get deleted (even if the copies / fragments) associated with it are expired off, the image can't be deleted until the dependent images are also expired.
Normally you wouldn't be trying to expire images directly in NBU for Oracle.. You would want to instigate that in Oracle and then run a crosscheck to clean up the images Oracle identifies as no longer required.
The main difference between the GUI "Catalog" and the bpimagelist command, is that the GUI catalog will only shor results where there is still a copy/fragment associated with the image, where as the command line will only show ALL images including those that don't have fragments.
There are some "control" jobs for some backup types that create fragment-less images that will remain in the catalog until all the other images associated with them have expired.bpexpdate should allow you to expire that image if you want to... But the GUI won't as it has no "copies"