Forum Discussion

rpierson-123's avatar
15 years ago
Solved

Catalog backup issues

Old NB5 used blank/nobarcode DLT's in slot 1 on the robot for the off site catalog, it was replaced daily and taken off site with the dozen other DLT barcoded tapes daily when the backups were done, simple.

Update to NB7 LTO library and there are some issues.

12/21/2010 12:06:43 - requesting resource ren2-hcart-robot-tld-0
12/21/2010 12:06:43 - requesting resource ren2.NBU_CLIENT.MAXJOBS.ren2
12/21/2010 12:06:43 - requesting resource ren2.NBU_POLICY.MAXJOBS.catalog_backup
12/21/2010 12:06:43 - granted resource  ren2.NBU_CLIENT.MAXJOBS.ren2
12/21/2010 12:06:43 - granted resource  ren2.NBU_POLICY.MAXJOBS.catalog_backup
12/21/2010 12:06:43 - granted resource  A00005
12/21/2010 12:06:43 - granted resource  HP.ULTRIUM4-SCSI.000
12/21/2010 12:06:43 - granted resource  ren2-hcart-robot-tld-0
12/21/2010 12:06:43 - estimated 0 kbytes needed
12/21/2010 12:06:47 - started process bpbrm (pid=15423)
12/21/2010 12:06:51 - connecting
12/21/2010 12:07:01 - connected; connect time: 0:00:00
12/21/2010 12:07:08 - mounting A00005
12/21/2010 12:08:06 - Error bptm (pid=15478) incorrect media found in drive index 0, expected A00005, found A00001, FREEZING A00005
12/21/2010 12:08:06 - mounted A00005; mount time: 0:00:58
12/21/2010 12:08:06 - current media A00005 complete, requesting next media Any

 

Now I have done every thing but drown it in holy water, the tape has no label, has been erased, unassigned, removed from the robot and reinserted.

What do I need to do to insert an unlabled tape in slot 1 of the robot every day for catalog backup after removing the other tape from the night before and bundling it with the 4 other tapes for off site storage for two weeks.  Or am I fighting city hall here and should just spend the money on a second set of barcodes just for catalog tapes.

 

Everything else works great, backups are quick but I am also using at lot more disc space than I was used to with NB5.

  • Any reason why you are not using barcoded media? Unlabeled media simply creates unnecessary headaches. For one, you can never perform an Inventory when there is previously used media in the robot. NBU assumes that you have added new media and will add new media id's. When this "new" media is mounted, NBU finds the existing label in the tape header:

    incorrect media found in drive index 0, expected A00005, found A00001, FREEZING A00005.

    It would not have 'found' A00001 if the tape was erased.

     

    Perform a 'physical inventory' on the slots that contain unlabelled media:

    Extract from Admin Guide I:

    The vmphyinv physical inventory utility inventories nonbarcoded tape libraries by performing the following actions:
    ■ Mounts each tape
    ■ Reads the tape header
    ■ Identifies the tape in each slot
    ■ Updates the NetBackup volume configuration

    vmphyinv is a command-line utility. Additional information about the syntax of the vmphyinv command is available.
    See the NetBackup Commands guide.

    Example:

     vmphyinv -rn 1 -rc1 2 -number 3

    (Mounts media in robot 1 and slot range 2 to 4.)

     

    You don't need a 'second set' of barcode labels. The only requirement is that Hot Catalog media must be in the CatalogBackup pool.

  • When a NON barcoded tape is put in a library or given to netbackup - Netbackup gives it a media id. 

    Like A00001 - that is written to the very beginning of the tape the first time it is written to.

    Now you upgraded and seem to have added the tape again to NB 7.x, but again it is an unbarcoded tape. So unless you TELL netbackup that tape is A00001 it is going to think it is a new tape it has never seen before and assign it a new media id.  So now NB thinks this tape is A00005.  But when it goes to write to it, it reads the beginning of the tape that has a label written on  it of A00001.  So to NB these do not match.

    you have two options.

    1) buy barcodes for you Catalog tapes ( you can make them special like starting with a C) put them on the tapes and put them in the catalog pool.

    2) when you put an old catalog tape back into the library it is going to add it as a new tape so you have to erase that label of A00001 on the beginning of the tape.

    That means for your example - Right clicking A00005 and choose to label the tape So that A00001 label written on the tape is over written with A00005 (do not check the box that says to verify media label - because that will see the miss match)

    Now as these are catalog tapes, you cannot relabel them unless you expire them first.

    And catalog tapes are special you will have to

    #vmquery -deassignbyid <media id> <pool#> 0

    when the tape has no assigned date you can re-label it.

    ------

    Make your life easy - get barcodes for your cat tapes, and put them in the Catalog pool to be used.

  • Any reason why you are not using barcoded media? Unlabeled media simply creates unnecessary headaches. For one, you can never perform an Inventory when there is previously used media in the robot. NBU assumes that you have added new media and will add new media id's. When this "new" media is mounted, NBU finds the existing label in the tape header:

    incorrect media found in drive index 0, expected A00005, found A00001, FREEZING A00005.

    It would not have 'found' A00001 if the tape was erased.

     

    Perform a 'physical inventory' on the slots that contain unlabelled media:

    Extract from Admin Guide I:

    The vmphyinv physical inventory utility inventories nonbarcoded tape libraries by performing the following actions:
    ■ Mounts each tape
    ■ Reads the tape header
    ■ Identifies the tape in each slot
    ■ Updates the NetBackup volume configuration

    vmphyinv is a command-line utility. Additional information about the syntax of the vmphyinv command is available.
    See the NetBackup Commands guide.

    Example:

     vmphyinv -rn 1 -rc1 2 -number 3

    (Mounts media in robot 1 and slot range 2 to 4.)

     

    You don't need a 'second set' of barcode labels. The only requirement is that Hot Catalog media must be in the CatalogBackup pool.

  • Any barcode would work ( I just like to be able to id my catalog tapes by site - with custom bar codes I know they are a cat tape)