cancel
Showing results for 
Search instead for 
Did you mean: 

Rename MEDIA ID

RajeshKanna
Level 3
Partner Accredited

 

Hi,
 
We to need rename a media ID from PRD001SU to PRDSU01. (robotic library)
 
Is there any command line or GUI for this task ?
 
Kindly assist.
Thanks.
9 REPLIES 9

RajeshKanna
Level 3
Partner Accredited

 

Hi,
 
We to need rename a media ID from PRD001SU to PRDSU01. (robotic library and not using barcodes)
 
Is there any command line or GUI for this task ?
 
Kindly assist.
Thanks.

mph999
Level 6
Employee Accredited

Does the tape have data on it ?  That is, is it assigned,  or available for re-use .

Run bpmedialist -m PRD001SU and post the output here.

There is no command to change the media id - once the data is expired, you haveto delete the tape from NBU and re-add using the robot inventory, but with the correct media-id generation rule to give the media id you want.

What is the barcode on this tape - look for this in the GUI) - it will show the media id and the barcode as separate columns.

Also, what is the media id generation rule ?  Look in bp.conf on the robot control host /registry if windows - or the advanced tab in the robot inventory screen.

Martin

Marianne
Level 6
Partner    VIP    Accredited Certified

Your Media ID is too long. NBU can read/store up to 13 characters in the barcode field but only stores 6 characters. This is clearly not the issue here since you are not using barcodes. So, your media id in NBU is probably either D001SU or PRD001 but that would be media-id's automatically generated when using a barcode reader.

Any reason why you are not using barcodes? NBU media management is an absolute nightmare without barcodes...

Please post output of the following (it will give the bpmedialist info as well as media manager properties):

nbemmcmd -listmedia -mediaid <media-id>

Please also mention OS and NBU version. Knowing which OS to give commands for makes life a lot easier.

 

RajeshKanna
Level 3
Partner Accredited

thanks martin,

we are not using barcodes. No need the data.

Kindly clarify..

 

 

 

RajeshKanna
Level 3
Partner Accredited

 

thanks martin,

we are not using barcodes.

All tapes assigned media ID only, we need to change few tape's Media ID.

If i change few tape's media id ( expire image, erase Tape, delete from tape & run the inventory ), is it affect rest of the media.

Kindly clarify..

mph999
Level 6
Employee Accredited

Hmm, yes, Marianne makes a good point - your media id has 8 characters ...

Run bpmedialist -m <media id> on the tape and post the output here.

As mentioned, you cannot change the media id, you will have to remove the tape when it has expired, and readd it using the media ID you wish to use in the "Use following media id prefix " in the New MEdia section of the "Advance Robot Inventory Options"

You would use the prefix ... "PRDSU", for exach tape it finds that needs 'adding; it will increment the number.

As Marianne pointed out, NBU is not really designed to use media without barcodes, it can be done, but ends up getting very confusing if you have more than about 1 tape ....  ;0)

Martin

mph999
Level 6
Employee Accredited

Hi Rajesh,

You did not comment on Mariannes post ????

Marianne is one of the most experienced NBU people of this forum, if she asks for details etc ... you should respond to her ...

What is the history of this tape, for example, has it been bought across from another environment.

Thanks

Martin

RajeshKanna
Level 3
Partner Accredited

Hi Marianne.

OS - windows 2008 x64 R2 SP2 & NBU - Netbackup 7.0.1

Also we are not using barcode due to barcode not support our robtic library.

Thanks.

RajeshKanna

Marianne
Level 6
Partner    VIP    Accredited Certified

Please double-check verify the media-id as per my previous post.
NBU can ONLY store 6 characters as the media-id - not 8 as in your opening post.

PLEASE post output of:

nbemmcmd -listmedia -mediaid <media-id>

Open cmd with 'Run as Administrator', cd <install-path>\veritas\netbackup\bin\admincmd  to run the command.