TSM LINUX 實驗配置

westzq1984發表於2009-05-26

實驗環境為WIN SERVER + LINUX 客戶端

Server

     TSMSRV5360_WIN.exe

     TSM_ISC_5320_WIN.exe

     TSMAdminCenter5330.exe

Client

     TSM536C_LINUX86.tar

     TDP-Oracle.i386.bin

 

下載地址 

ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance

 

Server的安裝沒什麼好說的,NEXT就是,安裝完伺服器端和控制檯

Client 的安裝,需要安裝TSM536C_LINUX86.tarTIVsm-API.i386.rpm, TIVsm-BA.i386.rpm

     TDP-Oracle.i386.bin檔案賦予執行許可權,直接執行既可,注意,在RH4自帶的JAVA下無法彈出安裝介面,使用ORACEL10JDK就可以了,由於TDP for linux的版本不帶license,需要找個win下的agent.lic,拷貝到/opt/tivoli/tsm/client/oracle/bin/agent.lic

 

安裝完後,登入Server的控制檯,會進行系統初始化,預設一路下去就可以,只需要在Client Node Configuration Wizard中配置上一個客戶端,客戶端使用預設的STANDARD策略

 

接下來先ISC新增伺服器,通過http://hostname:8421/ibm/console訪問,使用者名稱為iscadmin,密碼是在前面安裝過程中設定的。進去後,在tivol storage manage中點選Server Maintenance連線,進去Maintenance script介面,配置TSM伺服器。

 

新增用於oracle備份的儲存池,在ISC介面中,點選Storage Devices,在下拉選單中點選Add a Storage pool,建立新的儲存池並新增裝置,將裝置新增進OraclePool

 

下面,將Oracle儲存池分配給Standard策略,登入SERVER伺服器,選擇Wizard中的 Client Node Configuration Wizard,進入到Define TSM client nodes and policy中,在左邊找到定義的主機,選擇主機,點選Edit,進去後選擇Standard策略,在點選Edit,選擇Storage poolORACLEPOOL

 

下面進行客戶端配置:

/opt/tivoli/tsm/client/ba/bin/dsm.sys

SErvername  tsmserver

   COMMMethod         TCPip

   TCPPort            1500

   TCPServeraddress   192.168.123.129

   Passwordaccess     prompt

/opt/tivoli/tsm/client/ba/bin/dsm.opt

SErvername  tsmserver

 

測試:

dsmc,使用者名稱密碼為最開始伺服器初始化時新增客戶端設定的

tsm> incr /tmp

 

Incremental backup of volume '/tmp'

Successful incremental backup of '/tmp'

 

                                 

Total number of objects inspected:        1

Total number of objects backed up:        0

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 transferred:        0  B

Data transfer time:                    0.00 sec

Network data transfer rate:            0.00 KB/sec

Aggregate data transfer rate:          0.00 KB/sec

Objects compressed by:                    0%

Elapsed processing time:           00:00:22

 

接著配置TDP for Oracle

將前面配置的dsm.opt dsm.sys拷貝到

/opt/tivoli/tsm/client/api/bin/dsm.sys

/opt/tivoli/tsm/client/api/bin/dsm.opt

 

/opt/tivoli/tsm/client/oracle/bin/tdpo.opt

*DSMI_ORC_CONFIG    /opt/tivoli/tsm/client/oracle/bin/dsm.opt

*DSMI_LOG           /opt/tivoli/tsm/client/oracle/bin

 

*TDPO_FS            /adsmorc

TDPO_NODE          WESTZQ

*TDPO_OWNER         root

*TDPO_PSWDPATH      /opt/tivoli/tsm/client/oracle/bin

 

*TDPO_DATE_FMT      1

*TDPO_NUM_FMT       1

*TDPO_TIME_FMT      1

 

*TDPO_MGMT_CLASS_2   mgmtclass2

*TDPO_MGMT_CLASS_3   mgmtclass3

*TDPO_MGMT_CLASS_4   mgmtclass4

