See below the TSM configuration steps.
1.) Defining library, Tape drives and path:
define library autolibrary libtype=scsi
define path TSMSERVERA autolibrary srctype=server desttype=library device=/dev/smc2 online=yes
define drive autolibrary LIBTAPE0
define drive autolibrary LIBTAPE1
define drive autolibrary LIBTAPE2
define drive autolibrary LIBTAPE3
define drive autolibrary LIBTAPE4
define drive autolibrary LIBTAPE5
define path TSMSERVERA LIBTAPE0 srctype=server desttype=drive library=autolibrary
device=/dev/rmt0 online=yes
define path TSMSERVERA LIBTAPE1 srctype=server desttype=drive library=autolibrary
device=/dev/rmt1 online=yes
define path TSMSERVERA LIBTAPE2 srctype=server desttype=drive library=autolibrary
device=/dev/rmt2 online=yes
define path TSMSERVERA LIBTAPE3 srctype=server desttype=drive library=autolibrary
device=/dev/rmt3 online=yes
define path TSMSERVERA LIBTAPE4 srctype=server desttype=drive library=autolibrary
device=/dev/rmt4 online=yes
define path TSMSERVERA LIBTAPE5 srctype=server desttype=drive library=autolibrary
device=/dev/rmt5 online=yes
/******Second library******/
define library AUTOLIB2 libtype=scsi
define path TSMSERVERA AUTOLIB2 srctype=server desttype=library device=/dev/smc4
online=yes
define drive AUTOLIB2 LIBTAPE6
define path TSMSERVERA LIBTAPE6 srctype=server desttype=drive library=AUTOLIB2
device=/dev/rmt6 online=yes
2) Defining device class.
define devclass 3592LIB library=autolibrary devtype=3592 format=drive MOUNTRetention=5
define devclass 3592LIB2 library=AUTOLIB2 devtype=3592 format=drive MOUNTRetention=5
define devclass FILE directory=/adsmstore devtype=FILE
3) Defining Primary Storage Pool:
define stgpool DB2DBA3592LIB 3592LIB pooltype=primary MAXSCRatch=100
define stgpool DB2DB_OFFLINEA3592LIB 3592LIB pooltype=primary MAXSCRatch=100
define stgpool DB2FSA3592LIB 3592LIB pooltype=primary MAXSCRatch=100
define stgpool DB2LOG1A3592LIB 3592LIB pooltype=primary MAXSCRatch=100
define stgpool DB2LOG2A3592LIB 3592LIB2 pooltype=primary MAXSCRatch=100
4) Defining Copy Storage Pool:
define stgpool CPDB2DBA3592LIB 3592LIB pooltype=copy MAXSCRatch=100
define stgpool CPDB2LOG1A3592LIB 3592LIB pooltype=copy MAXSCRatch=100
5) Defining Policy Domain and policy set:
define domain DB2DOM description="DB2 Policy Domain"
define policy DB2DOM DB2POL description="DB2 Policy Set"
6) Defining Management Class:
define mgmtclass DB2DOM DB2POL DB2MGDB description="Production DB Mgmt Class"
define mgmtclass DB2DOM DB2POL DB2MGDBOFFLINE description="Production DB Offline Mgmt Class"
define mgmtclass DB2DOM DB2POL DB2MGFS description="Production FS Mgmt Class "
define mgmtclass DB2DOM DB2POL DB2MGLOG1 description="Production DB Log 1 Mgmt Class"
define mgmtclass DB2DOM DB2POL DB2MGLOG2 description="Production DB Log 2 Mgmt Class"
/****assigning default management class************/
assign defmgmtclass DB2DOM DB2POL DB2MGFS
Copy Group under management class:
define copygroup DB2DOM DB2POL DB2MGDB standard type=archive destination=DB2DBA3592LIB
retver=60 retmin=90
define copygroup DB2DOM DB2POL DB2MGDBOFFLINE standard type=archive
destination=DB2DB_OFFLINEA3592LIB retver=9999
define copygroup DB2DOM DB2POL DB2MGFS standard type=backup destination=DB2FSA3592LIB
VERExists=180 RETEXTRA=10 VERDELETED=NOLIMIT VERExists=NOLIMIT SERialization=SHRDYnamic
define copygroup DB2DOM DB2POL DB2MGLOG1 standard type=archive
destination=DB2LOG1A3592LIB retver=60
define copygroup DB2DOM DB2POL DB2MGLOG2 standard type=archive
destination=DB2LOG2A3592LIB retver=60
define copygroup DB2DOM DB2POL DB2MGFS standard type=archive destination=DB2FSA3592LIB
retver=60
7) Labeling the Tapes:
Insert the scratch tapes into the library and label them.
label libv autolibrary search=yes checkin=scr labels=barcode
label libv AUTOLIB2 search=yes checkin=scr labels=barcode
No comments:
Post a Comment