cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to restore from tape with system assgined medi id a000

rsakimoto
Level 5

Hi,

I have a tape that was labled by system default to A00070. Now I already put barcode sticker with  standard label (T151**). I need to restore data in that tape but it is finding the default media id A00070. When I browsed in the catalog, it can query the default media label A00070. To be able to restore its data, do I need first to do VMCHANGE the tape so as to label it with the standard barcode label, so it will reflect as Media ID: A00070 / Barcode: T151**  as the standard label? Doing that does not permit me, it says "could not change media ID.. Could not connect to vmd on host A00070. Or how can I restore its data with the default media id of A00070? I tried physical inventory vmphyinv but says -  "Skipping media ID A00070 as the media is not present in the robot slot 0
No media belongs to the specified robot (0)" When I do inventory robot and update volume config, it can scan the standard label T15**. Any known or similar scenario like this?

Thanks

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified
I'm battling a bit to understand which label is now on which tape. You cannot change the internal label - only the barcode. Let's say you put barcode label T15*** on the tape that you thought was A00070, but in fact it is actually A00071. And T16*** is actually A00070. Assuming these are sticky labels, it is not possible to swap the labels. Hopefully you have not yet linked T16*** to A00071? Assuming you have not, do this: Eject A00070 from the robot. Both tapes should now be out of the robot. vmchange A00070 to barcode T16*** vmchange A00071 to barcode T15*** Put A00070 with label T16*** in the robot and Inventory. Restore should now be fine.

View solution in original post

rsakimoto
Level 5

Created new barcode sticker. Stick to the affected tape. Ran again robot inventory update config. Tape was detected/read to its correct label media id: A00040/ Barcode: T16**

View solution in original post

21 REPLIES 21

Marianne
Level 6
Partner    VIP    Accredited Certified
Yes you need to do vmchange. The error is because you did something wrong in the command options.

Marianne
Level 6
Partner    VIP    Accredited Certified
vmchange -barcode T151*** -m A00070

rsakimoto
Level 5

Hi Marianne,

I got this after re-checking my vmchange. "Could not change media ID A00070: the media is allocated for use (199)."

 

Marianne
Level 6
Partner    VIP    Accredited Certified
Restore waiting for media-id? Cancel the restore, then check for resource allocation on the media with nbrbutil -dump. Check the bottom section (MdsAllocations) for media-id. Clear the resource allocation with nbrbutil -releaseMDS 'allocation key'. clear all: nbrbutil -reset_all (if no other jobs are running.) Remember to do normal inventory after vmchange, then retry the restore.

rsakimoto
Level 5

Hi Marianne,

I was able to to vmchange the media id A00070 to the barcode label sticker T151*** after releaseing the allocation key via nbrbutil. Thanks to that.

So when I tried to restore the needed backup id from the tape, it was incomplete. I got this and got me confused that it says 'incorrect media found in drive index 0, expected A00070, found A00071. A00071 is also a default media id tape that is assigned to a different media pool. And when I queried A00071 in the catalog where it found it and tried to restore a sample backup id from it, it didnt push through the restore cause that tape is not in the library. Instead what I put is the A00070/T151***. Pls see logs:

1/28/2016 3:06:17 PM - begin Restore
1/28/2016 3:06:17 PM - 1 images required
1/28/2016 3:06:17 PM - media A00070 required
1/28/2016 3:06:19 PM - restoring image BDBS0128_1446228688
1/28/2016 3:06:26 PM - requesting resource A00070
1/28/2016 3:06:27 PM - granted resource A00070
1/28/2016 3:06:27 PM - granted resource HP.ULTRIUM5-SCSI.000
1/28/2016 3:07:46 PM - restored image BDBS0128_1446228688 - (media manager found wrong tape in drive(93)); restore time 00:01:27
1/28/2016 3:07:46 PM - Warning bprd(pid=12672) Restore must be resumed prior to first image expiration on 10/28/2025 2:11:28 AM
1/28/2016 3:07:46 PM - end Restore; elapsed time: 00:01:29
1/28/2016 3:26:09 PM - Info bpbrm(pid=300) BDNBU002 is the host to restore to      
1/28/2016 3:26:09 PM - Info bpbrm(pid=300) telling media manager to start restore on client     
1/28/2016 3:26:13 PM - Info bpbrm(pid=8020) BDNBU002 is the host to restore to      
1/28/2016 3:26:13 PM - connecting
1/28/2016 3:26:14 PM - Info bpbrm(pid=8020) start tar32 on client         
1/28/2016 3:26:14 PM - Info bptm(pid=5620) Waiting for mount of media id A00070 (copy 2) on server bdnbu004.
1/28/2016 3:26:14 PM - started process bptm (5620)
1/28/2016 3:26:14 PM - mounting A00070
1/28/2016 3:26:16 PM - Info bptm(pid=5620) INF - Waiting for mount of media id A00070 on server bdnbu004 for reading.
1/28/2016 3:26:17 PM - Info tar32(pid=13304) Restore started.           
1/28/2016 3:26:17 PM - connected; connect time: 00:00:04
1/28/2016 3:27:30 PM - Error bptm(pid=5620) incorrect media found in drive index 0, expected A00070, found A00071  
1/28/2016 3:27:32 PM - Error bptm(pid=8272) The following files/folders were not restored:       
1/28/2016 3:27:32 PM - Error bptm(pid=8272) UTF - /E/prod/bdofrontendsystem/Database/BDFELocal.MDB          
1/28/2016 3:27:33 PM - Info tar32(pid=13304) done. status: 0          
1/28/2016 3:27:33 PM - Info bpbrm(pid=300) got ERROR 93 from media manager       
1/28/2016 3:27:33 PM - Info bpbrm(pid=300) terminating bpbrm child 8020 jobid=684264        
Restore error(2850)
1/28/2016 3:27:33 PM - Info tar32(pid=13304) done. status: 0 - the requested operation was successfully completed  

 

 

