【TSM备份软件】tsm+vistor虚拟带库配置测试

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:1616

1、在linux下安装虚拟带库及TSM设备配置
配置过程如下:
首先安装vistor软件

启动vistor:
[root@oracle vistor]# ./vistor
Usage: vistor [status | stop | start | ver]
[root@oracle vistor]# ./vistor start
ViStor services started successfully
[root@oracle vistor]# ./vistor status
ViStor is running
登录到http://your/]http://your linux server ip:5050,默认密码为空,进去后就可以看到磁带库的状态了:
配置一个机械手,4个驱动器,8个1G的磁带。
[root@localhost bin]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware, Model: VMware Virtual S Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: QUANTUM Model: Scalar i500 Rev: 1.00
Type: Medium Changer ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 02 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 04 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: 1.00
Type: Sequential-Access ANSI SCSI revision: 03
安装tsm server for linux
通过rpm安装下列文件:
TIVsm-server-5.4.0-0.i386.rpm
TIVsm-tsmscsi-5.4.0-0.i386.rpm
TIVsm-license-5.4.0-0.i386.rpm

[root@localhost bin]# cd /opt/tivoli/tsm/devices/
[root@localhost devices]# ls
bin
[root@localhost devices]# cd bin
[root@localhost bin]# ls
autoconf kill.acs_ssi lbtest mt.conf.smp op.conf.smp rc.acs_ssi ssi trace_decode
ddinfo lb.conf.smp mini_el mttest optest README t_parent tsmscsi
[root@localhost bin]# ls -lsa
total 2780
4 drwxr-xr-x 3 root root 4096 May 30 12:28 .
4 drwxr-xr-x 3 root root 4096 May 30 12:28 ..
36 -rwxr-xr-x 1 root root 35900 Dec 7 2006 autoconf
24 -rwxr-xr-x 1 root root 22755 Dec 7 2006 ddinfo
4 -rwxr-xr-x 1 root root 1178 Dec 7 2006 kill.acs_ssi
4 -rw-r--r-- 1 root root 1357 Dec 7 2006 lb.conf.smp
740 -rwxr-xr-x 1 root root 749624 Dec 7 2006 lbtest
24 -rwxr-xr-x 1 root root 23487 Dec 7 2006 mini_el
4 -rw-r--r-- 1 root root 1344 Dec 7 2006 mt.conf.smp
736 -rwxr-xr-x 1 root root 746095 Dec 7 2006 mttest
4 -rw-r--r-- 1 root root 1350 Dec 7 2006 op.conf.smp
716 -rwxr-xr-x 1 root root 727616 Dec 7 2006 optest
12 -rwxr-xr-x 1 root root 11434 Dec 7 2006 rc.acs_ssi
4 drwxr-xr-x 2 root root 4096 May 30 12:28 README
356 -rwxr-xr-x 1 root root 356556 Dec 7 2006 ssi
16 -rwxr-xr-x 1 root root 14412 Dec 7 2006 t_parent
88 -rwxr-xr-x 1 root root 84335 Dec 7 2006 trace_decode
4 -rwxr-xr-x 1 root root 2482 Dec 7 2006 tsmscsi

[root@localhost bin]# ./autoconf
/bin/mknod: `/dev/sg2': File exists
/bin/mknod: `/dev/sg3': File exists
/bin/mknod: `/dev/sg4': File exists
/bin/mknod: `/dev/sg5': File exists
Tivoli Tape Drives:
===================
Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev.
000 002 001 000 001 000 001 HP 674019501 Ultrium 2-SCSI 1.00
001 003 001 000 002 000 001 HP 674019502 Ultrium 2-SCSI 1.00
002 004 001 000 003 000 001 HP 674019503 Ultrium 2-SCSI 1.00
003 005 001 000 004 000 001 HP 674019504 Ultrium 2-SCSI 1.00

