Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

more on frozen tapes

Created: 14 Nov 2006 • Updated: 21 May 2010 | 8 comments

Running Netbackup 4.5 fp6 on an Sun V890. I was wondering whether anything can
be done physically to a frozen tape to reuse it? Can its frozen status be removed
somehow once all its images were copied off?

Comments 8 CommentsJump to latest comment

zippy's picture

Dennis,

Un freez them and make sure your tape drives dont have a problem, if the tape gets frozen again well then the tape is probably no good, I'd wait for the data to expire on it then re-format the tape, then you can re-use it.

Look at these scripts, put the top one in cron till you get it straightened out, stick a mail statement at the bottom to mail you the info.

JD


#Check for Frozen or Suspended Tapes
######## CUT HERE ###############
#!/usr/bin/ksh
# Jim D
#
###############################################################################
#
TMPF1=/usr/openv/Veritas_scripts/tmp/tapelist.txt
TMPF2=/usr/openv/Veritas_scripts/tmp/tapelist1.txt
LIST=/usr/openv/Veritas_scripts/tmp/Frozen_Tapes.txt
HIST=/usr/openv/Veritas_scripts/tmp/Frozen_Tapes.txt
/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mlist > /usr/openv/Veritas_scripts/tmp/tapelist1.txt
/usr/openv/netbackup/bin/admincmd/bpmedialist -U -mlist > /usr/openv/Veritas_scripts/tmp/tapelist.txt
###############################################################################
#
# Remove temp files

#if ;then
# rm $TMPF1
#fi

#if ;then
# rm $TMPF2
#fi

if ;then
rm $LIST
fi


echo " FROZEN Tape LIST for `date`" > $LIST
echo "========================================================================== " >> $LIST
echo "" >> $LIST

cat $TMPF1 | grep " " | grep -v "last" > $TMPF2

cat $TMPF2 | while read line
do

Print=no
if
then
#ServerName=$(echo $line | awk '{print $4}' | vis)
ServerName=$(echo $line | awk '{print $4}' )
fi
TapeNumber1=$(echo $line | awk '{print $1}') # Tape number, if valid

if
then
if
then
TapeState="Frozen Suspended"
Print=yes
else
TapeState="Frozen"
Print=yes
fi
else
if
then
TapeState="Suspended"
Print=yes
fi

fi

if
then
echo "Server name: ${ServerName}\tTape number: ${TapeNumber2}\tTape State: ${TapeState}" >> ${LIST}
echo "${ServerName} ${TapeNumber2} ${TapeState}" >> ${HIST}

fi

TapeNumber2=${TapeNumber1}

done
cat /usr/openv/Veritas_scripts/tmp/Frozen_Tapes.txt

exit

#Unfrez_em
####### Cut Here #################

#!/usr/bin/ksh
#set -vx
alias openfile=exec
alias closefile=exec




SESSION_INFO=/usr/openv/Veritas_scripts/tmp/Fro

openfile 5<$SESSION_INFO

while read -u5 -r LOGLINE
do
#expire_tapes
#/usr/openv/netbackup/bin/admincmd/bpexpdate -ev $LOGLINE -d 0

#unfreEzzz em
/usr/openv/netbackup/bin/admincmd/bpmedia -ev $LOGLINE -unfreeze

vmchange -M Master-h Master -new_mt hcart -m $LOGLINE
done

closefile 5<&-

Message was edited by:
James Dunn

Dennis Strom's picture

Unfreeze the media
bpmedia -unfreeze -m -h

To expire media

bpexpdate -m -d 0 -force -host

technote
how to troubleshoot frozen media
http://support.veritas.com/docs/249632

P.S. I never reuse frozen media.Message was edited by:
Dennis Strom

zippy's picture

Use the scritps to keep track of the frozen media, some tapes are frozen because they are junk, most are frozen because the tape drive is junk and the Veritas software is clueless when it comes to deciding which one (the tape or the drive is bad), ussusally you will see the tape drive going down and the tape getting frozen, at the same time, you will also see the error in the logs.

JD

Stumpr2's picture

Be careful about re-using tapes that have been frozen by Netbackup. Check the logs to determine if the tape was frozen because of a bad tape drive or I/O problems. Try doing a bpverify on the tape. If it verifies good and If the tape was not at cause of it becoming frozen, then you can confidently unfreeze it and re-use it. If the problem was the tape then you can follow what I do. I relabel the tape and place it into the cesspool. I test with it for a week and if I am able to use it without problems then I will put it back into circulation. If it acts up a second time then I send it back to the manufacturer for a free replacement.

VERITAS ain't it the truth?

T_N's picture

yup, when you reuse frozen tape, first thing: you need to check in bptm log to determine the frozen tape cause (maybe tape write protected or catalog tape), if you that case you need to unlock or rewrite tape label if not, it's be frozen in next time. For me I write a daily script to check frozen tape and I check media servers bptm logs and after that I unfreeze them.

dennis sexton's picture

Thanks all. I got a lot of frozen tapes and I know I have drive wear problems. I was
thinking that more needed or could be done than an unfreeze to be able to re-use the tape.
It is still unclear to me that an unfreeze of a tape removes whatever mark on the tape
netbackup does to mark it. I had the impression that the unfreeze was simply a volume
manager database operation. Can anyone confirm that yes or no?

Stumpr2's picture

the state of a tape is a db function. There is nothing physically done to the tape.

VERITAS ain't it the truth?