TSM备份服务器日常维护手册

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

TSM备份服务器日常维护手册
1TSM 的日常检查
1.1备份服务器检查
1.1.1查看服务器信息
TSMSERVER>q status
Storage Management Server for AIX - Version 6, Release 2, Level 3.0 Server Name: TSMSERVER
Server host name or IP address: 192.168.1.91
Server TCP/IP port number: 1500
Crossdefine: Off
Server Password Set: Yes
Server Installation Date/Time: 10/10/2011 23:26:18 Server Restart Date/Time: 12/05/2011 15:51:50 Authentication: On
Password Expiration Period: 9,999 Day(s)
Invalid Sign-on Attempt Limit: 0
Minimum Password Length: 0
Registration: Closed
Sub: No
Availability: Enabled
Accounting: Off
Activity Log Retention: 1 Day(s)
Activity Log Number of Records: 4697
Activity Log Size: <1 M
Activity Summary Retention Period: 30 Day(s)
License Audit Period: 30 Day(s)
Last License Audit: 12/16/2011 03:52:49 Server License Compliance: Valid
Central Scheduler: Active
Maximum Sessions: 200
Maximum Scheduled Sessions: 100
Event Record Retention Period: 10 Day(s)
Client Action Duration: 5 Day(s)
Schedule Randomization Percentage: 25
Query Schedule Period: Client
Maximum Command Retries: Client
Retry Period: Client
Client-side Deduplication Verification Level: 0 %
Scheduling Modes: Any
Active Receivers: CONSOLE ACTLOG
Configuration manager?: Off
Refresh interval: 60
Last refresh date/time:
Context Messaging: Off
Table of Contents (TOC) Load Retention: 120 Minute(s)
Machine Globally Unique ID:
00.00.00.00.f2.b3.11.e0.b9.d8.08.63.c0.a8.01.5b
Archive Retention Protection: Off
Database Reporting Mode: Partial
Database Directories: /tsmdata/tsmdb
Total Size of (MB): 51,200.00
Space Used on (MB): 31,163.42
Free Space Available (MB): 19,972.58
Encryption Strength: AES
1.1.2查看数据库信息
TSMSERVER>q db
Database Name Total Pages Usable Pages Used Pages Free Pages -------------- ------------ ------------ ------------ ------------ TSMDB1 49,764 49,628 43,320 6,308 TSMSERVER>q db f=d
Database Name: TSMDB1
Total Size of (MB): 51,200
Space Used by Database(MB): 629
Free Space Available (MB): 19,973
Total Pages: 49,764
Usable Pages: 49,628
Used Pages: 43,320
Free Pages: 6,308
Buffer Pool Hit Ratio: 100.0
Total Buffer Requests: 201,636,799
Sort Overflows: 0
Package Cache Hit Ratio: 85.9
Last Database Reorganization: 12/27/2011 11:41:32
Full Device Class Name: TAPE
Incrementals Since Last Full: 0
Last Complete Backup Date/Time:
TSMSERVER>q dbs
Location Total Space(MB) Used Space(MB) Free Space(MB) ------------ --------------- --------------- --------------- /tsmdata/tsmdb 51,200.00 31,163.42 19,972.58 TSMSERVER>q log
Total Space(MB) Used Space(MB) Free Space(MB)
--------------- --------------- ---------------
4,096 43 4,033
TSMSERVER>q log f=d
Total Space(MB): 4,096
Used Space(MB): 43
Free Space(MB): 4,033
Active Log Directory: /tsmdata/tsmlog
Archive Log Directory: /tsmdata/tsmarchlog
Mirror Log Directory:
Archive Failover Log Directory:
1.2备份设备检查
1.1.3查看磁带库信息
TSMSERVER>q libr
TSMSERVER>q libr f=d
Library Name: TS3100
Library Type: SCSI
ACS Id:
Private Category:
Scratch Category:
WORM Scratch Category:
External Manager:
Shared: Yes
LanFree:
ObeyMountRetention:
Primary Library Manager:
WWN: 2001000E1114BC15
Serial Number: 00L2U78V2817_LL0
AutoLabel: No
Reset Drives: No
Relabel Scratch:
Last Update by (administrator): ADMIN
Last Update Date/Time: 12/02/2011 14:05:27
1.1.4查看驱动器状态
TSMSERVER>q drive
Library Name Drive Name Device Type On-Line ------------ ------------ ----------- ------------------- TS3100 DR0 LTO Yes
1.1.5查看可用磁带数量
TSMSERVER>q libv
TSMSERVER>q v
注:请注意系统文件系统的空间或者磁盘空间的可用大小
1.1.6查看存储池的状态
TSMSERVER>q stg
1.1.7查看磁盘卷状态
TSMSERVER>select volume_name, stgpool_name status from volumes where
devclass_name='STG1'
1.3作业调度检查
1.1.8查看备份作业调度TSMSERVER>q ev * * t=c
1.1.9查看管理作业调度TSMSERVER>q event * t=a
1.1.10查看备份数据库调度
TSMSERVER>query volhistory type=dbbackup
Date/Time: 12/02/2011 15:15:27 Volume Type: BACKUPINCR
Backup Series: 0
Backup Operation: 1
Volume Seq: 1
Device Class: TAPE
Volume Name: 153AAXL5
Volume Location:
Command:
Database Backup ID High: 0
Database Backup ID LOW: 33,066
Database Backup Home Position: 0
Database Backup HLA: /NODE0000/
Database Backup LLA: DB_INCR_BACKUP.227.1 Database Backup Total Data Bytes (MB) : 208.05
Database Backup total Log Bytes (MB) : 496.14
Database Backup Block Num High: 0
Database Backup Block Num Low: 838
1.4活动日志检查
TSMSERVER>query actlog search=ANR????E
TSMSERVER>q act > /tmp/tsm.log
Output of command redirected to file '/tmp/tsm.log'
2TSM的日常操作
2.1备份服务器
2.1.1启动备份服务器
执行以下步骤
1.切换到tsm实例用户
# su - tsminst1
查看TSM server 数据库是否启动
#ps -ef |grep -i dsm
2.启动实例
$ db2start
3.查看所有数据库
$ db2 list db directory
4.连接数据库
$ db2 connect to tsmdb1
查看其配置信息
$ db2 get db cfg for tsmdb1
5.启动TSM进程
进入tsm服务器程序的安装路径下:
$ cd /tsmdata/tsminst
$ /opt/tivoli/tsm/server/bin/dsmserv
如果需要TSM启动到后台,使用以下命令启动
$ /opt/tivoli/tsm/server/bin/dsmserv -q &
6.查看启动是否成功
登录到TSM管理控制台,查看TSM是否启动成功
$ su - root
# cd /usr/tivoli/tsm/client/ba/bin64
# ./dsmadmc
输入用户名admin,密码111111Aa
TSM> q status
如果可以正常显示TSM服务器的信息,说明TSM启动成功。

