IBM TSM Server v6.3.4安裝手冊

修改日期: 2013/09/24

系統環境配置

Server

IBM x3650M4

Tape Library

IBM TS3310

OS

Red Hat Enterprise Linux 6.4 x86_64

TSM Software

TSM Server v6.3.4-000

TSM Client v6.4

TSM Admin Center v6.3.4

IP Address

TSM Server: 172.30.101.51

TSM Client: 172.30.101.51

Host name

TSM

 

安裝RHEL作業系統

選擇 “basic server” 安裝

 

準備必要欲安裝程式

1. TSM相關軟體

I.           6.3.4.000-TIV-TSMALL-Linuxx86_64.bin

II.        6.4.0.1-TIV-TSMBAC-LinuxX86.tar

III.     6.3.4.000-TIV-TSMAC-Linuxx86.bin

2. RHEL作業系統ISO

I.           rhel-server-6.4-x86_64-dvd.iso

3. 磁帶櫃裝置驅動程式

I.           lin_tape-2.2.0-rhel6.x86_64

4. 將上列軟體及程式放置在根目錄 “/5_TSMSRC/” 底下。

 

 

設定yum installer on disc

1. 掛載RHEL 6.4光碟

# mount –o loop /3TSRC/ rhel-server-6.4-x86_64-dvd.iso /mnt

 

2. “/etc/yum.repos/” 目錄底下新增 media.repo檔案

[Media]

name=Red Hat Enterprise Linux 6.4

mediaid=1359576196.686790

baseurl=file:///mnt/

metadata_expire=-1

gpgcheck=0

cost=500

 

3. 測試是否已正確設定並成功讀取光碟內的套件

 # yum list

 

 

安裝必要套件

# yum -y groupinstall "Desktop"

# yum -y groupinstall "Desktop Debugging and Performance Tools"

# yum -y groupinstall "Desktop Platform Development"

# yum -y groupinstall "X Window System"

# yum -y groupinstall "Server Platform Development"

# yum -y groupinstall "Development Tools"

# yum -y groupinstall "Eclipse"

# yum -y install libstdc++.so.5

# yum -y install libstdc++.so.6

# yum -y install compat-libstdc++-33-3.2.3-69.el6

# yum -y install compat-glibc*

# yum -y install openmotif22*

# yum -y install openmotif*.i686

# yum -y install libaio

# yum -y install ksh

# yum -y install rsh

# yum -y install lsscsi

 

TSM安裝前置作業

1.      關閉iptables

# service iptables stop

# service ip6tables stop

# chkconfig iptables off

# chkconfig ip6tables off

2.      關閉SELinux

# sed -i 's/=enforcing/=disabled/g' /etc/sysconfig/selinux

3.      關閉NetworkManager

# chkconfig NetworkManager off

4.      修改主機名稱配置檔

# sed -i '1i\172.30.101.51 TSM' /etc/hosts

 

建立TSM Instance使用者帳戶

# groupadd "tsmsrvrs"

# useradd -d /home/tsminst1 -m -g tsmsrvrs -s /bin/bash tsminst1

# echo 123456 | passwd tsminst1 --stdin

 

建立TSM相關目錄

# mkdir /TSMDB

# mkdir /TSMLOG

# mkdir /TSMLOG/ACT

# mkdir /TSMLOG/ARCH

# chown -R tsminst1:tsmsrvrs /TSMDB /TSMLOG

 

安裝TSM Server

1.      先將TSM安裝套件修改可執行權限

# chmod +x /5_TSMSRC/tsmsrc/*

2.      解開二進位壓縮檔

# ./ 6.3.4.000-TIV-TSMALL-Linuxx86_64.bin

3.      解開後可得下列目錄及檔案

drwxr-xr-x 4 root root      4096 Oct 19  2012  COI

drwxr-xr-x 3 root root      4096 Oct 19  2012  DE

-rwxr-xr-x 1 root root 118734724 Oct 19  2012   install.bin

-rwxr-xr-x 1 root root      1543 Oct 19  2012   PostFailureTask.xml

-rwxr-xr-x 1 root root 114032640 Oct 19  2012   prereqcheck.bin

