cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot restore from imported tape

Steve_Law
Level 4

Hi,

We've installed a new tape library into our secondary site. We need to test that the tapes it writes to can be read from our library in the primary site so we took one up there, placed it in the library.  

The backup wasoriginally written by dwb004 on 30th Aug, dwb004 is the media server that controls the tape drive on the secondary site. I imported the tape into the primary site library: I went to the catalog, selected Actions\Initiate import, selected the media server bc11n1v1 that can see the primary site library and added the tape name MB2006. The result was:

import1.JPG

 When I attempted the seond phase of import I configured the catalog as below but it reported there no images ready for phase 2 import:

import2.JPG

 

I assumed that this was because the backup images on the tape were not expired, so Netbackup was already aware of them. 

Now I am hitting a problem restoring to a server on the primary site called swa009. I set the Netbackup Machines and policy type to:

Server to use for backups and restores:  swm009.corpadds.net (this is the master)
Source client for restores:  dwb004.dcsit.net (where the backed up data was backed up from; dwb004 is also a media server)
Destination client:  swa009
Policy Type: MS_Windows.

The restore util shows me the backups from 30th Aug, I select one file (it's just a test) and start the restore, but get this error: 

02/09/2015 14:17:25 - begin Restore
02/09/2015 14:17:25 - 1 images required
02/09/2015 14:17:25 - media MB2006 required
02/09/2015 14:17:27 - restoring image dwb004.dcsit.net_1440958515
02/09/2015 14:17:33 - requesting resource MB2006
02/09/2015 14:17:33 - awaiting resource MB2006 A pending request has been generated for this resource request.
     Operator action may be required. Pending Action: No action.,
     Media ID: MB2006, Barcode: MB2006, Density: hcart, Access Mode: Read,
     Action Drive Name: N/A, Action Media Server: dwb004.dcsit.net, Robot Number: N/A, Robot Type: NONE,
     Volume Group: 001_00002_TLD, Action Acs: N/A, Action Lsm: N/A
    
02/09/2015 14:17:34 - awaiting resource MB2006 A pending request has been generated for this resource request.
     Operator action may be required. Pending Action: No action.,
     Media ID: MB2006, Barcode: MB2006, Density: hcart, Access Mode: Read,
     Action Drive Name: N/A, Action Media Server: dwb004.dcsit.net, Robot Number: N/A, Robot Type: NONE,
     Volume Group: 001_00002_TLD, Action Acs: N/A, Action Lsm: N/A
    
02/09/2015 14:17:56 - Info bpbrm(pid=8680) swm009.corpadds.net is the host to restore to      
02/09/2015 14:17:56 - Info bpbrm(pid=8680) telling media manager to start restore on client     
02/09/2015 14:18:01 - Info bpbrm(pid=8904) swm009.corpadds.net is the host to restore to      
02/09/2015 14:18:01 - connecting
02/09/2015 14:18:02 - Info bpbrm(pid=8904) start tar32 on client         
02/09/2015 14:18:06 - Info tar32(pid=2768) Restore started.           
02/09/2015 14:18:06 - connected; connect time: 00:00:05


On the primary site bc11n1v1 is the media server connected to the tape library and I was expecting bc11n1v1 to perform the restore. But dwb004 (the secondary site media server that controls the library there) seems be trying to restore. The primary site tape library TLD(2) knows tape MB2006 is present:

import4.JPG

(Note: bc11n1v1 is the media server that writes to and reads from the primary site tape library but bc20n0v0 is the robot control host). 

I set the image on MB2006 as the primary:
import3.JPG
 

So why isn't the primary site media server bc11n1v1 finding the tape and running the restore? 

Thanks for any help!

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

So - media servers dwb004 and bc11n1v1 both belong to the same master server, right?

That is why the import failed - the master already has catalog entries for this tape.

To use bc11n1v1 to restore, you need to transfer ownership of the tape:

bpmedia -movedb -m MB2006 -oldserver dwb004  -newserver bc11n1v1

View solution in original post

5 REPLIES 5

Marianne
Level 6
Partner    VIP    Accredited Certified

So - media servers dwb004 and bc11n1v1 both belong to the same master server, right?

That is why the import failed - the master already has catalog entries for this tape.

To use bc11n1v1 to restore, you need to transfer ownership of the tape:

bpmedia -movedb -m MB2006 -oldserver dwb004  -newserver bc11n1v1

Steve_Law
Level 4

Aha ok restore has completed. On a hunch a colleague added Media Host Override settings on all involved media servers and the master:

import5.JPG

That was applied to the master (swm009), the original media server on the secondary site that wrote the tape backup (dwb004), and the media server on the primary site that is reading the tape (bc11n1v1).

Can anyone explained why it is fixed and which entry on which server fixed it? 

Also do I now need to clear these Media Host Override entries from any or all servers?

Restore log:

02/09/2015 14:59:42 - begin Restore
02/09/2015 14:59:44 - 1 images required
02/09/2015 14:59:44 - media MB2006 required
02/09/2015 14:59:47 - restoring image dwb004.dcsit.net_1440958515
02/09/2015 14:59:52 - requesting resource MB2006
02/09/2015 14:59:53 - granted resource MB2006
02/09/2015 14:59:53 - granted resource IBM.ULTRIUM-TD4.008
02/09/2015 14:59:55 - Info bpbrm(pid=29751) swa009.emea.corpds.net is the host to restore to      
02/09/2015 14:59:55 - Info bpbrm(pid=29751) telling media manager to start restore on client     
02/09/2015 14:59:55 - Info bpbrm(pid=29751) spawning a brm child process        
02/09/2015 14:59:55 - connecting
02/09/2015 14:59:55 - Info bpbrm(pid=29751) child pid: 29847          
02/09/2015 14:59:56 - Info bpbrm(pid=29847) start tar on client         
02/09/2015 14:59:57 - mounted
02/09/2015 14:59:57 - Info bptm(pid=29791) MB2006            
02/09/2015 14:59:58 - Info bptm(pid=29791) INF - Waiting for positioning of media id MB2006 on server bc11n1v1.dcsit.net for reading.
02/09/2015 14:59:58 - positioning MB2006 to file 1
02/09/2015 15:00:01 - Info tar(pid=3032) Restore started.           
02/09/2015 15:00:01 - connected; connect time: 00:00:06
02/09/2015 15:00:52 - positioned MB2006; position time: 00:00:54
02/09/2015 15:00:52 - begin reading
02/09/2015 15:01:52 - restored image dwb004.dcsit.net_1440958515 - (the requested operation was successfully completed(0)); restore time 00:02:05
02/09/2015 15:01:55 - Info tar(pid=3032) done. status: 0          
02/09/2015 15:01:55 - Info bpbrm(pid=29751) media manager for backup id dwb004.dcsit.net_1440958515 exited with status 0: the requested operation was successfully completed
02/09/2015 15:01:55 - end reading; read time: 00:01:03
02/09/2015 15:01:56 - Info tar(pid=3032) done. status: 0 - the requested operation was successfully completed   
02/09/2015 15:01:55 - end Restore; elapsed time: 00:02:13
02/09/2015 15:01:56 - Info tar(pid=3032) done. status: 0 - the requested operation was successfully completed   
the requested operation was successfully completed(0)

 

Thanks 


 

Marianne
Level 6
Partner    VIP    Accredited Certified

Media Host Override will redirect ALL restores for dwb004.

That is not necessarily what you want, right?

Changing media ownership with bpmedia is a much safer option.

Steve_Law
Level 4

Thanks Marianne. I'd never even heard of media ownership. We've only recently begun wiritng to tape with Netbackup.

Is media ownership just a tape thing? Didn't seem to be an issue with backup images on Data Domain.... 

Marianne
Level 6
Partner    VIP    Accredited Certified
Yes. Media /image ownership is a tape thing. If you run Media List report (bpmedialist from cmd), you will see that the media is 'owned ' by the media server that wrote the tape. Restore instruction is sent to this media server.