Sunday 13 April 2014

BINDING AND REBINDING MANAGEMENT CLASSES TO FILES

Binding associates a file with a management class. When you back up a file for the first time, Tivoli Storage Manager binds it to either the default management class or the management class specified in your include-exclude list. In later full incremental backups of the same file, if you change the management class, both active and inactive versions are bound again to the new management class. However, with selective backup and incremental-by-date backups, the new backups are bound to the new management class, but previous backup versions remain bound to the original management class.

If the backup copy group for the management class specifies keeping multiple backup versions of the file, and you request multiple backups, the server always has one active backup version (the current version) and one or more inactive backup versions of the file. All backup versions of a file are bound to the same management class and are managed based on the attributes in the backup copy group.

When you archive a file for the first time, Tivoli Storage Manager binds it to the default management class, to the management class specified in your include-exclude list, or to a management class you specify when modifying your archive options during an archive.

Archived files are never rebound to a different management class. If you change the management class for a file using an include.archive statement, the archmc option, or through the Tivoli Storage Manager GUI, any previous copies of the file that you archived remain bound to the management class specified when you archived them



Saturday 12 April 2014


TSM server v6.3 installation in rhel6

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
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
Mount RHEL 6.4 CD
#mount –o loop /3TSRC/rhel-server-6.4-x86_64-dvd.iso /mnt

in the "/etc/yum .repos/" directory under new media.repo file
[Media]
name = Red Hat Enterprise Linux 6.4
mediaid = 1359576196.686790
baseurl = file :/ / /mnt/
metadata_expire = -1
gpgcheck = 0
cost = 500

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
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.       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"
COMMMethod TCPIP
TCPPort 1500
TCPADMINPort 1500
 DEVCONFIG /home/tsminst1/devconf.dat
VOLUMEHISTORY /home/tsminst1/volhist.dat
 ACTIVELOGDirectory /TSMLOG/ACT
ARCHLOGDirectory / TSMLOG/ARCH

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

Completion message refer to the following :
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.
US 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       Set Tivoli Storage Manager API environment variables profile
I.            switching tsminst1 identity
II.         settings automatically logged initial DB2 environment
$ 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       re-login tsminst1 , or directly execute the following command.
$ . ~/.profile
8.       establishment "tsmdbmgr.opt" file
$ vim /home/tsminst1/tsminst1/tsmdbmgr.opt
SERVERNAME TSMDBMGR_TSMINST1

9       Add the following lines to the Tivoli Storage Manager API "dsm.sys" profile switchroot)
# 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.   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
                                 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

Install TSM Admin Center
1       unlock binary tarball
#. / 6.3.3.000-TIV-TSMAC-Linuxx86.bin
2       The following files are available after unlock
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.       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
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       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
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.       establish client options file (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

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:
VOLUMEHISTORY   / home/tsminst1/volhist.dat
DEVCONFIG     / home/tsminst1/devcnfg.dat
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
   DEVCLASS specified device class name
   devtype specified device class
   Directory directory specified device
   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