-rwxr-xr-x 1 root root      3265 Oct 19  2012   README.htm

4.      安裝TSM前,建議先執行安裝環境預前確認程式 “prereqcheck.bin”,此程式會先檢測系統環境是否符合TSM Server安裝需求,並顯示出目前系統所缺套件。

# ./prereqcheck.bin –i console

5.      確認無誤後,開始安裝TSM Server

# ./install.bin –i console

6.      安裝完成

 

TSM環境設定 (包含DB2)

1.      使用指令db2icrt指令來建立TSM Instance

# /opt/tivoli/tsm/db2/instance/db2icrt -a SERVER -u tsminst1 tsminst1

2.      建立server option檔案 “dsmserv.opt”

# vim /home/tsminst1/dsmserv.opt

3.      新增下列內容至 “dsmserv.opt”

COMMMethod    TCPIP

TCPPort 1500

TCPADMINPort 1500

 

DEVCONFIG     /home/tsminst1/devconf.dat

VOLUMEHISTORY /home/tsminst1/volhist.dat

 

ACTIVELOGDirectory    /TSMLOG/ACT

ARCHLOGDirectory    /TSMLOG/ARCH

 

4.      修改dsmserv.opt使用者權限

# chown tsminst1.tsmsrvrs dsmserv.opt

5.      格式化資料庫及日誌(切換tsminst1身份)

I.           設定英文語言使用環境 (Server code page)

$ db2set -i tsminst1 DB2CODEPAGE=819

II.        使用指令dsmserv format來初始化Server Instance

$ cd ~ ; /opt/tivoli/tsm/server/bin/dsmserv format dbdir=/TSMDB activelogsize=16384 activelogdir=/TSMLOG/ACT archlogdir=/TSMLOG/ARCH archfailoverlogdir=/TSMLOG/ARCHFAILOVER mirrorlogdir=/TSMLOG/MIRROR

 

完成訊息參考如下:

ANR7800I DSMSERV generated at 10:48:21 on May 23 2013.

 

Tivoli Storage Manager for Linux/x86_64

 

Version 6, Release 3, Level 4.000

 

 

Licensed Materials - Property of IBM

 

 

(C) Copyright IBM Corporation 1990, 2011.

All rights reserved.

U.S. Government Users Restricted Rights - Use, duplication or disclosure

restricted by GSA ADP Schedule Contract with IBM Corporation.

 

 

ANR7801I Subsystem process ID is 14826.

ANR0900I Processing options file /home/tsminst1/dsmserv.opt.

ANR7814I Using instance directory /home/tsminst1.

ANR4726I The ICC support module has been loaded.

ANR0152I Database manager successfully started.

ANR0152I Database manager successfully started.

ANR1380I The buffer pool monitor switch is enabled.

ANR0992I Server's database formatting complete.

ANR0369I Stopping the database manager because of a server shutdown.

ANR2976I Offline DB backup for database TSMDB1 started.

ANR2974I Offline DB backup for database TSMDB1 completed successfully.

 

6.      設置Tivoli Storage Manager API環境變數設定檔

I.           切換tsminst1身份

II.        設定登入自動初始DB2環境

$ vim /home/tsminst1/.profile

if [ -f /home/tsminst1/sqllib/db2profile ]; then

. /home/tsminst1/sqllib/db2profile

fi

 

$ vim /home/tsminst1/sqllib/userprofile

export DSMI_CONFIG=/home/tsminst1/tsminst1/tsmdbmgr.opt

export DSMI_DIR=/opt/tivoli/tsm/client/api/bin64

export DSMI_LOG=/home/tsminst1/tsminst1

 

7.      重新登入tsminst1,或直接執行下列指令。

$ . ~/.profile

8.      建立”tsmdbmgr.opt”檔案

$ vim /home/tsminst1/tsminst1/tsmdbmgr.opt

SERVERNAME TSMDBMGR_TSMINST1

 

9.      新增下列數行至Tivoli Storage Manager API “dsm.sys”設定檔 (切換root)

# vim /opt/tivoli/tsm/client/api/bin64/dsm.sys

