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:
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):
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:
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:
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.
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.
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.
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.