Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Secondary tape library - NBU

Created: 21 Jun 2013 • Updated: 05 Jul 2013 | 16 comments
This issue has been solved. See solution.

Hi ,

i our org we had only one TL.. we have installed a new one and have configures the devices.. now i can see all the drives in my master/media svr.

I tried run a restoration via secondary TL.. hence inserted the required media and startde restore.. my master server made a lookup on TL1 and qued the job as media not available.. and it seems that it has not checked for the media in my net TL i.e. TL2.

Please advice what should be checked.

Operating Systems:

Comments 16 CommentsJump to latest comment

Solution4all's picture

Hi Jacob,

Please run inventory and updat volume configuration on TL2 before running restore.

thanks

Jacob_Ruben's picture

I tried the above.. but it still didnt worked.

Nicolai's picture

A restore has to be performed on the same media server as the one that created the backup.

Has the media server that did the backup tape drives in both robots ?

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Jacob_Ruben's picture

No, the backup was taken on a different TL & Media server on a different location.

We have added the force restore entry on our master/media server bp.conf file... so the restoration proceeds with our own media server.

We just added ESL G3 lib and did the config. i can scan and see the drives. also able to control the robot via robtest.

Nicolai's picture

OK - new information. You did not tell us that you are using FORCE_MEDIA_RESTORE directive.

Was this backup made by this media server ?

If not - did you import the media (tell us how)?

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Jacob_Ruben's picture

No its a different media server - but please note i can still do the restoration with my Tape library one

i didnt import the media -- after congiguring i just inserted a media and tried to restore a content from it.

mph999's picture

You need to run an inventory after moving the media to another library.

Additionally, the new library should be set up to display the same number of characters in the barcode as the old.

(This is a library setting, not NBU).

Martin

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Jacob_Ruben's picture

I ran a inventory in the tape lib , still not working..sad

Marianne's picture

Did you add FORCE_RESTORE_MEDIA_SERVER entry in bp.conf on the master server?

Entry should look like this:

FORCE_RESTORE_MEDIA_SERVER = <old-server> <new-server> 

Next, ensure that bprd log folder exists on the master server.
If not, create the folder and restart NBU on the master to enable the log.

You will be able to see in bprd log how master server finds media server ownership as <old-server. and then sends the restore to <new-server> because of FORCE_RESTORE entry.

Another method is to transfer ownership of media to new server:

bpmedia -m <media-id> -oldserver <old-server> -newserver <new-server>

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Jacob_Ruben's picture

Hi Marianne,

We have the FORCE_RESTORE_MEDIA_SERVER = <old-server> <new-server> in the bp.conf.

The thing is that , we have not added a media server .. we have just added a new tape library  and want to start restoration via the new TL

Thanks

Jacob

Jacob_Ruben's picture

Please advice, is there a way where NBU can check for the media in all the library...

i.e. it checked for the media in TL1 and if it doesnt find the media then it should refer the TL2 inventory.

Marianne's picture

Please show us output of:

nbemmcmd -listmedia -mediaid <media-id>

This command will show you the location of the media as well as the media server that last wrote to the tape (media owner).
The media server that did the backup must have access to the library where the media is.
If you need another media server to perform the restore, you need to add FORCE_RESTORE.... entry to bp.conf or change media ownership with bpmedia as per my previous post.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Jacob_Ruben's picture

bkpsvr:root-/]nbemmcmd -listmedia -mediaid STO756
NBEMMCMD, Version:7.1
====================================================================
Media GUID:                     f4f4e036-038b-11e2-8000-e560cf3057eb
Media ID:                       STO756
Partner:                        -
Media Type:                     HCART
Volume Group:                   000_00001_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    Added by Media Manager
Barcode:                        STO756L4
Partner Barcode:                --------
Last Write Host:                NONE
Created:                        09/20/2012 20:00
Time Assigned:                  -
First Mount:                    10/17/2012 22:51
Last Mount:                     06/19/2013 19:55
Volume Expiration:              -
Data Expiration:                -
Last Written:                   -
Last Read:                      06/19/2013 19:55
Robot Type:                     TLD
Robot Control Host:             bkpsvr
Robot Number:                   1
Slot:                           1
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               10
Maximum Mounts Allowed:         0
Media Status:                   ACTIVE
Kilobytes:                      0
Images:                         0
Valid Images:                   0
Retention Period:               -
Number of Restores:             18
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:                    bkpsvr
Server Group:                   -
Upgrade Conflicts Flag:
Pool Number:                    1
Volume Pool:                    NetBackup
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
====================================================================
Command completed successfully.

*************************

Here is the output and i do have the force restore entry..
 

Marianne's picture

Media id STO756 has no valid images. All images have expired. There is nothing to restore from it

Last Write Host:                NONE
Time Assigned:                  -

Data Expiration:                -
Robot Type:                     TLD
Robot Control Host:             bkpsvr
Robot Number:                   1
Slot:                           1
Kilobytes:                      0
Images:                         0
Valid Images:                   0
Retention Period:               -

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Jacob_Ruben's picture

Ok i tried a diferent media now.. iam getting the below message

06/26/2013 20:15:21 - awaiting resource STO978.
          A pending request has been generated for this resource request.
          Operator action may be required. Pending Action: No action,
          Media ID: STO978, Barcode: STO978L4, Density: hcart, Access Mode: Read,
          Action Drive Name: N/A, Action Media Server: N/A, Robot Type(Number): 0(N/A),
          Volume Group: 000_00001_TLD, Action Acs: N/A, Action Lsm: N/A

As you can see , its searching for the media in TL 1 i.e. Robot Type(Number): 0.. but not in TL2

Jacob_Ruben's picture

I have found the solution, i had to change the density volume of the tape before restoring , and used the below command

vmchange.exe -new_mt HCART2 -m mediaid

It worked well :)

SOLUTION