SERVERNAME         TSMDBMGR_TSMINST1

COMMMETHOD        TCPIP

TCPPORT              1500

TCPSERVERADDRESS   localhost

PASSWORDACCESS     generate

PASSWORDDIR         /home/tsminst1

ERRORLOGNAME       /home/tsminst1/tsmdbmgr.log

NODENAME            $$_TSMDBMGR_$$

# chown root.bin /opt/tivoli/tsm/client/api/bin64/dsm.sys

10.  重新啟動DB2

$ db2stop (強迫停止 db2stop force)

$ db2start

11.  設置API密碼

I.       啟動TSM Server(切換tsminst1身份)

$ cd ~ ; /opt/tivoli/tsm/server/bin/dsmserv

or

$ cd ~ ; /opt/tivoli/tsm/server/bin/dsmserv -q & (背景啟動服務)

II.    切換root身份,先執行下列指令。

# source /home/tsminst1/sqllib/db2profile

III. 變更API密碼 (原始/新的密碼設為tsmdbmgr”)

# /home/tsminst1/sqllib/adsm/dsmapipw

 

 

啟動與停止TSM Server

1.          在啟動TSM伺服器之前,先執行使用者設定檔 (db2profile),如果您是以Instance user的身分登入,則 db2profile 已在您定義Instance時,已複製到 .profile”了。

I.           Instance user,需先執行db2profile (Instance user則不需要)

# source /home/tsminst1/sqllib/db2profile

II.        切換至Instance user家目錄,並執行啟動TSM Server命令。

# cd ~ ; /opt/tivoli/tsm/server/bin/dsmserv

III.     如果要在背景啟動伺服器,請輸入下列指令。

# /opt/tivoli/tsm/server/bin/dsmserv -q &

IV.     進入/opt/Tivoli/tsm/server/bin,執行./dsmadmc -con,可查看伺服器回饋的訊息。

V.        再次執行./dsmadmc,進入命令控制臺。

VI.     命令dsmadmc需在裝完Client程式方可執行,在執行前需先在Server_console下達註冊administrator帳號及密碼。

TSM:SERVER1> register admin name password

2.          停止TSM伺服器

I.           方法一:在TSM命令提示字元發出halt指令

TSM:SERVER1> halt

II.        方法二:透過dsmserv.v6lock找出Process ID,直接KILL

# cat /opt/tivoli/tsm/server/bin/dsmserv.lock

# kill -9 dsmserv.pid

 

設定開機自動啟動TSM Server

1.          複製dsmserv.rc “/etc/rc.d/init.d/ ”目錄底下,並命名為”tsminst1”

# cp /opt/tivoli/tsm/server/bin/dsmserv.rc /etc/rc.d/init.d/tsminst1

2.          設定開機自動啟動

# chkconfig --add tsminst1

# chkconfig --level 3 tsminst1 on

# chkconfig --level 5 tsminst1 on

3.           

 

 

註冊TSM Server License

1.          進入TSM控制臺 (Server console)

TSM:SERVER1> reg lic file=*.lic

2.          驗証TSM License

TSM:SERVER1> q license

                                 Last License Audit: 08/22/2013 04:27:59 PM

                    Number of TDP for Oracle in use: 0

           Number of TDP for Oracle in try buy mode: 0

             Number of TDP for MS SQL Server in use: 0

    Number of TDP for MS SQL Server in try buy mode: 0

               Number of TDP for MS Exchange in use: 0

      Number of TDP for MS Exchange in try buy mode: 0

               Number of TDP for Lotus Notes in use: 0

      Number of TDP for Lotus Notes in try buy mode: 0

              Number of TDP for Lotus Domino in use: 0

     Number of TDP for Lotus Domino in try buy mode: 0

                  Number of TDP for Informix in use: 0

         Number of TDP for Informix in try buy mode: 0

                   Number of TDP for SAP R/3 in use: 0

          Number of TDP for SAP R/3 in try buy mode: 0

                       Number of TDP for ESS in use: 0

              Number of TDP for ESS in try buy mode: 0

                   Number of TDP for ESS R/3 in use: 0

          Number of TDP for ESS R/3 in try buy mode: 0

             Number of TDP for EMC Symmetrix in use: 0

    Number of TDP for EMC Symmetrix in try buy mode: 0

         Number of TDP for EMC Symmetrix R/3 in use: 0

