This is a common occurrence when the NetBackup volume pool is defined in a policy for normal backups. First ensure that none of your policies use the NetBackup volume pool. Then keep only a couple of tapes in the NetBackup pool that you are actively using for catalog backups.Then do these three steps.
1. identify all tapes that have been used for catalog backups.
2. deassign the tapes that do not have current catalog info that you may need to do a bprecover.
3. relabel the tapes.
These three steps are outlined in the technote:
How to reuse or recycle unnecessary VERITAS NetBackup database catalog tapes for normal backups
http://seer.support.veritas.com/docs/237779.htm
Here it is:
(NOTE: Step 1 can be done many different ways)Details:
In order to reuse tapes that were previously used for NetBackup database catalog backups, perform the following two steps:
Caution: Once these steps have been performed, the original data on the tape is destroyed and lost - make certain beforehand that verification has been done on all the tapes on which this operation is to be performed, and that they are indeed tapes that can be overwritten!
Perform the following commands on the volume database host (usually the NetBackup master server):
Step 1. Determine which tapes are catalog backup tapes on your system by issuing the following command:
/usr/openv/volmgr/bin/vmquery -a > /tmp/vmquery.out
After the re-directed output file is created - vi (or use editor of choice) the file and search for the status 0x1 (see output below) - this status indicates that it is a catalog backup tape and record the media ID as a catalog backup tape.
After identifying all of the catalog backup tapes, the active catalog backup tapes should be identified (this can be done using the Java GUI, Configure drop down menu, and selecting NetBackup Catalog Backup, viewing the selections for media 1 and media 2 and noting the media IDs. This can also be accomplished by viewing the last mounted category for the status 0x1 tapes from the output below, in the event that only catalog backup tapes older that a certain date are to be reused (a working strategy can be developed to only reuse catalog database tapes older that 1 month, etc.).
Caution: These active catalog backup media IDs must NOT be overwritten or destroyed. Take special care to avoid the following procedure on the active catalog backup media and any other catalog backup media that you wish to keep.
The example of the vmquery -a output below shows two different types of NetBackup tapes. The status 0x0 is a NetBackup backup tape and the status 0x1 indicates a tape that has been used for a NetBackup catalog database backup.
================================================================================
media ID: CAN000
media type: DLT cartridge tape (11)
barcode: --------
description: Added by Media Manager
volume pool: NetBackup (1)
robot type: TLD - Tape Library DLT (8)
robot number: 0
robot slot: 1
robot host: NBsrv1
volume group: 00_000_TLD
created: Thu Apr 05 08:38:01 2001
assigned: Thu Jun 14 10:47:08 2001
last mounted: Thu Jun 14 10:48:35 2001
first mount: Thu Apr 05 09:00:22 2001
expiration date: ---
number of mounts: 3
max mounts allowed: ---
status: 0x0
================================================================================
media ID: 000101
media type: DLT cartridge tape (11)
barcode: --------
description: ------
volume pool: NetBackup (1)
robot type: TLD - Tape Library DLT (8)
robot number: 0
robot slot: 2
robot host: NBsrv1
volume group: 00_000_TLD
created: Thu Apr 05 08:45:00 2001
assigned: Sat Jun 02 08:35:06 2001
last mounted: Fri Jun 22 01:44:28 2001
first mount: Thu Apr 05 08:45:52 2001
expiration date: ---
number of mounts: 14
max mounts allowed: ---
status: 0x1
================================================================================
Step 2. /usr/openv/volmgr/bin/vmquery -deassignbyid
i.e. /usr/openv/volmgr/bin/vmquery -deassignbyid 000101
(where 000101 is the tape volume ID)
Step 3. /usr/openv/netbackup/bin/admincmd/bplabel -ev evsn -d density
i.e. /usr/openv/netbackup/bin/admincmd/bplabel -ev 000101 -d dlt (in this case 000101 is the tape volume ID, dlt is the tape density, and assumes that a robotic library exists and the tape is in the library. If it is a standalone tape drive system, a drive name will have to be specified in the command line).
Note: If this is a standalone tape system, the tape must already be in the drive specified above - this may take manual intervention.
These steps will remove the information from the volume database and write a new label to the tape, effectively erasing any previous information on the tape, which can now be used for NetBackup backups.
Related Documents:
247804: How to re-use a NetBackup tape for Catalog backups (status code 97 is generated when configuring a Catalog backup).
http://support.veritas.com/docs/247804Message was edited by:
Bob Stump