06-16-2016 09:06 AM
Hi,
I have customer where they want to IMPORT an Image from Expired Tapes. All is good so far and the IMPORT of an Image is taking long (which is normal).
The Only concern i have is there any way to check the sizes of the Images? so that i can import an appropriate Image by checking the size.
Below screen shot shows the image i am trying to Import ( all i want if there is way to check the size of the IMAGE on EXPIRED Tape)
Solved! Go to Solution.
06-16-2016 01:06 PM
06-16-2016 01:06 PM
Short answer:no
NetBackup only knows size for active images.
06-16-2016 01:14 PM
Hi Will,
Thanks for responding, okay do you have it some where documented? so that i can have valid prove to put infront of customer?
Appreciate it
Regards,
Kernal
06-16-2016 01:25 PM
Did you checked with OPS center?
06-16-2016 02:16 PM
Hi Onur,
No OPS Center in the Enviroment.
Thanks
Kernal
06-16-2016 04:11 PM
As far as documentation, I think the screenshot above is pretty good.
06-16-2016 04:16 PM
Hi Will,
Thanks for the comment.
06-16-2016 04:30 PM
Hi Kernal
You should be able to use the "bpmedialist -mcontents -m <MediaID>" command to check the images/fragments on the tape.
It may take some peicing together of the information as the output is by fragment, but each fragment will have a size you can total together - check the reference guide for bpmedialist for details on the output.
There may be additional challenges with images spread across multiple tapes, but if confined to a single tape this should provide the information you need.
Cheers
David
06-17-2016 11:34 PM
Unfortunately, bpmedialist -mcontents won't work if the tape is expired - you would have to phase 1 import it first.
bpmedialist is a command that 'uses' what we call the 'media DB'. A tape is only in the 'media DB' if it has an assign time. An expired tape has no Assign time, and so bpmedialist command will just error.
root@womble sql $ bpmedialist
Server Host = womble
id rl images allocated last updated density kbytes restores
vimages expiration last read <------- STATUS ------->
On Hold
--------------------------------------------------------------------------------
TAPE01 0 1 06/17/2016 09:41 06/17/2016 09:41 hcart 32 0
1 06/24/2016 09:34 N/A
0
Expire the tape
root@womble sql $ bpexpdate -d 0 -force -m TAPE01
Try a bpmedialist command
root@womble sql $ bpmedialist -m TAPE01
requested media id is not assigned to this host in the EMM database
After a phase 1 import, bpmedialist reports the tape (so it has made an entry for it in the media DB)
--------------------------------------------------------------------------------
TAPE01 0 1 06/17/2016 09:41 N/A hcart 0 0
0 06/25/2016 07:38 N/A IMPORTED
0
Then mcontents will work ...
root@womble sql $ bpmedialist -mcontents -m TAPE01
media id = TAPE01, allocated 06/17/2016 09:41, retention level = 0, Media on Hold = 0
File number 1
Backup id = womble_1466152452
Creation date = 06/17/2016 09:41
Expiration date = 06/24/2016 09:34
Retention level = 0
Copy number = 2
Fragment number = 1
Block size (in bytes) = 65536