Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "Unfreeze" tape ? 8

Status
Not open for further replies.

pctekk

MIS
Sep 28, 2002
345
0
0
US
I have a tape that is labeled Frozen, how can i "unfreeze" it
to reuse ?

thanks gang
 
install_path\NetBackup\bin\admincmd\bpmedia -ev <media id> -unfreeze

 
Here what Veritas support sent me.

1. Do not run vmquery -deassignbyid!
- This just removes the pointer in the voldb saying it is assigned. It
does not clear up the media or image databases. When you do this the
media will be frozen the next time it gets selected for a backup and
will continue to do so until the other database entries are cleared.
2. Do run bpexpdate -m <media id> -d 0
- This will probably error out on you saying that the selected media
id
was not found in the mm or volume database. In that case use the
undocumented switches for clearing it out of one database and not the
other. For instance bpexpdate -m <media id> -justimage -d 0 and
bpexpdate -m <media id> -justmedia -d 0. One of those will work. Then
the tape will become deassigned by itself.
3. You will need to clean up the databases of the media you deassigned
earlier by unfreezing the tapes on the media server that froze them by
running bpmedia -unfreeze against them and then using bpexpdate to
clear
the databases.


Symptom:
How to make an assigned tape available for re-use by VERITAS NetBackup

Solution:

Caution! Before performing any operations on a tape which has been used for regular client backups, verify if there are any active/valid images on the tape in question by using the following command:

<install_path>\NetBackup\bin\admincmd\bpimmedia -L -mediaid <media_id> (Windows)
/usr/openv/netbackup/bin/admincmd/bpimmedia -L -mediaid <media_id> (UNIX)

If there are no images listed, then the tape is already available and nothing further needs to be done. However, if valid images exist, a decision must be made on whether or not these images may be expired so that the tape can be re-used.

To make the media available for re-use, it is necessary to expire the images on the tape as follows (using media id TSN001 as an example):

<install_path>\NetBackup\bin\admincmd\bpexpdate -ev TSN001 -d 0 (Windows)
/usr/openv/netbackup/bin/admincmd/bpexpdate -ev TSN001 -d 0 (UNIX)

The execution of the bpexpdate command should remove any entries associated with TSN001 from the NetBackup Catalog (databases) - successfully if the databases are in sync as they should be. Errors may occur if there are inconsistencies with the NetBackup databases and Technical Services should be contacted for further investigation, as this is beyond the scope of this TechNote.

To verify that this tape is now released from the NetBackup databases and available for re-use, perform the following steps:

1. <install_path>\NetBackup\bin\admincmd\bpimmedia -L -mediaid TSN001 (Windows)
/usr/openv/netbackup/bin/admincmd/bpimmedia -L -mediaid TSN001 (UNIX)

The result should show no images associated with TSN001.


2. <install_path>\NetBackup\bin\admincmd\bpmedialist -U (Windows)
/usr/openv/netbackup/bin/admincmd/bpmedialist -U (UNIX)

The result should show that TSN001 is not in the list.


3. <install_path>\volmgr\bin\vmquery -m TSN001 (Windows)
/usr/openv/volmgr/bin/vmquery -m TSN001 (UNIX)

The result should show that TSN001 is no longer assigned, verified by the 'assigned' field having no time stamp (see below for output of TSN001 from a NetBackup 4.5 system. A 3.4 system would show similar outputs, but without the vault related fields ):

media ID: TSN001
media type: DLT cartridge tape 2 (16)
barcode: TSN001
media description: Added by Media Manager
volume pool: Client_Backups (2)
robot type: TLD - Tape Library DLT (8)
volume group: 00_000_TLD
vault name: ---
vault sent date: ---
vault return date: ---
vault slot: ---
vault session id: ---
created: Mon Nov 18 14:35:41 2002
assigned: --
last mounted: Wed Nov 20 11:44:47 2002
first mount: Mon Nov 18 14:58:33 2002
expiration date: ---
number of mounts: 2
max mounts allowed: ---


If all three steps above are verified true for the tape on which the bpexpdate command was executed, the tape should now be available for re-use. The available_media report should also show that this is the case. This report can be generated by the command:

<install_path>\NetBackup\bin\goodies\available_media (Windows)
/usr/openv/netbackup/bin/goodies/available_media (UNIX)



 
You donot want to use a frozen tape for backups because most of the times tapes are frozen for a reason. The best way is to wait until the images on the tape expire, unfreeze the tape and delete the tape permanently from the volume database.
 
Heres a script that I created to do the job

echo "\n Finding and Unfreezing Media..."
echo "---------------------------------"
/usr/openv/netbackup/bin/goodies/available_media > /tmp/look

cat /tmp/look|grep FROZEN|awk '{print $1}' > /tmp/frozen.a

while read line
do
/usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -ev $line
echo "The Following tape(s) will be unfrozen $line"
done < /tmp/frozen.a

rm /tmp/frozen.a

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant.
 
Question:

Normally when a tape freezes I take it out of the pool of available tapes because if it freezes once it freezes again. In the past these tapes had always been quite old and most likely mounted too many times.

However last week the system set three brand new tapes to "frozen." I suspect it was just something wrong with the backup and not the tapes themselves. In a case like this is it worth unfreezing and giving the tapes another shot?
 
definitely check the "all logs" and the "media logs" reports to determine the cause of NetBackup freezing the tape. I also always give a tape a second chance. I created a volume pool called cesspool and I place the tape into that pool until I get a chance to use the tape for testing. If it tests OK then I re-add it to the scratch pool. If the tape ever becomes frozen again then it's completely removed and I contact the vendor for a free replacement.

Bob Stump
Incorrigible punster -- Do not incorrige
 
It's one of those facts of life that you will from time to time recive a bad batch of tapes. Failures for tapes normally happen when they are old and worn out or brand new out of the box. In the old days of open reel we always ran the tapes through the drives to clear the lose dust off.
 
If the brand-new tapes are being frozen, you'd want to find out if they are touched by the same tape drive, which is most likely dirty.Check the Netbackup logs and as well as the system logs if the drive needs any cleaning. If drive is in a tape library, make sure you maintain enough cleaning tapes all the time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top