First I discovered that a media has been going on for a long time, but it doesn't cover reuse
Use Bpexpdate to pass the period, fail, let him deassigned also not
Use Bpimmedia to view the image above and there is no
I try to go through the period and return the information in the use. Try one of the previous posts http://www.cnblogs.com/guilingyang/p/5585179.html the practice, also cannot succeed. Finally found the Nbrbutil tool to solve
[[email protected] admincmd]# bpexpdate-m dd1083-d 0 hands, Fail!
Media DD1083 is due to expire at 04/17/2016 19:54:14
Is, sure that the data on this media was not critical to
Your business, and is sure you want to delete DD1083 y/n (n)? Y
Requested media ID is on use, cannot process request
[Email protected] admincmd]# bpexpdate-deassignempty-m DD1083 hand deassign, failed
Search for empty media that meet the following criteria:
Media id:dd1083
Continue? y/n (n) y
The following empty media would be deassigned:
Host:nhpabk01 media-id:dd1083
Is you sure do want to continue y/n (n)? y
Could not deassign Media-id DD1083, host nhpabk01:requested Media ID was in use, cannot process request (97)
deassigned 0 out of Media-ids found.
Requested media ID is on use, cannot process request
[[email protected] admincmd]# bpimmedia-mediaid DD1083 view image, no
No entity was found
Finally, use the Nbrbutil tool to remove media from the EMM and then move the deassign to succeed. The following are the objects:
[[email protected] admincmd]# Nbrbutil-dump lists the media information in the MDS allocations in EMM
Allocation Requests
(ALLOCATIONREQUESTSEQ)
Allocations
(allocationseq
index=0 (allocation:id={ 973d8ada-1dd1-11b2-8a86-6904e8618665} provider=namedresourceprovider resourcename=nhpabk01. Nbu_client. MAXJOBS.NHAFS01_BK masterserver=nhpabk01 groupid={00000000-0000-0000-0000-000000000000} userSequence=-1 userid= " jobid=417042 "named resource allocation)
index=1 (allocation:id={ 973D860C-1DD1-11B2-9A0F-76B1DC1D39D9} provider=mpxprovider resourcename=anmpxgroup masterserver=nhpabk01 groupid={ 973d8454-1dd1-11b2-9522-102b6619403b} usersequence=-1 userid= "jobid=417042" (mpxgroupallocation:groupid={ 973D8454-1DD1-11B2-9522-102B6619403B}))
index=2 (allocation:id={ 6CD32F58-1DD2-11B2-B2CA-E2CB6F386EE1} provider=namedresourceprovider resourcename=nhpabk01. Nbu_client. MAXJOBS.NHAFS01_BK masterserver=nhpabk01 groupid={00000000-0000-0000-0000-000000000000} userSequence=-1 userid= " jobid=416130 "named resource allocation)
:
MDS Allocations in EMM:
mdsallocation:allocationkey=204833 jobtype=1 mediakey=4000608 mediaid=dd1083 drivekey=2000910 DriveName=IBM. ultrium-td2.003 drivepath=/dev/nst8 stuname=emcdd2200 masterservername=nhpabk01 mediaServerName=nhpabk01 Ndmptapeservername= diskvolumekey=0 mountkey=0 linkkey=0 fatpipekey=0 scsirestype=1 ServerStateFlags=1
mdsallocation:allocationkey=225073 jobtype=1 mediakey=4000384 mediaid=k221l3 drivekey=2000883 DriveName=HP. ultrium3-scsi.002 drivepath=/dev/nst12 stuname=msl6060 masterservername=nhpabk01 mediaServerName=nhpabk01 Ndmptapeservername= diskvolumekey=0 mountkey=0 linkkey=0 fatpipekey=0 scsirestype=1 ServerStateFlags=1
mdsallocation:allocationkey=225366 jobtype=1 mediakey=4000222 mediaid=0511l3 drivekey=2000884 DriveName=HP. ultrium3-scsi.003 drivepath=/dev/nst11 stuname=msl6060 masterservername=nhpabk01 mediaServerName=nhpabk01 Ndmptapeservername= diskvolumekey=0 mountkey=0 linkkey=0 fatpipekey=0 scsirestype=1 ServerStateFlags=1
Special attention to the above Allocationkey and our MediaID
[[email protected] admincmd]# Nbrbutil-releasemds 204833 through this command to release media from the EMM
And then do it again. Nbrbutil–dump Media will not appear in the EMM inside.
And then perform the deassign.
I first delete media according to the following link, but I am prompted that media is assigned, no delete
[Email protected] bin]# vmdelete-m DD1083
Cannot delete assigned volume (92)
[Email protected] bin]# CD-
/usr/openv/netbackup/bin/admincmd
I'm going to perform deassigned, and this will be a success. The previous hint
[Email protected] admincmd]# bpexpdate-deassignempty-m DD1083
Search for empty media that meet the following criteria:
Media id:dd1083
Continue? y/n (n) y
The following empty media would be deassigned:
Host:nhpabk01 media-id:dd1083
Is you sure do want to continue y/n (n)? y
deassigned Media-id DD1083 on host Nhpabk01
Deassigned 1 out of media-ids found.
Finally Deassign succeeded. At this point I went to check the state of the media and time assigned became empty.
[Email protected] admincmd]# Nbemmcmd-listmedia-mediaid DD1083
Nbemmcmd, version:6.5.6
====================================================================
Media guid:a28ad432-f215-11e5-8000-fcf2c0fe6d67
Media id:dd1083
Partner:-
Media Type:hcart2
Volume Group:000_00002_tld
Application:netbackup
Media flags:1
description:added by Media Manager
barcode:dd1083
Partner Barcode:--------
Last Write Host:none
created:03/24/2016 15:10
Time Assigned:-
First mount:03/25/2016 02:03
Last mount:04/10/2016 19:54
:
Through this to Nbu totem, familiar with some NBU command. Especially/usr/openv/netbackup/bin/admincmd, there are a lot of management commands.
Also notice that there are some commands that can be manipulated/usr/openv/volmgr/bin.
http://cache.baiducontent.com/c?m= 9d78d513d98316ec1fbad5385a40c066680bd7356784c7150e8fc55f93150000506692e07b35107594842b7001de5e5c9be7370266507cebc68e9f4aa Cf9d2757edf6675671cf70145905ef88a00318660ce55b3e95fa5adf1418eb397969a4353bd0c563cc6abd81b5a499430e71446b2fbc655450c41e3aa 7278a30e3179cc7219f105eee0442e50c2b18a1d0a947cc76167c8f863eb6d05b565ff490c2432fb0da608277d6cf74f51b8056a13929d0cb476251d6 5a148c5fb81ebba1fcd9dfd31eeba9cec68c221a0d8&p=882a904382881cfc57ef8c3c5b0d&newp= 9e769a4794951fff57e892204b4192694c05d67c6b8bcf5428b9954e94624f171c0ba7ec67634b598fca786704ae4d5ce8fa3d7937052bb291c88d40d aafd4456edf653b2740d003448d&user=baidu&fm=sc&query=requested+media+id+is+in+use%2c+cannot+process+ Request&qid=b950963b000011aa&p1=1
Use the Nbrbutil tool to handle requested media ID is in using, cannot process request