2.1.2停止备份服务器
1. 切换到/usr/tivoli/tsm/client/ba/bin64目录下,运行dsmadmc,输入口令/密码admin/***** 进入管理员界面
2. 禁止服务器接收新的客户端访问TSM>disable sessions
3. 查看当前客户端与服务器的连接TSM>query session
4. 等待客户端结束备份或直接中断连接TSM>cancel session XX(all)
5. 查看服务器进程TSM>query process
6. 等待服务器进程结束或直接中断进程TSM>cancel process
q mount检查是否有磁带被使用。

q request检查是否有需要人工干预的操作。

7. 停止服务器,在提示符下输入halt
TSM>halt
2.1.3备份服务器选项信息
TSMSERVER>q opt
2.1.4修改服务器选项信息TSMSERVER>setopt MaxSessions 300
2.2备份节点数据查询
2.2.1TSM server端查询TSMSERVER>q nodedata DBSERVER2_DEDUP
TSMSERVER>q content /stg1/vol1.dsm
2.2.2TSM client端查询
本机的客户端数据查询
# dsmc q backup /tmp/tsm6.3_client –inactive
异机的客户端数据查询
#dsmc q backup /tmp/ -virtualnodename=DBSERVER2_DEDUP -inactive
2.3备份节点数据恢复
2.4备份密码修改
2.4.1修改过期时间
修改服务器及备份节点的密码到期时间
TSMSERVER>set passexp 9999
ANR2092I Password expiration period set to 9999 days.
修改备份节点的密码到期时间
TSMSERVER>set passexp 999 no=ora_node
ANR2199I Password expiration period for node ORA_NODE set to 999 days.
修改服务器的密码到期时间
TSMSERVER>set passexp 999 admin=admin
ANR2299I Password expiration period for administrator ADMIN set to 999 days.
2.4.2更新密码
更新管理员密码
TSMSERVER>update admin admin 1****Aa passexp=999
ANR2071I Administrator ADMIN updated
更新节点密码
TSMSERVER>update no ora_node 1234567890
ANR2063I Node ORA_NODE updated.
2.5更换磁带介质
2.5.1磁带出库
将卷名为151AAXL5的磁带出库
TSMSERVER>checkout libv ts3100 151AAXL5
ANS8003I Process number 4 started.
2.5.2已出库磁带入库
将出库的磁带重新加入磁带库
TSMSERVER>checkin libv ts3100 search=bulk status=private waitt=0
ANS8003I Process number 6 started.
如果查询request出现以下状况
TSMSERVER>q request
ANR8352I Requests outstanding:
ANR8373I 002: Fill the bulk entry/exit port of library TS3100 with all LTO volumes to be processed within 59 minute(s); issue
'REPLY' along with the request ID when ready.
需要执行以下操作,迅速完成磁带入库
TSMSERVER>reply 2
ANR8499I Command accepted.
2.5.3新磁带入库
将新的入库磁带放入I/O槽中,执行以下命令:
TSMSERVER>checkin libv ts3100 search=bulk status=scratch
ANS8003I Process number 6 started.
TSM> label libvol ts3100 search=b labelsource=barcode checkin=scratch overwrite=yes
将新磁带直接放入带库中,需要执行以下命令:
TSM> audit libv ts3100
TSM> label libvol ts3100 search=b labelsource=barcode checkin=scratch overwrite=yes
3TSM服务器的备份恢复
3.1TSM服务器的备份
3.1.1备份准备工作
设置备份设备类型
TSMSERVER>set dbrecovery tape
ANR2782I SET DBRECOVERY completed successfully and device class for automatic DB backup is set to TAPE.
3.1.2手动备份服务器数据库
备份卷信息到磁盘上
TSMSERVER>backup volhistory dbbak/volhist.out
备份设备配置信息到磁盘上
TSMSERVER>backup devconfig dbbak/devcnfg.out
备份数据库空间信息
TSMSERVER>query dbspace >> /tmp/dbinfo.txt
TSMSERVER>query log f=d >> /tmp/loginfo.txt
Output of command redirected to file '/tmp/dbinfo.txt'
备份数据库
TSMSERVER>backup db devc=tape type=full volumenames=151AAXL5
ANR2280I Full database backup started as process 14.
ANS8003I Process number 14 started.
3.1.3自动备份服务器数据库
3.2确认灾难恢复介质
3.2.1查询灾难备份磁带介质
TSMSERVER>q drm
Volume Name State Last Update Automated Date/Time LibName ------------ ------------- -------------- ------------
153AAXL5 Mountable 12/02/2011 15:15:27 TS3100
3.2.2查询灾难备份数据参数信息
TSMSERVER>q drmst
Recovery Plan Prefix:
Plan Instructions Prefix:
Replacement Volume Postfix: @
Primary Storage Pools:
Copy Storage Pools:
Active-Data Storage Pools:
Not Mountable Location Name: NOTMOUNTABLE Courier Name: COURIER
Vault Site Name: VAULT
DB Backup Series Expiration Days: 60 Day(s) Recovery Plan Days: 60 Day(s)
Check Label?: Yes
Process Type?: No
Command :
4附件
4.1附件1。

相关文档
最新文档