Cannot Expire/Reuse Media - Media not found in EMM DB
Hello all,
I know this is quite an old topic and there are several posts on the internet on how to fix this problem. I am still unable to resolve this and really appreciate your help. This is happening to me alot and now i have quite a few media that i cannot use.
Using Netbackup 6.5.5
Windows 2003 x32
Topic below explains how to fix this problem. I've followed it step by step but no joy
Lets say the i am unable to expire media as its currently now assigned to DB. If i run the following command
C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid ***** i get the info below
NBEMMCMD, Version:6.5.5
====================================================================
Media GUID: 128fab56-3e2a-4452-b3e5-1fe00d9ae5c8
Media ID: *000**
Partner: -
Media Type: HCART
Volume Group: 000_00000_TLD
Application: Netbackup
Media Flags: 1
Description: ---
Barcode: *000**
Partner Barcode: --------
Last Write Host: NONE
Created: 09/12/2010 17:41
Time Assigned: -
First Mount: -
Last Mount: -
Volume Expiration: -
Data Expiration: -
Last Written: -
Last Read: -
Robot Type: TLD
Robot Control Host: lon-*******
Robot Number: 0
Slot: 4
Side/Face: -
Cleanings Remaining: -
Number of Mounts: 0
Maximum Mounts Allowed: 0
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: lon-*********
Server Group:
Upgrade Conflicts Flag:
Pool Number: 3
Volume Pool: CatalogBackup
Previous Pool Name: -
Vault Flags: -
Vault Container: -
Vault Name: -
Vault Slot: -
Session ID: -
Date Vaulted: -
Return Date: -
====================================================================
Command completed successfully.
Because i cannot see the media host i run the next command which is
C:\Program Files\Veritas\NetBackup\bin\admincmd>bptm -makedbentry -m *000** -den
hcart -poolnum 1. This add the entry on the media server and i can see by running the listmedia command the Last Write Host has appeared
C:\Program Files\Veritas\NetBackup\bin\admincmd>nbemmcmd.exe -listmedia -mediaid
*000**
NBEMMCMD, Version:6.5.5
====================================================================
Media GUID: 128fab56-3e2a-4452-b3e5-1fe00d9ae5c8
Media ID: *000**
Partner: -
Media Type: HCART
Volume Group: 000_00000_TLD
Application: Netbackup
Media Flags: 1
Description: ---
Barcode: *000**
Partner Barcode: --------
Last Write Host: lon-****
Created: 09/12/2010 17:41
Time Assigned: 09/12/2010 21:38
First Mount: -
Last Mount: -
Volume Expiration: -
Data Expiration: INFINITY
Last Written: -
Last Read: -
Robot Type: TLD
Robot Control Host: lon-*******
Robot Number: 0
Slot: 4
Side/Face: -
Cleanings Remaining: -
Number of Mounts: 0
Maximum Mounts Allowed: 0
Media Status: FROZEN
Kilobytes: 0
Images: 999
Valid Images: 0
Retention Period: 0
Number of Restores: 0
Optical Header Size Bytes: 1024
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: lon-*******
Server Group: NO_SHARING_GROUP
Upgrade Conflicts Flag:
Pool Number: 3
Volume Pool: CatalogBackup
Previous Pool Name: -
Vault Flags: -
Vault Container: -
Vault Name: -
Vault Slot: -
Session ID: -
Date Vaulted: -
Return Date: -
====================================================================
Command completed successfully.
Ok so now all seems good, but since the tape is frozen i cannot use it. When i do the last step (expiring the media) bpexpdate -m *000** -d 0 i am able to expire media sucessfully. But i am still not able to use the tape and if i run the listmedia command, the Last Write Host is now gone
Please help
It's the 'bptm -makedbentry' that adds the Infinity retention and Frozen status.
It should never be necessary to manually do a 'makedbentry'.
The only use for this command is to forge mediaDB entries that were 'lost' in version 5.1 :
http://seer.entsupport.symantec.com/docs/280202.htm
http://seer.entsupport.symantec.com/docs/280181.htm