01-30-2008 08:20 AM
current setup:
master and media server are the same.
Issue:
I need to freeze some tapes from the scratch pool.
When I run
bpmedia –freeze –m <media_id>
it says media id not present in the NB or volmgr database.
I suppose bpmedia looks up for the tape id in the output of bpmedialist
The scratch pool tape entries are absent in the output of bpmedialist also.
When I run the available_media script in goodies, the media is present there and I know for sure that the media is present cause I got it loaded.
1. What should I do if I need to freeze a tape from the scratch pool?
2. When is a tape added to the bpmedialist entry?
01-30-2008 08:37 AM
@clueless wrote:
I need to freeze some tapes from the scratch pool.
01-30-2008 08:37 AM
01-30-2008 08:57 AM
Bob and Darren,
Thanks first of all, now I will tell the exact thing that I need to do, kindly suggest the best practice for the same.
We backup certain data on a daily basis,
Once the data is backed up, the tapes are sent offsite and the expiry for the tapes is 22days, after which the tapes are brought back, we scratch and re use them.
What happens at times is that after writing a few files, the tape freezes or throws a media write error.
Since the something was written on them, we have a policy to keep the tape around for 22days and discard when it comes around next, this is to make sure we can have at least those files restored which were successfully backed up on the tape.
When the tapes are ejected, the tape librarians are instructed to put an extra label on it saying
"Discard the tape when it comes around next time”
But there is a chance that the label might get torn off, or by chance the librarian may end up inserting the tape, so I need to ensure that the tapes are never used in future.
What I need to do is make a script which will be run after loading the tapes.
this will check if the tapes are okay for usage.
How should I go about it?
01-30-2008 09:30 AM
Clueless,
"When I run
bpmedia –freeze –m <media_id>
it says media id not present in the NB or volmgr database."
The format I use for the command is bpmedia -freeze -m <media_id> -p (Pool_ID) 0
01-30-2008 09:34 AM
01-31-2008 12:04 AM
01-31-2008 02:56 AM
01-31-2008 03:50 AM
01-31-2008 06:24 AM
Andy and bob thanks
Bob, how do I enable write protection using veritas commands or any other commands for that matter?
How do I check if a tape is write protected once it is loaded, it will too cumbersome to load each tape in the drive and check.
Andy, the reason why they are in the scratch pool is this.
I for instance use a tape ( say tape id:AAA001) today and say 10 files were to be written on it, only 8of them were written after which the tape threw an error.
While backing up we set the expiry of the tapes to 22days, after that cycle they come back for usage.
Once the tapes are back, I load them, since these come after 22days they will be already expired hence when I load them the will go in the scratch pool,
Once the tapes are loaded, I need to check if any of these tapes threw an error the last time they were used.
So I need to put some checks, or an indicator say a flag or something.
From what I could think,
Freezing or suspending the tapes sounds a nice and easy approach.
When I am ejecting the tape AAA0001 it will be in some pool since backups were being written on it, so I can manually freeze it while ejecting,
What I need to know is if there is a better approach?
my concern here is not freezin a tape from the scratch pool , but that a faulty tape gets recognised when it comes around next time?
01-31-2008 07:57 AM
01-31-2008 08:06 AM
clueless wrote:Bob, how do I enable write protection using veritas commands or any other commands for that matter?
01-31-2008 08:06 AM
01-31-2008 08:30 AM
01-31-2008 09:03 AM
01-31-2008 09:22 AM
01-31-2008 09:47 AM
01-31-2008 01:02 PM
What happens at times is that after writing a few files, the tape freezes or throws a media write error.Since the something was written on them, we have a policy to keep the tape around for 22days and discard when it comes around next, this is to make sure we can have at least those files restored which were successfully backed up on the tape.
When the tapes are ejected, the tape librarians are instructed to put an extra label on it saying
"Discard the tape when it comes around next time”
But there is a chance that the label might get torn off, or by chance the librarian may end up inserting the tape, so I need to ensure that the tapes are never used in future.
What I need to do is make a script which will be run after loading the tapes.
this will check if the tapes are okay for usage.
02-01-2008 02:20 AM
02-18-2008 04:23 AM
When a tape throws an error, we do the following.