Number of TDP for EMC Symmetrix R/3 in try buy mode: 0

                       Number of TDP for WAS in use: 0

              Number of TDP for WAS in try buy mode: 0

     Is IBM System Storage Archive Manager in use ?: No

   Is IBM System Storage Archive Manager licensed ?: Yes

     Is Tivoli Storage Manager Basic Edition in use: Yes

   Is Tivoli Storage Manager Basic Edition licensed: Yes

  Is Tivoli Storage Manager Extended Edition in use: No

Is Tivoli Storage Manager Extended Edition licensed: Yes

                     Server License Compliance: Valid

 

安裝TSM Admin Center

1.      解開二進位壓縮檔

# ./ 6.3.3.000-TIV-TSMAC-Linuxx86.bin

2.      解開後可得下列檔案

drwxr-xr-x  5 root root       4096 Nov  1  2012 cdimage.fixpack

-rwxr-xr-x  1 root root        660 Nov  1  2012 CheckPasswd.sh

drwxr-xr-x  4 root root       4096 Nov  1  2012 COI

drwxr-xr-x  4 root root       4096 Nov  1  2012 DE

-rwxr-xr-x  1 root root  106394385 Nov  1  2012 install.bin

-rwxr-xr-x  1 root root       4309 Nov  1  2012 LoginCheck.class

-rwxr-xr-x  1 root root       4055 Nov  1  2012 PostFailureTask.xml

-rwxr-xr-x  1 root root  103055360 Nov  1  2012 prereqcheck.bin

-rwxr-xr-x  1 root root       2880 Nov  1  2012 README.htm

-rwxr-xr-x  1 root root       5548 Nov  1  2012 sample_response.txt

-rwxr-xr-x  1 root root       1036 Nov  1  2012 uninstall_response.txt

drwxr-xr-x  2 root root       4096 Nov  1  2012 utilities

3.      安裝TSM Admin Center前,建議先執行安裝環境預前確認程式 “prereqcheck.bin”,此程式會先檢測系統環境是否符合TSM Admin Center安裝需求,並顯示出目前系統所缺套件。

# ./prereqcheck.bin –i console

4.      確認無誤後,開始安裝TSM Admin Center

# ./install.bin –i console

5.      安裝完成,開啟網頁,測試連線。

http://172.30.101.51:16310/ibm/console

 

 

 

安裝TSM BA Client

1.      解開二進位壓縮檔

# tar xvf 6.4.0.1-TIV-TSMBAC-LinuxX86.tar

2.      解開後可得下列檔案

README_enu.htm

README_api_enu.htm

TIVsm-API64.x86_64.rpm

TIVsm-BA.x86_64.rpm

TIVsm-BAhdw.x86_64.rpm

TIVsm-JBB.x86_64.rpm

TIVsm-APIcit.x86_64.rpm

TIVsm-BAcit.x86_64.rpm

TIVsm-filepath-6.4.0-0-rhel55.x86_64.rpm

TIVsm-filepath-6.4.0-0-rhel60.x86_64.rpm

TIVsm-filepath-6.4.0-0-sles10sp3.x86_64.rpm

TIVsm-filepath-6.4.0-0-sles11sp1.x86_64.rpm

gskcrypt64-8.0.14.14.linux.x86_64.rpm

gskssl64-8.0.14.14.linux.x86_64.rpm

3.      依下列套件,按順序安裝。

# rpm -Uvh TIVsm-API64.x86_64.rpm

# rpm -ivh TIVsm-BA.x86_64.rpm

# rpm -ivh TIVsm-APIcit.x86_64.rpm

# rpm -ivh TIVsm-BAcit.x86_64.rpm

# rpm -ivh TIVsm-filepath-6.4.0-0-rhel60.x86_64.rpm

# rpm -ivh TIVsm-JBB.x86_64.rpm

