TSM BA备份linux文件系统测试

1、配置dsm.sys和dsm.opt文件,这里是要做最简单的手动备份,所以不写inclexcl策略了。

[root@DB2test185 home]# cd /opt/tivoli/tsm/client/ba/bin

[root@DB2test185 bin]# more dsm.sys
************************************************************************
* Tivoli Storage Manager                                               *
*                                                                      *
* Sample Client System Options file for UNIX (dsm.sys.smp)             *
************************************************************************


*  This file contains the minimum options required to get started
*  using TSM.  Copy dsm.sys.smp to dsm.sys.  In the dsm.sys file,
*  enter the appropriate values for each option listed below and
*  remove the leading asterisk (*) for each one.


*  If your client node communicates with multiple TSM servers, be
*  sure to add a stanza, beginning with the SERVERNAME option, for
*  each additional server.


************************************************************************


SErvername 192.168.123.196
   COMMMethod         TCPip
   TCPPort            1500
   TCPServeraddress   192.168.123.196
   nodename             DB2test183
   passwordaccess               generate
   errorlogname         /home/db2inst1/tsmerr.log


[root@DB2test185 bin]#
[root@DB2test185 bin]#
[root@DB2test185 bin]#
[root@DB2test185 bin]# more dsm.opt
************************************************************************
* Tivoli Storage Manager                                               *
*                                                                      *
* Sample Client User Options file for UNIX (dsm.opt.smp)               *
************************************************************************


*  This file contains an option you can use to specify the TSM
*  server to contact if more than one is defined in your client
*  system options file (dsm.sys).  Copy dsm.opt.smp to dsm.opt.
*  If you enter a server name for the option below, remove the
*  leading asterisk (*).


************************************************************************


* SErvername       A server name defined in the dsm.sys file
SErvername   192.168.123.196


2、测试连通性

[root@DB2test185 bin]# dsmc
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 3, Level 2.0
  Client date/time: 01/21/2014 19:18:04
(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.


Node Name: DB2TEST183
Session established with server TSMSVR196: Linux/x86_64
  Server Version 6, Release 3, Level 3.0
  Server date/time: 01/15/2014 16:57:55  Last access: 01/15/2014 16:57:35


tsm>


3、查询服务端基本信息

[root@DB2test185 bin]# dsmc query MGMTCLASS
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 3, Level 2.0
  Client date/time: 01/21/2014 19:20:55
(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.


Node Name: DB2TEST183
Session established with server TSMSVR196: Linux/x86_64
  Server Version 6, Release 3, Level 3.0
  Server date/time: 01/15/2014 17:00:47  Last access: 01/15/2014 17:00:45


Domain Name               : STANDARD
Activated Policy Set Name : STANDARD
Activation date/time      : 01/15/2014 07:46:49
Default Mgmt Class Name   : STANDARD
Grace Period Backup Retn. : 30 day(s)
Grace Period Archive Retn.: 365 day(s)




MgmtClass Name                  : STANDARD
Description                     : Installed default management class.
[root@DB2test185 bin]#

4、最简单的测试

1)创建一个小文件

[root@TSMClt bin]# echo 123 >>  /software/1.bak
[root@TSMClt bin]# more /software/1.bak
123
[root@TSMClt bin]#


2)对文件做增量备份

[root@TSMClt bin]# dsmc i  /software/1.bak
IBM Tivoli Storage Manager
Command Line Backup-Archive Client Interface
  Client Version 6, Release 4, Level 1.0
  Client date/time: 03/05/2014 04:20:07
(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.


Node Name: NODE201
Session established with server TSMSVR196: Linux/x86_64
  Server Version 6, Release 3, Level 3.0
  Server date/time: 01/16/2014 00:26:54  Last access: 01/16/2014 00:04:08




Incremental backup of volume '/software/1.bak'
Normal File-->                 4 /software/1.bak [Sent]
Successful incremental backup of '/software/1.bak'




Total number of objects inspected:            7
Total number of objects backed up:            1
Total number of objects updated:              0
Total number of objects rebound:              0
Total number of objects deleted:              0
Total number of objects expired:              0
Total number of objects failed:               0
Total number of bytes inspected:          12.00 KB
Total number of bytes transferred:          147  B
Data transfer time:                        0.00 sec
Network data transfer rate:           15,950.52 KB/sec
Aggregate data transfer rate:              0.13 KB/sec
Objects compressed by:                        0%
Total data reduction ratio:               98.81%
Elapsed processing time:               00:00:01
[root@TSMClt bin]#

备份从,测试结束。相当于程序员的第一个HelloWord,呵呵。


___________________________________________________________________________________

版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!

Author:   laven54 (lurou)

Email:    laven54@163.com

Blog:      http://blog.csdn.net/laven54



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值