cancel
Showing results for 
Search instead for 
Did you mean: 

"Media ID not unique in database (34)"

SidneiSilva
Level 3

Hello,

I am trying to import some tapes into the NBU and when I am importing the tapes,show me this message "Media ID not unique in database (34)".

Update failed: could not add new media ID 'SB7773' into slot 40
Insert media failed:
media ID not unique in database (34)

After I see this message I found this tape into  the Media as TLD, but I think I didn`t import it yet.

 

Now many tapes are showing me the same massage.

 

Could you please help me woith this issue?

 

Regards,

 

 

Sidnei

 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

We are really trying to help you here. It is close to 5 hours since I have asked for output of:

nbemmcmd -listmedia -mediaid SB7773

We need to find out what is already in NBU database for this tape and therefore giving 'not unique in database' error.

 

View solution in original post

14 REPLIES 14

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hi,

 

Take a look if the media is assigned (has a date under the assigned field). If not, delete that media and retry the inventory.

 

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Please always mention/select your OS in new posts.
We need output from commands to troubleshoot your issue.

Show us output of this command:

nbemmcmd -listmedia -mediaid SB7773 

(command is in ..../netbackup/bin/admincmd)

SidneiSilva
Level 3

Marianne, I am so sorry, I am new here.

 

My OS is Windows 7.

 

regards,

 

 

 

Marianne
Level 6
Partner    VIP    Accredited Certified
Maybe Windows 2003 or 2008? Windows 7 is not supported as NBU master or media server. Please open cmd and run command in my post above. Command is in ....\veritas\netbackup\bin\admincmd.

mph999
Level 6
Employee Accredited
You say 'import' - where from ? Was the tape wrtten on a different NBU environment that uses the same barcodes as the system you are trying to import it on. Or, was the tape written on this system some time ago ?

SidneiSilva
Level 3

I am importing from Library I/O to NBU.

The issue happens with some tapes that are Scratch.

 

 

 

 

 

 

 

 

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Please provide the info Marianne requested.

SidneiSilva
Level 3

C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd
NBEMMCMD, Version:7.1
Usage:
nbemmcmd  [-addhost] [-changesetting] [-deletealldevices]
[-deletehost] [-deletemedia] [-deletemerge] [-emmname <string>]
[-emmport <unsigned integer>] [-errorsdb] [-forcemerge]
[-getemmserver] [-help] [-listhosts] [-listmedia]
[-listsettings] [-machinealias] [-releasecache]
[-renamehost] [-servercontrol] [-setemmserver]
[-updatehost]

Amol_Nair
Level 6
Employee
The command requested was nbemmcmd -listmedia -mediaid SB7773 Please run the complete command.

mph999
Level 6
Employee Accredited
I said 'wherefrom' - I mean which NBU environment was the tape written on ?

Nicolai
Moderator
Moderator
Partner    VIP   

Netbackup think there is already a tape named SB7773 in the robot. This can happen is you manual remove a tape from the robot and do not run a inventory afterward.

1: Run a inventory & update (you may need to run it more than once if many differences are found)

2: Try to import the media 

That should remedy the issues. 

Marianne
Level 6
Partner    VIP    Accredited Certified

We are really trying to help you here. It is close to 5 hours since I have asked for output of:

nbemmcmd -listmedia -mediaid SB7773

We need to find out what is already in NBU database for this tape and therefore giving 'not unique in database' error.

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Thanks for the solution...

I would really have liked to know what was causing this. 
Perhaps you can tell us what exactly caused the problem and how you fixed it?

SidneiSilva
Level 3

Sure,

During that week, my time created an change to reconfigure all the barcodes of the tapes therewith we imported all the tapes in new format.

But during the change I tried to import the tapes from I/O ( Library) to NBU and was showing an error during the inventory.

 

Action to be taken: We sent all the tapes that was error message back to Library and was created an script for them to library recognize them.
 

The problem was resolved.