# rpm -ivh TIVsm-msg.ZH_TW.x86_64.rpm

 

 

設定TSM BA Client

1.      建立用戶端系統檔案 (dsm.sys)

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

SErvername         tsmc

COMMMethod         TCPip

TCPPort            1500

TCPServeraddress   172.30.101.51

NODEname           tsmc

PASSWORDACCESS     generate

ERRORLOGNAME       /home/tsminst1/schedule_log/dsmerror.tsmc.log

ERRORLOGRETENTION  7 D

INCLUDE            "/1_HVIDEO/*"  HVIDEOMG

INCLUDE            "/2_MEDIA/*"   MEDIAMG

INCLUDE            "/3_MAMBAK/*"       MAMBAKMG

INCLUDE            "/4_TSMBAK/*"   TSMBAKMG

 

 

SErvername         tsmc2

COMMMethod         TCPip

TCPPort            1500

TCPServeraddress   172.30.101.51

NODEname           tsmc2

PASSWORDACCESS     generate

ERRORLOGNAME       /home/tsminst1/schedule_log/dsmerror.tsmc2.log

ERRORLOGRETENTION  7 D

INCLUDE            "/1_HVIDEO/*"  HVIDEOMG2

INCLUDE            "/2_MEDIA/*"   MEDIAMG2

INCLUDE            "/3_MAMBAK/*"       MAMBAKMG2

INCLUDE            "/4_TSMBAK/*"   TSMBAKMG2

# chown root.bin /opt/tivoli/tsm/client/ba/bin/dsm.sys

2.      建立用戶端選項檔案 (dsm.opt)

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

SErvername      tsmc

 

# vim /opt/tivoli/tsm/client/ba/bin/dsm.opt.tsmc

SErvername      tsmc

 

# vim /opt/tivoli/tsm/client/ba/bin/dsm.opt.tsmc2

SErvername      tsmc2

 

建立TSM管理者角色及權限

1.          進入TSM控制臺 (Server console)

TSM:SERVER1> REGister Admin admin admin

2.          賦予管理者(admin)系統(system)權限

TSM:SERVER1> GRant AUTHority admin CLasses=SYstem

3.          測試TSM Client控制台(dsmadmc)連線是否可正常登入

# dsmadmc –id=admin –pa=admin

 

建立TSM用戶端角色

1.          註冊Node name

TSM:SERVER1> REGister Node tsmc tsmc

 

TSM DB備份與還原設定

1.          設定SERVERNAME(TSM命令提示區)

tsm:SERVER1> set servername TSMSRV

2.          設定Volume historyDevice configuration,修改 /home/tsminst1/dsmserv.opt,在最後一行加入:

VOLUMEHistory   /home/tsminst1/volhist.dat

DEVCONFIG     /home/tsminst1/devcnfg.dat

I.           修改後儲存,並重新啟動TSM Server

3.          移除tsmdbmgr.log

# rm -f /home/tsminst1/tsmdbmgr.log

4.          新增TSM DB備份磁碟目錄

# mkdir /4_TSMBAK ; chown tsminst1.tsmsrvrs /4_TSMBAK

5.          定義TSM裝置類別 (TSM主控臺)

tsm:TSMSRV> DEFINE DEVCLASS TSMDBFILE DEVT=FILE FORMAT=DRIVE MAXCAP=10485760K MOUNTL=1 DIR=/4_TSMBAK SHARE=NO

n   devclass 指定裝置類別名稱

n   devtype 指定裝置類別

n   directory 指定裝置目錄

n   maxcapacity 每一個檔案最大容量

6.          設定系統進行資料庫備份 (TSM主控臺)

tsm:TSMSRV> set dbrecovery TSMDBFILE

7.          備份TSM裝置設定檔 (TSM主控臺)

tsm:TSMSRV> backup devconfig

8.          設定並執行資料庫備份 (TSM主控臺)

tsm:TSMSRV>

backup db devclass=TSMDBFILE type=full (第一次要作完整備份)

backup db devclass=TSMDBFILE type=incremental

9.          資料庫還原

$ /opt/tivoli/tsm/server/bin/dsmserv  restore  db


Comments