TSM Server Installation / Configuration on DEBIAN

As the installation of TSM on Debian might not be an easy task for the averageĀ  Joe administrator, I thought I will share the automation script I am usually using install TSM on Debian. Actually this script was written for Ubuntu 6.10 by Written by Thomas McCosker 29-06-2007, Sydney Australia – thomas.mccosker@gmail.com. I had been using this shell script for a while and it works great every time :) . A lot of my clients are using it as well by now. So a let’s start by a big thanks to Thomas.

Ah you might wonder why my client or I still using Ubuntu 6.10 as many newer releases came up. The answer is simple its slim enough that it will fly on our old machines & quite stable. If you have a newer version or a different backup requirement you might have to modify the script. Any way below is the script so make a use of it :) .

#!/bin/bash
#
# Written by Thomas McCosker 29-06-2007, Sydney Australia – thomas.mccosker@gmail.com
#
# Performed on Ubuntu Server 6.10 Kernel 2.6.17-10-server
# Working with StorageTek Timberwolf 9730
#
# Document written as bash script – but executed by hand – recommended.
# Will probably work as script if you prepare/modify as required.
# You will need both alien and gawk installed.
apt-get install alien
apt-get instlal gawk

# Download the TSM Client RPMs from service.boulder.ibm.com
# Convert the rpms to Deb format.
alien -d -c TIVsm-API.i386.rpm
alien -d -c TIVsm-BA.i386.rpm
alien -d -c TIVsm-HSM.i386.rpm
dpkg -i tivsm-api_5.3.5-1_i386.deb
dpkg -i tivsm-ba_5.3.5-1_i386.deb
dpkg -i tivsm-hsm_5.3.5-1_i386.deb

# Setup the basic client options files
echo “Servername server1″ > /opt/tivoli/tsm/client/ba/bin/dsm.sys
echo “COMMMethod TCPip” >> /opt/tivoli/tsm/client/ba/bin/dsm.sys
echo “TCPServeraddress 127.0.0.1″ >> /opt/tivoli/tsm/client/ba/bin/dsm.sys
echo “Servername server1″ > /opt/tivoli/tsm/client/ba/bin/dsm.opt

# Put it in our library path
echo “/opt/tivoli/tsm/client/api/bin” >> /etc/ld.so.conf
ldconfig

# Optional – make it work in an Australia English configured system
ln -s /opt/tivoli/tsm/client/lang/en_US /opt/tivoli/tsm/client/ba/bin/en_AU

# Server setup
# Download the Linux install tar from service.boulder.ibm.com
# untar it
tar -xvf TIVsm-server-5.3.5-0.i686.tar

# Convert RPMs to Deb
cd i686
alien -d -c TIVsm-server-5.3.5-0.i386.rpm
alien -d -c TIVsm-tsmscsi-5.3.5-0.i386.rpm

# Install the converted Debs
dpkg -i tivsm-server_5.3.5-1_i386.deb
dpkg -i tivsm-tsmscsi_5.3.5-1_i386.deb

# Optional – make it work in an Australia English configured system
ln -s /usr/lib/locale/en_US.utf8 /usr/lib/locale/en_US

# Set up the dsmserv.opt
echo “COMMMETHOD TCPIP” >> /opt/tivoli/tsm/server/bin/dsmserv.opt
echo “TCPPORT 1500″ >> /opt/tivoli/tsm/server/bin/dsmserv.opt
echo “DEVCONFIG devcnfg.out” >> /opt/tivoli/tsm/server/bin/dsmserv.opt

# Create the Database and Log files (substitute the size in mb as required)
cd /opt/tivoli/tsm/server/bin
./dsmfmt -db db.dsm 500
./dsmfmt -log log.dsm 500

# Format them
./dsmserv format 1 log.dsm 1 db.dsm

# Create Server ititialisation runfile to register server as client
echo register node $HOSTNAME $HOSTNAME domain=standard > /opt/tivoli/tsm/server/bin/tempfile
echo register admin admin admin >> /opt/tivoli/tsm/server/bin/tempfile
echo grant auth admin classes=system >> /opt/tivoli/tsm/server/bin/tempfile

# Execute the runfile
./dsmserv runfile tempfile
# Remove it
rm tempfile

# Create the Storage Pool Volumes
# You will need to substitute your own values here I have configured 100Gb RAID volume for backup.dsm
./dsmfmt -m -data /stg/stg1/backup.dsm 90000
./dsmfmt -m -data /stg/stg2/archive.dsm 50000
# This will take a while

# Create a DB Backup directory
mkdir /stg/stg1/dbbackup

# Set up the TSM Scsi config
# The two config files are /opt/tivoli/tsm/devices/bin/mt.conf and /opt/tivoli/tsm/devices/bin/lb.conf
cp /opt/tivoli/tsm/devices/bin/mt.conf.smp /opt/tivoli/tsm/devices/bin/mt.conf
cp /opt/tivoli/tsm/devices/bin/lb.conf.smp /opt/tivoli/tsm/devices/bin/lb.conf
# Instructions are self expanatory inside these files – cat /proc/scsi/scsi to attain required values.
cd /opt/tivoli/tsm/devices/bin
./tsmscsi
# This will create your /dev/tsmscsi/mt* and lb* devices which TSM will recognise.

# I couldn’t be bothered writing an init script so I just created a shell script and added it to rc.local with:
# /opt/tivoli/tsm/devices/bin/tsmscsi
# /opt/tivoli/tsm/server/bin/dsmserv &

# Thats about it – the rest of the configuration can be performed via dsmadmc

Well not too bad ain’t it ?




3 Responses to 'TSM Server Installation / Configuration on DEBIAN'

  1. Mohsin Ali Ghaffar - February 12th, 2009 at 11:42 pm

    REALLY works . Loading………… TESTED! Approved

  2. Thomas - April 21st, 2010 at 12:24 am

    You’re welcome =)

  3. Milan Kozak - June 15th, 2011 at 6:37 am

    TSM Client installation
    http://hodza.net/2011/06/15/howto-install-tsm-backup-client-in-debian-squeeze-ubuntu-64bit/


Leave a Reply