cancel
Showing results for 
Search instead for 
Did you mean: 

available_media output duplicate media_id

Nicolas_Ge
Level 3

My server is solaris 10 with nbu 6.5.6.as below is my available_media output:

 

# /usr/openv/netbackup/bin/goodies/available_media
media   media   robot   robot   robot   side/   ret    size     status
 ID     type    type      #     slot    face    level  KBytes
----------------------------------------------------------------------------
CatalogBackup pool
 
DataStore pool
 
NetBackup pool
 
MX8309  HCART2   TLD      0       14     -       2     107814944        ACTIVE
MX8309  HCART2   TLD      0       14     -       2     107814944        ACTIVE
MX8311  HCART2   TLD      0       3      -       2     181879694        ACTIVE
MX8311  HCART2   TLD      0       3      -       2     181879694        ACTIVE
MX8300  HCART2   TLD      0       6      -       -     -        AVAILABLE
MX8306  HCART2   TLD      0       8      -       -     -        AVAILABLE
MX8313  HCART2   TLD      0       7      -       -     -        AVAILABLE
MX8314  HCART2   TLD      0       9      -       -     -        AVAILABLE
MX8317  HCART2   TLD      0       15     -       -     -        AVAILABLE
MX8310  HCART2   TLD      0       13     -       1     0        FROZEN
MX8310  HCART2   TLD      0       13     -       1     0        FROZEN
MX8301  HCART2   TLD      0       16     -       2     227260055        FULL
MX8301  HCART2   TLD      0       16     -       2     227260055        FULL
MX8302  HCART2   TLD      0       4      -       2     215142016        FULL
MX8302  HCART2   TLD      0       4      -       2     215142016        FULL
MX8303  HCART2   TLD      0       2      -       2     269101548        FULL
MX8303  HCART2   TLD      0       2      -       2     269101548        FULL
MX8305  HCART2   TLD      0       17     -       2     192186560        FULL
MX8305  HCART2   TLD      0       17     -       2     192186560        FULL
MX8308  HCART2   TLD      0       10     -       2     271894144        FULL
MX8308  HCART2   TLD      0       10     -       2     271894144        FULL
MX8312  HCART2   TLD      0       18     -       2     533924873        FULL
MX8312  HCART2   TLD      0       18     -       2     533924873        FULL
MX8315  HCART2   TLD      0       11     -       2     421548726        FULL
MX8315  HCART2   TLD      0       11     -       2     421548726        FULL
MX8316  HCART2   TLD      0       12     -       2     424802926        FULL
MX8316  HCART2   TLD      0       12     -       2     424802926        FULL
MX8318  HCART2   TLD      0       19     -       2     220264320        FULL
MX8318  HCART2   TLD      0       19     -       2     220264320        FULL
MX8319  HCART2   TLD      0       5      -       2     258342152        FULL
MX8319  HCART2   TLD      0       5      -       2     258342152        FULL
 
You can see every media(except AVAILABLE media) has 2 lines.
How can I fix it?
 
Thanks.
9 REPLIES 9

mph999
Level 6
Employee Accredited

If you run vmquery -a, does each media appear only once ???

Also, run

nbemmcmd -listmedia -allrecords |grep -i "media id"

Does each media only appear once ???

I suspect there are duplicate entries for the media in EMM, will need to log a call with Symantec and get a SQL script to fix, if, this is the case.

Martin 

Nicolas_Ge
Level 3

Hi,mph999-

When I run 'vmquery -a' or  {nbemmcmd -listmedia -allrecords |grep -i "media id"},each media only appear once.

Nicolas_Ge
Level 3

Thanks,Wrobbins

But I'm sorry that it's the same problem,but not the same solution.

When I do this,the output does not have a duplicate ndmphost named master01

 

1.  Obtain a list of all servers:
# /usr/openv/netbackup/bin/admincmd/nbemmcmd -listhosts
NBEMMCMD, Version:6.5.3.1
The following hosts were found:
server master01
master master01
ndmp ndmp01

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

Media id must be duplicated in "bpmedialist -mlist -l".

For workaround, filter output by uniq like below

# available_media | uniq

Or, insert uniq into the script where line number is 157(checked in 6.5.6) or so.

before)                          grep "^$vmediaid" $BPMEDIALIST_OUTPUT |

after)                            grep "^$vmediaid" $BPMEDIALIST_OUTPUT | uniq |

Nicolas_Ge
Level 3

Yes,when I run 'bpmedialist -mlist -l',the media id displayed dumplicate.Could you tell me why it become to this?

Thanks for your help

Mark_Solutions
Level 6
Partner Accredited Certified

Could you post the output of the following please:

bpmedialist -mlist -m MX8303 -L

Note the upper case L

Thanks

Nicolas_Ge
Level 3

thanks for your reply,this is my output:

NDMP Server Host = ndmp01

 

media_id = MX8318,partner_id = *NULL*, version = 1

density = hcart2 (14)

allocated = 10/21/2011 17:00:01(1319187601)

last_written = 10/21/2011 17:00:01 (1319187601)

expiration = 11/11/2011 17:00:01 (1321002001)

last read = N.A (0)

kbytes = 0, nimages = 1, vimages = 0

retention_level = 2, num_restores = 0

status = 0x100, l_offset = 0, psize = 0, hsize = 1024, ssize = 0

vmpool = 1

res1 = 0, res2 = 0, res3 = 0,res4 = 0

 

BTW:I try to delete ndmp hosts,available_media goes right,when I add the ndmp device,it comes to be this again.

I add the ndmp device as same as another linux backup netbackup master server,the linux server's output is right.

Mark_Solutions
Level 6
Partner Accredited Certified

OK, not much in the output that helps but you comments about the ndmp changes does pin it back to the original idea that it reports the media server and ndmp server listings individually.

Perhaps you have Media Sharing Server Groups in use and this is producing a double owner?

Otherwise it must be something to do with the way you have the NDMP Host set up.