cancel
Showing results for 
Search instead for 
Did you mean: 

nbu bpduplicate

noazara
Level 6
   VIP   

command to duplicate from tape to disk?

Tapes have been imported from site A to site B.

 

On site B phase 2 import completed successfully.

 

Now restore needs to be done from disk on site B.For this we need to duplicate to local disk on site B.(AND THAT WILL BE PRIMARY COPY.ONLY ONE COPY IS NEEDED.

 

PLEASE PROVIDE THE COMMAND.

 

sudo ./bpduplicate -id L00005  -dstunit STU1-DD

Duplicate started Tue 02 Jul 2013 03:16:25 PM CDT
Activity monitor job id = 14569
INF - found no images or media matching the selection criteria
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions

mph999
Level 6
Employee Accredited

This is how easy it is ...

root@nbmaster00 admin $ bpmedialist -m E01010 -mcontents
media id = E01010, allocated 07/02/2013 14:31, retention level = 1
 
File number 1
  Backup id = nbmaster00_1372800666
  Creation date = 07/02/2013 14:31
  Expiration date = 07/16/2013 14:31
  Retention level = 1
  Copy number = 1
  Fragment number = 1
  Block size (in bytes) = 65536
 
Then for each backupid (only one on this tape)
 
root@nbmaster00 admin $ bpduplicate -backupid nbmaster00_1372800666 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 03:28:47 PM PDT
Activity monitor job id = 485
INF - Skipping backup id nbmaster00_1372800666, it already has 2 copies.
 
INF - found no images or media matching the selection criteria
root@nbmaster00 admin $ bpduplicate -backupid nbmaster00_1372800666 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 03:29:57 PM PDT
Activity monitor job id = 486
INF - Skipping copy 2 of backup id nbmaster00_1372800666, is not required copy 1.
 
INF - Destination storage unit nbmaster00-disk on host nbmaster00
INF - Duplicating policy tape schedule Full backup id nbmaster00_1372800666 copy 1 created on 07/02/2013 14:31:06 on source media id E01010
 

 

View solution in original post

19 REPLIES 19

revarooo
Level 6
Employee

What does this command show? : bpimmedia -l -mediaid L00005

 

mph999
Level 6
Employee Accredited
I could be wrong, but I have a strong feeling that it is not possible to dupplicate a tape that has been imported. I am 99% sure of this. Martin

noazara
Level 6
   VIP   

It is possible.

@REVAROO:

 

IMAGE vm01 8 vm01_1371931215 bc-NT-OS 13 FULL 0 0 1696711 1375806511 0 0
FRAG 3 -1 231638 0 2 6 2 L00005 linux02 65536 637584 1372170107 -1 0 *NULL* 0 0 0 0 *NULL*
FRAG 3 1 40805087 0 2 6 1 L00005 linux02 65536 2 1372170107 -1 0 *NULL* 1375806511 0 0 0 *NULL*
IMAGE VM0048 VM004_1371931200 POL-OS 13 FULL 0 0 150142 1375807564 0 0
FRAG 3 -1 18746 0 2 6 4 L00005 linux02 65536 991463 1372170107 -1 0 *NULL* 0 0 0 0 *NULL*
FRAG 3 1 22416267 0 2 6 3 L00005 linux02 65536 641206 1372170107 -1 0 *NULL* 1375807564 0 0 0 *NULL*
IMAGE VM038_1371859221 POL34 13 Full 0 0 15 1375807803 0 0
FRAG 3 1 2224647 0 2 6 6 L00005 linux02 65536 1060811 1372170107 -1 0 *NULL* 1375807803 0 0 0 *NULL*
IMAGE LX02 8 LX02_1372233601 POL6565 0 FULL 0 0 87714 1375808857 0 0
FRAG 2 -1 10650 0 2 6 12 L00005 linux02 65536 3703353 1372170107 -1 0 *NULL* 0 0 0 0 *NULL*
FRAG 2 1 104498208 0 2 6 11 L00005 linux02 65536 2070566 1372170107 -1 0 *NULL* 1375808857 0 0 0 *NULL*
IMAGE LX02 8 LX02_1372208401 POL344 0 FULL2 0 0 7967 1375808321 0 0
FRAG 2 -1 1088 0 2 6 10 L00005 linux02 65536 2070547 1372170107 -1 0 *NULL* 0 0 0 0 *NULL*
FRAG 2 1 32159040 0 2 6 9 L00005 linux02 65536 1568060 1372170107 -1 0 *NULL* 1375808321 0 0 0 *NULL*
IMAGE LX02 8 LX02_1372172400 POL344 0 FULL1 0 0 7499 1375807821 0 0
FRAG 2 -1 1024 0 2 6 8 L00005 linux02 65536 1568042 1372170107 -1 0 *NULL* 0 0 0 0 *NULL*
FRAG 2 1 30237792 0 2 6 7 L00005 linux02 65536 1095574 1372170107 -1 0 *NULL* 1375807821 0 0 0 *NULL*
IMAGE vm028 usaxcs4056vdb02.na.xerox.net_1371859209 POL3445 13 Full 0 0 13826 1375807771 0 0
FRAG 3 1 4419233 0 2 6 5 L00005 linux02 65536 991758 1372170107 -1 0 *NULL* 1375807771 0 0 0 *NULL*
 
 
 
 
Please provide me the correct syntax

 

revarooo
Level 6
Employee

Try duplicating using the images

noazara
Level 6
   VIP   

I need to have the command so that duplication can occur from the media id.

 

That will be simple for me.we have 20 medias.

mph999
Level 6
Employee Accredited
I really really think it is not possiible. You appear to have the correct syntax. Tell you what, I'll try it - need a few mins to log on to a server and run the test

John_P_Lockney
Level 3
Certified

Syntax is out of order (?)  Try it with the destination STU first:

sudo ./bpduplicate  -dstunit STU1-DD  -id L00005

 

noazara
Level 6
   VIP   

Ok Martin.

 

We have data domain.One duplication to disk is running successfully from tape.

mph999
Level 6
Employee Accredited

OK, first, this is a duplication to disk, using the sytax you had, on a tape that was not imported

root@nbmaster00 testdata $ bpduplicate -id E01010 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 02:35:00 PM PDT
Activity monitor job id = 468
INF - Destination storage unit nbmaster00-disk on host nbmaster00
INF - Duplicating policy tape schedule Full backup id nbmaster00_1372800666 copy 1 created on 07/02/2013 14:31:06 on source media id E01010
INF - Duplicate of backupid nbmaster00_1372800666 successful.
 
INF - Status = successfully duplicated 1 of 1 images.
 
It works fine.
 
Next I will export, then import the tape and use the same command to try and duplicat it to the same STU.
 
Back in a couple of mins ...

noazara
Level 6
   VIP   

U have copied here from disk to tape?

mph999
Level 6
Employee Accredited

Hmm, small delay, the import is failing for some reason - might need to grab another machine ...

 

noazara
Level 6
   VIP   

ok Martin.Take ur time

mph999
Level 6
Employee Accredited

OK, fixed, tape imported:

 

 
 id     rl  images   allocated        last updated      density  kbytes restores
           vimages   expiration       last read         <------- STATUS ------->
--------------------------------------------------------------------------------
E01010   1      1   07/02/2013 14:31        N/A          hcart          32     0
                1   07/16/2013 14:51  07/02/2013 14:51  IMPORTED
 
OK, it did import, so I was mistaken ....
 
root@nbmaster00 tmp $ bpduplicate -id E01010 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 02:52:42 PM PDT
Activity monitor job id = 477
INF - Destination storage unit nbmaster00-disk on host nbmaster00
INF - Duplicating policy tape schedule Full backup id nbmaster00_1372800666 copy 1 created on 07/02/2013 14:31:06 on source media id E01010
INF - Duplicate of backupid nbmaster00_1372800666 successful.
 
INF - Status = successfully duplicated 1 of 1 images.
 
So, can we see the output of bpmedialist -m L00005
 
 

 

noazara
Level 6
   VIP   
/bpduplicate -id L00005  -dstunit STU1-DD 
 
Duplicate started Tue 02 Jul 2013 04:54:11 PM CDT
Activity monitor job id = 2779
INF - found no images or media matching the selection criteria
 
 
 
id     rl  images   allocated        last updated      density  kbytes restores
           vimages   expiration       last read         <------- STATUS ------->
--------------------------------------------------------------------------------
L00005   0     12   06/25/2013 09:21        N/A          hcart   237023420     0
               12   08/06/2013 12:07  07/02/2013 12:07  IMPORTED
 
 
 
 

mph999
Level 6
Employee Accredited

Hmm, not sure whats going on here, without looking in bpdbm log, and even then it may not be too clear.

How about this:

Run bpmedialist -m L00005 -mcontents

Grab the backup ids and then duplicate via backupid

bpduplicate -backupid <backupid>  -dstunit L00005

Not ideal, but it will hopefully get the job done.

Martin

mph999
Level 6
Employee Accredited

Opps, make that the admin log as well ...

noazara
Level 6
   VIP   

I need to get the data on disk .

mph999
Level 6
Employee Accredited

Hopefully you will.

If you run mcontents, then you will list the backup ids on the tape, then for each backup id run the bpduplicate command like I have shown.

It works around the problem.

Another option, expire the tape and reimport it, perhaps something isn't quite right and it will work second time around.

I can't think of many other options, sure we can spend time looking in the admin log, but at the end of the day, that isn't going to make it work, it might tel us why, but I would suggest trying these two suggestions, and then if still no progress, look in the logs.

It is late here, I have to go soon as I need some sleep - I'll check back in a few mins, but I'm not sure what else I can do at the moment.

M

mph999
Level 6
Employee Accredited

This is how easy it is ...

root@nbmaster00 admin $ bpmedialist -m E01010 -mcontents
media id = E01010, allocated 07/02/2013 14:31, retention level = 1
 
File number 1
  Backup id = nbmaster00_1372800666
  Creation date = 07/02/2013 14:31
  Expiration date = 07/16/2013 14:31
  Retention level = 1
  Copy number = 1
  Fragment number = 1
  Block size (in bytes) = 65536
 
Then for each backupid (only one on this tape)
 
root@nbmaster00 admin $ bpduplicate -backupid nbmaster00_1372800666 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 03:28:47 PM PDT
Activity monitor job id = 485
INF - Skipping backup id nbmaster00_1372800666, it already has 2 copies.
 
INF - found no images or media matching the selection criteria
root@nbmaster00 admin $ bpduplicate -backupid nbmaster00_1372800666 -dstunit nbmaster00-disk
Duplicate started Tue 02 Jul 2013 03:29:57 PM PDT
Activity monitor job id = 486
INF - Skipping copy 2 of backup id nbmaster00_1372800666, is not required copy 1.
 
INF - Destination storage unit nbmaster00-disk on host nbmaster00
INF - Duplicating policy tape schedule Full backup id nbmaster00_1372800666 copy 1 created on 07/02/2013 14:31:06 on source media id E01010