How to recycle offline cold catalog backup media tape for new NetBackup policy backups.

Article:TECH56392  |  Created: 2007-01-21  |  Updated: 2009-01-10  |  Article URL http://www.symantec.com/docs/TECH56392
Article Type
Technical Solution

Product(s)

Environment

Issue



How to recycle offline cold catalog backup media tape for new NetBackup policy backups.

Solution



Environment: NetBackup version 6.0 and 6.5

Change: Upgrade to NetBackup version 6.0 or 6.5 and want to recycle old offline catalog backup tapes.

Cause: Although offline catalog backup tapes are not in images catalog, it is assigned in the "volume database" with a status of "0x1".  NetBackup will not re-use these tapes for normal backups, and bpexpdate command cannot expire these tapes.

NOTE: These steps will also work for NetBackup version 5.X environment to recycle media with legacy catalog backup on it.

1. Check if media is assigned with the command vmquery.

UNIX: /usr/openv/volmgr/bin/vmquery
Windows: c:\program files\veritas\volmgr\bin\vmquery

vmquery -m <mediaID>

Example:
# vmquery -m DLT000
================================================================================
media ID:              DLT000
media type:            DLT cartridge tape 2 (16)
barcode:               --------
media description:     ------
volume pool:           NetBackup (1)
robot type:            NONE - Not Robotic (0)
volume group:          ---
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               Wed Dec 19 11:39:43 2007
assigned:              Wed Dec 19 11:41:00 2007
last mounted:          Wed Dec 19 11:45:17 2007
first mount:           Wed Dec 19 11:45:17 2007
expiration date:       ---
number of mounts:      1
max mounts allowed:    ---
status:                0x1

2. If assigned, check if the status is "0x1", and note the volume pool and it's associated number in parenthesis. Example:
"volume pool:           NetBackup (1)", the volume pool number is 1.

Volume pool number is needed for command in step 4.  Volume pool name is needed for command in step 5.

3. Note the "media type" for re-labeling (step 5).  You must use the short form for density type.

Example:

  • 1/2" cartridge tape is "hcart". Valid: hcart, hcart2, hcart3.
  • DLT cartridge tape is "dlt". Valid: dlt, dlt2, dlt3.
  • 8MM cartridge tape is "8mm". Valid: 8mm, 8mm2, 8mm3.

View the vmquery output to determine the density.
Example: "DLT cartridge tape" would be dlt1 and "DLT cartridge tape 2" would be dlt2.

4. If status is "0x1" (from step 2) deassign the tape with the command: vmquery -deassignbyid <MediaID> <Volume_Pool_Number> 1:

vmquery -deassignbyid DLT000 1 1
================================================================================
media ID:              DLT000
media type:            DLT cartridge tape 2 (16)
barcode:               --------
media description:     ------
volume pool:           NetBackup (1)
robot type:            NONE - Not Robotic (0)
volume group:          ---
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               Wed Dec 19 11:39:43 2007
assigned:              ---
last mounted:          Wed Dec 19 11:45:17 2007
first mount:           Wed Dec 19 11:45:17 2007
expiration date:       ---
number of mounts:      1
max mounts allowed:    ---
================================================================================
CAUTION: The act of unassigning volumes may lead to inconsistencies
        between the application media database and volume database,
        leading to the possibility for data loss. You must expire the
        media from an application interface.


5. Re-label the tape.  
You can use the GUI, or command line, bplabel. (Default location /usr/openv/netbackup/bin/admincmd/ for UNIX/Linux or c:\program files\veritas\netbackup\bin\admincmd\ for Windows.)

GUI (jnbSA):
a) Navigate: "Media and Device Management" -> "Media"
b) Find the MediaID.  Right-Click the MediaID, select "Label".  New popup window for "Label" appears.
c) Keep defaults click OK.

Using bplabel commandline:
a) For MediaID in a robotic library:
bplabel -m <MediaID> -d <density> -o [-p <Volume_Pool_Name>]
[-p] is required if the Volume pool is not NetBackup, otherwise can be omitted.

Example: bplabel -m 000037 -d hcart -o -p Scratch

b) For Standalone MediaID mounted to standalone drive:
1) Use the command "tpconfig -d" (located under same path as vmquery) to list the standalone drive with it's NetBackup name.
2) bplabel -m <MediaID> -d <density> -n <Drive_name_from_tpconfig>
3) Example:
bplabel -m DLT000 -d dlt2 -n COMPAQ.DLT8000.000
Media contains NetBackup database backup data, overwrite it y/n (n)? y





Legacy ID



295233


Article URL http://www.symantec.com/docs/TECH56392


Terms of use for this information are found in Legal Notices