Tivoli Medium Changer Devices:
==============================
Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev.
000 001 001 000 000 000 008 QUANTUM 674019500 Scalar i500 1.00
[root@localhost bin]# ls -ls /dev/tsmscsi/
total 8
0 lrwxrwxrwx 1 root root 8 May 30 12:55 lb0 -> /dev/sg1
4 -rw-r--r-- 1 root root 175 May 30 12:55 lbinfo
0 lrwxrwxrwx 1 root root 8 May 30 12:55 mt0 -> /dev/sg2
0 lrwxrwxrwx 1 root root 8 May 30 12:55 mt1 -> /dev/sg3
0 lrwxrwxrwx 1 root root 8 May 30 12:55 mt2 -> /dev/sg4
0 lrwxrwxrwx 1 root root 8 May 30 12:55 mt3 -> /dev/sg5
4 -rw-r--r-- 1 root root 436 May 30 12:55 mtinfo
2、配置TSM服务
[root@localhost bin]# pwd
/opt/tivoli/tsm/server/bin
[root@localhost bin]# ./dsmserv
2.1 定义server
Tsm:tsm> set servername SERVER1
Tsm:fykj> set serverpassword admin
Tsm:fykj> set serverhladdress 192.168.10.2
Tsm:fykj> set crossdefine on
Tsm:fykj> set passexp 9999
DEFINE server SERVER1 serverpassword=admin hladdress=192.168.10.2 lladdress=1500

2.2 定义磁带库和路径
DEFINE LIBRARY LIBRARY1 LIBTYPE=SCSI
定义一个库,库类型SCSI,库名称library1.
DEFINE PATH SERVER1 LIBRARY1 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=/dev/tsmscsi/lb0 NLINE=YES
定义这个库的路径,这里的DEVICE,使用/dev/tsmscsi/下面的lb0.不要使用/dev/sg3

2.3 定义驱动器和路径
DEFINE DRIVE LIBRARY1 DRIVE0 ELEMENT=2051
DEFINE DRIVE LIBRARY1 DRIVE1 ELEMENT=2052
DEFINE DRIVE LIBRARY1 DRIVE2 ELEMENT=2053
DEFINE DRIVE LIBRARY1 DRIVE3 ELEMENT=2054
定义四个驱动器,这里面的element参数很麻烦,这个参数,有的库里面可以自动获取到,定义的时候就不需要这个参数了,但我选的这些虚拟设备,自动获取不到,就需要我去寻找了,使用如下方法来获取element 的值:
tsm:SERVER1>show slots library1
PVR slot information for library LIBRARY1.
Library : LIBRARY1
Product Id : Scalar i500
Support module : 2
Mount count : 0
Drives : 4
Slots : 32
Changers : 1
Import/Exports : 0
Device : /dev/tsmscsi/lb0
Drive 0, element 2051
Drive 1, element 2052
Drive 2, element 2053
Drive 3, element 2054
Changer 0, element 0
Slot 0, status Full, element number 1, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 1, status Full, element number 2, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 2, status Full, element number 3, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 3, status Full, element number 4, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 4, status Full, element number 5, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 5, status Full, element number 6, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 6, status Full, element number 7, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
Slot 7, status Full, element number 8, barcode not present, barcode value <>, devT=ANY,
mediaT=-1, elemT=ANY
slot element range 1 - 32
上面Drive 0-3 的那一块,很清楚的显示了element 的值。
这种方法,需要先定义好库,也就是机械臂,然后才能查到库中drive 的值。另外还有一种使用ibmtapeutil 工具来获取的方法。

