- 论坛徽章:
- 0
|
接上
配置步骤:
1、 定义磁带库:define library 3583lib2 libtype=scsi shared=no
2、 定义磁带库PTAHdefine path tsmsvr 3583lib2 srctype=server desttype=library device=/dev/smc0 online=yes
3、 定义磁带机
DEFINE DRIVE 3583LIB2 DRIVER1 ELEMENT=256 ONLINE=Yes cleanfrequency=asneeded
DEFINE DRIVE 3583LIB2 DRIVER2 ELEMENT=257 ONLINE=Yes cleanfrequency=asneeded
DEFINE DRIVE 3583LIB2 DRIVER3 ELEMENT=258 ONLINE=Yes cleanfrequency=asneeded
DEFINE DRIVE 3583LIB2 DRIVER4 ELEMENT=259 ONLINE=Yes cleanfrequency=asneeded
4、 定义磁带机的PATH
define path tsmsvr driver1 srctype=server desttype=drive library=3583lib2 device=/dev/rmt0 online=yes
define path tsmsvr driver2 srctype=server desttype=drive library=3583lib2 device=/dev/rmt1 online=yes
define path tsmsvr driver3 srctype=server desttype=drive library=3583lib2 device=/dev/rmt2 online=yes
define path tsmsvr driver4 srctype=server desttype=drive library=3583lib2 device=/dev/rmt3 online=yes
5、 定义设备CLASSES
DEFINE DEVCLASS LTO2 DEVTYPE=LTO FORMAT=DRIVE ESTCAPACITY=209715200K MOUNTLIMIT=DRIVES MOUNTWAIT=60 MOUNTRETENTION=60 PREFIX=ADSM LIBRARY=3583LIB2
DEFINE DEVCLASS LTO2 DEVTYPE=LTO FORMAT=DRIVE ESTCAPACITY=209715200K MOUNTLIMIT=DRIVES MOUNTWAIT=60 MOUNTRETENTION=60 PREFIX=ADSM LIBRARY=3583LIB2
6、 检查磁带库的相关配置query library、query driver、query path、query devclasses
7、 定义磁带存储池
define stgpool orapool lto2 pooltype=primary access=readwrite migcontinue=no reclaim=100 maxscratch=20 dataformat=native
define stgpool pdmpool lto2 pooltype=primary access=readwrite migcontinue=no reclaim=100 maxscratch=30 dataformat=native
8、 调整TSM DB 和LOG 空间大小
define dbvolume /tsmdata/tsmdb/dbvol01.dsm formatsize=1024 wait=yes
define dbvolume /tsmdata/tsmdb/dbvol02.dsm formatsize=1024 wait=yesextend db 2048reduce db 16define spacetrigger db fullpct=80 spaceexpansion=20 expansionprefix=/tsmdata/tsmdb/ maximumsize=6000
define logvolume /tsmdata/tsmlog/logvol01.dsm formatsize=512 wait=yesdefine logvolume /tsmdata/tsmlog/logvol02.dsm formatsize=512 wait=yesextend log 1024reduce log 8
define spacetrigger log fullpct=80 spaceexpansion=20 expansionprefix=/tsmdata/tsmlog/ maximumsize=2048
set servername tsmsvrset serverpassword 1111
set serverhladdress 10.0.0.111
set serverlladdress 1500
register license file(/usr/tivoli/tsm/server/bin/library.lic) number=1
register license file(/usr/tivoli/tsm/server/bin/mgsyslan.lic) number=2
register license file(/usr/tivoli/tsm/server/bin/oracle.lic) number=2
标记磁带卷,当卷注册进自动库时,自动标记这些卷
label libvol 3583lib2 search=yes labelsource=barcode overwrite=yes checkin=scratchcheckin libvol 3583lib2 search=bulk status=cleaner checklabel=barcode cleanings=50
定义策略域define domain pd_pdmdata backretention=90 archretention=365
定义策略集define policyset pd_pdmdata ps_pdmdata
定义管理类define mgmtclass pd_pdmdata ps_pdmdata mc_pdmdata
定义备份副本组define copygroup pd_pdmdata ps_pdmdata mc_pdmdata standard type=backup destination=pdmpool verexists=3 verdeleted=1 retextra=180 retonly=365 mode=modified serialization=shrstaticdefine copygroup pd_pdmdata ps_pdmdata mc_pdmdata standard type=archive destination=pdmarch retver=720 serialization=shrstatic
分配缺省管理类assign defmgmtclass pd_pdmdata ps_pdmdata mc_pdmdata
激活新的策略集activate policyset pd_pdmdata ps_pdmdata
定义策略域define domain pd_tdpo backretention=30 archretention=365
定义策略集define policyset pd_tdpo ps_tdpo
定义管理类define mgmtclass pd_tdpo ps_tdpo mc_tdpo
定义备份副本组define copygroup pd_tdpo ps_tdpo mc_tdpo standard type=backup destination=orapool verexists=1 verdeleted=0 retextra=0 retonly=0 mode=modified serialization=shrstaticdefine copygroup pd_tdpo ps_tdpo mc_tdpo standard type=archive destination=orapool retver=nolimit serialization=shrstatic
分配缺省管理类assign defmgmtclass pd_tdpo ps_tdpo mc_tdpo
激活新的策略集activate policyset pd_tdpo ps_tdpo
注册客户节点register node tsmnode password domain=pd_pdmdata compression=client archdelete=yes backdelete=yes maxnummp=2 passexp=0register node ora92tdp ora92tdp domain=pd_tdpo compression=client archdelete=yes backdelete=yes maxnummp=2 passexp=0
定义策略:创建设备配置信息的备份副本define schedule backup_devconfig_daily type=administrative cmd=”backup devconfig filenames=/tsmdata/tsmbakfiles/devconfig.out” active=yes priority=6 startdate=current_date starttime=13:00:00 duration=30 durunits=minutes period=1 perunits=days dayofweek=any expiration=never
保存顺序卷历史信息define schedule backup_volhistory_daily type=administrative cmd=”backup volhistory filenames=/tsmdata/tsmbakfiles/volhistory.out” active=yes priority=6 startdate=current_date starttime=10:30:00 duration=30 durunits=minutes period=1 perunits=day dayofweek=any expiration=neverdefine schedule delete_old_dbbackup_volhistory type=administrative cmd=”delete volhitory todate=today totime=now type=dbbackup” active=yes priority=6 startdate=current_date starttime=09:00:00 duration=30 durunits=minutes period=1 perunits=days dayofweek=any expiration=never
备份数据库到顺序访问卷define schedule backup_tsmdb_full_daily type=administrative cmd=”backup db devclass=lto2 type=full volumenames=zy7358,zy7359 scratch=yes” active=yes priority=6 startdate=current_date starttime=14:30:00 duration=1 durunits=hours period=1 perunits=days dayofweek=any expiration=nev 清洁驱动器(一共4个驱动器)
define schedule clean_drive01_2monthly type=administrative cmd=”clean drive 3583lib2 driver1” active=yes priority=7 startdate=current_date starttime=18:00:00 duration=1 durunits=hours period=2 perunits=months dayofweek=any expiration=never
define schedule clean_drive02_2monthly type=administrative cmd=”clean drive 3583lib2 driver2” active=yes priority=7 startdate=current_date starttime=18:00:00 duration=1 durunits=hours period=2 perunits=months dayofweek=any expiration=never
define schedule clean_drive02_2monthly type=administrative cmd=”clean drive 3583lib2 driver3” active=yes priority=7 startdate=current_date starttime=19:00:00 duration=1 durunits=hours period=2 perunits=months dayofweek=any expiration=never
define schedule clean_drive02_2monthly type=administrative cmd=”clean drive 3583lib2 driver4” active=yes priority=7 startdate=current_date starttime=19:00:00 duration=1 durunits=hours period=2 perunits=months dayofweek=any expiration=never |
|