Backup Lenny using TSM

The few steps below describe in short how to install Tivoli Storage Manager (TSM) on Debian 5 (Lenny) x64.

1. Download the latest 5.x TSM client

wget ftp://ftp.wu-wien.ac.at/mirrors/tsm/maintenance/client/v5r5/Linux/LinuxX86/v552/5.5.2.0-TIV-TSMBAC-LinuxX86.tar

2. Install alien and dependencies

apt-get install alien gawk libstdc++5

3. untar the TSM client software

tar -xvf 5.5.2.0-TIV-TSMBAC-LinuxX86.tar NOTICES.TXT README_enu.htm README_api_enu.htm README_hsm_enu.htm TIVsm-API.i386.rpm TIVsm-API64.rpm TIVsm-BA.i386.rpm TIVsm-HSM.i386.rpm

4. Convert the RPM packages using alien

alien -g TIVsm-API.i386.rpm Warning: Skipping conversion of scripts in package TIVsm-API: postinst prerm Warning: Use the --scripts parameter to include the scripts. Directories TIVsm-API-5.5.2 and TIVsm-API-5.5.2.orig prepared. # alien -g TIVsm-BA.i386.rpm Warning: Skipping conversion of scripts in package TIVsm-BA: postinst prerm Warning: Use the --scripts parameter to include the scripts. Directories TIVsm-BA-5.5.2 and TIVsm-BA-5.5.2.orig prepared.

5. Adjust the control files

mv TIVsm-API-5.5.2/debian TIVsm-API-5.5.2/DEBIAN # mv TIVsm-BA-5.5.2/debian TIVsm-BA-5.5.2/DEBIAN # vi TIVsm-API-5.5.2/DEBIAN/control # vi TIVsm-BA-5.5.2/DEBIAN/control

The control file should like the following:

Source: tivsm-api Section: non-free Priority: extra Maintainer: root root@localhost Package: tivsm-api Architecture: all Depends: ${shlibs:Depends} Description: IBM Tivoli Storage Manager API

6. Build the packages

dpkg -b TIVsm-API-5.5.2 dpkg-deb: building package tivsm-api' in TIVsm-API-5.5.2.deb'. # dpkg -b TIVsm-BA-5.5.2 dpkg-deb: building package tivsm-ba' in TIVsm-BA-5.5.2.deb'.

7. Install the packages

dpkg -i TIVsm-API-5.5.2.deb Selecting previously deselected package tivsm-api. (Reading database ... 146642 files and directories currently installed.) Unpacking tivsm-api (from TIVsm-API-5.5.2.deb) ... Setting up tivsm-api (5.5.2) ... # dpkg -i TIVsm-BA-5.5.2.deb Selecting previously deselected package tivsm-ba. (Reading database ... 146716 files and directories currently installed.) Unpacking tivsm-ba (from TIVsm-BA-5.5.2.deb) ... Setting up tivsm-ba (5.5.2) ...

8. Post install issues

echo "/opt/tivoli/tsm/client/ba/bin" >> /etc/ld.so.conf # ldconfig # ln -s /opt/tivoli/tsm/client/lang/en_US /opt/tivoli/tsm/client/ba/bin/

And you’re done installing TSM. You’re now ready to proceed to the configuration. The TSM configuration files are located in /opt/tivoli/tsm/client/ba/bin. You can start by copying the sample files.

cd /opt/tivoli/tsm/client/ba/bin

cp dsm.opt.smp dsm.opt

cp dsm.sys.smp dsm.sys

Have a look at the IBM docs for the configuration options.