DEFINE PATH SERVER1 DRIVE0 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=LIBRARY1 DEVICE=/dev/tsmscsi/mt0 NLINE=YES
DEFINE PATH SERVER1 DRIVE1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=LIBRARY1 DEVICE=/dev/tsmscsi/mt1 NLINE=YES
DEFINE PATH SERVER1 DRIVE2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=LIBRARY1 DEVICE=/dev/tsmscsi/mt2 NLINE=YES
DEFINE PATH SERVER1 DRIVE3 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=LIBRARY1 DEVICE=/dev/tsmscsi/mt3 NLINE=YES
定义好了4 个驱动器后,定义它们的PATH,device 同样要使用/dev/tsmscsi/mt*
tsm:SERVER1>q path
Source Name Source Type Destination Destination On-Line
Name Type
----------- ----------- ----------- ----------- -------
SERVER1 SERVER LIBRARY1 LIBRARY Yes
SERVER1 SERVER DRIVE0 DRIVE Yes
SERVER1 SERVER DRIVE1 DRIVE Yes
SERVER1 SERVER DRIVE2 DRIVE Yes
SERVER1 SERVER DRIVE3 DRIVE Yes
tsm:SERVER1>q drive
Library Name Drive Name Device Type On-Line
------------ ------------ ----------- -------------------
LIBRARY1 DRIVE0 LTO Yes
LIBRARY1 DRIVE1 LTO Yes
LIBRARY1 DRIVE2 LTO Yes
LIBRARY1 DRIVE3 LTO Yes
tsm:SERVER1>q librar
Library Name: LIBRARY1
Library Type: SCSI
ACS Id:
Private Category:
Scratch Category:
WORM Scratch Category:
External Manager:
Shared: No
LanFree:
ObeyMountRetention:

2.4 定义设备类
DEFINE DEVCLASS HPLTO2 DEVTYPE=LTO FORMAT=ULTRIUM2C ESTCAPACITY=1048576K LIBRARY=LIBRARY1
定义一个设备类,名字叫hplto2,设备类型是lto,格式是ULTRIUM2C,估计每盘磁带的容量为1G,对应的库的名称是library1.
这里的格式,可以在TSM 的命令手册里面查到。本来,lto2 的容量应该是200G/400G,但是我这是测试,而且没有那么大
的空间,在安装VISTOR 的时候,就选择了每盘磁带1G,所以这里的估计容量就写了1G,写多了没用,写少了有些统计
信息不准。

tsm:SERVER1>q devclass
Device Device Storage Device Format Est/Max Mount
Class Access Pool Type Capacity Limit
Name Strategy Count (MB)
--------- ---------- ------- --------- ------ -------- ------
DISK Random 3
HPLTO2 Sequential 0 LTO ULTRI- 1,024.0 DRIVES
UM2C

2.5 定义存储池

def stgpool orapool hplto2 maxscr=4
定义一个存储池,名字叫dongpool,对应的设备类是hplto2,最多使用4 个临时卷。
Upd stgpool BACKUPPOOL nextpool=orapool
更新系统中的backuppool 这个存储池,将它的下一级存储池指向刚才我定义的orabakpool

tsm:SERVER1>q stg
Storage Device Estimated Pct Pct High Low Next Stora-
Pool Name Class Name Capacity Util Migr Mig Mig ge Pool
Pct Pct
----------- ---------- ---------- ----- ----- ---- --- -----------
ARCHIVEPOOL DISK 5.0 M 0.1 0.0 90 70
BACKUPPOOL DISK 10.0 M 0.0 0.0 90 70 ORABAKPOOL
ORABAKPOOL HPLTO2 0.0 M 0.0 0.0 90 70
SPACEMGPOOL DISK 0.0 M 0.0 0.0 90 70

2.6 Label 磁带及磁带的检入检出
label libv library1 search=yes voll=bk0001 labels=barcode verwrite=yes checkin=scr waitt=0
label 一个卷,卷名称bk0001,从标签来读取这个磁带的名称,覆盖,并作为临时磁带检入磁带库,不等待插入动作。
这里,有几种label 的方法,用vistor+tsm 的时候,往往就在这里报错了,卡住了,进行不下去了,所以说这里是
个关键点,我得解释清楚一点。

