cancel
Showing results for 
Search instead for 
Did you mean: 

Change barcode robot contents

atschaves
Level 3

I can not change the barcode robot contents . So I can not do the robot invetario it gives barcode error :

" Barcode not unique in database ( 36 )
Media in slot 3 has the same barcode ( CLNU00 ) the average in the slot 48 "

In the log vmchekxxx command we see that the slot 48 and 3 actually has the same barcode .

"       Robot Contents          Volume Configuration

lot    Tape  Barcode           Media ID Barcode        Mismatch Detected
===    ====  =============     ======== =============  =================
  1     Yes  000324            000324   000324
  2     Yes  000272            000272   000272
  3     Yes  CLNU00            CLNU00   CLNU00
 
 45     Yes  000291            000291   000291
 46     Yes  000334            000334   000334
 47     Yes  000289            000289   000289
 48     Yes  CLNU00                                    Yes

Changing this barcode robot ??? any suggestion?
 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified
So, you need to remove one of them (e.g. slot 48) and add another CLN barcode. You cannot have 2 tapes with same media id.

View solution in original post

9 REPLIES 9

sclind
Moderator
Moderator
   VIP   

Two cleaning tapes with the same name; cant you just remove one?

atschaves
Level 3

 

But only has one same . For some reason it was marked the slot 48 with that name. In this slot 48 has no tape actually.

sankar_28
Level 4

delete the tape id on slot 48 and set barcode rules and try inventory again.

atschaves
Level 3

 

Still the same error : Barcode not unique in database ( 36 ) Media in slot 3 has the same barcode ( CLNU00 ) the average in the slot 48 . There is no change to tape yes to at or change the name on the barcode ?

watsons
Level 6

How did you delete the tape? From the GUI, or command line?

After you deleted the tape, run this to make sure the ID is not in EMM anymore:

   nbemmcmd -listmedia -mediaid CLNU00

If it's there, you need to remove it by:

   nbemmcmd -deletemedia -mediaid CLNU00 -originhost <mediaserver>

Then do another inventory.

Marianne
Level 6
Partner    VIP    Accredited Certified
Please show us what the robot sees. NBU can only work with what the robot reports. In robtest, check both slots : s s3 s s48

atschaves
Level 3
Already, Thanks to all for the answers !

Watsons :
When you run the first command this showed :

NBEMMCMD, Version: 7.6.1
====================================================================
Media GUID:                     278e8eaa-ebfc-4053-ae4b-fbb91257cf58
Media ID:                       CLNU00
Partner:                        -
Media Type:                     HC2_CLN
Volume Group:                   000_00000_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    ---
Barcode:                        CLNU00
Partner Barcode:                --------
Last Write Host:                NONE
Created:                        02/11/2015 14:48
Time Assigned:                  -
First Mount:                    -
Last Mount:                     -
Volume Expiration:              -
Data Expiration:                -
Last Written:                   -
Last Read:                      -
Robot Type:                     TLD
Robot Control Host:             seivcbkp
Robot Number:                   0
Slot:                           3
Side/Face:                      -
Cleanings Remaining:            3
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
====================================================================

I did not perform the second command for doing normal backup even with the problem and I was afraid of just delete the only cleaning tape and stop time the backup.

Marianne :
The robot actually has two cleaning tapes . Robtest showed me :

slot 3 ( addr 4098 ) contains Cartridge = yes
Source address = 4098
Barcode = CLNU00

slot 48 ( addr 4143 ) contains Cartridge = yes
Source address = 4143
Barcode = CLNU00

Marianne
Level 6
Partner    VIP    Accredited Certified
So, you need to remove one of them (e.g. slot 48) and add another CLN barcode. You cannot have 2 tapes with same media id.

atschaves
Level 3
Thank you all for your help! 

Mariane , managed to find the address of the slot by robtest command and removed the tape directly by the robot console. Now the inventory worked without error.

Thank you!