cancel
Showing results for 
Search instead for 
Did you mean: 

Change media id on and assigned tape

Kathe_F
Level 3

I need some assistance. This tape has data on it. The media id is not correct, it should be AK0119, the barcode is correct.

The media has data and an unexpired date.

I tried deleting the tape, but since it is assigned, it will not allow me to delete it. I tried to expire the tape and it gives me a socket connection error.  What I'd like to do is change the media id to AK0119.  I have ejected the tape and re-entered it and still get the same issue. Below are my commands. Whom can assist, please?

Step 1:

================================================================================

c:\Program Files\Veritas\Volmgr\bin>vmquery -m 0119L5
================================================================================
media ID:              0119L5
media type:            1/2" cartridge tape 3 (24)
barcode:               AK0119L5
media description:     SWA - Scratch Pool
volume pool:           SWA_RW_Scratch (7)
robot type:            TLD - Tape Library DLT (8)
robot number:          5
robot slot:            2
robot control host:    swa-nbdev2.res.hpe.com
volume group:          000_00005_TLD
vault name:            ---
vault sent date:       ---
vault return date:     ---
vault slot:            ---
vault session id:      ---
vault container id:    -
created:               3/29/2016 6:17:27 PM
assigned:              3/29/2016 6:25:10 PM
last mounted:          3/29/2016 3:19:18 PM
first mount:           3/29/2016 3:19:18 PM
expiration date:       ---
number of mounts:      1
max mounts allowed:    250
status:                0x0
================================================================================

Step 2: c:\Program Files\Veritas\Volmgr\bin>bpexpdate -m 0119L5 -d 0 -force
expire not allowed: cannot connect on socket (25)

Step 3:

c:\Program Files\Veritas\Volmgr\bin>nbemmcmd -deletemedia -mediaid 0119L5 -originhost NONE
NBEMMCMD, Version: 7.6.1.2
The function returned the following failure status:
cannot delete assigned volume (92)
Command did not complete successfully.

Step 4:


c:\Program Files\Veritas\Volmgr\bin>nbemmcmd -listmedia -mediaid 0119L5
NBEMMCMD, Version: 7.6.1.2
====================================================================
Media GUID:                     268ad02e-5ccd-4ae0-93dc-b1b4a652c5e8
Media ID:                       0119L5
Partner:                        -
Media Type:                     HCART3
Volume Group:                   000_00005_TLD
Application:                    Netbackup
Media Flags:                    1
Description:                    SWA - Scratch Pool
Barcode:                        AK0119L5
Partner Barcode:                --------
Last Write Host:                swa-nbdev1.res.hpe.com
Created:                        03/29/2016 18:17
Time Assigned:                  03/29/2016 18:25
First Mount:                    03/29/2016 15:19
Last Mount:                     03/29/2016 15:19
Volume Expiration:              -
Data Expiration:                04/28/2016 18:32
Last Written:                   03/29/2016 18:32
Last Read:                      -
Robot Type:                     TLD
Robot Control Host:             swa-nbdev2.res.hpe.com
Robot Number:                   5
Slot:                           2
Side/Face:                      -
Cleanings Remaining:            -
Number of Mounts:               1
Maximum Mounts Allowed:         250
Media Status:                   ACTIVE
Kilobytes:                      23282028
Images:                         2
Valid Images:                   2
Retention Period:               2
Number of Restores:             0
Optical Header Size Bytes:      1024
Optical Sector Size Bytes:      0
Optical Partition Size Bytes:   0
Last Header Offset:             90953
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE
Master Host:                    atc-nbmastc1
Server Group:                   UNRESTRICTED_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number:                    7
Volume Pool:                    SWA_RW_Scratch
Previous Pool Name:             -
Vault Flags:                    -
Vault Container:                -
Vault Name:                     -
Vault Slot:                     -
Session ID:                     -
Date Vaulted:                   -
Return Date:                    -
Media on Hold:                  0
====================================================================
Command completed successfully.

 

I'm freezing the tapes so they cannot be used until I am able to get them relabled. Please advise if there is a way to rename the media id without expiring the tape.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Kathe_F
Level 3

Thank-you all for your response.

1. I fixed the media gen id, rescan inventory and it didn't solved the problem. I expired the tapes, ejected then, re-entered them, rescan inventory to got the correct media id.

Issue was : I didn't want to expire the images/tape, but that was the only way I was able to re-lable re-inventory. I am thinking it was because it was already assigned to the mislabeled media id. The mis-labled media id already had backups on them. When I realized the error, I tried to correct it.

 

2. Yes, we use NBAC and will try that from the managemet server, meanwhile I was able to run the bpexpire command from the master server.

View solution in original post

4 REPLIES 4

avinash59
Level 4

Hi Kathe,

I am suspecting that the bar code rules have not been set up properly, as a result of which you are getting the media ID and barcode differently. Maybe re-scanning the barcodes at netbackup end might give a clear idea. 

avinash59
Level 4

Hi Kathe,

Please check the Media ID generation rules, maybe you need to change the settings over there. The barcode which you use is of length 6 character AK0119, but the media ID which you are getting is 0119L5 instead of AK0119.

In detail to explain,the media ID generation rule overrides the default netbackup media ID naming method, where it uses the last 6 characters of the barcode.

So according to your issue, it is using the media ID rule 3:4:5:6:7:8 which is the default one.

You need to change the Media ID rule to 1:2:3:4:5:6, then you will be able to see the desired media ID.

In order to learn in detail.....https://support.symantec.com/en_US/article.DOC6452... please read the document "About Media ID generation rules" on page 441.

Also please let me know if this problem is occuring for only this media or multiple medias in the same robot.

 

Will_Restore
Level 6

expire not allowed: cannot connect on socket (25).

 

Are you using nbac?  Need to login first per this older thread:

https://www.veritas.com/community/forums/cannot-run-bpexpdate-and-other-after-nbac

 

 

Kathe_F
Level 3

Thank-you all for your response.

1. I fixed the media gen id, rescan inventory and it didn't solved the problem. I expired the tapes, ejected then, re-entered them, rescan inventory to got the correct media id.

Issue was : I didn't want to expire the images/tape, but that was the only way I was able to re-lable re-inventory. I am thinking it was because it was already assigned to the mislabeled media id. The mis-labled media id already had backups on them. When I realized the error, I tried to correct it.

 

2. Yes, we use NBAC and will try that from the managemet server, meanwhile I was able to run the bpexpire command from the master server.