Dears,
Problem 1:
When we first got the backup solution, whenever a tape is last mounted, the retention period of the data is added and then I got an expiry date for the tape.
I tried to solve this by bpexpdate -m media_id -d infinity, now tapes could be used for writing again. But the new problem is that the backup images on the tapes is infinity.
So NBU finds the tapes and knows that the tapes are ready for writing, but all of the backup images on these tapes are not expired yet, so it doesn't write and I get a 96 exit status.
Problem 2:
I have some backup images I wanted to expire because I'm changing the retention period from 1 month to 1 week. So at first I changes the policy retention period and run the command below:
bpexpdate -recalculate -policy policy_name -ret 0
After this I have no logs for any of these backup images, and NBU is not re-writing on their tapes anymore.
Please advice and thanks in advance.