cancel
Showing results for 
Search instead for 
Did you mean: 

requested media id was not found in the EMM database

dimitri01
Level 2

Hi,

 

i'm getting an error while executing bpmedialist on several tapes, when i use vmquery -m Z282L3, there is no error:

[root@tapemaster sbin]# bpmedialist -m Z282L3
requested media id was not found in the EMM database
 

i have this on a lot of tapes

i can enter them again with:

bptm -makedbentry -m Z282L3 -den hcart3 -poolnum 4

this remains ok for a few days but after that they disappear from the emm again .


this is a netbackup 6.0MP4

 

does anyone know why these tapes are getting automagically deleted from the emm?

 

kr

Dimitri

1 ACCEPTED SOLUTION

Accepted Solutions

Nicolai
Moderator
Moderator
Partner    VIP   

bpmedialist will ony return somthing if the media is in use (contain active backup).

bpimagelist on a free (scratch) tape will result "requested media id is not assigned to this host in the EMM database"

 

 

icarus:~ # bpmedialist -m  C10444
requested media id is not assigned to this host in the EMM database
icarus:~ # vmquery -m C10444
================================================================================
media ID:              C10444
media type:            1/2" cartridge tape (6)
barcode:               C10444
media description:     Added by Media Manager
volume pool:           scratch (4)
robot type:            ACS - Automated Cartridge System (1)
robot number:          1
robot slot:            1
robot control host:    NONE
volume group:          000_00001_ACS
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               Tue Jan 31 15:04:26 2012
assigned:              ---
last mounted:          Sun Feb  5 06:09:06 2012
first mount:           Sun Feb  5 06:09:06 2012
expiration date:       ---
number of mounts:      1
max mounts allowed:    ---
================================================================================

View solution in original post

5 REPLIES 5

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

What is the reason for doing 'bptm -makedbentry'?

Please show us output of 'vmquery -m <media-id>' for one of these tapes.

mph999
Level 6
Employee Accredited

Further to Mariannes excellent post ...

Why are you adding the tapes to the media database - they will NOT be usable ???

Here is an example :

 

id     rl  images   allocated        last updated      density  kbytes restores
           vimages   expiration       last read         <------- STATUS ------->
           On Hold
--------------------------------------------------------------------------------
R0TP00   0    999   03/15/2012 15:13        N/A            4mm           0     0
                0   INFINITY              N/A         FROZEN
 
 
The tapes are added with '999' images and as frozen.
 
bptm -makedbentry is not a 'supported' command, it should ONLY be run under the instrction of support.  It has no use unless you are resovling nbcc issues.
 
A frozen tape cannot be expired - so somebody is unfeezing this tape at some pooint.  After this, the bpexpdate -deassignempty cleanup job will be running (it does this automatically) and will expire the 'empty tape'.
 
If you have a reason to run this command (that is you are resolving the issue where vmquery shows images on the mediam but the mediadb entry is missing ) then log a call with symantec and get nbcc run to fix it properly.
 
nbccr  (the fixing part of nbcc) will run the same command, bptm -makedbentry ... but then, it will use an SQL command to tidy up the entry and nopt l;eave the tape frozen.  It will not be useabe, as it will be marked Full, but, at least will expire normally when the images do.
 
Martin
 
 

dimitri01
Level 2

 

ok i didn't know about this cleanup job

and yes i unfroze them.

but why did these tapes disappear from the emm db in the first place?

 

[root@tapemaster sbin]# vmquery -m Z282L3
================================================================================
media ID:              Z282L3
media type:            1/2" cartridge tape 3 (24)
barcode:               KYZ282L3
media description:     Added by Media Manager
volume pool:           Safe_Tapes (5)
robot type:            TLD - Tape Library DLT (8)
robot number:          0
robot slot:            3
robot control host:    tapemaster
volume group:          000_00000_TLD
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               Fri Apr 21 12:46:19 2006
assigned:              ---
last mounted:          Sun Jan  8 03:30:00 2012
first mount:           Fri Apr 28 09:33:37 2006
expiration date:       ---
number of mounts:      4
max mounts allowed:    ---
================================================================================
 

 

mph999
Level 6
Employee Accredited

Either the images expied, or, bpexpdate was manually run with the -justmedia option.

We need to see :

'vmquery -m <media-id>'

(that is, does NBU think there are images on the tape).

If there are images on the tape (that is vmquery returns image info, then I recommend nbcc via support, as this is a neater fix).

If vmquery doesn't return anything, then bptm -makedbentry is pointtless, and your only option is to import the tape.

Martin

Nicolai
Moderator
Moderator
Partner    VIP   

bpmedialist will ony return somthing if the media is in use (contain active backup).

bpimagelist on a free (scratch) tape will result "requested media id is not assigned to this host in the EMM database"

 

 

icarus:~ # bpmedialist -m  C10444
requested media id is not assigned to this host in the EMM database
icarus:~ # vmquery -m C10444
================================================================================
media ID:              C10444
media type:            1/2" cartridge tape (6)
barcode:               C10444
media description:     Added by Media Manager
volume pool:           scratch (4)
robot type:            ACS - Automated Cartridge System (1)
robot number:          1
robot slot:            1
robot control host:    NONE
volume group:          000_00001_ACS
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               Tue Jan 31 15:04:26 2012
assigned:              ---
last mounted:          Sun Feb  5 06:09:06 2012
first mount:           Sun Feb  5 06:09:06 2012
expiration date:       ---
number of mounts:      1
max mounts allowed:    ---
================================================================================