2.6.1 第一种方法(最终效果如图,后面有点问题,主要看第二种方法与第三种方法)
先来看命令字数最少的一种label 方法:
tsm:SERVER1>label libv library1 bk0001
ANS8003I 启动 2 号进程。
输入这个命令后,后台日志提示如下:
ANR8799I LABEL LIBVOLUME: Operation for library LIBRARY1 started as process 2.
ANR8439I SCSI library LIBRARY1 is ready for operations.
ANR8306I 001: Insert LTO volume BK0001 R/W into the slot with element number 9 of library LIBRARY1
within 60 minutes; issue 'REPLY' along with the request ID when ready.
这里,显示label 动作已经在后台开始,并且提示你将bk0001这盘磁带插入到9 号槽(slot with element number 9),并且
在插入完成后,发出reply 命令来告诉TSM 你插入完成了。
要记住ANR8306I 001: Insert LTO volume BK0001这里的001 这个请求号码,等会要用到。
这时候,进到vistor 的WEB 界面,点击“管理磁带库”,到了如下界面Snap11
在这个画面,先点击右上角那个STOP 图标,使磁带库脱机,然后选择BK0001 这一盘带子,点击移动,将它移动到9 号
槽,如下图:Snap12
移动成功后,再点击右上角的RUN 图标,使磁带库online。 Snap13
然后回到TSM 命令行,发出如下命令:
tsm:SERVER1>reply 001
ANR8499I Command accepted.
完后后,后台日志提示如下:
ANR2017I Administrator ADMIN issued command: REPLY 001
ANR8810I Volume BK0001 has been labeled in library LIBRARY1.
ANR8814I Remove volume BK0001 from slot element 9 of library LIBRARY1.
ANR8800I LABEL LIBVOLUME for volume BK0001 in library LIBRARY1 completed successfully.
ANR0985I Process 2 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state
SUCCESS at 01:32:25 PM.
这就显示这盘磁带label 完成了,已经打好了标记,磁带名叫BK0001 了。
然后需要把这盘磁带checkin 到磁带库,就是检入,下面的命令需要和上面差不多的动作,
tsm:SERVER1>checkin libv library1 BK0001 stat=scr
ANS8003I 启动 3 号进程。
后台日志如下:
ANR2017I Administrator ADMIN issued command: CHECKIN libv library1 BK0001 stat=scr
ANR0984I Process 3 for CHECKIN LIBVOLUME started in the BACKGROUND at 01:35:56 PM.
ANR8422I CHECKIN LIBVOLUME: Operation for library LIBRARY1 started as process 3.
ANR8306I 002: Insert LTO volume BK0001 R/W into the slot with element number 1 of library LIBRARY1
within 60 minutes; issue 'REPLY' along with the request ID when ready.
tsm:SERVER1>reply 002
ANR8499I Command accepted.
ANR8306I 002: Insert LTO volume BK0001 R/W into the slot with element number 1 of library LIBRARY1
within 59 minutes; issue 'REPLY' along with the request ID when ready.
ANR2017I Administrator ADMIN issued command: REPLY 002
ANR8300E I/O error on library LIBRARY1 (OP=C0106C03, CC=314, KEY=05, ASC=3B, ASCQ=0E,
SENSE=70.00.-05.00.00.00.00.1E.00.00.00.00.3B.0E.00.C0.00.04.,
Description=The source slot or drive was empty in an attempt to move a volume). Refer to Appendix C in the 'Messages' manual for recommended action.ANR8942E Could not move volume BK0001 from slot-element 1 to slot-element 2052.
ANR8841I Remove volume from slot 1 of library LIBRARY1 at your convenience.
ANR8426E CHECKIN LIBVOLUME for volume BK0001 in library LIBRARY1 failed.
ANR0985I Process 3 for CHECKIN LIBVOLUME running in the BACKGROUND completed with completion state
FAILURE at 01:37:01 PM.
检入失败了。

2.6.2 第二种方法

tsm:SERVER1> label libv library1 search=yes voll=bk0001,bk0002,bk0003,bk0004 labels=barcode checkin=scr verwrite=yes waitt=0
ANS8003I 启动 10 号进程。

后台日志:
ANR0984I Process 10 for LABEL LIBVOLUME started in the BACKGROUND at 01:45:24 PM.
ANR8799I LABEL LIBVOLUME: Operation for library LIBRARY1 started as process 10.
ANR8810I Volume BK0002 has been labeled in library LIBRARY1.
ANR8810I Volume BK0003 has been labeled in library LIBRARY1.
ANR8810I Volume BK0004 has been labeled in library LIBRARY1.
ANR8810I Volume BK0001 has been labeled in library LIBRARY1.
ANR8801I LABEL LIBVOLUME process 10 for library LIBRARY1 completed; 4 volume(s) labelled, 4
volume(s) checked-in.
ANR0985I Process 10 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state
SUCCESS at 01:45:24 PM.

