When I run a media report I've noticed quite a lot of tapes that are in a frozen state and I can find no description of why this is happening. Is anyone else experiencing this and is there a cure? Thank you in advance.
Most common reason is what sdeb is writing, but it can be other things as well.
We got a lot of tapes frozen when we upgraded our tapedrives from 9940A to 9940B. In this case it wasn't an error, but because 9940B drives could read the 9940A format but not write it. So every time we tried to append data to a tape written in 9940A format the tape got frozen so that NBU didn't try to do it again.
When the images on the tapes in 9940A format expired we just used the unfreeze command since the 9940B drives would just write in the new format at BOT.
I have found the following to be quick way to unfreeze our media tapes:
run bpmedialist to find out which tapes are frozen and where they are located (if you have more than one media server) switch to this location and run bpmedialist to aquire tape number if you did not write it down before.
run bpmedia -unfreeze -ev "tape number" without the quotation marks
The other common problem this can be caused by is if you rotate tapes used for catalogs.
Once Netbackup has allocated a tape for catalog backups there is specific header data written to the tape that flags it as such. A tape cannot be reused for standard backups until that tape has been unfrozen.
One thing that has been missed though is that if there is this type of data (catalog) or any other data on tape that Netbackup refuses to overwrite you will also have to physically "relabel" the tape to reuse it. Unfreezing the media simply changes the status of the media in the volume database and does nothing to the media itself. Next time the tape is mounted it will become "frozen" again.
Use the following command to relabel the tape. Realize that if you are using a library the tape must reside in the library as it will be mounted. Standalone drives will assume you are going to insert the media.
If anyone is interested I've got a couple scripts written for Windows that make this really easy for multiple tapes. Probably could be easily modified for use in Unix. Unfortunately I'm in a Win2k master server situation.
I run a report every day to check for Frozen tapes...
I hope it helps ...
#!/bin/ksh
#
#
###############################################################################
#
# Name: tapecheck.ksh
# Purpose: This script checks all tapes and will LISTot any Frozen.
#
# Modified by: Steve Staves
# Date Created: April 2nd, 2003
# Date Modified: Jul 30th, 2003
#
###############################################################################
#
# Set up variables
TMPF1=d:/veritas/ScriptFiles/Check_Tapes_Frozen/tapelist.txt
TMPF2=d:/temp/tapelist1.txt
LIST=d:/veritas/backupresults/Frozen_Tapes.txt
HIST=//sherlock/LISTorts/Veritas/Frozen_Tapes/Frozen_Tapes.txt
Phantom, I am trying to user your script but it blows up because it can't find the tapelist. I changed my paths to match my server but is the tapelist generated by another command or am I missing something? Thanks for the help.
My apologies - I cann this with a batch file and the first command in the batch file is: bpmedialist -U -mlist > d:\veritas\ScriptFiles\Check_Tapes_Frozen\tapelist.txt[/red]
One other thing as well that I was crazy enough to leave in: if [ -f $TMPF1 ];then
rm $TMPF1
fi
Remove this section. I had it commented out but I accidentally removed the # when I posted. With that in, the file that is created is removed before the script can run against it - Duhh
I have 1 tape i would like to unfreeze,but
also an easier way of seeing how much/many tapes i have left that are able to be written to before they fill
up and my backups fail.
I run the report for summary of tapes, but not the best report and has to be run manually.
Do you still have those Veritas scripts used to unfreeze multiple tapes for a Windows environment? If so, would you please post them or email them to me.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.