Marianne
Level 6
Partner    VIP    Accredited Certified

You will need to mount your re-labelled tapes one-by-one to confirm what the internal label is 
(use 'vmoprcmd -d ds' after mounting) 
and then 'marry' internal and external label using vmchange.

You will first need to find A00070, do vmchange using correct external barcode, then do vmchange for A00071.

rsakimoto
Level 5

I have vmchange already A00070 with its correct external barcode which is T151***. Then inventoried robot and now it is present in media pool. I was not able to vmchange it before cause it wont allow me due to said media is allocated for use (199). So I did nbrbutil release the allocation key assigned to media id A00070. A000070 is now present in the library which I retrieved from our vault to restore data on it. It is also a tape assigned as a monthly tape. A00071 is only a daily tape which we dont need to vmchange to match with barcode label yet. Prior to everything I did, when I retrieved the tape A00070 and put in the library, I was already gonna VMCHANGE it to its correct barcode label, but I typo error in the command the media id to -m A00071. Where it should be A00070. But then it didn't proceed cause it detected its incorrect media  assigned. And so I VMCHANGE the correct media id A00070, and then I got the error "Could not change media ID A00070: the media is allocated for use (199)." You think it got something to do when I commanded the incorrect media id (though it didnt proceed)?

Thanks

rsakimoto
Level 5

One thing also, the tape A00070 is physically write protected (just not to be accidentally written). It doesn't matter right? I can still restore data from it?

sdo
Moderator
Moderator
Partner    VIP    Certified

Write protect does not affect restore.

Marianne
Level 6
Partner    VIP    Accredited Certified

I agree with sdo - Write Protect does what it says - prevents tape from being written.
Write Protect turns tape to read-only - meaning you can read/restore from it.

rsakimoto
Level 5

Yes. Why do you think when restoring the specific backup image I need, media manager is saying it found wrong tape in drive (93) where it is the correct tape I put in the library. And after I vmchange it to its correct barcode label. Cause based on the logs of restore, it found the backup image.

Marianne
Level 6
Partner    VIP    Accredited Certified

Nope. The tape in the drive is actually 000071. Not 000070.

If you load the same tape in the drive (using tobtest) and then issue 'vmoprcmd -d ds' from another cmd window, you will see the internal label being read and displayed in the output.

The backup image info and required media-id is found in the NBU image catalog - not on the tape.

rsakimoto
Level 5

Hi Marianne,

You are correct I checked the internal label using vmoprcmd -d ds of the tape I put in the library and it is A00071. It was mislabled the external barcode sticker. Since I have issued a vmchange to A00070 (which is A00071) and that I have to update its correct barcode sticker, how can I vmchange it (A00071) to its correct barcode label? I mean, right now it is labeled as barcode say T15** where as I need to vmchange it to T16**. Is it rescan/update barcodes option via the gui I should do?

Thanks again.

 

Marianne
Level 6
Partner    VIP    Accredited Certified
I'm battling a bit to understand which label is now on which tape. You cannot change the internal label - only the barcode. Let's say you put barcode label T15*** on the tape that you thought was A00070, but in fact it is actually A00071. And T16*** is actually A00070. Assuming these are sticky labels, it is not possible to swap the labels. Hopefully you have not yet linked T16*** to A00071? Assuming you have not, do this: Eject A00070 from the robot. Both tapes should now be out of the robot. vmchange A00070 to barcode T16*** vmchange A00071 to barcode T15*** Put A00070 with label T16*** in the robot and Inventory. Restore should now be fine.

Marianne
Level 6
Partner    VIP    Accredited Certified
Best to re-label all tapes as soon as all images on it have expired. This will write internal label to match the barcode. See: https://www.veritas.com/community/forums/adding-barcode-labels-tapes-already-used-netbackup

rsakimoto
Level 5

Hi Marianne,

 

Yes that's the scenario. And yes I have not yet linked (vmchange) T16** to A00071. Ok I will do vmchange to to correct both media ids to the correct barcode sticky labels which both tapes are out of the robot. I can make/print new barcode sticky labels anyhow. Will update you again soon.

Than You.

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Keep us updated!

Please remember to re-label all expired/unassigned tapes to make your life easier going forward.

rsakimoto
Level 5

Yes. Will do that as well. Thanks!

rsakimoto
Level 5

Hi Marianne,

I have properly labeled the barcode sticker of the mislabeled tapes which I also found out other tapes on the same set of my month-end duplication was mislabeled as well. I was able to label correctly the A00070 and A00071. VMChange it as well. The data I needed is only on tape A00070 with barcode label T16 *** correctly. When I did inventory robot on gui via update config option, it queried media id: A00070 barcode: T16*** and telling it will be put to standalone pool and new media id to add. I accidentally update config option and now it assigned a new media id A00080. Was it deleted? I mean the internal label? When I vmquery A00070 it still shows even on catalog, but robot type is NONE- Not Robotic (0). And when I vmquery A00080 it was added by media manager which cause I update config it that replaced A00070. How can I retrieve A00070/T16***? I tried the physical inventory:

\veritas\Volmgr\bin>vmphyinv -rn 0 -rh bdnbu2 -h bdnbu4 -ml A00080
Waiting for mount of media ID A00080 on host bdnbu2
Mounted media ID A00080 on host bdownbu002

Following error(s) detected:

Barcode conflict detected: Media A00080 is non-barcoded. There is
another media A00070 with barcode T16** in the EMM database.

How can I retrieve and make the robot to read A00070/T16**? Should I delete the assigned media id A00080? Then Run inventory robot again?

Regards