这里采用搜索的方法,以barcode 来搜索bk0001,bk0002,bk0003,bk0004 四盘磁带,并label 它们,然后检入到磁带库,使之成为
临时卷,不等待管理员放入磁带,直接开始。
这里适合磁带已经在磁带库里面的情况,就不需要发出reply 这个命令了,所以waittime 设置为0.
这里的search 设置为yes,而不是bulk 是有原因的,当设置为yes 时,会在磁带库里面查找磁带,设置为bulk 时,会在磁
带库的IO 仓里面查找磁带。我虚拟出来的磁带库没有IO 仓,所以用YES 这个参数了。
使用checkin=scr 参数,可以在label 之后,直接把磁带检入到磁带库,省一步动作。
tsm:SERVER1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
LIBRARY1 BK0001 Scratch 9
LIBRARY1 BK0002 Scratch 2
LIBRARY1 BK0003 Scratch 3
LIBRARY1 BK0004 Scratch 4

2.6.3 第三种方法
tsm:SERVER1> label libv library1 search=yes labels=barcode checkin=scr verwrite=yes waitt=0
ANS8003I 启动 11 号进程。
搜索库中所有磁带,按barcode 编码来对磁带命名,并label 它,覆盖,检入为临时卷,不等待。
后台日志如下:
ANR0984I Process 11 for LABEL LIBVOLUME started in the BACKGROUND at 01:48:41 PM.
ANR8799I LABEL LIBVOLUME: Operation for library LIBRARY1 started as process 11.
ANR8810I Volume BK0005 has been labeled in library LIBRARY1.
ANR8810I Volume BK0006 has been labeled in library LIBRARY1.
ANR8810I Volume BK0007 has been labeled in library LIBRARY1.
ANR8810I Volume BK0008 has been labeled in library LIBRARY1.
ANR8801I LABEL LIBVOLUME process 11 for library LIBRARY1 completed; 4 volume(s) labelled, 4
volume(s) checked-in.
ANR0985I Process 11 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state
SUCCESS at 01:48:41 PM.
tsm:SERVER1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
LIBRARY1 BK0001 Scratch 9
LIBRARY1 BK0002 Scratch 2
LIBRARY1 BK0003 Scratch 3
LIBRARY1 BK0004 Scratch 4
LIBRARY1 BK0005 Scratch 5
LIBRARY1 BK0006 Scratch 6
LIBRARY1 BK0007 Scratch 7
LIBRARY1 BK0008 Scratch 8

如果拟虚带库磁带更换了slot位置,首先要将磁带出库,然后再检入:
tsm:SERVER1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
LIBRARY1 BK0001 Scratch 9
LIBRARY1 BK0002 Scratch 2
LIBRARY1 BK0003 Scratch 3
LIBRARY1 BK0004 Scratch 4
LIBRARY1 BK0005 Scratch 5
LIBRARY1 BK0006 Scratch 6
LIBRARY1 BK0007 Scratch 7
LIBRARY1 BK0008 Scratch 8

tsm:SERVER1>checkout libv LIBRARY1 BK0001 remove=no checkl=no
ANS8003I 启动 14 号进程。
tsm:SERVER1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
LIBRARY1 BK0002 Scratch 2
LIBRARY1 BK0003 Scratch 3
LIBRARY1 BK0004 Scratch 4
LIBRARY1 BK0005 Scratch 5
LIBRARY1 BK0006 Scratch 6
LIBRARY1 BK0007 Scratch 7
LIBRARY1 BK0008 Scratch 8
tsm:SERVER1>label libv library1 search=yes voll=bk0001 labels=barcode checkin=scr overwri
te=yes waitt=0
ANS8003I 启动 15 号进程。
tsm:SERVER1>q libv
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------- ---------- --------- ------- ------
LIBRARY1 BK0001 Scratch 1
LIBRARY1 BK0002 Scratch 2
LIBRARY1 BK0003 Scratch 3
LIBRARY1 BK0004 Scratch 4
LIBRARY1 BK0005 Scratch 5
LIBRARY1 BK0006 Scratch 6
LIBRARY1 BK0007 Scratch 7
LIBRARY1 BK0008 Scratch 8

