What happens to trailing pieces of a restored volume?

ldmwndletsm

ADSM.ORG Senior Member
Joined
Oct 30, 2019
Messages
232
Reaction score
5
Points
0
If you have a bad primary pool tape (a volume audit reports lots of errors on the tape and bad /damaged files), and you then run a 'restore volume' to create a new primary pool tape from a good copy pool volume then what happens if you later audit any of the tapes wherein one or more files on the bad tape spanned to/from?

I have hunted around everywhere in the IBM documentation, and I could find nothing on this other than the 'skippartial' parameter for audit volume, but this tells me nothing about the restore. Let's says the bad tape is B0080, and there was one file that spanned from tape B0077 and one file that spanned to tape B0079. Seems to me that those pieces/parts would still be occupying physical space on those other two tapes, and even if TSM forgets about them and knows only about the "new" primary pool tape (call it B0090), following the restore, then if you later audited those other two tapes, would it not still find those files and complain that they're not in the database? That information would have been removed following the restore, right? If so, how would you reconcile the output from the audit? How would you know it was or was not expected? Is this something to be concerned about?

Maybe my understanding is all wrong here? Perhaps the restore would not affect those other pieces and only rebuilds what is physically on the bad tape, not the pieces that span to/from? I was thinking not, and that a 'q content volume' would no longer report those files on those other tapes, only the new tape(s), but I've not tried it. Wanted to inquire first, before running the 'restore volume'. Thanks.
 
Nothing happens to volumes other than the one you restore.

If you restore TAPE1, the server will mount a scratch tape, TAPE9 for example. It will restore everything that was on TAPE1 from the copypool and put it on TAPE9. So if you have a file that spanned between TAPE1 and TAPE4, after the restore it now spans between TAPE9 and TAPE4.
 
Last edited:
Interesting. So that suggests that trailing and preceding pieces are independent.

My experience with another backup product (different vendor, yes, I know, so maybe not a fair comparison) is that if you make a copy of a backup of a file space from a specific time then it must also copy all the spanning pieces, so it will follow to those tapes. If you copy a tape, it does the same thing for all the backups on that tape. I've seen cases where the total data copied could be 1.5 to twice the amount of data written to the tape, all depending, of course, on the size of those pieces on those other tapes and how many pieces. It's frustrating when you have a partially full tape with 400 GB of data, and you want to clone it, but then you realize that there's a spanning backup that starts (head) on another tape with 800 GB, and the tail section is on this tape with only 50 MB. So you end up cloning at least 1.2 TB.
 
Back
Top