Subject:When attempting to expire a media in Veritas NetBackup (tm) 6.0 with the bpexpdate command, the message "requested media id was not found in the EMM database" is received

Reference:https://www.veritas.com/support/en_US/article.TECH44823

1. 使用nbemmcmd列出media的詳細信息主要是Master Server信息

[root@nhpabk01 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:                nhpabk01                           
Created:                        03/24/2016 15:10                   
Time Assigned:                  04/07/2016 08:18                   
First Mount:                    03/25/2016 02:03                   
Last Mount:                     04/10/2016 19:54                   
Volume Expiration:              -                                  
Data Expiration:                04/17/2016 19:54                   
Last Written:                   04/10/2016 19:54                   
Last Read:                      -                                  
Robot Type:                     TLD                                
Robot Control Host:             nhpabk01                           
Robot Number:                   2                                  
Slot:                           83                                 
Side/Face:                      -                                  
Cleanings Remaining:            -                                  
Number of Mounts:               30                                 
Maximum Mounts Allowed:         0                                  
Media Status:                   ACTIVE                             
Kilobytes:                      326461728                          
Images:                         79                                 
Valid Images:                   79                                 
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:             5101164                            
Adamm Guid:                     00000000-0000-0000-0000-000000000000
Rsm Guid:                       00000000-0000-0000-0000-000000000000
Origin Host:                    NONE                               
Master Host:                    nhpabk01                           
Server Group:                   NO_SHARING_GROUP                   
Upgrade Conflicts Flag:                                            
Pool Number:                    4                                  
Volume Pool:                    EMCDD2200                          
Previous Pool Name:             -                                  
Vault Flags:                    -                                  
Vault Container:                -                                  
Vault Name:                     -                                  
Vault Slot:                     -                                  
Session ID:                     -                                  
Date Vaulted:                   -                                  
Return Date:                    -                                  
====================================================================
Command completed successfully.

2.查看有沒有media ID在merge表里,如果有,不要再做操作,聯繫NBU處理;如果沒有,就繼續

[root@nhpabk01 admincmd]# nbemmcmd -listmedia -mergetable
NBEMMCMD, Version:6.5.6
The following number of records were found:0
Command completed successfully.

3.確定了沒有media在merge table里,就看看media ID是否有image

有的話就會列出IMAGE和FRAG行(這裡就是那些還沒有過期的media),沒有的話就不會輸出什麼(這裡就是那些已經過期或者沒有assigned的media)

[root@nhpabk01 admincmd]# bpimmedia -mediaid DD1084
IMAGE NHMIX01 8 NHMIX01_1465888536 NHCMO_FA_LUN_nhmix01_ORALOG_BL_H_D 4 Default-Application-Backup 2 11 1 1466147736 0 0
FRAG 1 1 256544 0 2 14 104 DD1084 nhpabk01 65536 5960601 1465614545 11 0 *NULL* 1466147736 0 11 1 *NULL*

[root@nhpabk01 admincmd]# bpimmedia -mediaid DD1083
no entity was found

 

4.只要media ID沒有出現在merge table,就能夠使用bptm命令來為受影響的media ID建立一個完整的media記錄(這裡說的是上面master Server不存在的情況,不存在主要是一些,通過該命令來讓media ID的master Server呈現出來),只要有了完整的信息,Media ID就能夠使之expired和unsigned.

bptm命令需要知道Media ID,density,volumn pool number三個參數

[root@nhpabk01 admincmd]# bptm -makedbentry -m DD1083 -den hcart2 -poolnum 4
bptm: media db entry for DD1083 already exists, aborting
Error - media manager - system error occurred
我這裡是該media ID已經存在db entry里了

 

5. 接下來就可以用bpexpdate來過期media

bpexpdate –m DD1083  –d 0

NBU expired Media,Media ID not found in EMM database的更多相关文章

  1. html自适应布局,@media screen,媒体查询

    html自适应布局,@media screen,媒体查询 自适应代码示例: <!doctype html> <html> <head> <meta chars ...

  2. [转载]在网页中插入media,RealPlayer等控件

    [转载]在网页中插入media,RealPlayer等控件 (2012-11-02 20:27:43) 转载▼ 标签: 转载   原文地址:在网页中插入media,RealPlayer等控件作者:Mo ...

  3. Intel® Media SDK Media Samples Linux 学习笔记(转)

    最近折腾intel media sdk,主要硬件平台是在HD4600的核显上进行测试,intel media sdk是intel提供的一种基于核显的硬件编解码的解决方案,之前已经有使用ffmpeg进行 ...

  4. 工厂模式,根据ID创建对应的实例类

    工厂模式,根据ID创建对应的实例类 // // main.cpp // TestCPP1 // // Created by bianchx on 15/4/27. // Copyright (c) 2 ...

  5. mysql删除重复记录,保存Id最小的一条

    方法1:1.创建一个临时表,选取需要的数据.2.清空原表.3.临时表数据导入到原表.4.删除临时表.mysql> select * from student;+----+------+| ID ...

  6. USB 设备的PID-Product ID,VID-Vendor ID

    根据USB规范的规定,所有的USB设备都有供应商ID(VID)和产品识别码(PID),主机通过不同的VID和PID来区别不同的设备,VID 和PID都是两个字节长,其中,供应商ID(VID)由供应商向 ...

  7. 创建模型,设置id

    /** * 创建模型,设置id */ Ext.onReady(function(){ Ext.define('Person',{ extend:'Ext.data.Model', idProperty ...

  8. 存储过程:当基站ID大于1000的时候,把ID通过存储过程插入表,然后处理

    不推荐这么弄,没办法,项目逼到这了,以后尽量避免这样的需求发生! CREATE OR REPLACE PROCEDURE insert_tempStation_proc(v_instr in clob ...

  9. 织梦DedeCMS删除所有栏目或文章后,新建ID不从1开始的解决方法

    这个修改方法很简单,从模板无忧那里找到的,只需要在后台系统-SQL命令行工具里面运行以下语句即可,不用采用笨方法重新安装织梦CMS了. 删除所有栏目,新建ID从1开始: ALTER TABLE `de ...

随机推荐

  1. COGS 2387.[HZOI 2016]2387题解

    题目大意: 给定一个有n个元素的数组,有m个操作,分为两种,分别是询问第k个x的下标和把下标为x的数修改为k. 题目设置了强制在线,故无法预先得知所有操作数. 思路: 有三种思路. 第一种:平衡树 b ...

  2. centos6.5 网卡的处理

    在centos安装后,找不到eth0/1 看了下dmesg | grep network的输出,发现不是驱动没有安装,而是重新命名了网卡. 1. 配置静态IP,修改 /etc/sysconfig/ne ...

  3. ubuntu安装LAMP环境

    1. LAMP 的安装 sudo apt-get install apache2 mysql-server mysql-client php5 php5-gd php5-mysql 由于LAMP大部分 ...

  4. 使用Gitosis搭建Git服务器

    使用Gitosis搭建Git服务器 作者: JeremyWei | 可以转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明 网址: http://weizhifeng.net/build- ...

  5. OS10.11系统下 安装cocoapods 以及 安装cocoapods-xcode-plugin-master插件来加载三方框架

    http://www.cnblogs.com/cheng923181/p/4883476.html OS10.11系统下 安装cocoapods 以及 安装cocoapods-xcode-plugin ...

  6. 【Networking】gRPC golang 相关资料

    参考资料: Golang gRPC 示例:  http://www.cnblogs.com/YaoDD/p/5504881.html grpc golang学习心得(1)----安装与测试:   ht ...

  7. linux下用cronolog分割apache日志

    linux下用cronolog分割apache日志,大神莫拍砖,菜鸟留一记录,小白请默默转载.连linux登陆和vi编辑都不会的,请默默关闭此页面.入正题 说明:淡绿色底的为linux命令,其他的为备 ...

  8. PHP生命周期

    2015-08-19 15:05:30 周三 一篇很好的文章 PHP内核探索 总结一下 1. 模块初始化 MINIT 各个PHP模块/扩展初始化内部变量, 告诉PHP调用自己的函数时, 函数体在哪里( ...

  9. 21. javacript高级程序设计-Ajax与Comet

    1. Ajax与Comet 1.1 XMLHttpRequest对象 IE5是第一款引入XHR对象的浏览器,IE5中是通过MSXML库中的一个ActiveX对象实现的.因此在IE中可能存在MSXML2 ...

  10. MySQL Got fatal error 1236原因和解决方法【转】

    本文来自:http://blog.itpub.net/22664653/viewspace-1714269/ 一 前言  MySQL 的主从复制作为一项高可用特性,用于将主库的数据同步到从库,在维护主 ...