2.7 验证是否能够写

创建策略域
define domain testpolicy #单位1策略域
创建策略集
define policyset testpolicy testpolicy_set #单位1策略域名、策略集名
定义管理类
define mgmtclass testpolicy testpolicy_set testpolicy_mgclass migdestination=NONE
assign defmgmtclass testpolicy testpolicy_set testpolicy_mgclass
创建副本组
define copygroup testpolicy testpolicy_set testpolicy_mgclass standard destination=ORAPOOL
定义磁带
define volume ORAPOOL BK0001
define volume ORAPOOL BK0002
define volume ORAPOOL BK0003
define volume ORAPOOL BK0004
tsm:SERVER1>q vol
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
ORABAKPOOL HPLTO2 0.0 0.0 Empty
/opt/tivoli/tsm/server/- ARCHIVEPOOL DISK 5.0 0.1 On-Line
bin/archive.dsm
/opt/tivoli/tsm/server/- BACKUPPOOL DISK 10.0 0.0 On-Line
bin/backup.dsm
BK0001 ORABAKPOOL HPLTO2 0.0 0.0 Empty
BK0002 ORABAKPOOL HPLTO2 0.0 0.0 Empty
BK0003 ORABAKPOOL HPLTO2 0.0 0.0 Empty
BK0004 ORABAKPOOL HPLTO2 0.0 0.0 Empty

激活策略集
activate policyset testpolicy testpolicy_set
配置客户机节点
register node FYKJFILE admin domain=testpolicy backdelete=yes #节点名、节点密码
update node FYKJFILE admin domain=testpolicy backdelete=yes #节点名、节点密码
update node FYKJFILE admin domain=testpolicy backdelete=yes
注册license:
tsm:SERVER1>register license file="/opt/tivoli/tsm/server/bin/*.lic" number=10
ANR2852I Current license information:
ANR2853I New license information:
ANR2828I Server is licensed to support IBM System Storage Archive Manager.
ANR2828I Server is licensed to support Tivoli Storage Manager Basic Edition.
ANR2828I Server is licensed to support Tivoli Storage Manager Extended Edition.
在客户端发出备份命令,如下:
D:\IBM\Tivoli\TSM\baclient\dsm.exe -s /u01/app/oracle/oradata/ -subdir=yes

tsm:SERVER1>q mount
ANR8330I LTO volume BK0001 is mounted R/W in drive DRIVE1 (/dev/tsmscsi/mt1), status: IN
USE.
ANR8334I 1 matches found.
tsm:SERVER1>q vol
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
ORABAKPOOL HPLTO2 0.0 0.0 Empty
/opt/tivoli/tsm/server/- ARCHIVEPOOL DISK 5.0 0.1 On-Line
bin/archive.dsm
/opt/tivoli/tsm/server/- BACKUPPOOL DISK 10.0 0.0 On-Line
bin/backup.dsm
BK0001 ORAPOOL HPLTO2 1,024.0 5.8 Filling
BK0002 ORAPOOL HPLTO2 0.0 0.0 Empty
BK0003 ORAPOOL HPLTO2 0.0 0.0 Empty
BK0004 ORAPOOL HPLTO2 0.0 0.0 Empty

tsm:SERVER1>q con bk0001
Node Name Type Filespace FSID Client's Name for File
Name
--------------- ---- ---------- ---- --------------------------------------
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
FYKJFILE Bkup file://..fykj.g$/]\\fykj\g$ 1 ...
tsm: SERVER1> q drive f=d
Library Name: LIBRARY1
Drive Name: DRIVE1
Device Type: LTO
On-Line: Yes
Read Formats: ULTRIUM2C,ULTRIUM2,ULTRIUMC,ULTRIUM
Write Formats: ULTRIUM2C,ULTRIUM2,ULTRIUMC,ULTRIUM
Element: 2052
Drive State: LOADED
Volume Name: BK0001
Allocated to:
WWN:

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】