TSM_ISSUE_123
dsmc 命令详解
http://www-ik.fzk.de/~apel/html/adsm_manual.html
TSM InfoCenter
http://www-01.ibm.com/support/knowledgecenter/SSGSG7/welcome
TSM Error Code
http://www-01.ibm.com/support/knowledgecenter/SSGSG7_6.3.0/com.ibm.itsm.msgs.client.doc/msgs_api_list_intro.html?lang=en
常见的数据库问题场景
场景1:
磁盘空间满,查看之后,发现该目录存放的是active log,存在大量的过期的日志。通过查看db2diag.log,
1)发现存在大量的归档日志失败,同时报TSM错误
2)归档日志成功,但是完成一个日志归档需要很长时间
场景2:
TSM 客户端升级或TSM server 修改,但是没有重启数据库
TSM 问题定位三把斧
)执行命令查看客户端与TSM server的连接,尝试上传一个小的文件
dsmc
dsmc i 'filename'
) 执行命令查看DB2 是否与TSM server连接正常
db2adutl query logs db db_name
) 检查client的错误日志 dsmerror.log
常见的获取信息的方法:
----查看环境变量获取错误日志信息
)通过如下命令查看环境变量DSM_LOG,指定了errorlog存放的路径,如果env没有输出,这说明使用的是默认路径/opt/tivoli/tsm/client/
env | grep -i dsm
[inst97@ha01 ~]$ env | grep -i dsm
DSMI_DIR=/opt/tivoli/tsm/client/api/bin64/
DSM_LOG=/home/inst97
DSM_DIR=/opt/tivoli/tsm/client/api/bin64/
DSM_CONFIG=/opt/tivoli/tsm/client/api/bin64/dsm.opt
DSMI_LOG=/home/inst97
DSMI_CONFIG=/opt/tivoli/tsm/client/api/bin64/dsm.opt )错误日志文件名 dsmerror.log
----获取TSM Server hostname(IP)
)通过如下命令查看环境变量DSM(I)_CONFIG,获取定义SErver Name的dsm.opt文件,如果env没有输出,这说明使用的是默认路径/opt/tivoli/tsm/client/,api的在api/bin64 or api/bin, backup的配置在ba/bin
env | grep -i dsm
)查看文件dsm.opt,获取server name
)在DSM(I)_DIR路径下,查看dsm.sys文件,找到对应的server name的定义
)查看 TCPServeraddress 获取TSM server IP
TCPServeraddress xxxx.pok.ibm.com
----可以在TSM Client 使用命令查看到如下信息
query schedule
query mgmtclass
TSM 常见的错误
1. The TSM return code is -50
TSM server 不可用,需要engage OS team 和TSM Server support,均可以通过ops team 帮忙协调。
01/30/2015 12:00:13 ANS5216E Could not establish a TCP/IP connection with address '192.168.101.25:1500'. The TCP/IP error is 'Connection refused' (errno = 111).
01/30/2015 12:00:13 ANS9020E Could not establish a session with a TSM server or client agent. The TSM return code is -50.
01/30/2015 12:00:13 ANS1017E Session rejected: TCP/IP connection failure
2. TSM RC=0x0000006A=106 DSM_RC_ACCESS_DENIED
TSM Client 端某些文件权限存在问题,比如配置文件等,需要检测
【db2diag.log 中错误日志】
2015-02-02-22.32.21.766450+480 E29845E364 LEVEL: Error
PID : 2182 TID : 140602221987648PROC : db2vend (db2logmgr.meth1 - 36 (D
INSTANCE: inst97 NODE : 000
FUNCTION: DB2 UDB, database utilities, sqluvint, probe:377
DATA #1 : TSM RC, PD_DB2_TYPE_TSM_RC, 4 bytes
TSM RC=0x0000006A=106 -- see TSM API Reference for meaning.
2015-02-02-22.32.21.766577+480 E30210E866 LEVEL: Error
PID : 1102 TID : 139978105415424PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 36 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpInitVendorDevice, probe:1030
MESSAGE : ZRC=0x86100025=-2045771739=SQLP_MEDIA_VENDOR_DEV_ERR
"A vendor device reported a media error."
DATA #1 : String, 29 bytes
Init failed! Vendor rc info:
DATA #2 : Vendor RC, PD_DB2_TYPE_VENDOR_RC, 4 bytes
Vendor RC=0x0000000B=11 -- see DB2 API Guide for meaning.
DATA #3 : Hexdump, 48 bytes
0x00007F4EEEE78AD0 : 6A00 0000 3337 3720 3130 3600 0000 0000 j...377 106.....
0x00007F4EEEE78AE0 : 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00007F4EEEE78AF0 : 0000 0000 0000 0000 0000 0000 0000 0000 ................
2015-02-02-22.32.21.766715+480 I31077E429 LEVEL: Error
PID : 1102 TID : 139978105415424PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 36 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogVendor, probe:1820
RETCODE : ZRC=0x86100025=-2045771739=SQLP_MEDIA_VENDOR_DEV_ERR
"A vendor device reported a media error."
2015-02-02-22.32.21.766813+480 E31507E461 LEVEL: Warning
PID : 1102 TID : 139978105415424PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 36 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3150
MESSAGE : ADM1848W Failed to archive log file "S0000000.LOG" to "TSM chain 0"
from "/db2data/db97/inst97/NODE0000/SQL00001/SQLOGDIR/".
2015-02-02-22.32.21.767038+480 E31969E562 LEVEL: Error
PID : 1102 TID : 139978105415424PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 36 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3160
MESSAGE : ZRC=0x86100025=-2045771739=SQLP_MEDIA_VENDOR_DEV_ERR
"A vendor device reported a media error."
DATA #1 : <preformatted>
Failed to archive log file S0000000.LOG to TSM chain 0 from /db2data/db97/inst97/NODE0000/SQL00001/SQLOGDIR/.
3. TSM RC=0x0000000B=11 DSM_RC_ABORT_NO_REPOSIT_ SPACE
表明server端没有可用的存储空间
【db2diag.log 中错误日志】
2015-02-02-22.37.18.353566+480 E46638E364 LEVEL: Error
PID : 2664 TID : 139694272812864PROC : db2vend (db2logmgr.meth1 - 22 (D
INSTANCE: inst97 NODE : 000
FUNCTION: DB2 UDB, database utilities, sqluvend, probe:1536
DATA #1 : TSM RC, PD_DB2_TYPE_TSM_RC, 4 bytes
TSM RC=0x0000000B=11 -- see TSM API Reference for meaning.
2015-02-02-22.37.18.354415+480 I47003E810 LEVEL: Error
PID : 2638 TID : 139941229094656PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 22 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpCloseVendorDevice, probe:2800
MESSAGE : ZRC=0x86100025=-2045771739=SQLP_MEDIA_VENDOR_DEV_ERR
"A vendor device reported a media error."
DATA #1 : Vendor RC, PD_DB2_TYPE_VENDOR_RC, 4 bytes
Vendor RC=0x00000011=17 -- see DB2 API Guide for meaning.
DATA #2 : Hexdump, 48 bytes
0x00007F4656E78AD0 : 0B00 0000 3135 3336 2031 3100 0000 0000 ....1536 11.....
0x00007F4656E78AE0 : 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00007F4656E78AF0 : 0000 0000 0000 0000 0000 0000 0000 0000 ................
2015-02-02-22.37.18.354561+480 I47814E429 LEVEL: Error
PID : 2638 TID : 139941229094656PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 22 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogVendor, probe:2870
MESSAGE : ZRC=0x86100025=-2045771739=SQLP_MEDIA_VENDOR_DEV_ERR
"A vendor device reported a media error."
2015-02-02-22.37.18.354623+480 E48244E461 LEVEL: Warning
PID : 2638 TID : 139941229094656PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 22 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3150
MESSAGE : ADM1848W Failed to archive log file "S0000000.LOG" to "TSM chain 0"
from "/db2data/db97/inst97/NODE0000/SQL00001/SQLOGDIR/".
4. 一些配置文件权限不够,导致dsmc 执行失败,需要engage OS team 帮忙修改。
0116 E DSM_RC_FILE_BEING_EXECUTED File is in use; Write permission denied.
附录:正确的数据库归档日志
2015-02-02-22.45.02.803066+480 E50590E379 LEVEL: Info
PID : 2638 TID : 139941216511744PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 39 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3108
DATA #1 : <preformatted>
Started archive for log file S0000000.LOG.
2015-02-02-22.45.05.216822+480 E50970E450 LEVEL: Info
PID : 2638 TID : 139941216511744PROC : db2sysc 0
INSTANCE: inst97 NODE : 000
EDUID : 39 EDUNAME: db2logmgr (DB97) 0
FUNCTION: DB2 UDB, data protection services, sqlpgArchiveLogFile, probe:3180
DATA #1 : <preformatted>
Completed archive for log file S0000000.LOG to TSM chain 0 from /db2data/db97/inst97/NODE0000/SQL00001/SQLOGDIR/.
案例分享:
案例一:
IN5837476
the configuration file dsm.opt for API is linked to the one for BA.
There's one line that led tsm api issue
"subdir yes" is dedicately for for BA, shouldn't be in this file (but it is)
Besides, COMMMethod TCPip should be in this file (but it is not)
so the db2adutl got errors but dsmc is good.
we had OS team to create new configuration file for TSM API with correct contents, and recycled db2 instances that using this TSM client. issue fixed.
案例二:
0116 E DSM_RC_FILE_BEING_EXECUTED File is in use; Write permission denied.
dsm.sys的 group 缺少实例用户组导致无法正常使用TSM
案例三:
TSM Client:
b01cxnp11081.gho.pok.ibm.com 1.18
TSM Case:
Server Info: xxx
Instance: opicmdb5
Detail: dsmc q b "/db/db2backup2/HVECODS2*", could not get any result.
Cause: the backup command is
dsmc q b "/db/db2backup2/HVECODS2*" -inactive
dsmc incremental /db/db2backup2/HVECODS2* -se=pokxmet3_db2
if we need to check it, we should specify the SE
案例四:
TSM Case:
Server Info: xxx
Instance: opicmdb5
Detail:
Incremental backup of volume '/db/db2backup2/HVECODS2*'
Normal File--> 53,187,989,504 /db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140310210103.001 ** Unsuccessful
**
ANS1228E Sending of object '/db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140310210103.001' failed
ANS0326E This node has exceeded its maximum number of mount points.
Normal File--> 53,217,349,632 /db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140311210104.001 ** Unsuccessful
**
ANS1228E Sending of object '/db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140311210104.001' failed
ANS0326E This node has exceeded its maximum number of mount points.
Normal File--> 53,221,543,936 /db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140312210104.001 ** Unsuccessful
**
ANS1228E Sending of object '/db/db2backup2/HVECODS2.0.opicmdb5.NODE0000.CATN0000.20140312210104.001' failed
ANS0326E This node has exceeded its maximum number of mount points.
ANS1802E Incremental backup of '/db/db2backup2/HVECODS2*' finished with 3 failure
Cause:
ANS0326E This node has exceeded its maximum number of mount points.
根本原因是多个dsmc同时执行上传命令导致
TSM_ISSUE_123的更多相关文章
随机推荐
- chattr命令锁定账户敏感文件
有时候你发现用root权限都不能修改某个文件,大部分原因是曾经用chattr命令锁定该文件了.chattr命令的作用很大,其中一些功能是由Linux内核版本来支持的,不过现在生产绝大部分跑的linux ...
- mysql - 查看表字段和字段描述
1.mysql查看表字段和字段描述 SELECT column_name, column_comment FROM information_schema.columns WHERE table_sch ...
- Python 3 Mysql 增删改查
import pymysql import datainfo import time #获取参数 host = datainfo.host username = datainfo.username p ...
- &class::data_member与&object.data_menber之间的差异
前者取data_member在class中的offset:指针类型是:type class::* 后者将会得到该data_member在内存中的真正地址:指针类型是:type*
- Linq实战 之 DataSet操作详解
Linq实战 之 DataSet操作详解 一:linq to Ado.Net 1. linq为什么要扩展ado.net,原因在于给既有代码增加福利.FCL中在ado.net上扩展了一些方法. 简单一 ...
- [Postgres]关于Postgres的INHERIT,分表
实在是很强大的功能 可以通过Check的制约把结构相同的表合并起来,或者反过来说,可以在一个表名下数据库自动的根据Check条件往对应的分表里存储数据 [USER_DATA表] CREATE TABL ...
- 在Linux安装ASP.Net Core的运行时(Runtime)
在部署的时候,如果您不想在您的Linux服务器上安装.Net Core SDK,您可以只安装Runtime,接下来我们看看该如何安装运行时Runtime. 下载运行时文件 下载页面:https://w ...
- nowcoder(牛客网)提高组模拟赛第一场 解题报告
T1 中位数(二分) 这个题是一个二分(听说是上周atcoder beginner contest的D题???) 我们可以开一个数组b存a,sort然后二分b进行check(从后往前直接遍历check ...
- 卸载jdk1.7
卸载jdk1.7: 1.开始->程序->控制面板 ->卸载程序->程序和功能 2.找到jdk的两个程序:java 7 update 45和java(TM)SE Developm ...
- API自动化测试 Soap UI工具介绍
一. 建立测试用例 (一) 基本概念 soapUI 中工程的层次结构 项目名称:位于最上层 (BookStoreTest),项目可以包含多个服务的定义. REST 服务定义:服务其实是对多个 ...