cancel
Showing results for 
Search instead for 
Did you mean: 

Issues importing old tapes

spitman
Level 5
Good morning,
 
As if I wasn't irritated enough... I just spent twenty minutes trying to type up a post, only to hit a button on the web page by accident and lose everything I typed... so be patient with me... I have looked at other forum posts, and they don't really address the issue I'm currently having.
 
Some background info: master server is "kronos," media server (with tape library attached) is "rchnbump1". Running on Linux servers with NBU version 7.6.0.4.
 
I have some tapes from 2012 that I have brought back onsite, and I am trying to import them into the current NBU database (it doesn't know about them). This is BS (before Susan) so I am working with a limited amount of knowledge, some notes passed on by old colleagues and my own experience.
 
There are about 30 tapes. I have loaded them up into the library and updated the volume config so NBU knows they're there. I have run some basic commands given to me by an old team member--I believe the tape library used to be directly connected to kronos, so one of them is a bpimage -oldserver -newserver command.
 
On about 25 of the tapes the create_db_info step ran fine, no problem. I have about a half dozen "unhappy" tapes. When I first loaded them into the library I noticed that for some reason the barcode was showing as nine characters instead of 8. From reading in the forums, I deleted those tapes, went to the advanced tab of the inventory and set a nine-character rule, and inventoried the tapes again. The tapes then showed up with the same type of name as the other ones. Also, this made the tape names as they were referenced on the old paper (yes, paper, I know archaic) documentation that went along with these tapes.
 
Examples: Tape that worked the first time had a barcode of NB4949L3, was read in as NB4949 no problem.
Tape that didn't seem to work the first time had a barcode of NB04643L3, and was originally read in as 4643L3. I set up a nine-character barcode rule to have the tape show up as NB4643, which is the way it was referenced in documentation.
 
This tape though (and the other tapes with this problem) weren't working with the create_db_info command. The job was hanging, as if it couldn't find the tape:
05/27/2015 08:07:43 - begin Import
05/27/2015 08:07:44 - Info bptm (pid=13181) start
05/27/2015 08:07:44 - started process bptm (pid=13181)
05/27/2015 08:07:44 - requesting resource NB4643
05/27/2015 08:07:44 - awaiting resource NB4643. Waiting for resources.
          Reason: Tape media server is not active, Media server: kronos,
          Robot Type(Number): TLD(2), Media ID: N/A, Drive Name: N/A,
          Volume Pool: N/A, Storage Unit: N/A, Drive Scan Host: N/A,
          Disk Pool: N/A, Disk Volume: N/A
 
So the "tape media server not active" made it seem to me like it thought the tape should be "owned" by kronos, which was the old media server; but when I try to change the "owner," (and I apologize if I'm referring to this wrong) it can't seem to find the tape:
(Linux)root@kronos:/> bpimage -oldserver kronos -newserver rchnbump1 -id NB4643
no entity was found
 
Based on the documentation I have here, there is data on these tapes. They should be behaving just like the other tapes in this batch of 30 or so, but for some reason they aren't. Please feel free to ask whatever questions you want if you're willing to help. Thanks in advance.
1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

bpimport -create_db_info -id NB4643 -server rchnbump1
should work...

I would expect the 'no server' version of the command to try master server.

No need to try and change ownership as this media is not Assigned yet.

What happens when you specify rchnbump1?

What is the actual media type of this tape? LTO3 I presume?

The media type in NBU is hcart2.
What density are the tape drives configured for 
rchnbump1 in TLD(2)? 
And what is the real media type?

So, in NBU, the media type must match - tape and drive must be hcart2.
If LTO3 tape, actual drive type must be LTO3, LTO4 or LTO5 to allow tape mount and read of media.

 

View solution in original post

6 REPLIES 6

Marianne
Level 6
Partner    VIP    Accredited Certified

Please show us output of this command on the master:

nbemmcmd -listmedia -mediaid NB4643 

Also share full syntax of bpimport create_db_info that was used for this tape.

spitman
Level 5

(Linux)root@kronos:/> nbemmcmd -listmedia -mediaid NB4643
NBEMMCMD, Version: 7.6.0.4
====================================================================
Media GUID:                     724cce66-041c-11e5-8000-9f7d800df82c
Media ID:                       NB4643
Partner:                        -
Media Type:                     HCART2
Volume Group:                   000_00002_
Application:                    Netbackup
Media Flags:                    1
Description:                    Added by Media Manager
Barcode:                        NB04643L3
Partner Barcode:                --------
Last Write Host:                NONE
Created:                        05/27/2015 07:59
Time Assigned:                  -
First Mount:                    -
Last Mount:                     -
Volume Expiration:              -
Data Expiration:                -
Last Written:                   -
Last Read:                      -
Robot Type:                     TLD
Robot Control Host:             rchnbump1
Robot Number:                   2
Slot:                           141
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               0
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      0
Images:                         0
Valid Images:                   0
Retention Period:               -
Number of Restores:             0
Optical Header Size Bytes:      0
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             0
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    -
Server Group:                   -
Upgrade Conflicts Flag:
Pool Number:                    23
Volume Pool:                    Offsite-I500
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

 

 

 

The bpimport I tried two different ways:

bpimport -create_db_info -id NB4643 -server rchnbump1

bpimport -create_db_info -id NB4643

 

Marianne
Level 6
Partner    VIP    Accredited Certified

bpimport -create_db_info -id NB4643 -server rchnbump1
should work...

I would expect the 'no server' version of the command to try master server.

No need to try and change ownership as this media is not Assigned yet.

What happens when you specify rchnbump1?

What is the actual media type of this tape? LTO3 I presume?

The media type in NBU is hcart2.
What density are the tape drives configured for 
rchnbump1 in TLD(2)? 
And what is the real media type?

So, in NBU, the media type must match - tape and drive must be hcart2.
If LTO3 tape, actual drive type must be LTO3, LTO4 or LTO5 to allow tape mount and read of media.

 

spitman
Level 5

Oh for crying out loud.    lol

Sometimes you just need a second set of eyes. I guess I had tried a handful of tapes so many times this way, and that way, that after correcting the media id I hadn't tried it again specifying the rchnbump1 name. That worked. 

Marianne, seriously, if you're ever in Dallas I'm buying you a beer.  ;)

 

Susan

spitman
Level 5

.

Marianne
Level 6
Partner    VIP    Accredited Certified

We all need that 2nd pair of eyes! 

Good luck! 

Hope I make it to Dallas in this lifetime... :)