BINDING AND REBINDING
MANAGEMENT CLASSES TO FILES
tsm for us
Sunday 13 April 2014
Saturday 12 April 2014
System environment
configuration
|
|
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
|
Install RHEL operating
system
|
Select the "basic server" installation
|
To prepare the
necessary setup
|
1. TSM related software
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 operating system ISO file
I. rhel-Server-6.4-x86_64-DVD.iso
3 tape library device driver
I. lin_tape-2.2.0-rhel6.x86_64
4. the above software and programs placed in the
root directory "/ 5_TSMSRC
/"underneath.
|
Set yum installer on disc
|
|
1 Mount RHEL 6.4 CD
#mount –o loop /3TSRC/rhel-server-6.4-x86_64-dvd.iso /mnt
2 in the "/etc/yum .repos/" directory under new media.repo file
3 test is correctly set up and successfully read
the disc inside the package
# yumlist
|
Install required
packages
|
# 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 installation
Lead
|
1 Turn off iptables
# service iptables stop
# service ip6tables stop
# chkconfig iptables off
# chkconfig ip6tables off
2 Turn off SELinux
# sed -i ' s/=enforcing /=disabled /g ' /etc/sysconfig/selinux
3 Close NetworkManager
# chkconfig NetworkManager off
4 Modify the hostname configuration file
# sed -i ' 1 i\172.30.101.51 TSM ' /etc/ hosts
|
Establish TSM
Instance user account
|
# groupadd
"tsmsrvrs"
# useradd -d /home/tsminst1
–m -g tsmsrvrs -s /bin/bash tsminst1
# echo 123456 | passwd
tsminst1 -stdin
|
Establish TSM relevant
directory
|
# mkdir /TSMDB
# mkdir /TSMLOG
# mkdir /TSMLOG/ACT
# mkdir /TSMLOG/ARCH
# chown -R tsminst1:tsmsrvrs
/TSMDB/TSMLOG
|
Install TSM
Server
|
|
1. the first TSM executable permission
to modify the installation package
# chmod +x /5_TSMSRC/tsmsrc/*
2 unlock binary tarball
#./6.3.4.000-TIV-TSMALL-Linuxx86_64.bin
3 After unlock the following directories and
files available
4. install TSM before, it is
recommended to perform the pre-installation environment before confirmation
program "prereqcheck.bin" , the program will first detect the
system environment meets the TSM Server installation
requirements, and shows the current system the missing package.
#./prereqcheck.bin-i console
5 After the confirmation, start installing TSM Server .
#./install.bin -i console
6. installation is complete
|
TSM environment
settings ( includes DB2)
|
||||||
1 Use command db2icrt command to create TSM Instance
# /opt/tivoli/tsm/db2/instance/db2icrt -a SERVER -u tsminst1 tsminst1
2 build server option file "dsmserv.opt"
# vim / home/tsminst1/dsmserv.opt
3 Add the following to the "dsmserv.opt"
4. modify dsmserv.opt user permissions
# chown tsminst1.tsmsrvrs dsmserv.opt
5. formatted database and log ( switching tsminst1 identity )
I. Setting the English language environment (Server code page)
$ db2iset -i tsminst1 DB2CODEPAGE=819
II. use the command dsmserv format to initialize 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
6 Set Tivoli Storage Manager API environment variables profile
I. switching tsminst1 identity
II. settings automatically logged initial DB2 environment
$ vim /home/tsminst1/.profile
$ vim /home/tsminst1/sqllib/userprofile
7 re-login tsminst1 ,
or directly execute the following command.
$ . ~/.profile
8. establishment "tsmdbmgr.opt" file
$ vim /home/tsminst1/tsminst1/tsmdbmgr.opt
9 Add the following lines to the Tivoli Storage Manager API
"dsm.sys" profile ( switchroot)
# vim /opt/tivoli/tsm/client/api/bin64/dsm.sys
# chown
root.bin /opt/tivoli/tsm/client/api/bin64/dsm.sys
10. restart DB2
$ db2istop ( forced to stop db2stop force)
$ db2istart
11 Set API password
I. start TSM Server ( switch tsminst1 identity )
$ cd ~; /opt/tivoli/tsm/server/bin/dsmserv
or
$ cd ~; /opt/tivoli/tsm/server/bin/dsmserv -q
& ( background to start
the service )
II. switch root identity, execute the
following command.
# source /home/tsminst1/sqllib/db2profile
III. changing API password ( original / new password is set to " tsmdbmgr ")
# /Home /tsminst1/sqllib/adsm/dsmapipw
|
Start and
stop TSM Server
|
1. the start TSM server before, perform
user profile (db2profile) , if you areInstance user login identity, then db2profile has
you define Instance , the has been copied to . " Profile " it.
I. Non- Instance user , you must first perform db2profile (Instance user is not required )
# source /home/tsminst1/sqllib/db2profile
II. switch to the Instance user 's home directory, and run the start TSM Servercommands.
# cd ~; /opt/tivoli/tsm/server/bin/dsmserv
III. in the background if you want to start the
server, enter the following command.
# /opt/tivoli/tsm/server/bin/dsmserv -q &
IV. enter /opt/tivoli/tsm/server/bin , execute ./dsmadmc -con , you can view the server feedback messages.
V. run again ./dsmadmc ,
enter the command console.
VI. commands dsmadmc need
to Bahrain Client program be executed before the execution must
first Server_console issued registration administrator account and password.
TSM: SERVER1> register admin name Password
2 Stop TSM server
I. Method 1: TSM issuing the command
prompt halt instruction
TSM: SERVER1> halt
.
II Method Two: Through dsmserv.v6lock find the Process ID ,
direct KILL .
# cat /opt /tivoli/tsm/server/bin/dsmserv.lock
# kill -9 dsmserv.pid
|
Set boot automatically
start TSM Server
|
1 copy dsmserv.rc to "/ etc / rc.d / init.d /" directory underneath, and was named"tsminst1" .
# cp /opt/tivoli/tsm/server/bin/dsmserv.rc /etc/rc.d/init.d/tsminst1
2 Set automatically start at boot
# chkconfig -add
tsminst1
# chkconfig -level 3
tsminst1 on
# chkconfig -level 5 tsminst1 on
3.
|
Sign TSM Server
License
|
|
1. enter TSM Console (Server console)
TSM:. SERVER1> reg
lic file=*.lic
2. verify TSM License
TSM: SERVER1> q license
|
Install TSM Admin
Center
|
|
1 unlock binary tarball
#. / 6.3.3.000-TIV-TSMAC-Linuxx86.bin
2 The following files are available after unlock
3. install TSM Admin Center before, it is recommended to perform the pre-installation
environment before confirmation program "prereqcheck.bin" , the program will first detect the system environment
meets the TSM Admin Centerinstallation requirements, and shows the
current system the missing package.
#. / Prereqcheck.bin-i console
4 After the confirmation, start installing TSM Admin Center .
#. / Install.bin-i console
5 installation is complete, open the Web page to
test the connection.
|
Install TSM BA
Client
|
|
1 unlock binary tarball
# Tar xvf 6.4.0.1-TIV-TSMBAC-LinuxX86.tar
2 The following files are available after unlock
3 according to the following packages, in order
to install.
# 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
|
Set TSM BA Client
|
||||
1 Create a client system files (dsm.sys)
# Vim / opt / tivoli / tsm / client / ba / bin / dsm.sys
# Chown root.bin / opt / tivoli / tsm / client / ba / bin /
dsm.sys
2. establish client options file (dsm.opt)
# Vim / opt / tivoli / tsm / client / ba / bin / dsm.opt
# Vim / opt / tivoli / tsm / client / ba / bin / dsm.opt.tsmc
# Vim / opt/tivoli/tsm/client/ba/bin/dsm.opt.tsmc2
|
Establish TSM administrator
roles and permissions
|
1. enter TSM Console (Server console)
TSM: SERVER1>
Register Admin admin admin
2 gives the administrator (admin) system (system) privileges
TSM: SERVER1> Grant AUTHORITY admin CLasses = SYstem
3 test TSM Client Console (dsmadmc) connection whether normal login
# Dsmadmc-id = admin-pa = admin
|
Establish TSM client
role
|
1 registered Node name
TSM: SERVER1>
Register Node TSMC TSMC
|
TSM DB Backup and
Restore Settings
|
|
1 Set SERVERNAME (TSM command prompt area )
tsm: SERVER1> set servername TSMSRV
2 Set Volume history and Device
configuration , modify / Home / tsminst1 /
dsmserv.opt , in the last line:
I. modified save and restart TSM Server .
3 Remove the tsmdbmgr.log
# Rm-f / home/tsminst1/tsmdbmgr.log
4 new TSM DB backup
disk directory
# Mkdir / 4_TSMBAK; chown tsminst1.tsmsrvrs / 4_TSMBAK
5 define TSM device class (TSM Console )
tsm: TSMSRV> DEFINE DEVCLASS TSMDBFILE DEVT = FILE FORMAT = DRIVE
MaxCap = 10485760K MOUNTL = 1 DIR = / 4_TSMBAK SHARE = NO
N DEVCLASS specified device class name
N devtype specified device class
N Directory directory specified device
N MAXCAPACITY maximum capacity of each file
6 Set the system database backup (TSM Console )
tsm: TSMSRV> set DBRecovery TSMDBFILE
7 Backup TSM device profile ( TSM Console )
tsm: TSMSRV> Backup devconfig
8 settings and perform database backup ( TSM Console )
tsm: TSMSRV>
Backup dB DEVCLASS = TSMDBFILE type = full ( first make a complete backup secondary )
Backup dB DEVCLASS = TSMDBFILE type = incremental
9 Database Restore
$ / Opt / tivoli / tsm / server / bin /
dsmserv restore db
|
Subscribe to:
Posts (Atom)