Highlighted

media ID not unique in database (34)

Hi dear all,

My master server is redhat and netbackup 7.7.2 installed. when I want to add new cleaning cartridge and inventory robot I get error: media ID not unique in database (34). 

Netbackup said media ID CLN099L1 is not unique but I haven't this media ID in library and inventory was successful before. but when I run this command: "nbemmcmd  -listmedia -mediaid CLN099"  a media with ID CLN099CU is on EMM database. 

 

Media GUID: 1e004f68-715c-11e7-8000-a151d2b0a1cd
Media ID: CLN099
Partner: -
Media Type: HC3_CLN
Volume Group: ---
Application: Netbackup
Media Flags: 1
Description: ------
Barcode: CLN099CU
Partner Barcode: --------
Last Write Host: NONE
Created: 07/25/2017 12:40
Time Assigned: -
First Mount: -
Last Mount: -
Volume Expiration: -
Data Expiration: -
Last Written: -
Last Read: -
Robot Type: NONE
Robot Control Host: -
Robot Number: -
Slot: -
Side/Face: -
Cleanings Remaining: 0
Number of Mounts: -1
Maximum Mounts Allowed: -1
Media Status: ACTIVE
Kilobytes: 0
Images: 0
Valid Images: 0
Retention Period: -
Number of Restores: 0
Optical Header Size Bytes: 0
Optical Sector Size Bytes: 0
Optical Partition Size Bytes: 0
Last Header Offset: 0
Adamm Guid: 00000000-0000-0000-0000-000000000000
Rsm Guid: 00000000-0000-0000-0000-000000000000
Origin Host: NONE
Master Host: -
Server Group: -
Upgrade Conflicts Flag:
Pool Number: 0
Volume Pool: None
Previous Pool Name: -
Vault Flags: -
Vault Container: -
Vault Name: -
Vault Slot: -
Session ID: -
Date Vaulted: -
Return Date: -
Media on Hold: 0
====================================================================
Command completed successfully.

 

media ID CLN099CU in not on robot, can I delete this media from EMM manually?

Thanks

Tags (2)
1 Solution

Accepted Solutions
Accepted Solution!

Re: media ID not unique in database (34)

Hey

Looks like you have barcode rules to read first 6 characters of barcode - and these two media for NBU are identical (as its not looking at 7 and 8 of barcode characters). Please remove existing one - vmdelete -m CLN099 (cleaning tape can be removed without any hassle) and rerun your inventory - this time it will be added 

View solution in original post

1 Reply
Accepted Solution!

Re: media ID not unique in database (34)

Hey

Looks like you have barcode rules to read first 6 characters of barcode - and these two media for NBU are identical (as its not looking at 7 and 8 of barcode characters). Please remove existing one - vmdelete -m CLN099 (cleaning tape can be removed without any hassle) and rerun your inventory - this time it will be added 

View solution in original post