Video Screencast Help

How to Restore Data from tape using backup id?

Created: 26 Dec 2012 • Updated: 26 Dec 2012 | 3 comments
This issue has been solved. See solution.

Hello!

we have backup  - which did not finish successfuly,  because netbackup unable to allocate new media.

see logs below

14.12.2012    16:43:16    netbackup    server1    Info    66310    Media Device    begin writing backup id server1_1355488826, copy 1, fragment 1, to media id P845L4 on drive HP.ULTRIUM4-SCSI.000 (index 0)    
16.12.2012    19:23:03    netbackup    server1    Info    66310    Backup    successfully wrote backup id server1_1355488826, copy 1, fragment 1, 608260160 Kbytes at 3335.191 Kbytes/sec  
17.12.2012    04:41:52    netbackup   server1    Info    66310    Media Device    begin writing backup id server1_1355488826, copy 1, fragment 2, to media id P820L4 on drive HP.ULTRIUM4-SCSI.002 (index 2)    
17.12.2012    15:45:40    netbackup    server1    Info    66310    Backup    successfully wrote backup id server1_1355488826, copy 1, fragment 2, 115409984 Kbytes at 2898.443 Kbytes/sec    
18.12.2012    00:11:12    netbackup    server1    Info    66310    Backup Status    unable to allocate new media for backup, storage unit has none available     server1_data

Is it possible to see what data was backup on the tape using backup id - before the process was stoped  and may be recover anytning?

Sincerely yours,

Stanislav

Comments 3 CommentsJump to latest comment

Nagalla's picture

hi,

unless your backup compleated with status code 0 or 1, you can not use the data for restore..

 

Netbackup restore browses the data form catalog, and the catalogs created only with the backup compleated with status code 0 or 1.

so its simply..

whith out backup status code 0 or 1 ----> no catalog.

no catalog -----> no restore.

 

to confirm this.. once your job is compleated(other than 0 or 1).. you can browse your catalog to see if you are able to find the image id server1_1355488826

bpimagelist -backupid server1_1355488826

SOLUTION
bills's picture

What Nagalla says is true as far as a NetBackup directed restore goes, but it IS possible to recover the bits of data that were backed up before the job failed.

IF the fragments haven't been overwritten (because NBU will disregard them once the backup fails and reallocate that same tape space for new backups), you can use tar to get the data back, which is documented in a few places, including https://www-secure.symantec.com/connect/blogs/how-use-tar-restore-data-tape.

I've never done this, and I hear it is unpleasant, but it IS possible....

Bill