然後建立libobk.so的連線:

ln -s /opt/tivoli/tsm/client/oracle/bin/libobk.so /u01/oracle9/app/oracle/product/9.2.0/db_1/lib/libobk.so

 

修改檔案許可權

/opt/tivoli/tsm/client/oracle/bin/dsm.sys           oracle使用者要能讀

/opt/tivoli/tsm/client/oracle/bin/dsm.opt           oracle使用者要能讀

/opt/tivoli/tsm/client/oracle/bin/tdpo.opt         oracle使用者要能讀

/opt/tivoli/tsm/client/oracle/bin/tdpoerror.log    oracle使用者要能讀寫

 

tdpoconf password設定密碼 

 

測試:

[root@WESTZQ ~]# su - oracle9

[oracle9@WESTZQ ~]$ sbttest test

The sbt function pointers are loaded from libobk.so library.

-- sbtinit succeeded

Return code -1 from sbtinit, bsercoer = 0, bsercerrno = 0

Message 0 not found;  product=RDBMS; facility=SBT

 

備份:

[oracle9@WESTZQ ~]$ export TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt

[oracle9@WESTZQ ~]$ rman target /

 

Recovery Manager: Release 9.2.0.8.0 - Production

 

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

 

connected to target database: SOURCE9 (DBID=2098103960)

 

RMAN> show all

2> ;

 

using target database controlfile instead of recovery catalog

RMAN configuration parameters are:

CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default

CONFIGURE BACKUP OPTIMIZATION OFF; # default

CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default

CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default

CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default

RMAN configuration has no stored or default parameters

RMAN configuration has no stored or default parameters

CONFIGURE MAXSETSIZE TO UNLIMITED; # default

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle9/app/oracle/product/9.2.0/db_1/dbs/snapcf_SOURCE9.f'; # default

 

RMAN> CONFIGURE DEFAULT DEVICE TYPE TO SBT_TAPE

2> ;

 

new RMAN configuration parameters:

CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';

new RMAN configuration parameters are successfully stored

 

RMAN> backup datafile 1;

 

Starting backup at 26-MAY-09

allocated channel: ORA_SBT_TAPE_1

channel ORA_SBT_TAPE_1: sid=11 devtype=SBT_TAPE

channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.3.3.0

channel ORA_SBT_TAPE_1: starting full datafile backupset

channel ORA_SBT_TAPE_1: specifying datafile(s) in backupset

including current SPFILE in backupset

including current controlfile in backupset

input datafile fno=00001 name=/u01/oracle9/app/oracle/oradata/SOURCE9/system01.dbf

channel ORA_SBT_TAPE_1: starting piece 1 at 26-MAY-09

channel ORA_SBT_TAPE_1: finished piece 1 at 26-MAY-09

piece handle=06kg038i_1_1 comment=API Version 2.0,MMS Version 5.3.3.0

channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55

Finished backup at 26-MAY-09

 

RMAN> list backup;

 

 

List of Backup Sets

===================

 

BS Key  Type LV Size       Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

2       Full    132M       SBT_TAPE    00:00:51     26-MAY-09     

        BP Key: 2   Status: AVAILABLE   Tag: TAG20090526T104642

        Piece Name: 06kg038i_1_1

  SPFILE Included: Modification time: 26-MAY-09

  List of Datafiles in backup set 2

  File LV Type Ckp SCN    Ckp Time  Name

  ---- -- ---- ---------- --------- ----

  1       Full 237139     26-MAY-09 /u01/oracle9/app/oracle/oradata/SOURCE9/system01.dbf

 

其他指令碼

run {

  allocate channel tdp1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';

  backup database;

  release channel tdp1;

}

 

run {

 allocate channel tdp1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';

 copy datafile 1;

 release channel tdp1;

}

 

allocate channel for MAINTENANCE type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin/tdpo.opt)';

delete backup;

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8242091/viewspace-604175/,如需轉載,請註明出處,否則將追究法律責任。

相關文章